/* One hero rhythm for every service page except Yandex Direct. */
section[data-service-role="hero"] {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: clip !important;
}

html body section[data-service-role="hero"] {
  padding: 0 !important;
}

/* The ribbon belongs to the hero, so it remains visible at its lower edge. */
section[data-service-role="hero"] > [data-service-role="ribbon"] {
  position: relative !important;
  z-index: 20 !important;
  display: block !important;
  flex: 0 0 4.15rem !important;
  width: 100% !important;
  height: 4.15rem !important;
  margin: auto 0 0 !important;
}

section[data-service-role="hero"] > :where(:not([data-service-role="ribbon"]):not(figure)) {
  position: relative;
  z-index: 2;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

section[data-service-role="hero"] :is(
  .svc-crumbs, .hero-breadcrumbs, .audit-hero__breadcrumbs,
  .dn9-breadcrumbs, .ai-breadcrumbs, .max-breadcrumbs,
  .tg-breadcrumbs, .vk-breadcrumbs, .tz-breadcrumbs
) {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  min-height: 1.5rem !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  font-size: .8125rem !important;
  line-height: 1.5 !important;
}

section[data-service-role="hero"] h1 {
  max-width: min(100%, 42rem) !important;
  margin: 0 !important;
  font-size: clamp(2.75rem, 3.45vw, 3.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.055em !important;
  line-height: 1.05 !important;
  text-wrap: balance;
}

section[data-service-role="hero"] h1 + p,
section[data-service-role="hero"] h1 + div > p:first-child {
  max-width: 37rem !important;
  margin-top: 1.25rem !important;
  font-size: clamp(.95rem, 1.1vw, 1.12rem) !important;
  line-height: 1.45 !important;
}

/* The media page's older lead rule has greater specificity than the shared rule. */
section[data-service-role="hero"].dn9-hero--mediynaya-reklama h1 + .dn9-hero__lead {
  margin-top: 1.25rem !important;
}

@media (min-width: 992px) {
  section[data-service-role="hero"] {
    height: auto !important;
    min-height: 52rem !important;
  }

  section[data-service-role="hero"] > :where(:not([data-service-role="ribbon"]):not(figure)) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-block: 3.25rem 1rem !important;
  }

  html body section[data-service-role="hero"] > :is(
    .site-shell, .dv3-shell, .dn9-shell, .audit-container,
    .av-container, .ai-container, .max-shell, .tg-container,
    .vk-container, .tz-container
  ):not([data-service-role="ribbon"]) {
    width: min(calc(100% - (var(--home-gutter, clamp(1rem, 2.35vw, 2.5rem)) * 2)), var(--home-page-max, 100rem)) !important;
    max-width: var(--home-page-max, 100rem) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
    padding-top: 3.25rem !important;
    padding-bottom: 1rem !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
  }

  section[data-service-role="hero"] :is(
    .dv3-hero__grid, .dn9-hero__grid, .audit-hero__grid,
    .tg-hero__grid, .vk-hero-grid, .max-hero__grid,
    .ai-hero-grid, .tz-hero-grid, .av-hero-grid,
    .tgseed-hero__grid
  ),
  html body .dv3-hero .dv3-shell.dv3-hero__grid,
  html body .dn9-hero--mediynaya-reklama .dn9-shell.dn9-hero__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) !important;
    align-items: start !important;
    align-content: start !important;
    width: 100% !important;
    min-height: 0 !important;
    margin-block: 0 !important;
  }

  section[data-service-role="hero"] > :is(
    .dv3-hero__grid, .dn9-hero__grid, .av-hero-grid,
    .tgseed-hero__grid
  ) {
    width: min(calc(100% - (var(--home-gutter, clamp(1rem, 2.35vw, 2.5rem)) * 2)), var(--home-page-max, 100rem)) !important;
    max-width: var(--home-page-max, 100rem) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
  }

  section[data-service-role="hero"] :is(
    .analytics-hero__inner, .strategy-hero__inner,
    .facebook-hero__inner, .instagram-hero__inner,
    .maxseed-hero__inner
  ) {
    align-items: flex-start !important;
    min-height: 0 !important;
  }

  section[data-service-role="hero"] :is(
    .analytics-hero__inner, .strategy-hero__inner,
    .facebook-hero__inner, .instagram-hero__inner,
    .maxseed-hero__inner
  ) > div {
    padding-block: 0 !important;
  }

  section[data-service-role="hero"]:is(
    .analytics-hero, .strategy-hero, .tgseed-hero,
    .maxseed-hero, .facebook-hero, .instagram-hero
  ) h1 {
    margin-top: 2.25rem !important;
  }

  section[data-service-role="hero"] :is(
    .dv3-hero__visual, .dn9-hero__art, .audit-hero__visual,
    .tg-hero__visual, .tg-hero__visual-wrap, .vk-hero-visual,
    .max-hero__visual, .ai-hero-visual, .tz-hero-visual-wrap,
    .av-hero-right, .tgseed-hero__grid > figure
  ),
  html body .dv3-hero .dv3-hero__visual {
    position: relative !important;
    justify-self: center !important;
    align-self: center !important;
    width: min(100%, 44rem) !important;
    max-height: 35rem !important;
    margin: 0 !important;
  }

  section[data-service-role="hero"] :is(
    .dv3-hero__visual, .dn9-hero__art, .audit-hero__visual,
    .tg-hero__visual, .tg-hero__visual-wrap, .vk-hero-visual,
    .max-hero__visual, .ai-hero-visual, .tz-hero-visual-wrap,
    .av-hero-right, .tgseed-hero__grid > figure
  ) img,
  html body .dv3-hero .dv3-hero__visual img,
  html body .max-hero .max-hero__visual img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 35rem !important;
    object-fit: contain !important;
  }

  section[data-service-role="hero"] > figure {
    bottom: 4.15rem !important;
    height: auto !important;
    max-height: calc(100% - 4.15rem) !important;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  section[data-service-role="hero"] h1 {
    font-size: clamp(2.6rem, 3vw, 3.35rem) !important;
  }
}

