/* ═══════════════════════════════════════════════════════════════
   Bridge CA — night.css
   Дизайн-система для тёмной версии сайта. Палитра «ночь» из hero-lab.
   Один слой на все страницы: главная + регистрация + развитие + инвестиции.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Токены ─────────────────────────────────────────────── */

:root {
  /* поверхности */
  --bg:      #07080C;   /* страница */
  --bg2:     #0D0F16;   /* карточка, панель */
  --bg3:     #141722;   /* ховер, поле ввода */

  /* текст */
  --ink:     #F2F0EC;   /* заголовки, основной */
  --ink2:    #B9BDC7;   /* абзацы */
  --ink3:    #767C8B;   /* мета, подписи — только 12px+ */
  --ink4:    #4E5462;   /* самый тихий, декор */

  /* линии */
  --line:    #1C1F2A;
  --line2:   #2C3040;

  /* акценты */
  --acc:     #FF4F5E;   /* коралл — один на всё */
  --acc2:    #FFB454;   /* янтарь — только цифры и вторые состояния */
  --acc-dim: rgba(255, 79, 94, .12);
  --acc-ink: #07080C;   /* текст на коралловой плашке */

  /* шрифты */
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --disp: 'Geist', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* дисплейная типографика */
  --disp-w:  600;
  --disp-tr: -.045em;
  --disp-lh: .92;

  /* ритм */
  --pad:     clamp(20px, 4vw, 56px);
  --sec:     clamp(72px, 10vh, 132px);
  --maxw:    1440px;

  /* видео */
  --vfilter: saturate(1.15) contrast(1.05);
  --scrim:   linear-gradient(90deg, rgba(7,8,12,.96) 0%, rgba(7,8,12,.82) 36%, rgba(7,8,12,0) 72%);
}

/* ─── 2. База ───────────────────────────────────────────────── */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* курсив в этой системе не используется — только вес, цвет, плашка */
em, i { font-style: normal; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--acc); color: var(--acc-ink); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

.section { padding: var(--sec) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding: clamp(48px, 6vh, 80px) 0; }
.section--panel { background: var(--bg2); }

/* ─── 3. Типографика ────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0;
}
.eyebrow .num { color: var(--acc); }

h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: var(--disp-w); }

.h1 {
  font-size: clamp(44px, 7vw, 116px);
  line-height: var(--disp-lh);
  letter-spacing: var(--disp-tr);
}
.h1--page { font-size: clamp(38px, 5.4vw, 82px); }

.lead {
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: .96;
  letter-spacing: -.04em;
}
.lead--sm { font-size: clamp(24px, 2.8vw, 40px); }

.hl { color: var(--acc); }

/* слово-штамп: коралловая плашка */
.stamp-word {
  background: var(--acc);
  color: var(--acc-ink);
  padding: .02em .22em .1em;
  margin: 0 -.05em;
  display: inline-block;
}

/* подчёркивание-маркер */
.mk {
  background-image: linear-gradient(to top, var(--acc) 0, var(--acc) .1em, transparent .1em);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1s cubic-bezier(.2,.7,.1,1) var(--rd, 200ms);
  padding-bottom: .04em;
}
.is-in .mk, .mk.is-in { background-size: 100% 100%; }

.sub {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--ink2);
  max-width: 52ch;
  margin: 0;
}
.p { color: var(--ink2); margin: 0; }
.p--sm { font-size: 14px; line-height: 1.6; }

.fig {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -.04em;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
}
.fig--acc { color: var(--acc); }

.note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink3);
}

/* шапка секции: eyebrow + заголовок + опциональный текст справа */
.s-head {
  display: grid;
  gap: clamp(20px, 3vw, 56px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 900px) {
  .s-head--split { grid-template-columns: 1.35fr 1fr; align-items: end; }
}
.s-head .eyebrow { margin-bottom: 18px; }

/* ─── 4. Навигация ──────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 12, .72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 17px;
  flex-shrink: 0;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink2);
  padding: 8px 12px;
  border-radius: 2px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--bg3); }
.nav-links a.is-here { color: var(--acc); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink3);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line2);
}
.lang:hover { color: var(--ink); border-color: var(--ink3); }

.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 13px;
  cursor: pointer;
}
@media (max-width: 1080px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-actions .btn { display: none; }
}

/* ─── 5. Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  padding: 13px 20px;
  text-decoration: none;
  border: 1px solid var(--line2);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--ink3); background: var(--bg3); }
.btn--acc {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--acc-ink);
  font-weight: 600;
}
.btn--acc:hover { background: #ff6b78; border-color: #ff6b78; color: var(--acc-ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── 6. Hero: главная (видео на весь экран) ────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-vid { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.hero-poster { position: absolute; inset: 0; }
.hero-vid video,
.hero-vid img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--vfilter);
}
.hero-vid video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.hero-vid video.is-ready { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim); }
.hero .wrap { z-index: 3; }
.hero-inner { max-width: 940px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .h1 { margin-bottom: 24px; }
.hero .sub { margin-bottom: 34px; max-width: 46ch; }

@media (max-width: 860px) {
  :root { --scrim: linear-gradient(180deg, rgba(7,8,12,.72) 0%, rgba(7,8,12,.86) 45%, rgba(7,8,12,.97) 100%); }
  .hero { min-height: auto; padding: 96px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-vid video { display: none; }
}
/* на очень высоких экранах первый экран не должен растягиваться бесконечно */
@media (min-height: 1100px) { .hero { min-height: 860px; } }

/* Hero продуктовой страницы — без видео */
.hero-page {
  position: relative;
  padding: clamp(64px, 9vh, 120px) 0 clamp(48px, 7vh, 84px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-page::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  background: radial-gradient(60% 55% at 18% 30%, var(--acc-dim), transparent 70%);
  pointer-events: none;
}
.hero-page .wrap { position: relative; z-index: 2; }

/* hero продуктовой страницы с кадром вместо градиента */
.hero-page--shot { border-bottom: 0; }
.hero-page--shot::before { display: none; }
.hero-page--shot > .ph { position: absolute; inset: 0; z-index: 0; }
@media (max-width: 979px) {
  .hero-page--shot > .ph .ph-wash--side {
    background: linear-gradient(180deg, rgba(7,8,12,.62) 0%, rgba(7,8,12,.86) 55%, rgba(7,8,12,.98) 100%);
  }
}
.hero-page-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 980px) {
  .hero-page-grid { grid-template-columns: 1.25fr .85fr; align-items: end; }
}

/* зерно поверх видео */
.grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; opacity: .38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ─── 7. Три двери ──────────────────────────────────────────── */

.doors {
  display: grid;
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  max-width: 720px;
}
@media (min-width: 620px) { .doors { grid-template-columns: repeat(3, 1fr); } }

.door {
  background: var(--bg);
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background .22s, color .22s;
}
.door:hover { background: var(--acc); color: var(--acc-ink); }
.door-n { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink3); }
.door:hover .door-n { color: var(--acc-ink); opacity: .65; }
.door-t { font-size: 16px; font-weight: 600; margin-top: 11px; letter-spacing: -.02em; }
.door-go {
  position: absolute; top: 15px; right: 16px;
  font-size: 13px; color: var(--ink4);
  transition: transform .22s, color .22s;
}
.door:hover .door-go { color: var(--acc-ink); transform: translate(2px, -2px); }

