/* MIR NIQ — Homepage hub sections */

.mir-hub-page { overflow-x: hidden; }

/* Hero */
.mir-hub-hero {
  position: relative;
  min-height: clamp(280px, 38vh, 400px);
  background: var(--niq-second);
  display: flex;
  align-items: flex-end;
}

.mir-hub-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.mir-hub-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--niq-max);
  margin: 0 auto;
  padding: 48px 20px 56px;
}

.mir-hub-hero__card {
  background: var(--niq-third);
  max-width: 520px;
  padding: 36px 36px 32px;
  border-bottom-right-radius: 0;
  position: relative;
}

.mir-hub-hero__card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, var(--niq-fourth) 50%);
}

.mir-hub-hero__card h1 {
  font-family: var(--niq-display);
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--niq-first);
  line-height: 1.1;
  margin: 0 0 20px;
}

/* Premium full-bleed hero (home) */
.mir-hub-hero--premium {
  min-height: clamp(320px, 42vh, 440px);
  align-items: flex-end;
  overflow: hidden;
}

.mir-hub-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

.mir-hub-hero__photo--filter {
  filter: saturate(0.78) contrast(1.08) brightness(0.58);
}

.mir-hub-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 29, 58, 0.45) 0%, rgba(11, 29, 58, 0.82) 55%, rgba(11, 29, 58, 0.96) 100%),
    linear-gradient(105deg, rgba(11, 29, 58, 0.78) 0%, rgba(11, 29, 58, 0.35) 48%, transparent 68%);
}

.mir-hub-hero--premium .mir-hub-hero__inner {
  z-index: 2;
  max-width: 680px;
  padding: 40px 24px 48px;
  color: var(--niq-third);
}

.mir-hub-hero__kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--niq-accent-2);
}

.mir-hub-hero--premium h1 {
  margin: 0 0 16px;
  font-family: var(--niq-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff !important;
}

.mir-hub-hero__lead {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.mir-hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mir-hub-intro-cta {
  margin-top: 8px;
}

.mir-hub-newsletter__feedback {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--niq-accent-2);
}

/* Sub-nav */
.mir-hub-subnav {
  background: var(--niq-second);
  position: sticky;
  top: var(--mir-niq-header-h);
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mir-hub-subnav ul {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--niq-max);
  white-space: nowrap;
}

.mir-hub-subnav a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 3px solid transparent;
}

.mir-hub-subnav a:hover {
  color: var(--niq-third) !important;
  border-bottom-color: var(--niq-first);
}

/* Section common */
.mir-hub-section {
  padding: 56px 0;
}

.mir-hub-section--gray { background: var(--niq-fourth); }

.mir-hub-section__inner {
  max-width: var(--niq-max);
  margin: 0 auto;
  padding: 0 20px;
}

.mir-hub-section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--niq-second);
}

.mir-hub-section-hd h2 {
  margin: 0;
  font-family: var(--niq-display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--niq-second);
}

.mir-hub-section-hd a {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
}

/* Intro */
.mir-hub-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.mir-hub-intro-grid h2 {
  font-family: var(--niq-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  color: var(--niq-first);
  margin: 0 0 20px;
  line-height: 1.2;
}

.mir-hub-intro-grid p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--niq-second);
}

.mir-hub-intro-img {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--niq-fourth);
}

.mir-hub-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fast facts */
.mir-hub-facts {
  background: var(--niq-second);
  color: var(--niq-third);
  padding: 56px 0;
}

.mir-hub-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--niq-max);
  margin: 0 auto;
  padding: 0 20px;
}

.mir-hub-facts-lead h2 {
  font-family: var(--niq-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 16px;
}

.mir-hub-facts-lead p {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin: 0;
  max-width: 320px;
}

.mir-hub-stat {
  display: grid;
  grid-template-columns: 130px 1fr;
  background: var(--niq-third);
  color: var(--niq-second);
  margin-bottom: 16px;
  overflow: hidden;
}

.mir-hub-stat__num {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  font-family: var(--niq-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: var(--niq-third);
  background: var(--niq-first);
}

.mir-hub-stat__num--a1 { background: var(--niq-accent-1); }
.mir-hub-stat__num--a2 { background: var(--niq-accent-2); color: var(--niq-second); }
.mir-hub-stat__num--a5 { background: var(--niq-accent-5); }

.mir-hub-stat__label {
  padding: 16px 20px 16px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

/* Trust cards */
.mir-hub-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mir-hub-trust-card {
  background: var(--niq-third);
  padding: 28px 24px;
  border: 1px solid var(--niq-border);
}

.mir-hub-trust-card h3,
.mir-hub-trust-card h4 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  color: var(--niq-second);
}

.mir-hub-trust-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--niq-text-muted);
}

