/* Homepage v2 — hero mesh blend, compact calc, brand table, scenarios, trust badges, footer CTA */

:root {
  /* Hero wave palette — user mockup */
  --hero-wave-cyan: #a8d8e6;
  --hero-wave-teal: #5ec4cf;
  --hero-wave-lavender: #d8cef0;
  --hero-wave-sky: #e4f4f8;
  --hero-wave-deep: #b8d4e8;
  --hero-wave-white-glow: rgba(255, 255, 255, 0.75);

  --navy-dark: #1a2332;
  --accent-lime: #b8ff3c;

  /* Hero v4 HYBRID — AURA_HERO_HYBRID_SPEC */
  --hero-v4-navy-deep: #0f172a;
  --hero-v4-navy: #1a2332;
  --hero-v4-lime: #b8ff3c;
  --hero-v4-sky: #94e5ff;
  --hero-v4-lime-hover: #a3e635;
  --hero-v4-max-width: 1280px;
  --hero-v4-radius: 32px;
  --hero-v4-radius-mobile: 24px;
  --hero-v4-min-height: 640px;
  --hero-v4-max-height: 720px;
  --hero-v4-copy-pad-y: 64px;
  --hero-v4-copy-pad-x: clamp(24px, 5vw, 64px);
  --hero-v4-edge-inset-x: max(
    var(--hero-v4-copy-pad-x),
    calc((100vw - min(100vw, var(--hero-v4-max-width))) / 2 + var(--hero-v4-copy-pad-x))
  );
  /* Apex brand cards v1.1 — lowered row + glass (match header menu) */
  --hero-v4-brand-cards-transform-y: 78%;
  --hero-v4-brand-cards-overhang: clamp(104px, 9.5vw, 136px);
  --hero-v4-brand-cards-gap: 56px;
  --hero-v4-card-surface: rgba(255, 255, 255, 0.65);
  --hero-v4-card-surface-hover: rgba(255, 255, 255, 0.82);
  --hero-v4-card-blur: 16px;
  --hero-v4-card-border: rgba(255, 255, 255, 0.25);
  --hero-v4-card-border-hover: rgba(255, 255, 255, 0.35);
  --hero-v4-card-padding: 20px;
  --hero-v4-card-padding-mobile: 18px;
  --hero-v4-card-overlap-mobile: -20px;

  /* Hero bottom air band v1.2.1 — sky-only gradient (glass cards need colored backdrop) */
  --hero-v4-photo-air-height: 100px;
  --hero-v4-photo-air-height-mobile: clamp(72px, 19vw, 100px);
  --hero-v4-photo-air-sky-deep: rgba(94, 196, 207, 0.88);
  --hero-v4-photo-air-sky-base: rgba(148, 229, 255, 0.78);
  --hero-v4-photo-air-sky-mid: rgba(168, 216, 230, 0.52);
  --hero-v4-photo-air-sky-fade: rgba(148, 229, 255, 0.22);
  --hero-v3-min-height: 680px;
  --hero-v3-max-height: min(calc(100vh - 72px), 920px);

  /* Bento shell — when-filter-needed-v2 */
  --cp-bento-shell-lime: #f5fcea;
}

/* Homepage: no NEXORA sidebar rail — not in user mockup */
body.home .sidebar-rail {
  display: none !important;
}

body.home.has-sidebar-rail .site-main,
body.home.has-sidebar-rail .site-footer__main {
  margin-left: 0;
  width: 100%;
}

/* Hero v4 HYBRID — rounded photo container, copy left, overlap chips */
.hero-v4-section {
  position: relative;
  padding: 0;
  background: #fff;
}

.hero-v4__outer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  /* Reserve space for absolute brand cards (~78% overhang) + gap to next section */
  padding-bottom: calc(var(--hero-v4-brand-cards-overhang) + var(--hero-v4-brand-cards-gap));
}

.hero-v4__box {
  position: relative;
  isolation: isolate;
  min-height: var(--hero-v4-min-height);
  max-height: var(--hero-v4-max-height);
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
}

.hero-v4__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.hero-v4__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-v4-photo-air-height);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--hero-v4-photo-air-sky-deep) 0%,
    var(--hero-v4-photo-air-sky-base) 28%,
    var(--hero-v4-photo-air-sky-mid) 58%,
    var(--hero-v4-photo-air-sky-fade) 82%,
    transparent 100%
  );
}

.hero-v4__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--hero-v4-min-height);
  max-height: var(--hero-v4-max-height);
  object-fit: cover;
  object-position: center center;
}

.hero-v4__text-atmosphere,
.hero-v4__scrim {
  display: none;
}

.hero-v4__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: var(--hero-v4-max-width);
  margin-inline: auto;
  min-height: var(--hero-v4-min-height);
  max-height: var(--hero-v4-max-height);
}