/* ─── 8. Полоса цифр ────────────────────────────────────────── */

.stamps { display: flex; flex-wrap: wrap; gap: 0 clamp(28px, 4vw, 56px); margin-top: 36px; }
.stamps > div { padding-top: 13px; border-top: 2px solid var(--acc); margin-top: 14px; }
.stamps .k {
  font-family: var(--mono);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.stamps .v { font-size: 11.5px; color: var(--ink3); margin-top: 6px; max-width: 22ch; line-height: 1.45; }

/* ─── 9. Карточки ───────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.cell {
  background: var(--bg);
  padding: clamp(24px, 2.6vw, 34px);
}
.cell--acc { background: var(--acc); color: var(--acc-ink); }
.cell--acc .p, .cell--acc .note { color: rgba(7, 8, 12, .72); }
.cell--panel { background: var(--bg2); }

.card {
  background: var(--bg);
  padding: clamp(26px, 2.6vw, 36px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background .22s;
}
a.card:hover { background: var(--bg2); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.card-n { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--acc); }
.card-meta { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.card h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.card .p { font-size: 14px; line-height: 1.6; }
.card-list { list-style: none; margin: 22px 0 0; padding: 0; }
.card-list li {
  font-size: 13.5px;
  color: var(--ink2);
  padding: 9px 0 9px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 1px;
  background: var(--acc);
}
.card-cta {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc);
  display: flex;
  align-items: center;
  gap: 8px;
}
a.card:hover .card-cta span { transform: translateX(4px); }
.card-cta span { transition: transform .2s; }

/* ─── 10. Чипы ──────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  color: var(--ink2);
  border: 1px solid var(--line2);
  padding: 8px 13px;
  white-space: nowrap;
}
/* на узком экране длинный чип распирал грид и уводил всю страницу вбок */
@media (max-width: 620px) { .chip { white-space: normal; } }
.chip--dim { color: var(--ink3); border-style: dashed; }
.chip--acc { color: var(--acc); border-color: var(--acc); }

/* ─── 11. Таймлайн этапов ───────────────────────────────────── */

.steps { border: 1px solid var(--line); }
.step {
  display: grid;
  gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(24px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 0; }
@media (min-width: 860px) { .step { grid-template-columns: 232px 1fr; align-items: start; } }
.step--hot { background: var(--bg2); }
.step--hot::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--acc);
}
.step-when .lab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
}
.step-when .big {
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}
.step--hot .step-when .big { color: var(--acc); }
.step-when .cap { font-size: 12px; color: var(--ink3); margin-top: 10px; max-width: 24ch; line-height: 1.45; }
.step-what h4 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 12px; }
.step-what .p { font-size: 14px; margin-bottom: 16px; }

/* ─── 12. Налоговые столбики ────────────────────────────────── */

.tax-legend {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.tax-legend i { display: inline-block; width: 22px; height: 8px; background: var(--line2); margin-right: 8px; vertical-align: middle; }
.tax-legend .r { color: var(--acc); }
.tax-legend .r i { background: var(--acc); }

.tax-row { padding: 16px 0; border-top: 1px solid var(--line); }
.tax-row:first-child { border-top: 0; }
.tax-name { font-size: 14px; margin-bottom: 12px; }
.tax-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; }
.tax-bar i {
  height: 9px;
  width: 0;
  background: var(--line2);
  transition: width 1s cubic-bezier(.2,.7,.1,1);
  display: block;
  flex-shrink: 0;
  max-width: calc(100% - 74px);
}
.tax-bar.is-res i { background: var(--acc); }
.tax-bar.is-res i.zero { width: 3px; height: 9px; }
.tax-val { font-family: var(--mono); font-size: 12.5px; color: var(--ink3); }
.tax-bar.is-res .tax-val { color: var(--acc); }

/* ─── 13. Лестница ──────────────────────────────────────────── */

.ladder { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 1000px) { .ladder { grid-template-columns: repeat(4, 1fr); } }
.rung { background: var(--bg); padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; }
.rung-bar { height: 3px; background: var(--line2); margin-bottom: 24px; }
.rung:nth-child(2) .rung-bar { background: var(--ink4); }
.rung:nth-child(3) .rung-bar { background: var(--ink3); }
.rung:nth-child(4) .rung-bar { background: var(--acc); }
.rung-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); margin-bottom: 14px; }
.rung h4 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 12px; }
.rung .p { font-size: 13.5px; line-height: 1.6; }
.rung-tag {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
}
.rung:nth-child(4) .rung-tag { color: var(--acc); }
.ladder-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink4);
  margin-top: 16px;
  gap: 16px;
}