@media (min-width: 992px) {
  html body .dn9-hero--mediynaya-reklama .dn9-hero__actions {
    margin-bottom: 1rem !important;
  }
  html body .dn9-hero--mediynaya-reklama .media-hero-perks {
    margin-top: 1rem !important;
  }
  html body .dn9-hero--mediynaya-reklama .dn9-hero__art > img {
    display: block !important;
    width: min(100%, 44rem) !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 35rem !important;
    margin-inline: auto !important;
    object-fit: contain !important;
  }

  html body .max-hero .max-hero__lead {
    margin-bottom: 1.5rem !important;
  }
  html body .max-hero .max-hero__actions {
    margin-bottom: .75rem !important;
  }
  html body .max-hero .max-hero__visual picture {
    display: contents !important;
  }
  html body .max-hero .max-hero__visual img {
    width: min(100%, 44rem) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 35rem !important;
    object-fit: contain !important;
  }

  /* AI Ads Hero trust badge */
  html body .ai-hero-trust {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
  }
  html body .ai-trust-avatars {
    display: flex !important;
    align-items: center !important;
  }
  html body .ai-trust-avatars img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    margin-left: -8px !important;
    object-fit: cover !important;
  }
  html body .ai-trust-avatars img:first-child {
    margin-left: 0 !important;
  }
  html body .ai-trust-info {
    display: flex !important;
    flex-direction: column !important;
    font-size: 0.8125rem !important;
    line-height: 1.35 !important;
    color: #475569 !important;
  }
  html body .ai-trust-info strong {
    color: #0c1015 !important;
    font-weight: 700 !important;
  }
  html body .ai-hero-script-note {
    display: none !important;
  }
  html body .ai-stats-bar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  section[data-service-role="hero"] {
    min-height: 0 !important;
    height: auto !important;
  }

  section[data-service-role="hero"] > :where(:not([data-service-role="ribbon"]):not(figure)) {
    min-height: 0 !important;
    padding-block: clamp(2rem, 5vw, 3.5rem) !important;
  }

  section[data-service-role="hero"] h1 {
    font-size: clamp(2.35rem, 6vw, 3.6rem) !important;
  }

  html body .dn9-hero--mediynaya-reklama .dn9-shell.dn9-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .dn9-hero--mediynaya-reklama .dn9-hero__copy {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .dn9-hero--mediynaya-reklama .media-hero-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 600px) {
  section[data-service-role="hero"] h1 {
    max-width: 100% !important;
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
    overflow-wrap: anywhere;
  }
  section[data-service-role="hero"] :is(
    .svc-crumbs, .hero-breadcrumbs, .audit-hero__breadcrumbs,
    .dn9-breadcrumbs, .ai-breadcrumbs, .max-breadcrumbs,
    .tg-breadcrumbs, .vk-breadcrumbs, .tz-breadcrumbs
  ) {
    margin-bottom: 1.25rem !important;
  }
}