.hero-v4__copy {
  grid-column: 1;
  align-self: end;
  padding: 120px 0 80px var(--hero-v4-copy-pad-x);
  color: var(--hero-v4-navy);
  max-width: 100%;
}

.hero-v4-section .hero-v4__copy [data-motion-item] {
  opacity: 1;
  transform: none;
}

.hero-v4__eyebrow {
  margin: 0;
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 35, 50, 0.6);
}

.hero-v4__h1 {
  margin: 16px 0 0;
  font-family: var(--cp-font-quote, 'Geologica', sans-serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--hero-v4-navy);
}

.hero-v4__subtitle {
  margin: 20px 0 0;
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.85);
}

.hero-v4__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-v4__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-v4__cta--primary {
  padding: 14px 28px;
  background: var(--hero-v4-lime);
  color: var(--hero-v4-navy);
  border: 0;
}

.hero-v4__cta--primary:hover,
.hero-v4__cta--primary:focus-visible {
  background: var(--hero-v4-lime-hover);
  color: var(--hero-v4-navy);
}

.hero-v4__cta--secondary {
  padding: 13px 26px;
  background: transparent;
  color: var(--hero-v4-navy);
  border: 1.5px solid var(--hero-v4-navy);
}

.hero-v4__cta--secondary:hover,
.hero-v4__cta--secondary:focus-visible {
  background: rgba(26, 35, 50, 0.05);
  color: var(--hero-v4-navy);
}

.hero-v4__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 20px 0 0;
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(26, 35, 50, 0.6);
  max-width: 460px;
}

.hero-v4__note-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(26, 35, 50, 0.45);
}

.hero-v4__visual {
  grid-column: 2;
}

/* Ряд карточек брендов на первом экране */
.hero-v4__brand-cards {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, var(--hero-v4-brand-cards-transform-y));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: var(--hero-v4-max-width);
  padding-inline: var(--hero-v4-copy-pad-x);
  box-sizing: border-box;
}

.hero-v4__brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hero-v4-card-surface);
  backdrop-filter: blur(var(--hero-v4-card-blur));
  -webkit-backdrop-filter: blur(var(--hero-v4-card-blur));
  border: 1px solid var(--hero-v4-card-border);
  border-radius: 24px;
  padding: var(--hero-v4-card-padding);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  min-height: auto;
}

/* Hover: glass denser (like .site-header.is-scrolled) + lift */
.hero-v4__brand-card:hover,
.hero-v4__brand-card:focus-within {
  transform: translateY(-8px);
  background: var(--hero-v4-card-surface-hover);
  border-color: var(--hero-v4-card-border-hover);
  box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.12);
}

.hero-v4__brand-card-title {
  font-family: var(--cp-font-display, 'Geologica', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--hero-v4-navy);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.hero-v4__brand-card-desc {
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(26, 35, 50, 0.75);
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.hero-v4__brand-card-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--hero-v4-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-v4__brand-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-v4__brand-card:hover .hero-v4__brand-card-link {
  color: var(--hero-v4-navy-deep);
  text-decoration: underline;
}

/* Hero v3 — ARCHIVE layered scene (not used on front-page) */
.hero-v3-section {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-v3-min-height);
  max-height: var(--hero-v3-max-height);
  overflow: hidden;
  padding: calc(var(--cp-header-height, 72px) + 16px) 0 48px;
  background: var(--hero-wave-sky, #e4f4f8);
}

.hero-v3__atmosphere,
.hero-v3__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-v3__atmosphere-img,
.hero-v3__bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-v3__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.2;
}

.hero-v3__particles-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-v3__product-stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 52%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-v3__product-img {
  display: block;
  width: min(100%, 1440px);
  height: 100%;
  max-height: min(46vh, 460px);
  object-fit: contain;
  object-position: 72% 100%;
}

.hero-v3__text-scrim {
  position: absolute;
  inset: 0;
  width: 42%;
  max-width: 560px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(238, 246, 250, 0.38) 0%,
    rgba(228, 244, 248, 0.22) 38%,
    rgba(228, 244, 248, 0.08) 58%,
    transparent 72%
  );
}

.hero-v3__grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  align-items: center;
  width: 100%;
  min-height: clamp(420px, 58vh, 640px);
  padding-inline: clamp(16px, 4vw, 48px);
}

.hero-v3__copy {
  grid-column: 1;
  color: var(--navy-dark);
  max-width: 480px;
  padding-right: 12px;
  background: transparent;
}

/* Hero copy must stay visible even if motion JS is slow or blocked */
.hero-v3-section .hero-v3__copy [data-motion-item] {
  opacity: 1;
  transform: none;
}

.hero-v3__eyebrow {
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2ba8b8;
  font-weight: 600;
  margin: 0;
  max-width: 480px;
}