/* ─── 14. Таблица сравнения ─────────────────────────────────── */

.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 500;
}
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 130px; }
.cmp .yes { color: var(--acc); font-size: 15px; }
.cmp .no { color: var(--ink4); font-size: 15px; }
.cmp tbody tr:hover { background: var(--bg2); }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); }
.cmp-scroll .cmp { min-width: 560px; }

/* ─── 15. Кейс-строка ───────────────────────────────────────── */

.case {
  display: grid;
  gap: clamp(16px, 2.4vw, 40px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 900px) { .case { grid-template-columns: 200px 1fr 180px; align-items: start; } }
.case-logo { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.case-by { font-family: var(--mono); font-size: 11px; color: var(--ink3); margin-bottom: 12px; }
.case .p { font-size: 14px; }
.case-metric { text-align: left; }
@media (min-width: 900px) { .case-metric { text-align: right; } }
.case-metric .n {
  font-family: var(--mono);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--acc);
}
.case-metric .l { font-size: 11.5px; color: var(--ink3); margin-top: 8px; line-height: 1.4; }
.case:hover .case-logo { color: var(--acc); }

/* ─── 16. Команда ───────────────────────────────────────────── */

.team { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px)  { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.person { background: var(--bg); padding: 0 0 26px; }
.person-photo {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--bg3);
  margin-bottom: 22px;
}
.person-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.92);
  transition: filter .4s;
}
.person:hover .person-photo img { filter: grayscale(0) contrast(1) brightness(1); }
.person-body { padding: 0 clamp(20px, 2vw, 26px); }
.person-role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 12px; }
.person h4 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 6px; }
.person-title { font-size: 12.5px; color: var(--ink3); margin-bottom: 14px; }
.person .p { font-size: 13.5px; line-height: 1.55; }

/* ─── 17. Бегущая строка ────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  background: var(--bg2);
}
.marquee-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee-track > span { display: flex; }
.marquee-track > span > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 0 26px;
  white-space: nowrap;
  position: relative;
}
.marquee-track > span > span::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 3px; height: 3px;
  background: var(--acc);
  transform: translateY(-50%);
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ─── 18. Форма ─────────────────────────────────────────────── */

.form-wrap {
  display: grid;
  gap: clamp(30px, 4vw, 64px);
}
@media (min-width: 980px) { .form-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.field label span { color: var(--acc); }
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg3);
  border: 1px solid var(--line2);
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--acc);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink4); }
.form-foot { font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* маршруты вместо формы — на главной */
.routes { display: grid; gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.route {
  background: var(--bg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: background .2s, color .2s;
}
.route:hover { background: var(--acc); color: var(--acc-ink); }
.route b { font-weight: 500; font-size: 15.5px; letter-spacing: -.02em; }
.route span { font-family: var(--mono); font-size: 11px; color: var(--ink3); white-space: nowrap; }
.route:hover span { color: var(--acc-ink); opacity: .7; }

/* ─── 19. Подвал ────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 72px) 0 32px;
  background: var(--bg2);
}
.foot-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 500;
  margin: 0 0 16px;
}
.foot-links { display: grid; gap: 10px; }
.foot-links a { font-size: 14px; color: var(--ink2); text-decoration: none; }
.foot-links a:hover { color: var(--acc); }
.foot-bottom {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink4);
}

/* ─── 20. Появление при скролле ─────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.1,1) var(--rd, 0ms),
              transform .7s cubic-bezier(.2,.7,.1,1) var(--rd, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── 21. Метка мокапа ──────────────────────────────────────── */

.mock-flag {
  position: fixed; left: 0; bottom: 0; z-index: 99;
  background: var(--acc); color: var(--acc-ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; padding: 7px 12px; font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   22. Фотография
   Один рецепт на весь сайт, повторяет обработку видео в hero:
   приглушённый кадр → коралловый смыв → зерно → затемнение к низу.
   Фото нигде не показывается «как есть».
   ═══════════════════════════════════════════════════════════════ */

.ph {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg2);
}
.ph > img,
.ph > video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.44) contrast(1.18) saturate(1.3) brightness(.62);
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(.2,.7,.1,1), filter .7s;
}
a:hover > .ph > img,
.ph--live > img { transform: scale(1); filter: grayscale(.12) contrast(1.1) saturate(1.25) brightness(.78); }
/* для пёстрых кадров: гасим посторонние цвета, чтобы остался только коралл */
.ph--mono > img { filter: grayscale(.88) contrast(1.22) brightness(.58); }

/* коралловый смыв + падение в чёрный к нижнему краю */
.ph-wash {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(72% 58% at 26% 22%, rgba(255, 79, 94, .34), transparent 64%),
    linear-gradient(180deg, rgba(7,8,12,.06) 0%, rgba(7,8,12,.48) 58%, rgba(7,8,12,.95) 100%);
}
.ph-wash--side {
  background:
    radial-gradient(64% 70% at 78% 24%, rgba(255, 79, 94, .30), transparent 62%),
    linear-gradient(90deg, rgba(7,8,12,.94) 0%, rgba(7,8,12,.66) 42%, rgba(7,8,12,.14) 100%);
}
.ph-wash--flat {
  background: linear-gradient(180deg, rgba(7,8,12,.30) 0%, rgba(7,8,12,.66) 100%);
}
/* для полноэкранного кадра: втекает из чёрной секции сверху и уходит в чёрное снизу */
.ph-wash--bleed {
  background:
    radial-gradient(58% 62% at 14% 78%, rgba(255, 79, 94, .22), transparent 66%),
    linear-gradient(180deg, rgba(7,8,12,.82) 0%, rgba(7,8,12,.34) 26%, rgba(7,8,12,.52) 58%, rgba(7,8,12,.97) 100%);
}
.ph .grain { z-index: 2; opacity: .30; }
.ph-body { position: relative; z-index: 3; }

/* подпись места в углу кадра */
.ph-tag {
  position: absolute; z-index: 3;
  left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink3);
}
.ph-tag::before {
  content: ''; display: inline-block;
  width: 14px; height: 1px; background: var(--acc);
  vertical-align: middle; margin-right: 8px;
}

/* ─── 23. Полноэкранный кадр ────────────────────────────────── */

.bleed {
  position: relative;
  min-height: clamp(440px, 76svh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.bleed > .ph { position: absolute; inset: 0; }
.bleed .wrap {
  position: relative; z-index: 3;
  padding-top: clamp(96px, 16vh, 180px);
  padding-bottom: clamp(52px, 6vw, 84px);
}
.bleed .stamps .v { max-width: 26ch; }
.bleed-lead {
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 17ch;
}
/* тонкая полоса-кадр между секциями */
.strip { position: relative; height: clamp(150px, 20vw, 260px); overflow: hidden; }
.strip > .ph { position: absolute; inset: 0; }

/* ─── 24. Маршрут: липкий кадр слева, станции справа ────────── */

/* имя routemap, а не route: класс .route уже занят строками CTA */
.routemap { position: relative; }
.route-grid { display: grid; gap: clamp(28px, 3vw, 56px); }
@media (min-width: 1000px) {
  .route-grid { grid-template-columns: 44% 1fr; align-items: start; }
}

.route-stage { display: none; }
@media (min-width: 1000px) {
  .route-stage {
    display: flex; flex-direction: column;
    gap: clamp(22px, 2.4vw, 34px);
    position: sticky;
    top: 62px;
    height: calc(100svh - 62px);
    max-height: 780px;
    padding-bottom: 4px;
  }
}

/* рельс маршрута: три узла в ряд над кадром */
.rail {
  position: relative;
  flex: none;
  margin: 6px 5px 0;
  height: 1px;
  background: var(--line2);
}
.rail-fill {
  position: absolute; left: 0; top: 0;
  height: 1px; width: 0;
  background: var(--acc);
  transition: width 1s cubic-bezier(.2,.7,.1,1);
}
.rail-node {
  position: absolute; top: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px; margin-top: -4.5px;
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 50%;
  transition: background .4s, border-color .4s, transform .4s;
}
.rail-node.is-on { background: var(--acc); border-color: var(--acc); transform: scale(1.35); }
.rail-node span {
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink4);
  white-space: nowrap;
  transition: color .4s;
}
.rail-node.is-on span { color: var(--ink); }
/* подписи разводим по своим узлам, иначе средняя упирается в правую */
.rail-node--mid span { left: 50%; transform: translateX(-50%); }
.rail-node--end span { left: auto; right: 0; }

/* артефакт этапа: то, что физически остаётся у клиента на руках */
.route-doc { position: relative; flex: 1; min-height: 0; margin-top: 16px; }
.doc {
  position: absolute; inset: 0;
  overflow: hidden; isolation: isolate;
  border: 1px solid var(--line);
  background: var(--bg2);
  opacity: 0;
  transition: opacity .7s cubic-bezier(.2,.7,.1,1);
}
.doc.is-on { opacity: 1; }
.doc-wash {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(64% 46% at 18% 6%, rgba(255, 79, 94, .16), transparent 66%),
    linear-gradient(180deg, transparent 52%, rgba(7,8,12,.42) 100%);
}
.doc .grain { z-index: 2; opacity: .16; }
.doc-in {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.2vw, 32px);
}
.doc-lab {
  margin: 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink3);
}
/* строки тянутся по высоте кадра: реестр заполняет бланк целиком */
.doc-list {
  list-style: none;
  margin: clamp(18px, 2.4vh, 28px) 0 0;
  padding: 0;
  counter-reset: doc;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}