/* Article cards */
.mir-hub-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mir-hub-card {
  background: var(--niq-third);
  border: 1px solid var(--niq-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s;
}

.mir-hub-card:hover {
  box-shadow: 0 6px 24px rgba(6, 10, 69, 0.1);
}

.mir-hub-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--niq-fourth);
}

.mir-hub-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mir-hub-card__body { padding: 18px; flex: 1; }

.mir-hub-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--niq-first);
  margin-bottom: 8px;
}

.mir-hub-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--niq-second);
}

/* Industries */
.mir-hub-ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mir-hub-ind {
  background: var(--niq-third);
  border: 1px solid var(--niq-border);
  overflow: hidden;
}

.mir-hub-ind__img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--niq-fourth);
}

.mir-hub-ind__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mir-hub-ind__body { padding: 20px; }

.mir-hub-ind__kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--niq-first);
  margin: 0 0 6px;
}

.mir-hub-ind__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--niq-second);
}

.mir-hub-ind__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mir-hub-ind__tags a {
  font-size: 11px;
  padding: 4px 8px;
  background: var(--niq-fourth);
  color: var(--niq-second) !important;
  text-decoration: none !important;
  border-radius: 2px;
}

.mir-hub-ind__tags a:hover {
  background: var(--niq-first);
  color: var(--niq-third) !important;
}

.mir-hub-ind-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.mir-hub-ind-intro h2 {
  font-family: var(--niq-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin: 0 0 10px;
}

.mir-hub-ind-intro p {
  margin: 0;
  color: var(--niq-text-muted);
}

/* Reports */
.mir-hub-reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mir-hub-panel {
  background: var(--niq-fourth);
  padding: 24px;
  border-left: 4px solid var(--niq-first);
}

.mir-hub-panel h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
}

.mir-hub-panel ul { list-style: none; margin: 0; padding: 0; }

.mir-hub-panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--niq-border);
}

.mir-hub-panel li:last-child { border-bottom: none; }

.mir-hub-panel a {
  color: var(--niq-second) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
}

.mir-hub-panel a:hover { color: var(--niq-first) !important; }

.mir-hub-panel .meta {
  font-size: 12px;
  color: var(--niq-text-muted);
  margin-top: 4px;
}

/* Newsletter */
.mir-hub-newsletter {
  background: var(--niq-second);
  color: var(--niq-third);
  padding: 48px 20px;
  text-align: center;
}

.mir-hub-newsletter h2 {
  font-family: var(--niq-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  margin: 0 0 10px;
}

.mir-hub-newsletter p {
  opacity: 0.85;
  margin: 0 auto 20px;
  max-width: 480px;
  font-size: 15px;
}

.mir-hub-newsletter form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
}

.mir-hub-newsletter input {
  flex: 1;
  border: none;
  height: 46px;
  padding: 0 14px;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  min-width: 0;
}

.mir-hub-newsletter button {
  height: 46px;
  padding: 0 20px;
  background: var(--niq-accent-1);
  color: var(--niq-third);
  border: none;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mir-hub-intro-grid,
  .mir-hub-facts-grid,
  .mir-hub-reports-grid { grid-template-columns: 1fr; }
  .mir-hub-cards { grid-template-columns: repeat(2, 1fr); }
  .mir-hub-ind-grid { grid-template-columns: repeat(2, 1fr); }
  .mir-hub-trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .mir-hub-cards,
  .mir-hub-ind-grid { grid-template-columns: 1fr; }
  .mir-hub-stat { grid-template-columns: 100px 1fr; }
  .mir-hub-newsletter form { flex-direction: column; gap: 8px; }
  .mir-hub-newsletter input,
  .mir-hub-newsletter button { border-radius: 4px; width: 100%; }
}