.hero-v3__h1 {
  font-family: var(--cp-font-quote, 'Lora', serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--navy-dark);
  margin: 16px 0 0;
  max-width: 480px;
  text-transform: none;
}

.hero-v3__subtitle {
  font-family: var(--cp-font-body, 'Manrope', sans-serif);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.85);
  margin: 20px 0 0;
  max-width: 500px;
}

.hero-v3__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-v3__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(26, 35, 50, 0.85);
  opacity: 0.85;
  max-width: 460px;
}

/* hero-v2 deprecated — SVG wave stack removed from active path */

/* Compact calculator — below hero brand cards, no negative overlap */
.compact-calculator-widget {
  margin-top: 0;
  position: relative;
  z-index: 10;
  padding-bottom: 48px;
}

.compact-calculator-widget__card {
  display: grid;
  gap: 24px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(43, 168, 184, 0.15);
  box-shadow: 0 24px 64px rgba(26, 35, 50, 0.08);
}

@media (min-width: 900px) {
  .compact-calculator-widget__card {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.compact-calculator-widget__form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .compact-calculator-widget__form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.compact-calculator-widget__results {
  grid-column: 1 / -1;
}

.compact-calculator-widget__full-link {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}

/* How to choose v2 */
.how-to-choose-v2__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .how-to-choose-v2__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

/* When filter needed — Yandex Kit pastel bento (after calculator) */
.when-filter-needed-v2 {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
  background: #fff;
}

.when-filter-needed-v2__outer {
  width: min(100% - var(--cp-container-pad, 16px) * 2, var(--cp-container-max, 1280px));
  margin-inline: auto;
}

.when-filter-needed-v2__shell {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 36px);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 40px);
  border-radius: clamp(24px, 2.5vw, 32px);
  background: var(--cp-bento-shell-lime, #f5fcea);
  box-sizing: border-box;
}

.when-filter-needed-v2__header {
  max-width: 820px;
}

.when-filter-needed-v2__lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(26, 35, 50, 0.82);
}

.when-filter-needed-v2__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .when-filter-needed-v2__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .when-filter-needed-v2__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 18px;
  }

  .when-filter-needed-v2__card--1 {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .when-filter-needed-v2__card--2 {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .when-filter-needed-v2__card--3 {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .when-filter-needed-v2__card--4 {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: stretch;
  }
}

.when-filter-needed-v2__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: clamp(18px, 2.2vw, 24px);
  background: #fff;
  border: 1px solid rgba(26, 35, 50, 0.06);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.when-filter-needed-v2__card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 35, 50, 0.1);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.08);
}

.when-filter-needed-v2__card-title {
  margin: 0;
  font-family: var(--cp-font-display, 'Geologica', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hero-v4-navy, #1a2332);
}

.when-filter-needed-v2__card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(26, 35, 50, 0.75);
  flex-grow: 1;
}

.when-filter-needed-v2__note {
  width: 100%;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 20px;
  border: 1px solid rgba(26, 35, 50, 0.06);
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.05);
}

.when-filter-needed-v2__note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 35, 50, 0.8);
}

.when-filter-needed-v2__cta {
  margin: 0;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .when-filter-needed-v2__card {
    transition: none;
  }

  .when-filter-needed-v2__card:hover {
    transform: none;
  }
}

/* How to choose v2 — parameters + schemes */

.how-to-choose-v2__subhead {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-dark, #1a2332);
}

.how-to-choose-v2__geo-answers {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(43, 168, 184, 0.2);
}

.geo-answer {
  padding: 16px 18px;
  background: rgba(43, 168, 184, 0.06);
  border-left: 3px solid var(--hero-wave-teal, #5ec4cf);
  border-radius: 0 12px 12px 0;
}

.geo-answer__q {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-dark, #1a2332);
}

.geo-answer__a {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d4a5c;
}

.geo-answer__a a {
  color: #2ba8b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mount-scheme-card {
  margin: 0 0 16px;
  padding: 16px;
  background: #f4f7fa;
  border-radius: 16px;
}

.mount-scheme-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.mount-scheme-card figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
}

/* Brand table + product grid */
.brand-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 16px;
  border: 1px solid rgba(26, 35, 50, 0.08);
}

.brand-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.brand-table th,
.brand-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  vertical-align: top;
}

.brand-table thead th {
  background: #e8f4f8;
  font-weight: 700;
}

.brand-table tbody th[scope='row'] {
  font-weight: 600;
  background: #fafbfc;
  width: 22%;
}

.brand-table-product-grid__products-title {
  font-family: var(--cp-font-display, 'Geologica', sans-serif);
  font-size: clamp(22px, 3vw, 28px);
  margin: 40px 0 20px;
}