.doc-list li {
  counter-increment: doc;
  flex: 1 1 auto; max-height: 68px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: clamp(8px, 1vh, 12px) 0;
  border-bottom: 1px solid var(--line);
}
.doc-list li::before {
  content: counter(doc, decimal-leading-zero);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em;
  color: var(--acc);
}
.doc-list b { font-size: 14px; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.doc-list i {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink3);
  text-align: right;
}
.doc-foot {
  margin: clamp(16px, 2vh, 24px) 0 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; line-height: 1.5;
  color: var(--ink3);
}

/* подпись текущей станции: цена и что она даёт */
.route-cap { flex: none; }
.route-cap .k {
  font-family: var(--mono);
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: -.03em;
  color: var(--acc);
}
.route-cap .v { font-size: 12.5px; color: var(--ink3); margin-top: 6px; }

/* станции */
.station {
  padding: clamp(36px, 6vh, 72px) 0;
  border-top: 1px solid var(--line);
}
.station:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) {
  .station {
    min-height: 80svh;
    display: flex; flex-direction: column; justify-content: center;
    border-top: 0;
  }
}
.station-n {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink3);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.station-n b { color: var(--acc); font-weight: 500; }
.station-n i { flex: 1; height: 1px; background: var(--line); max-width: 60px; }

/* реплика клиента — крупно, в кавычках */
.station-say {
  font-size: clamp(23px, 2.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  font-weight: 500;
  text-wrap: balance;
}
.station-say::before { content: '«'; color: var(--acc); }
.station-say::after  { content: '»'; color: var(--acc); }

.station-body { color: var(--ink2); font-size: 15px; line-height: 1.6; max-width: 52ch; margin: 0 0 26px; }

/* что делаем — три коротких строки, без буллетов-точек */
.station-do { display: grid; gap: 0; margin-bottom: 28px; border-top: 1px solid var(--line); }
.station-do div {
  display: grid; gap: 4px 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) { .station-do div { grid-template-columns: 130px 1fr; align-items: baseline; } }
.station-do dt {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink3);
}
.station-do dd { margin: 0; font-size: 14.5px; color: var(--ink2); }

.station-out {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--bg2);
  border-left: 2px solid var(--acc);
  margin-bottom: 26px;
}
.station-out b { font-family: var(--mono); font-size: 15px; color: var(--acc); font-weight: 500; }
.station-out span { font-size: 14px; color: var(--ink2); }