/* ==================== MAX HERO BULLETS (2x2 GRID, LIME ICONS) ==================== */
html body .max-hero .max-hero__bullets {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px 28px !important;
  margin-top: 1.85rem !important;
  max-width: 32rem !important;
  box-sizing: border-box !important;
}

html body .max-hero .max-hero__bullet {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  box-sizing: border-box !important;
}

html body .max-hero .max-hero__bullet-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(126, 252, 66, 0.22) 0%, rgba(74, 222, 128, 0.12) 100%) !important;
  border: 1.5px solid rgba(110, 231, 71, 0.55) !important;
  box-shadow: 0 4px 14px rgba(110, 231, 71, 0.25) !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html body .max-hero .max-hero__bullet:hover .max-hero__bullet-icon {
  transform: translateY(-2px) scale(1.05) !important;
  border-color: rgba(110, 231, 71, 0.85) !important;
  box-shadow: 0 6px 20px rgba(110, 231, 71, 0.42) !important;
}

html body .max-hero .max-hero__bullet-icon svg,
html body .max-hero .max-hero__bullet > svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  color: #16a34a !important;
  stroke: #16a34a !important;
  stroke-width: 2.2 !important;
}

html body .max-hero .max-hero__bullet-text,
html body .max-hero .max-hero__bullet span {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #0c1015 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 560px) {
  html body .max-hero .max-hero__bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 14px !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
  }
  html body .max-hero .max-hero__bullet {
    gap: 10px !important;
  }
  html body .max-hero .max-hero__bullet-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
  }
  html body .max-hero .max-hero__bullet-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  html body .max-hero .max-hero__bullet-text {
    font-size: 0.8125rem !important;
  }
}

/* ==================== 03: ПРЕИМУЩЕСТВА DIRECTNAVIGATOR (MOCKUP EXACT MATCH) ==================== */
html body #benefits.maxm-sec,
#benefits.maxm-sec {
  background: #08110f !important;
  background: radial-gradient(circle at 45% 50%, rgba(37, 201, 61, 0.09) 0%, rgba(8, 17, 15, 0) 65%), #08110f !important;
  color: #ffffff !important;
  padding: clamp(3.5rem, 6vw, 6rem) 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

html body #benefits.maxm-sec .maxm-shell,
#benefits .maxm-shell {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 3vw, 2.5rem) !important;
  box-sizing: border-box !important;
}

html body #benefits.maxm-sec .maxm-sec03-row,
#benefits .maxm-sec03-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.6fr) !important;
  gap: clamp(1.5rem, 2.8vw, 3rem) !important;
  align-items: center !important;
}

/* Left info block */
html body #benefits.maxm-sec .maxm-sec03-info,
#benefits .maxm-sec03-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  z-index: 2 !important;
}

html body #benefits.maxm-sec .maxm-kicker-wrap,
#benefits .maxm-kicker-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 1.25rem !important;
}

html body #benefits.maxm-sec .maxm-kicker-wrap .maxm-badge-num,
html body #benefits.maxm-sec .maxm-badge-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 34px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #benefits.maxm-sec .maxm-kicker-line,
#benefits .maxm-kicker-line {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  background: #5ce61e !important;
  border-radius: 2px !important;
}

html body #benefits.maxm-sec .maxm-kicker-text,
#benefits .maxm-kicker-text {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #5ce61e !important;
}

html body #benefits.maxm-sec .maxm-h2,
#benefits .maxm-h2 {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(1.85rem, 2.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.16 !important;
  color: #ffffff !important;
  margin: 0 0 1.25rem 0 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}

html body #benefits.maxm-sec .maxm-accent-green,
#benefits .maxm-accent-green {
  color: #5ce61e !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

html body #benefits.maxm-sec .maxm-desc,
#benefits .maxm-desc {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.9375rem !important;
  line-height: 1.55 !important;
  color: #8c9ba5 !important;
  margin: 0 0 2rem 0 !important;
  max-width: 25rem !important;
}