.brand-table-product-grid__products {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Scenarios v2 */
.scenarios-v2__grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .scenarios-v2__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scenario-card {
  padding: 24px;
  height: 100%;
}

.scenario-card__media {
  margin: -8px -8px 16px;
  border-radius: 12px;
  overflow: hidden;
}

.scenario-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.scenario-card__icon {
  margin-bottom: 12px;
}

.scenario-card__title {
  font-size: 18px;
  margin: 0 0 12px;
}

.scenario-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #475569;
}

/* Trust v2 */
.trust-v2__cards {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .trust-v2__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-v2__card {
  padding: 24px;
}

.trust-v2__card-title {
  font-size: 17px;
  margin: 0 0 12px;
}

.trust-v2__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.trust-v2__badge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}

.trust-v2__badge-icon {
  grid-row: span 2;
}

.trust-v2__badge-value {
  font-weight: 800;
  font-size: 18px;
  color: var(--navy-dark);
}

.trust-v2__badge-label {
  font-size: 13px;
  color: #64748b;
}

/* Blog v2 */
.blog-v2__grid {
  margin-top: 8px;
}

.blog-card__cover--topic {
  display: block;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* Footer CTA v2 */
.footer-cta-v2 {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(135deg, #1a2332 0%, #1e4a52 55%, #2ba8b8 100%);
  color: #fff;
  overflow: hidden;
}

.footer-cta-v2__mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(184, 255, 60, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(168, 216, 230, 0.2), transparent 50%);
  pointer-events: none;
}

.footer-cta-v2__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .footer-cta-v2__inner {
    grid-template-columns: 1.4fr auto;
  }
}

.footer-cta-v2__title {
  font-family: var(--cp-font-display, 'Geologica', sans-serif);
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 12px;
  color: #fff;
}

.footer-cta-v2__text {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.footer-cta-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Responsive hero v4 */
@media (max-width: 767px) {
  .hero-v4__outer {
    padding-bottom: calc(var(--hero-v4-brand-cards-overhang) + 32px);
  }

  .hero-v4__box {
    min-height: auto;
    max-height: none;
    border-radius: 0;
    margin-bottom: 0;
    background: #fff;
  }

  .hero-v4__photo {
    inset: auto 0 0;
    top: auto;
    height: 240px;
  }

  .hero-v4__photo::after {
    height: var(--hero-v4-photo-air-height-mobile);
  }

  .hero-v4__visual {
    display: none;
  }

  .hero-v4__photo-img {
    min-height: 0;
    max-height: none;
    height: 100%;
    object-fit: contain;
    object-position: 55% bottom;
  }

  .hero-v4__text-atmosphere {
    inset: 0;
    height: auto;
    opacity: 0.28;
    background-position: top center;
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      transparent 78%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      transparent 78%
    );
  }

  .hero-v4__scrim {
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.18) 45%,
      rgba(255, 255, 255, 0.04) 68%,
      transparent 82%
    );
  }

  .hero-v4__grid {
    display: flex;
    flex-direction: column;
    min-height: auto;
    max-height: none;
    padding-bottom: 200px;
  }

  .hero-v4__copy {
    padding: 120px 24px 24px;
    max-width: none;
    align-self: stretch;
  }

  .hero-v4__h1 {
    font-size: 32px;
  }

  .hero-v4__subtitle {
    font-size: 14px;
  }

  .hero-v4__visual {
    display: none;
  }

  .hero-v4__brand-cards {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    grid-template-columns: repeat(3, 280px);
    display: grid;
    gap: 16px;
    max-width: none;
    margin-top: var(--hero-v4-card-overlap-mobile);
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hero-v4__brand-cards::-webkit-scrollbar {
    display: none;
  }

  .hero-v4__brand-card {
    min-height: auto;
    padding: var(--hero-v4-card-padding-mobile);
    border-radius: 20px;
  }

  .compact-calculator-widget {
    margin-top: 0;
  }
}

/* Responsive hero v3 — ARCHIVE */
@media (max-width: 1024px) {
  .hero-v3-section {
    min-height: auto;
    max-height: none;
    padding: calc(var(--cp-header-height, 72px) + 24px) 0 40px;
  }

  .hero-v3__atmosphere-img,
  .hero-v3__bg-img {
    object-position: 60% 30%;
  }

  .hero-v3__product-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(240px, 32vh, 300px);
    margin-top: 28px;
  }

  .hero-v3__product-img {
    width: 100%;
    height: 100%;
    max-height: min(32vh, 300px);
    object-position: center 100%;
  }

  .hero-v3__text-scrim {
    width: 100%;
    height: 52%;
    max-width: none;
    background: linear-gradient(
      180deg,
      rgba(238, 246, 250, 0.35) 0%,
      rgba(228, 244, 248, 0.12) 55%,
      transparent 100%
    );
  }

  .hero-v3__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .hero-v3__copy {
    grid-column: 1;
    max-width: none;
    padding-right: 0;
  }

  .compact-calculator-widget {
    margin-top: 0;
  }
}