/* на узких экранах липкого кадра нет: скрипт переносит артефакт внутрь станции.
   position остаётся relative — на static смыв и зерно уехали бы на всю страницу */
.station > .doc {
  position: relative; inset: auto;
  opacity: 1;
  margin: 4px 0 28px;
}
.station > .doc .doc-in { padding: 20px; }
.station > .doc .doc-lab { margin-bottom: 0; }

/* ─── 25. Эстафета с провалами против одной линии ───────────── */

/* Две дорожки читаются как одна метафора: у рваной линия рисуется
   рывками и на каждой паузе всплывает «+1 мес», у сплошной — одним
   движением без остановок. Отсюда --seg (длина отрезка) и --pause. */

.relays { display: grid; gap: clamp(48px, 6vw, 84px); }
.relay {
  --relay-top: 34px;   /* высота строки с именем: на ней лежит линия */
  --seg:   340ms;
  --pause: 170ms;
  min-width: 0;
}

/* шапка дорожки: метка · линейка · цена */
.relay-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.relay-lab, .relay-toll {
  margin: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
}
.relay-lab--bad  { color: var(--ink3); }
.relay-lab--good { color: var(--acc); }
.relay-rule { flex: 1; height: 1px; background: var(--line); }
.relay-toll {
  color: var(--ink4);
  display: flex; align-items: baseline; gap: 9px;
}
.relay-toll b { font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--acc2); }
.relay-toll--good b { color: var(--acc); }

.relay-track { display: flex; align-items: flex-start; }

/* отрезок пути: имя сверху, линия, последствие снизу */
.relay-leg {
  flex: 1; min-width: 0; position: relative;
  --d: calc(var(--i) * (var(--seg) + var(--pause)) + 260ms);
}
.relay-who {
  display: block;
  font-size: 14px; font-weight: 500; letter-spacing: -.02em;
  line-height: 20px; height: 20px; margin-bottom: 14px;
  padding-right: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s;
}
.relay-n { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--acc); margin-right: 9px; }
.relay-line {
  display: block; height: 2px;
  background: var(--ink4);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--seg) linear var(--d), background-color .25s;
}
.relay.is-in .relay-line { transform: scaleX(1); }
.relay-what {
  display: block;
  font-size: 11.5px; line-height: 1.5; color: var(--ink3);
  padding: 15px 18px 0 0;
  transition: color .25s;
}
.relay-leg:last-child .relay-who,
.relay-leg:last-child .relay-what { padding-right: 0; }

/* последний отрезок рваного пути растворяется: он никуда не приводит */
.relay:not(.relay--solid) .relay-leg:last-child .relay-line {
  background: linear-gradient(90deg, var(--ink4) 52%, transparent 100%);
}

@media (hover: hover) {
  .relay:not(.relay--solid) .relay-leg:hover .relay-line { background: var(--acc); }
  .relay:not(.relay--solid) .relay-leg:last-child:hover .relay-line {
    background: linear-gradient(90deg, var(--acc) 52%, transparent 100%);
  }
  .relay:not(.relay--solid) .relay-leg:hover .relay-what { color: var(--ink2); }
}

/* разрыв: здесь клиента передают дальше и теряется месяц */
.relay-gap {
  flex: 0 0 clamp(60px, 5vw, 84px);
  position: relative;
  padding-top: var(--relay-top);
  text-align: center;
  --d: calc(var(--i) * (var(--seg) + var(--pause)) + var(--seg) + 300ms);
}
.relay-gap::before {
  content: '';
  position: absolute; left: 4px; right: 4px; top: calc(var(--relay-top) + 1px);
  border-top: 1px dashed var(--ink4);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--pause) linear var(--d);
}
.relay.is-in .relay-gap::before { transform: scaleX(1); }
.relay-gap i {
  position: absolute; left: 50%; top: calc(var(--relay-top) + 1px);
  transform: translate(-50%, -50%);
  background: var(--bg); color: var(--acc);
  font-family: var(--mono); font-size: 13px; line-height: 1;
  padding: 3px 5px;
  opacity: 0; transition: opacity .3s var(--d);
}
.relay-gap em {
  display: block; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--acc2);
  opacity: 0; transform: translateY(-5px);
  transition: opacity .4s var(--d), transform .4s var(--d);
}
.relay.is-in .relay-gap i  { opacity: 1; }
.relay.is-in .relay-gap em { opacity: 1; transform: none; }

/* сплошной путь: отрезки встык, узлы на стыках, ни одной паузы */
.relay--solid .relay-leg { --d: calc(var(--i) * var(--seg) + 260ms); }
.relay--solid .relay-line { background: var(--acc); }
.relay--solid .relay-what { color: var(--ink2); }
.relay--solid .relay-leg::before,
.relay--solid .relay-leg:last-child::after {
  content: '';
  position: absolute; top: calc(var(--relay-top) - 3px);
  width: 8px; height: 8px; background: var(--acc);
  opacity: 0;
}
.relay--solid .relay-leg::before { left: 0; transition: opacity .3s var(--d); }
.relay--solid .relay-leg:last-child::after { right: 0; transition: opacity .3s calc(var(--d) + var(--seg)); }
.relay--solid.is-in .relay-leg::before,
.relay--solid.is-in .relay-leg:last-child::after { opacity: 1; }

.relay-foot { margin: 24px 0 0; }

