/* =========================================================
   Чигиринська СЕС — landing
   Desktop design: 1716px frame (64px gutters, 1588 content)
   Mobile design: 390px frame (16px gutters)
   ========================================================= */

@font-face { font-family: "Gotham Pro"; src: url("../fonts/GothamPro.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham Pro"; src: url("../fonts/GothamPro-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/Onest-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg-dark: #141414;
  --bg-light: #f6f6f6;
  --panel: #171717;
  --panel-2: #1f1f1f;
  --field: #262626;
  --ink: #0a0a0a;
  --white: #fafafa;
  --muted: #737373;       /* on light */
  --muted-d: #a1a1a1;     /* on dark */
  --line: #e5e5e5;
  --line-d: #262626;
  --green: #24a639;
  --green-ink: #087d34;
  --gray-bar: #737373;
  --gray-bar-d: #525252;

  --gutter: 64px;
  --sec-y: 120px;
  --max: 1588px;
  --narrow: 1240px;

  --h2: clamp(40px, 3.73vw, 64px);
  --h2-lh: 1.125;
  --h2-sub-48: clamp(30px, 2.8vw, 48px);
  --lead: clamp(17px, 1.17vw, 20px);

  --font: "Gotham Pro", "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Onest", "Gotham Pro", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; } /* anchors land flush at the top; sections carry their own top padding */
body { background: var(--bg-dark); color: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.m-only { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.sec-dark { background: var(--bg-dark); color: var(--white); }
.sec-light { background: var(--bg-light); color: var(--ink); }

/* ---------- Typography ---------- */
.h2 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: -0.031em; }
.h2__sub { color: var(--muted-d); }
.sec-light .h2__sub { color: var(--muted); }
.h2__sub--block { display: block; }
.h2__sub--48 { font-size: var(--h2-sub-48); line-height: 1.17; letter-spacing: -0.02em; margin-top: 8px; }
.numbers .h2 .h2__sub--block { font-size: var(--h2-sub-48); line-height: 1.2; }
.h3 { font-size: clamp(32px, 2.33vw, 40px); line-height: 1.2; letter-spacing: -0.025em; }
.lead { font-size: var(--lead); line-height: 1.5; color: var(--muted-d); }
.sec-light .lead { color: var(--muted); }
.note { font-size: 14px; line-height: 20px; color: var(--muted); }
.note--dark { color: var(--muted-d); max-width: 779px; margin-top: 32px; }

.sec-head { display: flex; gap: 96px; }
.sec-head .lead { padding-top: 8px; }
.sec-head--split { justify-content: space-between; }
.sec-head--split > .h2 { flex: 0 1 760px; }
.sec-head--split > .lead { flex: 0 1 723px; }
.sec-head--row > .h2 { flex: none; }
.sec-head--row > .lead { max-width: 846px; }
.sec-head--between { justify-content: space-between; align-items: center; }
.sec-head--between .lead { text-align: right; padding-top: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 28px 16px 32px; border-radius: 999px; font-weight: 500; font-size: 16px; line-height: 24px; white-space: nowrap; transition: background-color .2s, transform .2s, box-shadow .2s, border-color .2s; }
.btn svg { flex: none; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #2bb843; box-shadow: 0 10px 24px -10px rgba(70, 200, 90, .6); }
.btn--ghost { background: rgba(10, 10, 10, .3); border: 1px solid var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(250, 250, 250, .12); }
.btn--outline { border: 1px solid #333; color: var(--white); padding: 16px 28px; }
.btn--outline:hover { border-color: #555; }
.btn--hero { font-family: var(--font-alt); font-weight: 600; padding-inline: 32px; }
.btn--block { width: 100%; }
.btn--faq { min-height: 52px; padding: 14px 18px 14px 24px; align-self: flex-start; }
.btn--quiz { padding: 16px 20px 16px 28px; }
.btn--footer { padding: 16px 20px 16px 28px; gap: 12px; align-self: flex-start; }
.btn:active { transform: translateY(1px); }

.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3a3a3a; color: var(--white); flex: none; transition: border-color .2s, background-color .2s; }
.round-btn:hover { border-color: #666; background: rgba(255,255,255,.04); }
.round-btn--sm { width: 40px; height: 40px; border-color: #333; }

/* ---------- Tags / legends ---------- */
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #f5f5f5; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.tag--live { background: rgba(36, 166, 57, .1); color: var(--green-ink); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--muted); }
.legend--dark { color: var(--muted-d); padding-top: 8px; line-height: 18px; }
.legend__i { display: inline-flex; align-items: center; gap: 8px; }
.legend__i::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: none; }
.legend__i--gray::before { background: var(--gray-bar); }
.legend__i--dgray::before { background: var(--gray-bar-d); }

/* ---------- In-page link transition: scroll+fade out → jump → scroll+fade in (the nav pill stays above it) ---------- */
/* closing: ease-in, so the page is seen moving before it darkens; opening: ease-out, clears fast while the page still glides */
.page-fade { position: fixed; inset: 0; z-index: 55; background: var(--bg-dark); opacity: 0; pointer-events: none; transition: opacity .36s cubic-bezier(.45, 0, .8, .5); }
.page-fade.is-on { opacity: 1; pointer-events: auto; }
.page-fade.is-out { transition: opacity .41s cubic-bezier(.18, .52, .35, 1); }

/* =========================================================
   HEADER
   ========================================================= */
.header { position: relative; } /* no stacking context: the fixed nav (z 60) rises above .page-fade (55) while the logo stays below it */
.header__logo { position: relative; z-index: 54; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100px; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.header__logo img { width: 165px; height: 26px; }
/* only the nav pill follows the scroll; the logo stays in the page */
.nav { position: fixed; z-index: 60; top: 27.5px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 999px; background: #191919; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); transition: translate .5s cubic-bezier(.4, 0, .2, 1); }
/* video / live sections in view → the pill slips up off-screen */
.nav.is-tucked { translate: 0 calc(-100% - 40px); pointer-events: none; }
html.is-nav-tucked.is-menu-logo .nav-logo-copy { visibility: hidden; }
.nav__link { display: inline-flex; align-items: center; height: 33px; padding: 0 12px; border-radius: 20px; font-weight: 500; font-size: 15px; line-height: 22.5px; color: #cfd8d2; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { background: #fff; color: #000; }
/* sliding indicator behind the active link (ported from rxport header pill) */
.nav__indicator { position: absolute; top: 0; left: 0; z-index: 0; width: 0; height: 0; border-radius: 999px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.nav.is-ready .nav__indicator { opacity: 1; }
.nav__link, .nav__cta { position: relative; z-index: 1; }
.nav.is-ready .nav__link.is-active { background: transparent; }
.nav__cta {
  display: inline-flex; align-items: center; height: 33px; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 500; font-size: 16px; line-height: 1; color: #fff;
  background: radial-gradient(80% 120% at 50% 0%, rgba(11, 22, 154, .19), rgba(11, 22, 154, 0) 80%), linear-gradient(180deg, #6aec7e 0%, #2acb42 52%, #46c85a 100%);
  border: 1px solid #46c85a;
  box-shadow: 0 40px 24px rgba(70, 200, 90, .05), 0 10px 10px rgba(70, 200, 90, .2), 0 3px 6px rgba(70, 200, 90, .2),
    inset 0 -12px 16px rgba(255, 255, 255, .07), inset 0 4px 16px rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 1px 1px rgba(255, 255, 255, .65);
  transition: filter .2s;
}
.nav__cta:hover { filter: brightness(1.06); }
.nav__cta-icon { display: none; }
.nav__toggle { display: none; }
/* always rendered (just hidden) so it is decoded and paints instantly when the menu opens */
.nav-logo-copy { position: fixed; z-index: 61; display: block; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.nav-logo-copy img { width: 100%; height: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 48px 0 120px; margin-top: -100px; padding-top: 88px; } /* card starts 16px under the nav pill */
.hero__card { position: relative; height: 754px; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 10, 6, .755) -23%, rgba(5, 10, 6, .708) 24%, rgba(5, 10, 6, .092) 76%, rgba(5, 10, 6, 0) 123%); }
.hero__content { max-width: 626px; }
.hero__lead { font-family: var(--font-alt); font-weight: 500; font-size: 36px; line-height: 42px; letter-spacing: -1px; max-width: 600px; }
.hero__text { font-family: var(--font-alt); font-size: 18px; line-height: 1.45; opacity: .78; max-width: 478px; margin-top: 24px; }
.hero__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero__title { align-self: flex-end; text-align: right; font-size: clamp(64px, 8.18vw, 140px); line-height: 1; letter-spacing: -2px; color: var(--white); white-space: nowrap; }

.hero__stats { display: grid; grid-template-columns: 802fr 722fr; gap: 64px; margin-top: 24px; }
.hero__energy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.stat-card { min-height: 248px; padding: 24px; border-radius: 12px; background: #191919; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 10px; font-family: var(--font-alt); }
/* mini chart fills the space above the number */
.stat-card__chart { position: relative; flex: 1 1 auto; min-height: 56px; margin-bottom: 14px; }
.stat-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stat-card__cap { font-size: 13px; line-height: 16px; color: #737373; white-space: nowrap; }
.chart.chart--mini { position: absolute; inset: 0; }
.chart--mini .chart__plot { inset: 0; }
.chart--mini .chart__ylab, .chart--mini .chart__xlab { display: none; }
.chart--mini .chart__grid { background: rgba(255, 255, 255, .14); }
.chart--mini .chart__bar { border-radius: 2px; }
.chart--mini .chart__bar--neg { background: #4a4a4a; border-radius: 0 0 2px 2px; }
.chart--mini .chart__bar--low { background: #4a4a4a; }
.stat-card__label { font-size: 15px; line-height: 20px; color: var(--muted-d); }
.stat-card__value { display: flex; align-items: baseline; gap: 8px; font-weight: 500; font-size: clamp(36px, 2.8vw, 48px); line-height: 1; letter-spacing: -1.2px; white-space: nowrap; }
.stat-card__value small { font-weight: 400; font-size: 18px; line-height: 1; letter-spacing: 0; color: var(--muted-d); }
.price-card { position: relative; min-height: 248px; border-radius: 12px; overflow: hidden; background: #191919; display: flex; align-items: flex-end; padding: 40px 32px; font-family: var(--font-alt); isolation: isolate; }
.price-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.price-card__label { font-size: 16px; line-height: 24px; color: #fff; }
.price-card__value { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-weight: 500; font-size: clamp(44px, 3.73vw, 64px); line-height: 1; letter-spacing: -1.4px; white-space: nowrap; }
.price-card__value small { font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted-d); }

/* ---------- Hero entrance ---------- */
/* Onest: Gotham Pro has no tabular figures (its digits differ in width), so counting numbers would wobble */
[data-count] { font-family: var(--font-alt); font-variant-numeric: tabular-nums; }
/* the final value sits invisibly in the same grid cell, so the box is always as wide as the end result
   and the unit next to it never shifts while counting (e.g. 9 999 → 10 000) */
[data-count].is-counting { display: inline-grid; justify-items: end; }
[data-count].is-counting > * { grid-area: 1 / 1; }
.count__ghost { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .hero__card { animation: heroCard 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__img { animation: heroZoom 2s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__lead, .hero__text, .hero__actions, .hero__title { animation: heroRise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__lead { animation-delay: .25s; }
  .hero__text { animation-delay: .38s; }
  .hero__actions { animation-delay: .5s; }
  .hero__title { animation-delay: .62s; animation-duration: 1.1s; }
  .hero__energy .stat-card, .price-card { animation: heroRise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__energy .stat-card:nth-child(1) { animation-delay: .7s; }
  .hero__energy .stat-card:nth-child(2) { animation-delay: .8s; }
  .price-card { animation-delay: .9s; }
}
@keyframes heroCard { from { opacity: 0; transform: scale(.97); } }
@keyframes heroZoom { from { transform: scale(1.12); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } }

/* =========================================================
   INTRO (text reveal + staggered photos)
   ========================================================= */
.intro { padding: var(--sec-y) 0; }
.intro__reveal { max-width: 733px; font-size: clamp(26px, 2.1vw, 36px); line-height: 1.45; }
.intro__reveal .w { opacity: .18; transition: opacity .25s linear; }
.intro__reveal .w.is-on { opacity: 1; }
.intro__grid { position: relative; margin-top: 40px; height: 1082px; }
.intro__item { position: absolute; width: 34.03%; display: flex; flex-direction: column; gap: 28px; }
.intro__item img { width: 100%; height: auto; }
.intro__item figcaption { font-size: 20px; line-height: 26px; letter-spacing: -1px; color: rgba(255, 255, 255, .7); }
.intro__item--a { left: 0; top: 137px; }
.intro__item--b { left: 63.39%; top: 0; }
.intro__item--b figcaption { max-width: 352px; }
.intro__item--c { left: 44.03%; top: 606px; }
.intro__item--c figcaption { max-width: 304px; }

/* =========================================================
   STATION IN NUMBERS
   ========================================================= */
.numbers { padding: var(--sec-y) 0; }
.numbers .sec-head .h2 { font-size: var(--h2); line-height: 1.2; }
.slice-tabs { display: none; }
.slices { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; background: #fff; border-radius: 32px; overflow: hidden; }
.slice { padding: 32px; display: flex; flex-direction: column; min-width: 0; }
.slice + .slice { border-left: 1px solid var(--line); }
.slice__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slice__title { font-size: 24px; line-height: 32px; letter-spacing: -.7px; }
.slice__src { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--muted); }
.slice__big { margin-top: 23px; display: flex; align-items: baseline; gap: 10px; font-weight: 500; font-size: clamp(44px, 3.73vw, 64px); line-height: 1; letter-spacing: -1.5px; white-space: nowrap; }
.slice__big small { font-size: 20px; letter-spacing: 0; color: var(--ink); }
.slice__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--muted); }
.slice__meta b { font-weight: 500; color: #575757; white-space: nowrap; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mini-grid--bottom { margin-top: auto; padding-top: 24px; }
.mini { min-height: 104px; padding: 12px; border-radius: 12px; background: #f5f5f5; display: flex; flex-direction: column; gap: 4px; }
.mini b { font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -.4px; }
.mini span { font-size: 14px; line-height: 20px; color: var(--muted); }
.mini b span, .mini span span { font: inherit; color: inherit; letter-spacing: inherit; }
.slice__chart { margin-top: 24px; }
.chart-title { font-weight: 500; font-size: 16px; line-height: 24px; color: var(--ink); margin-bottom: 8px; }
.chart-title--mt { margin-top: 24px; }
.chart-title--dark { color: var(--white); margin-bottom: 0; }
.slice__toggle { display: none; }

.split-bar { display: flex; gap: 3px; height: 24px; }
.split-bar span { border-radius: 4px; background: var(--green); }
.split-bar .split-bar__b { background: var(--gray-bar); }
.split-legend { display: grid; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted); }

.sources { margin-top: 48px; padding-top: 24px; }
.sources .h3 { color: var(--ink); }
.sources__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 24px; }
.source { padding-top: 24px; }
.source h3 { font-weight: 500; font-size: 20px; line-height: 28px; }
.source p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 24px; }
.sources .note { margin-top: 24px; }

/* ---------- Charts (shared) ---------- */
.chart { position: relative; font-size: 11.6px; line-height: 1; color: var(--muted); user-select: none; }
.chart__plot { position: absolute; }
.chart__grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chart__ylab { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); white-space: nowrap; text-align: right; }
.chart__xlab { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; }
.chart__bar { position: absolute; bottom: 0; background: var(--green); }
.chart__bar--neg { background: var(--gray-bar); }
.chart__bar--empty { background: #f5f5f5; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__bar[data-tip]:hover, .chart__bar[data-tip]:focus-visible { filter: brightness(1.15); }
.tooltip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; line-height: 16px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.tooltip.is-on { opacity: 1; }

.chart--hourly { height: 254px; }
.chart--hourly .chart__plot { left: 29px; right: 8px; top: 26px; bottom: 36px; }
.chart--days, .chart--power { height: 175px; }
.chart--days .chart__plot { left: 29px; right: 8px; top: 14px; bottom: 23px; }
.chart--power .chart__plot { left: 37px; right: 8px; top: 14px; bottom: 23px; }

.panel { margin-top: 16px; padding: 32px; border-radius: 32px; background: var(--panel); }
.panel__note { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted-d); }
.chart--dark { color: var(--muted-d); }
.chart--dark .chart__grid { background: #282828; }

/* ---------- Chart reveal: everything draws from 0 → 100% when it scrolls into view ---------- */
.chart .chart__bar { transform: scaleY(0); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2, .75, .2, 1) calc(var(--k, 0) * 22ms); }
.chart .chart__bar--neg { transform-origin: 50% 0; }
.chart.is-drawn .chart__bar { transform: none; }
.chart svg { clip-path: inset(-12px 100% -12px 0); transition: clip-path 1.6s cubic-bezier(.45, 0, .2, 1); }
.chart.is-drawn svg { clip-path: inset(-12px -12px -12px 0); }
.chart .chart__pill, .chart .chart__avg, .chart .chart__zone { opacity: 0; transition: opacity .5s ease .7s; }
.chart.is-drawn .chart__pill, .chart.is-drawn .chart__avg, .chart.is-drawn .chart__zone { opacity: 1; }
.chart--price .chart__zone { transition-delay: .2s; }
.split-bar span { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .75, .2, 1); }
.split-bar .split-bar__b { transition-delay: .55s; }
.split-bar.is-drawn span { transform: none; }

/* =========================================================
   HOW IT EARNS
   ========================================================= */
.earn { padding: var(--sec-y) 0; }
.earn__title { max-width: 928px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__n { display: block; width: 28px; height: 28px; color: #46c85a; }
.step__n svg { width: 28px; height: 28px; }
.step h3 { font-weight: 500; font-size: 24px; line-height: 1.5; }
.step p { color: var(--muted-d); font-size: 16px; line-height: 1.5; }
.earn .panel { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.earn .panel__note { margin-top: 0; line-height: 1.25; }
.chart--price { height: 416px; font-size: 16.6px; color: var(--muted-d); }
.chart--price .chart__plot { left: 41.6px; right: 11px; top: 19.4px; bottom: 33px; }
.chart__zone { position: absolute; top: 0; bottom: 0; background: rgba(38, 38, 38, .35); }
.chart__zone--sell { background: rgba(36, 166, 57, .16); }
.chart__zone span { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); color: var(--white); font-size: 18px; line-height: 1; white-space: nowrap; }

/* =========================================================
   RESULT FOR THE MONTH
   ========================================================= */
.result { padding: var(--sec-y) 0; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
.total { padding: 32px; border-radius: 24px; }
.total p { font-size: 14px; line-height: 20px; color: var(--muted-d); }
.total b { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; font-weight: 500; font-size: clamp(36px, 2.6vw, 44px); line-height: 1.27; letter-spacing: -1px; white-space: nowrap; }
.total small { font-size: 16px; letter-spacing: 0; color: var(--muted-d); }
.result .panel { margin-top: 16px; }
.result .totals + .panel { margin-top: 40px; }
.chart--may { height: 370px; margin-top: 8px; font-size: 13px; }
.chart--may .chart__plot { left: 65px; right: 11px; top: 85.5px; bottom: 32.6px; }
.chart--salesbuy { height: 326px; margin-top: 6px; font-size: 13px; }
.chart--salesbuy .chart__plot { left: 65px; right: 11px; top: 15.2px; bottom: 46px; }
.chart__avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #6b6b6b; }
.chart__caption { position: absolute; top: -70px; left: 0; color: var(--muted-d); font-size: 13px; line-height: 16px; }
.chart__pill { position: absolute; transform: translate(-50%, -100%); margin-top: -8px; padding: 5px 12px; border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 12px; line-height: 14px; white-space: nowrap; }
.chart__bar--low { background: var(--gray-bar-d); }
.chart--salesbuy .chart__bar--neg { background: var(--gray-bar-d); bottom: auto; }
.chart--may .chart__bar, .chart--salesbuy .chart__bar { border-radius: 2px 2px 0 0; }
.chart--salesbuy .chart__bar--neg { border-radius: 0 0 2px 2px; }

/* ---------- Lead forms ---------- */
.lead-form { display: grid; grid-template-columns: 480px 1fr; gap: 64px; padding: 48px; border-radius: 32px; margin-top: 16px; }
.lead-form--panel { background: var(--panel); }
.lead-form--dark { background: var(--bg-dark); color: var(--white); margin-top: 48px; }
.lead-form__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.lead-form__title { font-size: 36px; line-height: 1.25; }
.lead-form__text { margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--muted-d); max-width: 440px; }
.lead-form__req { font-size: 14px; line-height: 1.25; color: var(--muted-d); }
.form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--white); }
.field__input { width: 100%; height: 56px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--field); color: var(--white); font-size: 16px; line-height: 1.5; outline: none; transition: border-color .2s, background-color .2s; appearance: none; -webkit-appearance: none; }
.lead-form--dark .field__input { background: #1f1f1f; }
.field__input::placeholder { color: var(--muted-d); opacity: 1; }
.field__input:focus { border-color: var(--green); }
.field.is-invalid .field__input, .field__input.is-invalid { border-color: #e5484d; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.25; color: var(--muted-d); cursor: pointer; }
/* clickable controls never select text */
.check, .switch, .tile, .segmented, .select__trigger, .slice-tabs, .slice__toggle, .btn, .round-btn { user-select: none; -webkit-user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--muted-d); display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; }
.check__box svg { opacity: 0; }
.check input:checked + .check__box { background: var(--green); border-color: var(--green); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--green); outline-offset: 2px; }
.check.is-invalid .check__box { border-color: #e5484d; }
.btn--form { align-self: flex-start; padding: 16px 32px; }
/* =========================================================
   Submit button sending state (ported from rxport SubmitButton):
   label slides up to "Надсилаємо…", a light sweep runs across, the arrow flies out and back.
   ========================================================= */
.btn--submit { position: relative; overflow: hidden; isolation: isolate; }
.submit-labels { display: grid; }
.submit-labels > span { grid-area: 1 / 1; transition: opacity .2s, transform .3s; }
.submit-pending { display: inline-flex; align-items: baseline; gap: 6px; opacity: 0; transform: translateY(12px); }
.submit-dots { display: inline-flex; gap: 3px; }
.submit-dots i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.submit-arrow { display: grid; width: 20px; height: 20px; overflow: hidden; }
.submit-arrow svg { display: block; }
.btn--submit::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .25) 50%, transparent 75%); transform: translateX(-100%); }
form[data-submitting] .btn--submit { cursor: progress; }
form[data-submitting] .submit-idle { opacity: 0; transform: translateY(-12px); }
form[data-submitting] .submit-pending { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  form[data-submitting] .btn--submit::before { opacity: 1; animation: submit-sweep 1.8s ease-in-out infinite; }
  form[data-submitting] .submit-arrow svg { animation: submit-flight 1.25s ease-in-out infinite; }
  form[data-submitting] .submit-dots i { animation: submit-dot 1s ease-in-out infinite; }
  form[data-submitting] .submit-dots i:nth-child(2) { animation-delay: .15s; }
  form[data-submitting] .submit-dots i:nth-child(3) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .submit-labels > span { transition: none; transform: none; } }
@keyframes submit-sweep { to { transform: translateX(100%); } }
@keyframes submit-flight {
  0%, 15% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(22px); opacity: 0; }
  46% { transform: translateX(-22px); opacity: 0; }
  80%, 100% { transform: translateX(0); opacity: 1; }
}
@keyframes submit-dot {
  0%, 70%, 100% { transform: translateY(0); opacity: .5; }
  35% { transform: translateY(-3px); opacity: 1; }
}
/* sent: the thank-you replaces the fields; JS pins the form's height so the card doesn't jump */
.form { position: relative; }
/* sent: the form stays in layout (invisible) and the thank-you covers it, so the card keeps its size
   even if the viewport changes afterwards (pattern from rxport) */
.form.is-sent > :not(.form__done) { visibility: hidden; }
.form__done:not([hidden]) { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.form__done-title { font-size: 40px; line-height: 48px; letter-spacing: -1px; color: var(--white); }
.form__done-text { font-size: 18px; line-height: 28px; color: var(--muted-d); max-width: 440px; }
/* success badge: the check grows in, then its stroke draws (motion in animateSuccess) */
.done-badge { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--green); color: #fff; }
.done-badge path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.form__done .btn--restart { margin-top: 12px; padding-inline: 24px 28px; }

/* =========================================================
   WINTER PHOTO — static (fixed) background
   ========================================================= */
.winter { position: relative; z-index: 2; height: 100vh; min-height: 720px; background: #0d0d0d; }
.winter__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.winter__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.winter__fade { position: absolute; left: 0; right: 0; top: 0; height: 528px; z-index: 1; background: linear-gradient(180deg, #141414 0%, rgba(20, 16, 3, 0) 100%); }
.winter__content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-top: 72px; min-height: 144px; }
.winter__content.wrap { padding-inline: calc(var(--gutter) + 16px); }
.winter__title { max-width: 670px; background: linear-gradient(180deg, rgba(255, 255, 255, .46), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.winter__text { max-width: 326px; font-size: 20px; line-height: 26px; letter-spacing: -1px; color: rgba(255, 255, 255, .7); }
.winter__stats-wrap { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; padding-inline: calc(var(--gutter) + 16px); }
.winter__stats { display: flex; justify-content: space-between; gap: 32px; padding: 20px 64px; border-radius: 32px; background: #171717; }
.winter__stats div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.winter__stats b { font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.8px; color: #46c85a; white-space: nowrap; }
.winter__stats > div > span { font-size: 16px; line-height: 1.3; letter-spacing: -.8px; color: rgba(255, 255, 255, .7); white-space: nowrap; }

/* =========================================================
   PASSPORT
   ========================================================= */
.passport { padding: 120px 0; }
.passport__lead { max-width: 624px; }
.passport__body { display: grid; grid-template-columns: 648fr 876fr; gap: 64px; margin-top: 40px; }
.passport__img { width: 100%; height: 100%; min-height: 432px; object-fit: cover; border-radius: 32px; }
.params > div { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.params > div:last-child { border-bottom: 0; }
.params dt { font-size: 18px; line-height: 1.5; color: var(--muted); flex: none; }
.params dd { font-weight: 500; font-size: 18px; line-height: 1.5; text-align: right; }

/* =========================================================
   FOR BUSINESS — sticky stacked cards
   ========================================================= */
.biz { padding: var(--sec-y) 0; }
.biz__title { text-align: center; }
.stack { max-width: var(--narrow); margin: 80px auto 0; display: flex; flex-direction: column; gap: 24px; }
.stack__card { position: sticky; top: calc(110px + var(--i, 0) * 24px); display: grid; grid-template-columns: 452fr 700fr; gap: 40px; min-height: 480px; padding: 24px; border-radius: 32px; background: var(--white); color: var(--ink); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); transform-origin: 50% 0; will-change: transform; }
.stack__text { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px 0 24px 16px; }
.stack__text h3 { font-size: clamp(36px, 2.8vw, 48px); line-height: 1.17; letter-spacing: -1.5px; }
.stack__text p { font-size: 20px; line-height: 28px; color: var(--muted); max-width: 436px; }
.stack__card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 24px; }

/* =========================================================
   GANTT
   ========================================================= */
.gantt { padding: var(--sec-y) 0; }
.gantt .sec-head .lead { max-width: 552px; }
.gantt__card { margin-top: 48px; padding: 24px 40px; border-radius: 32px; background: #fff; }
.gantt__axis, .gantt__row { display: grid; grid-template-columns: 520fr 948fr; gap: 40px; }
.gantt__axis { padding: 16px 0; font-size: 13px; line-height: 16px; color: #a3a3a3; }
.gantt__ticks { position: relative; height: 16px; }
.gantt__ticks i { position: absolute; left: calc(var(--d) / var(--total) * 88.4%); font-style: normal; white-space: nowrap; }
.gantt__row { align-items: center; padding: 20px 0; border-top: 1px solid #ededed; }
.gantt__label h3 { font-weight: 500; font-size: 20px; line-height: 28px; }
.gantt__label p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.gantt__track {
  --scale: 88.4%;
  position: relative; height: 48px;
  background-image: repeating-linear-gradient(90deg, #ededed 0 1px, transparent 1px 20%), linear-gradient(#ededed, #ededed);
  background-size: calc(var(--scale) + 1px) 100%, 1px 100%; background-position: 0 0, var(--scale) 0; background-repeat: no-repeat;
}
.gantt__bar { position: absolute; top: 10px; height: 28px; border-radius: 999px; background: var(--green); left: calc(var(--s) / var(--total) * var(--scale)); width: calc(var(--l) / var(--total) * var(--scale)); }
/* stages draw one after another: each bar is revealed left→right (clip keeps the pill ends round), then its label fades in */
.gantt__bar { --step: .3s; clip-path: inset(0 100% 0 0 round 999px); transition: clip-path .55s cubic-bezier(.65, 0, .35, 1) calc(var(--n, 0) * var(--step)); }
.gantt__track b { opacity: 0; translate: -6px 0; transition: opacity .35s ease calc(var(--n, 0) * .3s + .4s), translate .35s ease calc(var(--n, 0) * .3s + .4s); }
.gantt__row--total .gantt__bar { transition-duration: 1.1s; }
.gantt__row--total .gantt__track b { transition-delay: calc(var(--n, 0) * .3s + 1s); }
.gantt__track b { position: absolute; top: 14px; left: calc((var(--s) + var(--l)) / var(--total) * var(--scale) + 12px); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--green); white-space: nowrap; }
.gantt__row--total .gantt__bar { background: var(--ink); }
.gantt__row--total b { color: var(--ink); font-size: 16px; }
.gantt__row--total .gantt__label h3 { line-height: 28px; }
.gantt.is-in .gantt__bar { clip-path: inset(0 0 0 0 round 999px); }
.gantt.is-in .gantt__track b { opacity: 1; translate: 0 0; }

/* =========================================================
   TEAM
   ========================================================= */
.team { padding: var(--sec-y) 0; }
.team__body { display: grid; grid-template-columns: 380fr 1176fr; gap: 32px; margin-top: 64px; padding-top: 32px; }
.team__sub { font-size: 24px; line-height: 32px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 86px; }
.person img { width: 100%; aspect-ratio: 370 / 480; height: auto; object-fit: cover; border-radius: 24px; }
.person figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.person b { font-weight: 500; font-size: 20px; line-height: 28px; }
.person span { font-size: 16px; line-height: 22px; color: #afafaf; }

/* =========================================================
   VIDEO
   ========================================================= */
.video { padding: var(--sec-y) 0; }
.video .sec-head .lead { max-width: 793px; }
.video__frame { position: relative; margin-top: 48px; aspect-ratio: 1588 / 893; border-radius: 32px; overflow: hidden; background: #000; isolation: isolate; }
.video__frame img, .video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 0 0 0 rgba(36, 166, 57, .5); }
.video__play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(36, 166, 57, .22); }
.video__badge { position: absolute; left: 32px; bottom: 32px; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: var(--white); font-weight: 500; font-size: 14px; line-height: 20px; }
.video__frame.is-playing .video__play, .video__frame.is-playing .video__badge, .video__frame.is-playing img { display: none; }

/* =========================================================
   LIVE
   ========================================================= */
.live { padding: var(--sec-y) 0; }
.live__lead { max-width: 794px; }
.live__cam { position: relative; margin-top: 48px; aspect-ratio: 1588 / 760; border-radius: 32px; overflow: hidden; }
.live__cam img { width: 100%; height: 100%; object-fit: cover; }
.live__status { position: absolute; left: 32px; bottom: 32px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 14px; line-height: 20px; }
.live__status i { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1.6s ease-in-out infinite; }
.live__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .6s var(--ease); }
.live__cam.is-live .live__video { opacity: 1; }
/* connecting / unavailable: grey, still dot; red pulse only while the stream is actually playing */
.live__cam.is-connecting .live__status i, .live__cam.is-error .live__status i { background: #9a9a9a; animation: none; }
/* reduced motion: no autoplay — the player shows native controls, so it is visible and the pill steps aside */
.live__video[controls] { opacity: 1; }
.live__video[controls] ~ .live__status { display: none; }
@media (prefers-reduced-motion: reduce) { .live__video { transition: none; } }
@keyframes pulse { 50% { opacity: .35; } }
.strip { margin-top: 24px; }
.strip__bar { display: flex; align-items: center; gap: 16px; }
.strip__title { font-weight: 500; font-size: 20px; line-height: 28px; margin-right: auto; }
.strip__count { font-size: 16px; line-height: 24px; color: var(--muted-d); font-variant-numeric: tabular-nums; }
.strip__track { display: flex; gap: 16px; margin-top: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 290px; height: 200px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.strip__item:hover img { transform: scale(1.04); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--sec-y) 0; }
.faq__wrap { display: grid; grid-template-columns: 520fr 1004fr; gap: 64px; align-items: start; }
.faq__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 40px; }
.faq__cta { display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px; background: var(--bg-dark); color: var(--white); }
.faq__cta h3 { font-size: 28px; line-height: 36px; }
.faq__cta p { font-size: 16px; line-height: 24px; color: var(--muted-d); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.qa { border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .25s; }
.qa.is-open { box-shadow: inset 0 0 0 1.5px var(--green); }
.qa summary { display: grid; grid-template-columns: auto 1fr 40px; gap: 24px; align-items: start; padding: 28px 32px; cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: padding-bottom .3s cubic-bezier(.2, .7, .2, 1); }
.qa.is-open summary { padding-bottom: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { font-weight: 500; font-size: 16px; line-height: 32px; color: #a3a3a3; min-width: 22px; }
.qa.is-open .qa__n { color: var(--green); }
.qa__q { font-weight: 500; font-size: 22px; line-height: 32px; letter-spacing: -.3px; }
.qa__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f5f5f5; color: var(--ink); transition: background-color .2s, color .2s; }
.qa__minus { display: none; }
.qa.is-open .qa__btn { background: var(--green); color: #fff; }
.qa.is-open .qa__plus { display: none; }
.qa.is-open .qa__minus { display: block; }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 96px 28px calc(32px + 22px + 24px); font-size: 18px; line-height: 28px; color: var(--muted); }

/* =========================================================
   QUIZ
   ========================================================= */
.quiz { position: relative; padding: var(--sec-y) 0; overflow: hidden; isolation: isolate; }
/* glow stays inside the section — it must not spill onto neighbouring photos */
.quiz__glow { position: absolute; z-index: -1; top: -313px; right: -466px; width: 877px; height: 877px; opacity: .81; pointer-events: none; }
.quiz__glow::before, .quiz__glow::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #6de026 0%, #21912f 86%, #217a2f 100%); }
.quiz__glow::before { left: -243px; top: 50px; width: 777px; height: 776px; opacity: .2; filter: blur(260px); }
.quiz__glow::after { left: 0; top: 0; width: 642px; height: 642px; opacity: .42; filter: blur(130px); }
.quiz__wrap { display: grid; grid-template-columns: 520fr 892fr; gap: 64px; }
.quiz__wrap.wrap { padding-inline: calc(var(--gutter) + 56px); }
.quiz__aside { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.quiz__aside .lead { margin-top: 24px; }
.quiz__steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 18px; line-height: 24px; color: var(--muted-d); }
.quiz__steps li:last-child { border-bottom: 1px solid var(--line-d); }
.quiz__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #333; font-weight: 500; font-size: 14px; line-height: 16px; color: var(--muted-d); }
.quiz__num svg { display: none; color: var(--green); }
.quiz__steps li.is-current, .quiz__steps li.is-done { color: var(--white); font-weight: 500; }
.quiz__steps li.is-current .quiz__num { background: var(--green); border-color: var(--green); color: #fff; }
.quiz__steps li.is-done .quiz__num { border: 1.5px solid var(--green); }
.quiz__steps li.is-done .quiz__num b { display: none; }
.quiz__steps li.is-done .quiz__num svg { display: block; }
.quiz__card { display: flex; flex-direction: column; gap: 32px; padding: 40px; border-radius: 24px; background: rgba(28, 28, 28, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); min-height: 604px; }
.quiz__progress p { font-size: 14px; line-height: 20px; color: var(--muted-d); }
.quiz__bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.quiz__bar i { height: 4px; border-radius: 4px; background: #333; transition: background-color .3s; }
.quiz__bar i.is-on { background: var(--green); }
/* all steps share one grid cell so the card keeps the tallest step's height */
.quiz__stage { display: grid; flex: 1; } /* fills the card; each step stretches to the cell */
.quiz__stage > .quiz__step, .quiz__stage > .quiz__done { grid-area: 1 / 1; }
.quiz__stage > .quiz__step[hidden] { display: flex !important; visibility: hidden; } /* beats global [hidden] !important */
.quiz__step { --step-gap: 32px; min-width: 0; display: flex; flex-direction: column; }
.quiz__step.is-active { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.quiz__q { font-size: 32px; line-height: 40px; letter-spacing: -.5px; padding: 0; margin-bottom: 32px; }
.quiz__step .quiz__q { margin-bottom: 0; }
.quiz__done:not([hidden]) { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.quiz__done .quiz__q { font-size: 48px; line-height: 56px; letter-spacing: -1px; margin-bottom: 0; }
.quiz__done .lead { font-size: 20px; line-height: 30px; max-width: 520px; }
.quiz__done .btn--restart { margin-top: 16px; padding-inline: 24px 28px; }
.quiz__step > .quiz__q + * { margin-top: var(--step-gap); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 24px 16px; flex: 1; } /* tiles grow into spare height */
.tile { position: relative; display: flex; flex-direction: column; gap: 20px; min-height: 136px; padding: 24px; border-radius: 16px; background: var(--field); border: 1px solid var(--field); cursor: pointer; transition: background-color .2s, border-color .2s; }
.tile:hover { border-color: #3a3a3a; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--white); }
.tile__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #636363; color: transparent; }
.tile__name { font-weight: 500; font-size: 18px; line-height: 24px; margin-top: auto; }
.tile:has(input:checked) { background: #1f2a22; border-color: #1f2a22; }
.tile input:checked ~ .tile__top .tile__mark { background: var(--green); border-color: var(--green); color: #fff; }
.tile:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.quiz__fields { display: flex; flex-direction: column; gap: 24px; }
.segmented { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--field); }
.segmented__pill { --i: 0; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: 999px; background: var(--green); transform: translateX(calc(var(--i) * (100% + 4px))); transition: transform .42s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.segmented:has(label:nth-of-type(2) input:checked) .segmented__pill { --i: 1; }
.segmented:has(label:nth-of-type(3) input:checked) .segmented__pill { --i: 2; }
.segmented label { position: relative; z-index: 1; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label span { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: 16px; color: var(--muted-d); transition: background-color .2s, color .2s; text-align: center; }
.segmented input:checked + span { color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.select { position: relative; }
.select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__value.is-placeholder { color: var(--muted-d); }
.select__chevron { flex: none; color: var(--muted-d); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.select__trigger[aria-expanded="true"] { border-color: rgba(255, 255, 255, .14); }
.select__trigger[aria-expanded="true"] .select__chevron { transform: rotate(180deg); }
.select__menu {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  display: block; margin: 0; padding: 8px; list-style: none; max-height: 288px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4a4a4a transparent;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: #262626;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  transform-origin: 50% 0; transition: opacity .16s, transform .16s, visibility .16s; user-select: none; -webkit-user-select: none; outline: none;
}
.select__menu.is-up { top: auto; bottom: calc(100% - 22px); transform-origin: 50% 100%; }
.select__menu[hidden] { display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.97); }
.select__menu.is-up[hidden] { transform: translateY(6px) scale(.97); }
/* scroll fades: sticky overlays that take no space; shown only when there's more content past that edge */
.select__menu::before, .select__menu::after { content: ""; position: sticky; z-index: 2; display: block; height: 36px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.select__menu::before { top: -8px; margin: -8px 0 -28px; background: linear-gradient(#262626, rgba(38, 38, 38, 0)); }
.select__menu::after { bottom: -8px; margin: -28px 0 -8px; background: linear-gradient(rgba(38, 38, 38, 0), #262626); }
.select__menu.fade-top::before, .select__menu.fade-bottom::after { opacity: 1; }
.select__highlight { position: absolute; top: 0; left: 8px; right: 8px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .07); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), height .25s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.select__menu.has-highlight .select__highlight { opacity: 1; }
.select__menu.no-anim .select__highlight { transition: none; }
.select__option { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--muted-d); font-size: 15px; font-weight: 500; cursor: pointer; transition: color .15s; }
.select__option.is-active, .select__option[aria-selected="true"] { color: var(--white); }
.select__check { margin-left: auto; color: var(--green); opacity: 0; }
.select__option[aria-selected="true"] .select__check { opacity: 1; }
.switch { display: inline-flex; align-items: center; gap: 14px; padding-top: 8px; font-size: 16px; line-height: 24px; color: var(--white); cursor: pointer; align-self: flex-start; }
.switch input { position: absolute; opacity: 0; }
.switch__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #3a3a3a; transition: background-color .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--green); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 72px; } /* 2 rows reserved so step 3 never grows */
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--field); font-weight: 500; font-size: 14px; line-height: 20px; }
.quiz__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.quiz__btns { display: flex; justify-content: flex-end; gap: 12px; }
.quiz__btns [data-quiz="back"]:not([hidden]) { margin-right: auto; }
.quiz__consent { font-size: 14px; line-height: 20px; color: var(--muted-d); }
/* consent shows only on the last step but always keeps its space */
/* the real consent line shows only on step 3, under the buttons. While step 3 is hidden it carries an
   invisible copy of that line (same width, same wrapping), so the shared grid cell is taller by exactly
   that much and steps 1–2 stretch into it: the card never changes height and has no empty strip */
.quiz__consent--ghost { display: none; }
.quiz__step[hidden] .quiz__consent--ghost { display: block; margin-top: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-dark); padding: 120px 0 0; }
.footer__top { display: flex; justify-content: space-between; gap: 64px; }
.footer__brand { display: flex; flex-direction: column; gap: 28px; max-width: 440px; }
.footer__logo { width: 231px; height: 36px; }
.footer__brand p { font-size: 20px; line-height: 30px; color: var(--muted-d); }
.footer__cols { display: flex; gap: 72px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }
.footer__col:nth-child(2) { min-width: 260px; }
.footer__col--offices { max-width: 300px; }
.footer__col h3 { font-weight: 500; font-size: 16px; line-height: 24px; color: var(--white); margin-bottom: 8px; }
.footer__col a, .footer__col p { font-size: 18px; line-height: 28px; color: var(--muted-d); transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__mark { margin-top: 96px; }
.footer__mark img { width: 100%; height: auto; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; padding: 28px 0 40px; border-top: 1px solid var(--line-d); }
.footer__bottom p { font-size: 14px; line-height: 20px; color: var(--muted); }
.footer__up { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; line-height: 20px; white-space: nowrap; }
.footer__up:hover .round-btn { border-color: #666; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 40px 64px; background: rgba(10, 10, 10, .96); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.lightbox__count { font-size: 16px; line-height: 24px; color: var(--muted-d); font-variant-numeric: tabular-nums; }
.lightbox__main { display: flex; align-items: center; gap: 32px; width: 100%; flex: 1; min-height: 0; }
.lightbox__fig { flex: 1; height: 100%; min-height: 0; display: grid; place-items: center; }
.lightbox__fig img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--white); flex: none; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn--lg { width: 56px; height: 56px; }
.lightbox__cap { font-size: 16px; line-height: 24px; color: var(--muted-d); }
.lightbox__thumbs { display: flex; gap: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.lightbox__thumbs button { flex: 0 0 120px; height: 80px; border-radius: 12px; overflow: hidden; opacity: .45; transition: opacity .2s; box-shadow: inset 0 0 0 2px transparent; position: relative; }
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button.is-active { opacity: 1; }
.lightbox__thumbs button.is-active::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--green); }
.lightbox__thumbs button:hover { opacity: .8; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   Scroll-in
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-landed { transform: none; transition: opacity .7s var(--ease); } /* landed on by an in-page link: fade only, no rise */
.is-reveal-setup .reveal, .is-reveal-setup .slices .slice__big, .is-reveal-setup .slices .mini b { transition: none !important; }
/* "Station in numbers": values rise in once their card's tiles are on screen (.is-num-in, set in initInView) */
.slices.reveal .slice__big, .slices.reveal .mini b {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
  transition-delay: calc(var(--col, 0ms) + var(--row, 250ms));
}
.slices.reveal .mini b { --row: 400ms; }
.slices.reveal .mini + .mini b { --row: 480ms; }
.slices.reveal .slice:nth-child(2) { --col: 120ms; }
.slices.reveal .slice:nth-child(3) { --col: 240ms; }
.slices.reveal .slice.is-num-in .slice__big, .slices.reveal .slice.is-num-in .mini b { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro__reveal .w { opacity: 1; }
  .gantt__bar { clip-path: none; }
  .chart .chart__bar, .chart svg, .split-bar span { transform: none !important; clip-path: none !important; }
  .segmented__pill, .slice-tabs__pill, .select__menu, .select__highlight, .select__chevron, .qa summary { transition: none !important; }
  .chart .chart__pill, .chart .chart__avg, .chart .chart__zone { opacity: 1; }
  .gantt__track b { opacity: 1; translate: none; }
  .stack__card { transform: none !important; }
}

/* =========================================================
   ≤1440 — laptop
   ========================================================= */
@media (max-width: 1440px) {
  :root { --gutter: 48px; --sec-y: 104px; }
  .nav { gap: 4px; }
  .nav__link { padding: 0 10px; }
  .hero__card { height: auto; min-height: 640px; }
  .lead-form { grid-template-columns: 400px 1fr; }
  .qa__a p { padding-right: 64px; }
}

/* Desktop: every section fills at least one screen; shorter content is centred vertically.
   Hero and the winter photo section size themselves to the screen separately. */
@media (min-width: 1201px) {
  main > section:not(.hero):not(.winter) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* Desktop FAQ: section is locked to one screen. The opened question expands over its neighbours
   from its own slot (JS leaves a same-height placeholder and sets top, or bottom for the lower ones). */
@media (min-width: 1201px) {
  main > section.faq { height: 100vh; height: 100svh; min-height: 0; padding-block: clamp(48px, 8vh, var(--sec-y)); overflow: hidden; }
  .faq__wrap { align-items: center; }
  .faq__aside { position: static; }
  .faq__list { position: relative; }
  /* same shadow layers in every state so they interpolate; the drop shadow fades in on open and
     out during the collapse, so nothing is left to pop when the card drops back into its slot */
  .faq__list .qa { box-shadow: inset 0 0 0 1.5px transparent, 0 24px 64px -16px rgba(0, 0, 0, 0); transition: box-shadow .3s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
  .faq__list.has-float .qa:not(.is-float) { opacity: .45; }
  .qa.is-float { position: absolute; left: 0; right: 0; z-index: 5; }
  /* switching answers: the one opening sits above the one still animating closed */
  .qa.is-float.is-open { z-index: 6; }
  .faq__list .qa.is-float.is-open { box-shadow: inset 0 0 0 1.5px var(--green), 0 24px 64px -16px rgba(0, 0, 0, .22); }
}

/* =========================================================
   Desktop: hero (header + photo card + stat cards) fits exactly one screen.
   The photo card takes the leftover height; stat cards and the big title scale with viewport height.
   Short or narrow screens fall back to the regular flow.
   ========================================================= */
@media (min-width: 1201px) and (min-height: 760px) {
  .hero { height: 100vh; height: 100svh; padding-top: 88px; padding-bottom: 24px; display: flex; flex-direction: column; }
  .hero > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .hero__card { flex: 1 1 auto; height: auto; min-height: 0; padding: clamp(24px, 3.5vh, 40px) 40px; }
  .hero__lead { font-size: clamp(28px, 4vh, 36px); line-height: 1.17; }
  .hero__text { font-size: clamp(16px, 2vh, 18px); margin-top: clamp(12px, 2.2vh, 24px); }
  .hero__actions { margin-top: clamp(12px, 2.2vh, 24px); }
  .hero__actions .btn { min-height: clamp(48px, 6.2vh, 56px); padding-block: 0; }
  .hero__title { font-size: clamp(64px, min(8.18vw, 11.5vh), 140px); }
  .hero__stats { flex: none; }
  /* the space gained by moving the photo card up goes to the stat cards; the photo keeps its height */
  .stat-card, .price-card { min-height: calc(clamp(140px, 18vh, 248px) + 12px + clamp(16px, 2.7vh, 48px)); }
  .price-card { padding-block: clamp(20px, 3vh, 40px); }
  .stat-card { padding-block: clamp(16px, 2.6vh, 24px); height: calc(clamp(140px, 18vh, 248px) + 12px + clamp(16px, 2.7vh, 48px)); }
  .stat-card__chart { min-height: 0; }
  .stat-card__value { font-size: clamp(32px, min(2.8vw, 5vh), 48px); }
  .stat-card { gap: clamp(6px, 1.1vh, 10px); }
  .stat-card__chart { margin-bottom: clamp(8px, 1.6vh, 14px); }
}

/* =========================================================
   ≤1200 — tablet landscape
   ========================================================= */
@media (max-width: 1200px) {
  :root { --gutter: 40px; --sec-y: 96px; }
  .nav__link { padding: 0 10px; font-size: 14px; }
  .nav__cta { font-size: 14px; }
  .hero__stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .slices { grid-template-columns: 1fr; }
  .slice + .slice { border-left: 0; border-top: 1px solid var(--line); }
  .slice__chart { max-width: 720px; }
  .sources__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .lead-form { grid-template-columns: 1fr; gap: 32px; }
  .lead-form__intro { gap: 8px; }
  .passport__body { grid-template-columns: 1fr; }
  .passport__img { aspect-ratio: 648 / 432; min-height: 0; height: auto; }
  .stack__card { grid-template-columns: 1fr 1.2fr; min-height: 400px; }
  .team__body { grid-template-columns: 1fr; }
  .faq__wrap { grid-template-columns: 1fr 1.6fr; gap: 40px; }
  .quiz__wrap { grid-template-columns: 1fr; }
  .quiz__wrap.wrap { padding-inline: var(--gutter); }
  .quiz__card { min-height: 0; }
  .footer__top { flex-direction: column; }
  .footer__cols { flex-wrap: wrap; gap: 40px; }
  .sec-head { gap: 48px; }
  .intro__grid { height: auto; aspect-ratio: 1240 / 1082; }
  .intro__item figcaption { font-size: 17px; line-height: 22px; letter-spacing: -.5px; }
  .winter__stats { padding: 20px 32px; gap: 24px; }
  .winter__stats > div > span { font-size: clamp(12px, 1.25vw, 16px); }
}

/* =========================================================
   ≤1024 — header collapses to burger
   ========================================================= */
/* =========================================================
   ≤1280 — nav collapses into a frosted "Меню" button that
   morphs into a floating glass card (pattern from rxport HeaderMenu)
   ========================================================= */
@media (max-width: 1280px) {
  :root { --hdr-h: 72px; }
  .header__inner { height: var(--hdr-h); }
  .hero { margin-top: calc(-1 * var(--hdr-h)); padding-top: calc(var(--hdr-h) + 16px); }

  .nav {
    /* closed: vertically centred on the logo */
    top: calc(var(--hdr-h) / 2 - 24px); right: 12px; left: auto; transform: none;
    flex-direction: column; align-items: stretch; gap: 6px;
    width: max-content; padding: 3px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(38, 38, 38, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 40px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  }
  .nav:not(.is-open) > :not(.nav__toggle) { display: none; }
  .nav .nav__indicator { display: none; }

  .nav__toggle {
    position: relative; z-index: 1; display: inline-flex; align-items: center; align-self: flex-end; justify-content: center; gap: 7px;
    min-height: 40px; padding: 8px 16px 8px 13px; border-radius: 999px; color: var(--white);
    font-weight: 500; font-size: 14px; line-height: 1.2; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  }
  /* burger lines fold into an X */
  .nav__burger { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
  .nav__burger i { position: absolute; left: 3px; right: 3px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .42s cubic-bezier(.3, 1.4, .5, 1), opacity .2s ease; }
  .nav__burger i:nth-child(1) { top: 4px; }
  .nav__burger i:nth-child(2) { top: 9px; }
  .nav__burger i:nth-child(3) { top: 14px; }
  .nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .nav__toggle[aria-expanded="true"] .nav__burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  /* the words roll: outgoing slides up + blurs, incoming rises into place */
  .nav__labels { position: relative; display: flex; justify-content: flex-end; }
  .nav__label { white-space: nowrap; transition: opacity .22s ease, filter .28s ease, translate .36s cubic-bezier(.2, .7, .3, 1); }
  .nav__toggle[aria-expanded="false"] .nav__label--close,
  .nav__toggle[aria-expanded="true"] .nav__label--open { position: absolute; top: 0; right: 0; opacity: 0; filter: blur(4px); }
  .nav__toggle[aria-expanded="false"] .nav__label--close { translate: 0 .7em; }
  .nav__toggle[aria-expanded="true"] .nav__label--open { translate: 0 -.7em; }

  /* open card: rises above the button while padding grows by the same amount, so the toggle stays still */
  .nav.is-open { top: calc(var(--hdr-h) / 2 - 29px); width: min(calc(100vw - 24px), 420px); padding: 8px 10px 10px; border-radius: 30px; background: rgba(28, 28, 28, .72); }
  .nav.is-open .nav__toggle { margin-right: -7px; margin-bottom: 18px; }
  .nav.is-morphing { overflow: hidden; }

  /* each destination is its own soft tile */
  .nav.is-open .nav__link {
    display: flex; align-items: center; gap: 12px; height: auto; min-height: 58px; padding: 0 18px; border-radius: 20px;
    color: var(--white); background: rgba(255, 255, 255, .06); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2;
  }
  .nav.is-open .nav__link::after {
    content: ""; width: 18px; height: 18px; margin-left: auto; background: currentColor; opacity: .55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav.is-open .nav__link.is-active, .nav.is-ready.is-open .nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .12); font-weight: 700; box-shadow: 0 0 0 1.5px var(--green), 0 4px 14px rgba(0, 0, 0, .25); }
  .nav.is-open .nav__cta { justify-content: center; gap: 8px; height: auto; min-height: 56px; margin-top: 6px; padding: 16px 18px; border-radius: 18px; font-size: 16px; }
  .nav.is-open .nav__cta-icon { display: inline-block; }
  .nav.is-open > :not(.nav__toggle, .nav__indicator) { transition: opacity .15s ease; }
  .nav[data-menu="closing"] > :not(.nav__toggle) { opacity: 0; }

  /* logo copy replaces the page logo instantly, so the swap is invisible */
  html.is-menu-logo .nav-logo-copy { visibility: visible; }
  html.is-menu-logo .header__logo { visibility: hidden; }
}
@media (max-width: 1280px) and (prefers-reduced-motion: no-preference) {
  .nav[data-menu="open"] > :is(.nav__link, .nav__cta) { animation: navItemIn .38s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(60ms + var(--i, var(--count)) * 30ms); }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav__burger i, .nav__label { transition: none; } }
@keyframes navItemIn { from { opacity: 0; translate: 0 -8px; scale: .98; } }

/* =========================================================
   ≤860 — MOBILE (design: 390 frame)
   ========================================================= */
@media (max-width: 860px) {
  :root {
    --gutter: 16px; --sec-y: 56px;
    --h2: 32px; --h2-lh: 36px; --h2-sub-48: 32px; --lead: 15px;
  }
  .d-only { display: none !important; }
  .m-only { display: block !important; }
  span.m-only { display: inline !important; }
  .h2 { letter-spacing: -1px; }
  .h2__sub--48 { line-height: 36px; margin-top: 0; letter-spacing: -1px; }
  .h3 { font-size: 32px; line-height: 36px; letter-spacing: -1px; }
  .lead { line-height: 22px; }
  .sec-head, .sec-head--split, .sec-head--row, .sec-head--between { flex-direction: column; gap: 16px; align-items: stretch; }
  .sec-head > * { flex: none !important; }
  .sec-head .lead { padding-top: 0; max-width: none; }
  .br-d { display: none; }
  .sec-head--between .lead { text-align: left; }
  .btn { min-height: 52px; font-size: 15px; line-height: 20px; padding: 14px 24px; }
  .btn svg { width: 18px; height: 18px; }

  :root { --hdr-h: 64px; }
  .header__logo img { width: 166px; height: 26px; }
  .hero { padding-bottom: 48px; padding-top: 72px; }

  /* hero */
  .hero__card { min-height: 620px; border-radius: 28px; padding: 24px 20px 22px; }
  .hero__shade { background: linear-gradient(180deg, rgba(5, 10, 6, .92) 0%, rgba(5, 10, 6, .7) 45%, rgba(5, 10, 6, .1) 70%, rgba(5, 10, 6, .55) 100%); }
  .hero__img { object-position: 62% center; }
  .hero__lead { font-size: 28px; line-height: 33px; letter-spacing: -.8px; }
  .hero__text { font-size: 15px; line-height: 22px; opacity: .8; margin-top: 14px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 52px; }
  .hero__actions .btn { width: 100%; }
  .hero__title { align-self: flex-start; text-align: left; white-space: normal; font-size: 50px; line-height: 50px; letter-spacing: -1.5px; margin-top: 40px; max-width: 320px; }
  .hero__stats { gap: 10px; margin-top: 20px; }
  .hero__energy { gap: 10px; }
  .stat-card { min-height: 168px; padding: 14px 16px 16px; border-radius: 20px; gap: 8px; }
  .stat-card__chart { min-height: 48px; margin-bottom: 10px; }
  .stat-card__cap { display: none; }
  .stat-card__label { font-size: 12px; line-height: 16px; color: #a3a3a3; }
  .stat-card__value { font-size: 30px; line-height: 1; letter-spacing: -.8px; gap: 6px; }
  .stat-card__value small { font-size: 13px; line-height: 16px; color: #a3a3a3; }
  .price-card { min-height: 150px; border-radius: 20px; padding: 18px; }
  .price-card__label { font-size: 12px; line-height: 16px; color: #d4d4d4; }
  .price-card__value { font-size: 40px; line-height: 44px; letter-spacing: -1px; gap: 6px; margin-top: 6px; }
  .price-card__value small { font-size: 12px; color: #d4d4d4; }

  /* intro */
  .intro { padding: 40px 0 56px; }
  .intro__reveal { font-size: 22px; line-height: 30px; letter-spacing: -.3px; }
  .intro__grid { aspect-ratio: auto; display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
  .intro__item { position: static; width: 280px; max-width: 78%; gap: 10px; }
  .intro__item--a { flex-direction: column-reverse; }
  .intro__item--b { align-self: flex-end; }
  .intro__item--c { margin-left: 10%; }
  .intro__item img { border-radius: 4px; }
  .intro__item figcaption { font-size: 12px; line-height: 17px; letter-spacing: 0; color: #a3a3a3; max-width: none !important; }

  /* numbers */
  .numbers .h2 .h2__sub--block { font-size: 32px; line-height: 36px; }
  .slice-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-top: 20px; border-radius: 999px; background: #e9e9e9; }
  .slice-tabs__pill { --i: 0; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); transform: translateX(calc(var(--i) * (100% + 4px))); transition: transform .42s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
  .slice-tabs:has(.slice-tabs__btn:nth-of-type(2).is-active) .slice-tabs__pill { --i: 1; }
  .slice-tabs:has(.slice-tabs__btn:nth-of-type(3).is-active) .slice-tabs__pill { --i: 2; }
  .slice-tabs__btn { position: relative; z-index: 1; height: 38px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--muted); transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .slice-tabs__btn.is-active { color: var(--ink); }
  .slices { position: relative; display: block; background: none; border-radius: 0; overflow: visible; margin-top: 20px; }
  .slice { display: none; padding: 20px 16px; border-radius: 22px; background: #fff; border: 0 !important; }
  .slice.is-active { display: flex; }
  .slice.is-leaving { display: flex; position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
  .slice__title { font-size: 20px; line-height: 26px; letter-spacing: -.5px; }
  .tag { font-size: 11px; line-height: 14px; padding: 5px 10px; }
  .slice__src { font-size: 11px; line-height: 15px; margin-top: 6px; }
  .slice__big { margin-top: 18px; font-size: 46px; line-height: 46px; }
  .slice__big small { font-size: 15px; }
  .slice__meta { margin-top: 8px; font-size: 11px; line-height: 15px; }
  .slice__meta b { display: none; }
  .slice.is-open .slice__meta b { display: inline; }
  .mini-grid { gap: 8px; margin-top: 16px; }
  .mini { min-height: 80px; padding: 12px; border-radius: 14px; gap: 2px; }
  .mini b { font-size: 18px; line-height: 24px; }
  .mini span { font-size: 11px; line-height: 15px; }
  .slice__chart { display: none; margin-top: 22px; }
  .mini-grid--bottom { display: none; margin-top: 16px; padding-top: 0; }
  .slice.is-open .slice__chart, .slice.is-open .mini-grid--bottom { display: block; }
  .slice.is-open .mini-grid--bottom { display: grid; }
  .slice__toggle { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 16px; border-radius: 12px; background: #f1f1f1; font-weight: 500; font-size: 13px; color: var(--ink); }
  .slice__toggle svg { transition: transform .3s cubic-bezier(.22, .8, .3, 1); }
  .slice__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .chart-title { font-size: 13px; line-height: 18px; }
  .legend { font-size: 11px; line-height: 15px; gap: 12px; }
  .chart { font-size: 10px; }
  .chart--hourly { height: 170px; margin-top: 8px; }
  .chart--hourly .chart__plot { left: 24px; right: 0; top: 10px; bottom: 26px; }
  .chart--days, .chart--power { height: 150px; }
  .chart--days .chart__plot { left: 30px; right: 4px; top: 8px; bottom: 22px; }
  .chart--power .chart__plot { left: 34px; right: 4px; top: 8px; bottom: 22px; }
  .split-bar { height: 14px; }
  .split-legend { font-size: 11px; line-height: 15px; gap: 6px; margin-top: 12px; }
  .sources { margin-top: 56px; padding-top: 0; }
  .sources__grid { grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
  .source { padding-top: 16px; }
  .source h3 { font-size: 13px; line-height: 18px; }
  .source p { font-size: 13px; line-height: 20px; margin-top: 8px; }
  .note { font-size: 11px; line-height: 16px; }

  /* earn */
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 12px; margin-top: 32px; }
  .step { padding: 0; gap: 10px; }
  .step__n, .step__n svg { width: 24px; height: 24px; }
  .step h3 { font-size: 15px; line-height: 20px; }
  .step p { font-size: 13px; line-height: 19px; }
  .panel { margin-inline: calc(-1 * var(--gutter)); padding: 20px var(--gutter); border-radius: 0; }
  .earn .panel { margin-top: 32px; gap: 12px; }
  .chart-title--dark { font-size: 13px; line-height: 18px; }
  .chart--price { height: 230px; font-size: 10px; }
  .chart--price .chart__plot { left: 18px; right: 0; top: 8px; bottom: 22px; }
  .chart__zone span { font-size: 10px; top: 6px; color: #d4d4d4; }
  .panel__note { font-size: 11px; line-height: 16px; }

  /* result */
  .totals { gap: 10px; margin-top: 24px; }
  .total { padding: 16px 14px; border-radius: 20px; background: var(--panel-2); }
  .total p { font-size: 12px; line-height: 16px; }
  .total b { margin-top: 10px; font-size: 22px; line-height: 26px; letter-spacing: -.5px; gap: 4px; }
  .total small { font-size: 11px; }
  .result .totals + .panel { margin-top: 12px; }
  .result .panel { margin-top: 12px; }
  .chart--may { height: 250px; font-size: 10px; margin-top: 0; }
  .chart--may .chart__plot { left: 30px; right: 4px; top: 66px; bottom: 22px; }
  .chart__caption { font-size: 10px; top: -56px; }
  .chart__pill { font-size: 9px; line-height: 10px; padding: 4px 8px; }
  .chart--salesbuy { height: 200px; font-size: 10px; }
  .chart--salesbuy .chart__plot { left: 30px; right: 4px; top: 10px; bottom: 30px; }
  .lead-form { padding: 24px 16px; border-radius: 22px; gap: 20px; }
  .lead-form--dark { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-radius: 0; }
  .lead-form__intro { display: contents; }
  .lead-form__intro > div { order: 0; }
  .lead-form__title { font-size: 24px; line-height: 30px; letter-spacing: -.5px; }
  .lead-form__title br { display: none; }
  .lead-form__text { font-size: 13px; line-height: 19px; margin-top: 12px; }
  .lead-form__req { order: 2; font-size: 11px; }
  .lead-form .form { order: 1; gap: 16px; }
  .form__done-title { font-size: 28px; line-height: 34px; letter-spacing: -.5px; }
  .done-badge { width: 52px; height: 52px; margin-bottom: 4px; }
  .done-badge svg { width: 24px; height: 24px; }
  .form__done-text { font-size: 14px; line-height: 20px; }
  .form__done .btn--restart { min-height: 46px; font-size: 14px; }
  .form__row { grid-template-columns: 1fr; gap: 16px; }
  .field { gap: 8px; }
  .field__label { font-size: 13px; line-height: 18px; }
  .field__input { height: 48px; font-size: 16px; padding: 0 14px; }
  .check { font-size: 12px; line-height: 17px; align-items: flex-start; gap: 10px; }
  .check__box { width: 18px; height: 18px; border-radius: 5px; border-color: #6b6b6b; }
  .btn--form { width: 100%; align-self: stretch; }
  .note--dark { margin-top: 24px; font-size: 11px; line-height: 16px; }

  /* winter */
  .winter { height: auto; min-height: 560px; }
  .winter__fade { height: 300px; }
  .winter__bg img { object-position: 30% bottom; }
  .winter__content { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 40px; }
  .winter__content.wrap { padding-inline: var(--gutter); }
  .winter__title { font-size: 32px; line-height: 38px; }
  .winter__text { font-size: 13px; line-height: 20px; letter-spacing: 0; max-width: 260px; color: #d4d4d4; }
  .winter__stats-wrap { display: none; }

  /* passport */
  .passport { padding: 56px 0; }
  .passport__body { gap: 16px; margin-top: 24px; }
  .passport__img { border-radius: 20px; aspect-ratio: 358 / 240; }
  .params > div { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 0; padding: 14px 0; }
  .params dt { font-size: 12px; line-height: 16px; }
  .params dd { font-size: 15px; line-height: 20px; text-align: left; }
  .lead-form--dark { margin-top: 32px; }

  /* biz */
  .biz__title { text-align: left; }
  .stack { margin-top: 32px; gap: 16px; }
  .stack__card { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 12px; border-radius: 22px; top: calc(76px + var(--i, 0) * 14px); }
  .stack__card img { order: -1; aspect-ratio: 334 / 206; height: auto; border-radius: 16px; }
  .stack__text { padding: 20px 8px 8px; gap: 12px; }
  .stack__text h3 { font-size: 28px; line-height: 32px; letter-spacing: -.8px; }
  .stack__text p { font-size: 13px; line-height: 19px; }

  /* gantt */
  .gantt__card { margin-top: 24px; padding: 16px; border-radius: 22px; }
  .gantt__axis { display: block; padding: 0 0 10px; border-bottom: 1px solid #ededed; font-size: 10px; }
  .gantt__axis > span { display: none; }
  .gantt__ticks { height: 12px; }
  .gantt__ticks i { left: calc(var(--d) / var(--total) * 78%); }
  .gantt__row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .gantt__row:first-of-type { border-top: 0; }
  .gantt__label { padding-right: 84px; }
  .gantt__label h3 { font-size: 15px; line-height: 20px; }
  .gantt__label p { font-size: 11px; line-height: 15px; }
  .gantt__row { position: relative; }
  .gantt__track { position: static; height: 10px; border-radius: 999px; background: #efefef; overflow: hidden; }
  .gantt__bar { position: static; display: block; height: 100%; margin-left: calc(var(--s) / var(--total) * 100%); width: calc(var(--l) / var(--total) * 100%); }
  .gantt__track b { left: auto; right: 0; top: 18px; font-size: 11px; line-height: 15px; }
  .gantt__row--total .gantt__track b { top: 16px; font-size: 13px; line-height: 20px; }
  .gantt__row--total .gantt__label { padding-right: 84px; }
  .gantt__row--total .gantt__track { height: 12px; }

  /* team */
  .team__body { margin-top: 28px; padding-top: 0; gap: 16px; }
  .team__sub { font-size: 15px; line-height: 20px; }
  .team__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .person img { aspect-ratio: 173 / 224; border-radius: 16px; }
  .person figcaption { margin-top: 10px; gap: 4px; }
  .person b { font-size: 14px; line-height: 18px; }
  .person span { font-size: 12px; line-height: 16px; }

  /* video */
  .video__frame { margin-top: 24px; aspect-ratio: 358 / 240; border-radius: 20px; }
  .video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .video__play svg { width: 24px; height: 24px; }
  .video__badge { left: 12px; bottom: 12px; padding: 6px 10px; font-size: 11px; line-height: 14px; font-weight: 400; background: rgba(10, 10, 10, .6); }

  /* live */
  .live__cam { margin-top: 24px; aspect-ratio: 358 / 260; border-radius: 20px; }
  .live__status { left: 12px; bottom: 12px; padding: 9px 14px 9px 12px; gap: 8px; font-size: 11px; line-height: 14px; }
  .live__status i { width: 7px; height: 7px; }
  .strip__bar { gap: 8px; }
  .strip__title { font-size: 15px; line-height: 18px; }
  .strip__count { font-size: 12px; margin-right: 6px; }
  .round-btn { width: 36px; height: 36px; }
  .round-btn svg { width: 16px; height: 16px; }
  .strip__track { gap: 8px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .strip__item { flex-basis: 175px; height: 121px; border-radius: 14px; }

  /* faq */
  .faq__wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq__aside { position: static; display: contents; }
  .faq__aside .h2 { order: 0; }
  .faq__list { order: 1; gap: 8px; }
  .faq__cta { order: 2; padding: 22px 18px; border-radius: 22px; gap: 12px; }
  .faq__cta h3 { font-size: 21px; line-height: 26px; }
  .faq__cta p { font-size: 13px; line-height: 19px; }
  .btn--faq { font-family: var(--font-alt); font-weight: 600; font-size: 14px; min-height: 46px; padding: 12px 18px; margin-top: 6px; }
  .qa { border-radius: 18px; }
  .qa summary { grid-template-columns: auto 1fr 28px; gap: 10px; padding: 18px 16px; }
  .qa__n { font-weight: 400; font-size: 12px; line-height: 20px; color: #8a8a8a; min-width: 16px; }
  .qa__q { font-size: 15px; line-height: 20px; letter-spacing: 0; }
  .qa__btn { width: 28px; height: 28px; background: #f1f1f1; }
  .qa__btn svg { width: 14px; height: 14px; }
  .qa.is-open summary { padding-bottom: 10px; }
  .qa__a p { padding: 0 16px 18px 42px; font-size: 13px; line-height: 19px; }
  .qa.is-open { box-shadow: none; }

  /* quiz */
  .quiz { padding: 56px 0; }
  .quiz__glow { top: -120px; right: -180px; width: 420px; height: 420px; opacity: 1; background: radial-gradient(closest-side, rgba(63, 174, 42, .75), rgba(42, 107, 26, .35) 45%, rgba(20, 20, 20, 0) 100%); }
  .quiz__glow::before, .quiz__glow::after { display: none; }
  .quiz__wrap { gap: 28px; }
  .quiz__aside .lead { margin-top: 16px; }
  .quiz__steps { display: none; }
  .quiz__card { padding: 18px 14px 14px; border-radius: 24px; background: var(--panel-2); gap: 22px; }
  .quiz__progress p { font-size: 11px; line-height: 15px; color: #8a8a8a; }
  .quiz__bar { margin-top: 10px; }
  .quiz__bar i { height: 3px; border-radius: 2px; background: #3a3a3a; }
  .quiz__q { font-size: 22px; line-height: 28px; letter-spacing: 0; margin-bottom: 22px; }
  .quiz__done:not([hidden]) { gap: 10px; padding-block: 24px; }
  .quiz__done .quiz__q { font-size: 30px; line-height: 36px; letter-spacing: -.5px; }
  .quiz__done .lead { font-size: 16px; line-height: 24px; }
  .quiz__step { --step-gap: 22px; }
  .tiles { gap: 8px; }
  .tile { min-height: 108px; padding: 14px; border-radius: 16px; background: #2a2a2a; border-color: #2a2a2a; gap: 12px; }
  .tile:has(input:checked) { background: #22372a; border-color: #22372a; }
  .tile__top > svg { width: 20px; height: 20px; }
  .tile__mark { width: 18px; height: 18px; border-width: 1px; border-color: #6b6b6b; }
  .tile__mark svg { width: 11px; height: 11px; }
  .tile__name { font-size: 13px; line-height: 18px; }
  .segmented label span { height: 44px; font-size: 13px; padding: 0 6px; }
  .switch { font-size: 13px; }
  .quiz__btns .btn { min-height: 46px; font-family: var(--font-alt); font-weight: 600; font-size: 14px; padding: 12px 22px; }
  .quiz__consent { font-size: 11px; line-height: 15px; }

  /* footer */
  .footer { padding-top: 48px; border-top: 1px solid var(--line-d); }
  .footer__top { gap: 28px; }
  .footer__brand { gap: 20px; max-width: none; }
  .footer__logo { width: 166px; height: 26px; }
  .footer__brand p { font-size: 15px; line-height: 23px; color: #d4d4d4; }
  .btn--footer { align-self: stretch; font-family: var(--font-alt); font-weight: 600; font-size: 15px; }
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__col { min-width: 0 !important; gap: 12px; }
  .footer__col--offices { grid-column: 1 / -1; max-width: none; }
  .footer__col h3 { font-size: 13px; line-height: 18px; margin-bottom: 2px; }
  .footer__col a, .footer__col p { font-size: 14px; line-height: 18px; color: #a3a3a3; }
  .footer__mark { margin-top: 40px; }
  .footer__mark img { width: 69%; }
  .footer__bottom { margin-top: 20px; padding: 19px 0 28px; border-color: #2a2a2a; }
  .footer__bottom p { font-size: 11px; line-height: 16px; color: #8a8a8a; max-width: 255px; }
  .footer__up { font-size: 12px; }
  .footer__up .round-btn { width: 30px; height: 30px; border-color: #3a3a3a; }
  .footer__up .round-btn svg { width: 14px; height: 14px; }

  /* lightbox */
  .lightbox { padding: 16px; gap: 16px; }
  .lightbox__main { gap: 0; position: relative; }
  .lightbox__main .lb-btn--lg { position: absolute; z-index: 2; width: 44px; height: 44px; background: rgba(10, 10, 10, .55); }
  .lightbox__main .lb-btn--lg:first-child { left: 8px; }
  .lightbox__main .lb-btn--lg:last-child { right: 8px; }
  .lightbox__fig img { height: auto; max-height: 100%; object-fit: contain; border-radius: 16px; }
  .lightbox__thumbs button { flex-basis: 72px; height: 48px; border-radius: 8px; }
  .lightbox__cap { font-size: 13px; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 44px; line-height: 46px; }
  .stat-card__value { font-size: 26px; }
  .total b { font-size: 19px; }
  .slice__big { font-size: 40px; }
}