/* Green pill CTA button */
html body #benefits.maxm-sec .maxm-btn-green,
#benefits .maxm-btn-green {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 13px 26px !important;
  border-radius: 999px !important;
  background: #5ce61e !important;
  background: linear-gradient(135deg, #6efc42 0%, #4ee016 100%) !important;
  color: #071925 !important;
  -webkit-text-fill-color: #071925 !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 6px 22px rgba(92, 230, 30, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
}

html body #benefits.maxm-sec .maxm-btn-green:hover,
#benefits .maxm-btn-green:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(92, 230, 30, 0.5) !important;
  filter: brightness(1.05) !important;
}

html body #benefits.maxm-sec .maxm-btn-green svg,
#benefits .maxm-btn-green svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  stroke: #071925 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html body #benefits.maxm-sec .maxm-btn-green:hover svg,
#benefits .maxm-btn-green:hover svg {
  transform: translateX(3px) !important;
}

/* Center 3D Visual */
html body #benefits.maxm-sec .maxm-why-visual,
#benefits .maxm-why-visual {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 340px !important;
  z-index: 1 !important;
}

html body #benefits.maxm-sec .maxm-why-visual-glow,
#benefits .maxm-why-visual-glow {
  position: absolute !important;
  width: 250px !important;
  height: 250px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(92, 230, 30, 0.38) 0%, rgba(92, 230, 30, 0) 70%) !important;
  filter: blur(32px) !important;
  pointer-events: none !important;
  bottom: 6% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

html body #benefits.maxm-sec .maxm-why-visual picture,
#benefits .maxm-why-visual picture {
  display: contents !important;
}

html body #benefits.maxm-sec .maxm-why-visual img,
#benefits .maxm-why-visual img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: 400px !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45)) !important;
}

/* Right 6 Cards Grid (2x3) */
html body #benefits.maxm-sec .maxm-why-cards,
#benefits .maxm-why-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  z-index: 2 !important;
}

/* Individual Card */
html body #benefits.maxm-sec .maxm-why-card,
#benefits .maxm-why-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 18px 18px 20px !important;
  border-radius: 18px !important;
  background: rgba(14, 25, 22, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

html body #benefits.maxm-sec .maxm-why-card:hover,
#benefits .maxm-why-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(92, 230, 30, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(92, 230, 30, 0.12) !important;
}

/* Icon badge */
html body #benefits.maxm-sec .maxm-why-icon,
#benefits .maxm-why-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  background: rgba(37, 201, 61, 0.16) !important;
  border: 1px solid rgba(92, 230, 30, 0.22) !important;
  margin-bottom: 12px !important;
  color: #5ce61e !important;
  flex-shrink: 0 !important;
}

html body #benefits.maxm-sec .maxm-why-icon svg,
#benefits .maxm-why-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  color: #5ce61e !important;
}

/* Card typography */
html body #benefits.maxm-sec .maxm-why-card-title,
#benefits .maxm-why-card-title {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1.3 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.01em !important;
}

html body #benefits.maxm-sec .maxm-why-card-text,
#benefits .maxm-why-card-text {
  font-family: "Manrope", sans-serif !important;
  font-size: 0.8125rem !important;
  color: #8c9ba5 !important;
  -webkit-text-fill-color: #8c9ba5 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* Responsive queries */
@media (max-width: 1120px) {
  html body #benefits.maxm-sec .maxm-sec03-row,
  #benefits .maxm-sec03-row {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center !important;
  }
  html body #benefits.maxm-sec .maxm-sec03-info,
  #benefits .maxm-sec03-info {
    align-items: center !important;
    order: 1 !important;
  }
  html body #benefits.maxm-sec .maxm-desc,
  #benefits .maxm-desc {
    max-width: 32rem !important;
  }
  html body #benefits.maxm-sec .maxm-why-visual,
  #benefits .maxm-why-visual {
    order: 2 !important;
  }
  html body #benefits.maxm-sec .maxm-why-cards,
  #benefits .maxm-why-cards {
    order: 3 !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  html body #benefits.maxm-sec .maxm-why-cards,
  #benefits .maxm-why-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ==================== TELEGRAM HERO METRICS (LIME GREEN) ==================== */