/* узкий экран: дорожка встаёт вертикально, линия уходит влево */
@media (max-width: 959px) {
  .relay-track { display: block; }
  .relay-leg { display: grid; grid-template-columns: 2px 1fr; column-gap: 18px; }
  .relay-line {
    grid-column: 1; grid-row: 1 / 3;
    width: 2px; height: auto; align-self: stretch;
    transform: scaleY(0); transform-origin: top;
  }
  .relay.is-in .relay-line { transform: scaleY(1); }
  .relay:not(.relay--solid) .relay-leg:last-child .relay-line {
    background: linear-gradient(180deg, var(--ink4) 52%, transparent 100%);
  }
  .relay-who {
    grid-column: 2; grid-row: 1;
    height: auto; line-height: 1.3; margin-bottom: 0; padding-right: 0; white-space: normal;
  }
  .relay-what { grid-column: 2; grid-row: 2; padding: 8px 0 20px; }

  .relay-gap {
    display: block; text-align: left;
    flex: none; padding: 12px 0 12px 20px;
  }
  .relay-gap::before {
    left: 0; right: auto; top: 0; bottom: 0;
    border-top: 0; border-left: 1px dashed var(--ink4);
    transform: scaleY(0); transform-origin: top;
  }
  .relay.is-in .relay-gap::before { transform: scaleY(1); }
  .relay-gap i  { left: 1px; top: 50%; }
  .relay-gap em { display: inline-block; margin: 0; }

  .relay--solid .relay-leg::before { top: 0; left: 0; }
  .relay--solid .relay-leg:last-child::after { top: auto; bottom: 0; left: 0; right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .relay-line, .relay-gap::before { transform: none; transition: none; }
  .relay-gap i, .relay-gap em,
  .relay--solid .relay-leg::before,
  .relay--solid .relay-leg:last-child::after { opacity: 1; transition: none; }
  .relay-gap em { transform: none; }
}

/* ─── 26. Лестница ступеней ─────────────────────────────────── */

.stair {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 2px;
  height: clamp(210px, 26vw, 340px);
  border-bottom: 1px solid var(--line2);
  position: relative;
}
.stair-step {
  position: relative;
  height: 0;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-bottom: 0;
  padding: 14px clamp(12px, 1.2vw, 18px) 0;
  overflow: hidden;
  transition: height 1.1s cubic-bezier(.2,.7,.1,1) var(--d, 0ms), background .25s;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}
.is-in .stair-step { height: var(--h); }
.stair-step:nth-child(4) { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.stair-step:hover { background: var(--bg3); }
.stair-step:nth-child(4):hover { background: #ff6b78; }
.stair-step.is-sel { border-color: var(--acc); }
.stair-n {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 9px;
}
.stair-step:nth-child(4) .stair-n { color: rgba(7,8,12,.6); }
.stair-t {
  display: block;
  font-size: clamp(14px, 1.3vw, 19px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.stair-tag {
  position: absolute; left: clamp(12px, 1.2vw, 18px); bottom: 12px; right: 10px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink3);
  line-height: 1.3;
}
.stair-step:nth-child(4) .stair-tag { color: rgba(7,8,12,.66); }
@media (max-width: 720px) {
  .stair { height: clamp(170px, 40vw, 230px); }
  .stair-t { font-size: 12.5px; }
  .stair-tag { display: none; }
}

.stair-axis {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink4);
  margin-top: 14px;
}
.stair-y {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 14px;
}

/* панель с раскрытой ступенью */
.stair-panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--acc);
  background: var(--bg2);
  padding: clamp(24px, 2.6vw, 36px);
  margin-top: 28px;
  display: grid;
  gap: clamp(20px, 3vw, 44px);
}
@media (min-width: 900px) { .stair-panel { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.stair-panel h4 { font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -.035em; margin-bottom: 12px; }
.stair-panel .p { font-size: 14.5px; }

/* ─── 27. Воронка в цифрах ──────────────────────────────────── */

.fn { border: 1px solid var(--line); }
.fn-row {
  display: grid; gap: 10px 20px;
  padding: 16px clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.fn-row:last-child { border-bottom: 0; }
@media (min-width: 760px) { .fn-row { grid-template-columns: 190px 1fr 128px; } }
.fn-lab { font-size: 14px; color: var(--ink2); }
.fn-track { position: relative; height: 30px; display: flex; align-items: center; }
.fn-bar {
  height: 30px;
  width: 0;
  min-width: 3px;
  background: var(--line2);
  transition: width 1.2s cubic-bezier(.2,.7,.1,1) var(--d, 0ms);
}
.is-in .fn-bar { width: var(--w); }
.fn-row:last-child .fn-bar { background: var(--acc); }
.fn-val { font-family: var(--mono); font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -.03em; }
@media (min-width: 760px) { .fn-val { text-align: right; } }
.fn-row:last-child .fn-val { color: var(--acc); }
.fn-val em { font-size: 11px; color: var(--ink4); letter-spacing: .06em; display: block; margin-top: 3px; }

/* ─── 28. График: две линии, расхождение ────────────────────── */

.chart { position: relative; max-width: 840px; margin: 0 auto; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.8s cubic-bezier(.3,.6,.2,1) var(--d, 0ms);
}
.is-in .chart .draw, .chart.is-in .draw { stroke-dashoffset: 0; }
.chart .fade { opacity: 0; transition: opacity .7s ease 1.3s; }
.is-in .chart .fade, .chart.is-in .fade { opacity: 1; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink3);
  margin-bottom: 22px;
}
.chart-legend i { display: inline-block; width: 18px; height: 2px; background: var(--ink3); margin-right: 9px; vertical-align: middle; }
.chart-legend .a { color: var(--acc); }
.chart-legend .a i { background: var(--acc); }
.chart-legend .d i { background: none; border-top: 2px dashed var(--ink4); height: 0; }

/* ─── 29. Полоса выводов над графиком ───────────────────────── */

.gains { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(28px, 3vw, 44px); }
@media (min-width: 700px) { .gains { grid-template-columns: repeat(3, 1fr); } }
.gain { background: var(--bg); padding: clamp(20px, 2.2vw, 30px); }
.gain .n {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--acc);
}
.gain .n sub { font-size: .42em; letter-spacing: 0; color: var(--ink3); vertical-align: baseline; }
.gain .l { font-size: 13px; color: var(--ink3); margin-top: 12px; line-height: 1.45; }

/* ═══════════════════════════════════════════════════════════════
   30. День
   Светлая секция посреди тёмной страницы. Работает переопределением
   тех же токенов, поэтому все компоненты внутри перекрашиваются сами.
   Акцент остаётся коралловым.
   ═══════════════════════════════════════════════════════════════ */

.section--day {
  --bg:    #F4F2EE;
  --bg2:   #EBE8E2;
  --bg3:   #E1DDD5;
  --ink:   #10121A;
  --ink2:  #464B58;
  --ink3:  #6E7481;
  --ink4:  #9BA1AD;
  --line:  #DEDAD2;
  --line2: #C8C3B9;
  --acc-dim: rgba(255, 79, 94, .10);
  background: var(--bg);
  color: var(--ink);
}
.section--day .btn { color: var(--ink); }
.section--day .btn:hover { background: var(--bg3); }

/* дневная обработка кадра: не глушим, а наоборот поднимаем */
.ph--day > img,
.ph--day > video { filter: contrast(1.06) saturate(1.12) brightness(1.02); transform: scale(1.02); }
.ph--day .grain { opacity: .16; }
.ph-wash--day {
  background:
    radial-gradient(70% 60% at 74% 16%, rgba(255, 79, 94, .16), transparent 62%),
    linear-gradient(180deg, rgba(7,8,12,.30) 0%, rgba(7,8,12,.10) 34%, rgba(7,8,12,.06) 100%);
}
/* для тёмного текста поверх светлого кадра */
.ph-wash--wash-light {
  background: linear-gradient(180deg, rgba(244,242,238,.10) 0%, rgba(244,242,238,.62) 62%, rgba(244,242,238,.95) 100%);
}
/* пёстрый светлый интерьер под крупным блоком текста: топим сильнее и шире */
.ph-wash--deep {
  background:
    linear-gradient(152deg, rgba(7,8,12,.94) 0%, rgba(7,8,12,.80) 32%, rgba(7,8,12,.44) 62%, rgba(7,8,12,.12) 100%),
    linear-gradient(180deg, transparent 68%, rgba(7,8,12,.94) 100%);
}

/* светлый кадр, но текст сверху слева: топим угол под текстом, снег и облака оставляем */
/* нижняя треть уходит в цвет страницы: снимает водяной знак ролика
   и даёт переход к тёмной секции под hero */
.ph-wash--dayhead {
  background:
    linear-gradient(158deg, rgba(7,8,12,.80) 0%, rgba(7,8,12,.52) 30%, rgba(7,8,12,.10) 58%, rgba(7,8,12,0) 82%),
    linear-gradient(180deg,
      transparent 48%,
      rgba(7,8,12,.34) 66%,
      rgba(7,8,12,.72) 82%,
      rgba(7,8,12,.94) 92%,
      var(--bg) 100%);
}

/* ─── 31. Hero страницы регистрации ─────────────────────────── */

.hero-reg {
  position: relative;
  min-height: clamp(560px, 88svh, 900px);
  display: flex;
  align-items: flex-start;   /* текст на тёмном небе, снег остаётся внизу */
  overflow: hidden;
}
.hero-reg > .ph { position: absolute; inset: 0; }
/* бесшовный луп: две копии ролика, вторая подхватывает на стыке кроссфейдом */
.hero-reg > .ph[data-loop] > video {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s linear;
}
.hero-reg > .ph[data-loop] > video.is-on { opacity: 1; }
.hero-reg > .ph > img,
.hero-reg > .ph > video { animation: heroDrift 30s ease-in-out infinite alternate; }
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.4%, -1.2%, 0); }
}

/* низ кадра накрыт плашкой цвета страницы: гасит водяной знак ролика
   и сшивает hero с тёмной секцией под ним */
.hero-reg::after {
  content: '';
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: clamp(210px, 30vh, 360px);
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7,8,12,0) 0%,
    rgba(7,8,12,.52) 22%,
    rgba(7,8,12,.90) 40%,
    var(--bg) 52%,
    var(--bg) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-reg > .ph > img,
  .hero-reg > .ph > video { animation: none; }
}
.hero-reg .wrap {
  position: relative; z-index: 3;
  padding-top: clamp(90px, 14vh, 170px);
  padding-bottom: clamp(44px, 6vw, 78px);
}
.hero-reg .h1 { max-width: 15ch; }
.hero-reg .sub { max-width: 44ch; }

/* ─── 32. Полоса времени: сколько вы физически заняты ───────── */

/* поверх светлого кадра полоса обязана нести свою подложку, иначе тонет в снегу */
.timebar {
  margin-top: clamp(30px, 4vw, 44px);
  max-width: 580px;
  background: rgba(7, 8, 12, .52);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(242, 240, 236, .16);
  padding: 20px clamp(18px, 2vw, 24px) 18px;
}
.timebar-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 34px;
}
.timebar-head b { color: var(--ink); font-size: 13px; letter-spacing: .04em; font-weight: 500; }
.timebar-track {
  position: relative;
  height: 10px;
  background: rgba(242, 240, 236, .10);
  border: 1px solid rgba(242, 240, 236, .26);
}
.timebar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(242, 240, 236, .18);
  transition: width 1.5s cubic-bezier(.2,.7,.1,1) .25s;
}
.is-in .timebar-fill { width: 100%; }
.timebar-you {
  position: absolute; top: -2px; bottom: -2px;
  left: var(--x); width: var(--w);
  background: var(--acc);
  opacity: 0;
  transform: scaleY(.2);
  transition: opacity .5s ease 1.5s, transform .5s cubic-bezier(.2,.7,.1,1) 1.5s;
}
.is-in .timebar-you { opacity: 1; transform: none; }
.timebar-you::before {
  content: '';
  position: absolute; left: 50%; bottom: 100%;
  width: 1px; height: 12px;
  background: var(--acc);
}
.timebar-you::after {
  content: attr(data-lab);
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--acc);
}
.timebar-legend {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink3);
}

/* ─── 33. Полосы преимуществ ────────────────────────────────── */