html body .tg-hero .tg-metric-icon,
.tg-metric-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #7efc42 0%, #5ce61e 100%) !important;
  color: #071925 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 0.65rem !important;
  box-shadow: 0 4px 14px rgba(110, 231, 71, 0.35) !important;
  border: 1px solid rgba(82, 208, 24, 0.35) !important;
}

html body .tg-hero .tg-metric-icon svg,
.tg-metric-icon svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  stroke: #071925 !important;
  color: #071925 !important;
}

/* Keep the service introductions on one vertical rhythm. The hero may grow for
   its content, but a tall monitor must not stretch the empty space to 100svh. */
@media (min-width: 992px) {
  html body section[data-service-role="hero"] {
    height: auto !important;
    min-height: 52rem !important;
  }

  html body section[data-service-role="hero"] > :where(:not([data-service-role="ribbon"]):not(figure)) {
    flex: 1 0 auto !important;
    min-height: 0 !important;
  }

  /* Breadcrumbs live outside the copy grid on these six service pages. */
  html body section[data-service-role="hero"] :is(
    .vk-hero-grid, .max-hero__grid,
    .ai-hero-grid, .tz-hero-grid
  ) {
    margin-top: 3rem !important;
  }

  html body section[data-service-role="hero"].tg-hero:has(.tg-hero-copy) .tg-hero__grid {
    margin-top: 3rem !important;
  }

  /* On these pages the breadcrumbs are inside the grid's text column. */
  html body section[data-service-role="hero"] :is(
    .dv3-hero__copy, .tg-hero__copy, .dn9-hero__copy,
    .audit-hero__copy
  ) > :is(
    .hero-breadcrumbs, .tg-breadcrumbs, .dn9-breadcrumbs,
    .audit-hero__breadcrumbs
  ) {
    margin-bottom: 4.5rem !important;
  }

  html body section[data-service-role="hero"] :is(
    .dv3-hero__visual, .dn9-hero__art, .audit-hero__visual,
    .tg-hero__visual, .tg-hero__visual-wrap, .vk-hero-visual,
    .max-hero__visual, .ai-hero-visual, .tz-hero-visual-wrap,
    .av-hero-right
  ) {
    align-self: start !important;
  }

  html body section[data-service-role="hero"] :is(
    .dv3-hero__visual, .dn9-hero__art, .audit-hero__visual,
    .tg-hero__copy ~ .tg-hero__visual, .av-hero-right
  ) {
    margin-top: 6rem !important;
  }
}

/* Keep the target page's handwritten caption clear of the 3D illustration. */
html body .tg-hero:has(.tg-hero-copy) .tg-hero__visual-wrap {
  flex-direction: column !important;
}

html body .tg-hero:has(.tg-hero-copy) .tg-hero__note {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  align-self: flex-end !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: .5rem !important;
  margin-top: .25rem !important;
  max-width: 100% !important;
  white-space: normal !important;
}

html body .tg-hero:has(.tg-hero-copy) .tg-hero__note-arrow {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 600px) {
  html body section[data-service-role="hero"] :is(
    .tg-hero__actions, .vk-hero-actions, .max-hero__actions,
    .dn9-hero__actions, .ai-hero-actions, .audit-hero__actions
  ) {
    width: 100% !important;
    align-items: stretch !important;
  }

  html body section[data-service-role="hero"] :is(
    .tg-hero__actions, .vk-hero-actions, .max-hero__actions,
    .dn9-hero__actions, .ai-hero-actions, .audit-hero__actions
  ) > a {
    align-self: stretch !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  /* The page-level button skin repeats its class four times; match that
     specificity so padding stays inside the available mobile width. */
  html body section[data-service-role="hero"] a:is(
    .tg-btn-secondary.tg-btn-secondary.tg-btn-secondary.tg-btn-secondary,
    .vk-btn-white.vk-btn-white.vk-btn-white.vk-btn-white,
    .max-btn-white.max-btn-white.max-btn-white.max-btn-white,
    .dn9-button-secondary.dn9-button-secondary.dn9-button-secondary.dn9-button-secondary,
    .ai-btn-secondary.ai-btn-secondary.ai-btn-secondary.ai-btn-secondary,
    .audit-btn-secondary.audit-btn-secondary.audit-btn-secondary.audit-btn-secondary
  ) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