.stripe {
  display: grid;
  gap: clamp(24px, 3.4vw, 60px);
  align-items: center;
  padding: clamp(40px, 5vw, 76px) 0;
  border-top: 1px solid var(--line);
}
.stripe:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 940px) {
  .stripe { grid-template-columns: .9fr 1.1fr; }
  /* колонки разной высоты: диаграмма держит верх, а не плавает по центру */
  .stripe--wide { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .stripe--flip .stripe-media { order: 2; }
}
.stripe-media .ph { aspect-ratio: 4 / 5; }
.stripe-media--wide .ph { aspect-ratio: 3 / 2; }
.stripe-n {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 18px;
}
.stripe h3 {
  font-size: clamp(25px, 2.9vw, 40px);
  letter-spacing: -.04em;
  line-height: 1.03;
  margin-bottom: 18px;
  text-wrap: balance;
}
.stripe .p { font-size: 15.5px; line-height: 1.62; max-width: 48ch; }

/* «обычно» против «у нас» — двумя строками, без коробок */
.stripe-vs { margin-top: 26px; border-top: 1px solid var(--line); }
.stripe-vs > div {
  display: grid; gap: 3px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .stripe-vs > div { grid-template-columns: 128px 1fr; align-items: baseline; } }
.stripe-vs dt {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink4);
}
.stripe-vs dd { margin: 0; font-size: 14.5px; color: var(--ink3); }
.stripe-vs .is-us dt { color: var(--acc); }
.stripe-vs .is-us dd { color: var(--ink); }

/* две дорожки одного маршрута: слева обрыв, справа продолжение.
   Разная высота колонок — это и есть аргумент, выравнивать её не нужно. */
.lanes {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 480px) { .lanes { grid-template-columns: 1fr 1fr; } }
.lane { background: var(--bg2); padding: clamp(22px, 2.2vw, 30px); }
.lane-h {
  margin: 0 0 clamp(20px, 2vw, 26px);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink4);
}
.lane--us .lane-h { color: var(--acc); }

.lane-list { list-style: none; margin: 0; padding: 0; }
.lane-list li { position: relative; padding: 0 0 26px 24px; }
.lane-list li:last-child { padding-bottom: 0; }

/* стойка между точками: у юрфирмы пунктир, у нас сплошная */
.lane-list li::before {
  content: '';
  position: absolute; left: 4px; top: 14px; bottom: 0;
  border-left: 1px dashed var(--ink4);
}
.lane-list li:last-child::before { display: none; }
.lane--us .lane-list li::before { border-left: 1px solid var(--acc); }

/* точка маршрута */
.lane-list li::after {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 9px; height: 9px;
  border: 1px solid var(--ink4);
  background: var(--bg2);
}
.lane--us .lane-list li::after { border-color: var(--acc); background: var(--acc); }

/* обрыв: вместо точки крестик */
.lane-list .is-end::after {
  content: '✕';
  left: -1px; top: 2px;
  width: 11px; height: 11px;
  border: 0; background: none;
  font-size: 11px; line-height: 11px; text-align: center;
  color: var(--ink4);
}

.lane-list i {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink4);
  font-style: normal;
}
.lane-list b {
  display: block;
  font-size: 15px; font-weight: 500; letter-spacing: -.02em;
  color: var(--ink2);
}
.lane--us .lane-list b { color: var(--ink); }
.lane-list span {
  display: block; margin-top: 6px;
  font-size: 12.5px; line-height: 1.45;
  color: var(--ink4);
}
.lane-list .is-end b { color: var(--ink4); }

/* ─── 34. Матрица инструментов ──────────────────────────────── */

.matrix { border: 1px solid var(--line); overflow-x: auto; }
.matrix table { width: 100%; border-collapse: collapse; min-width: 780px; }
.matrix th {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink3); font-weight: 500; text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line2);
  white-space: nowrap;
}
.matrix td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
}
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody tr:hover { background: var(--bg2); }
.matrix .inst {
  color: var(--ink); font-weight: 500;
  letter-spacing: -.02em; font-size: 15px;
  min-width: 190px;
}
.matrix .inst span {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; color: var(--ink4);
  margin-top: 6px;
}
.matrix .pay { color: var(--acc); }
.matrix .when { font-family: var(--mono); font-size: 12.5px; color: var(--ink3); white-space: nowrap; }

/* размытие доли: три точки вместо слов */
.dil { display: inline-flex; gap: 5px; padding-top: 4px; }
.dil i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line2); }
.dil i.on { background: var(--acc); border-color: var(--acc); }

/* ─── 35. Аккордеон вопросов ────────────────────────────────── */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: -.025em;
  font-weight: 500;
  transition: color .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--acc); }
.acc summary::after {
  content: '+';
  font-family: var(--mono); font-size: 17px;
  color: var(--acc);
  flex-shrink: 0;
  line-height: 1;
}
.acc details[open] summary::after { content: '–'; }
.acc details[open] summary { color: var(--acc); }
.acc .p { padding: 0 0 24px; max-width: 76ch; font-size: 14.5px; line-height: 1.65; }

/* ─── 35. Заметка-заглушка (видна только в мокапе) ──────────── */

.todo-note {
  border: 1px dashed var(--acc);
  background: var(--acc-dim);
  padding: 12px 15px;
  font-family: var(--mono); font-size: 11px;
  line-height: 1.5;
  color: var(--ink2);
  margin-top: 18px;
}
.todo-note b { color: var(--acc); font-weight: 500; }

/* ══════ «Развитие бизнеса»: разделы 03 и 05 только на десктопе ══════
   Скоуп по .page-bizdev обязателен — id #scenarios и #capital есть
   и на главной (app.jsx), там разделы должны остаться на телефоне.
   Кнопка героя ведёт на #capital, поэтому прячется вместе с целью. */

@media (max-width: 860px) {
  .page-bizdev #scenarios,
  .page-bizdev #capital,
  .page-bizdev .hero-page a[href="#capital"] { display: none; }
}
