/* =====================================================================
   Маршрут — лендинг B2 «Сумерки». Токены из design/design.md.
   ===================================================================== */

:root {
  /* Фоны */
  --bg:           #14100C;
  --bg-hero:      #0F0B08;
  --bg-panel:     #100C09;

  /* Текст */
  --tx:           #EFE4DA;
  --tx-2:         #F5ECE3;
  --tx-3:         #F7EFE6;
  --tx-hero:      #F4EAE0;
  --tx-sec:       #C9B6A6;
  --tx-sec-2:     #A89684;
  --tx-mute:      #8A7868;
  --tx-mute-2:    #7E6E5E;
  --tx-mono:      #9A8576;
  --tx-body:      #D8CABA;
  --tx-desc:      #A08B79;

  /* Акцент (терракота) */
  --acc:          #F0743C;
  --acc-deep:     #E8622C;
  --acc-light:    #F7B267;
  --acc-light-2:  #F6B48E;

  /* Градиенты */
  --grad-btn:     linear-gradient(180deg, #F0743C, #E8622C);
  --grad-text:    linear-gradient(96deg, #F0743C, #F7B267);

  /* Линии / бордеры */
  --line:         rgba(255,255,255,.06);
  --line-2:       rgba(255,255,255,.10);
  --line-3:       rgba(255,255,255,.14);
  --line-4:       rgba(255,255,255,.16);
  --rail:         rgba(240,116,60,.22);

  /* Beta */
  --beta-tx:      #E0A07A;
  --beta-bd:      rgba(224,160,122,.4);

  /* Шрифты */
  --font:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Сетка */
  --content: 1080px;
  --hero-w:  1200px;
  --pad-x:   clamp(20px, 5vw, 44px);
  --rail-w:  clamp(40px, 7vw, 76px);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::placeholder { color: #7E6A5A; }

/* тонкие, мягкие скроллбары */
textarea { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
textarea::-webkit-scrollbar { width: 6px; height: 6px; }
textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
textarea::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
textarea::-webkit-scrollbar-track { background: transparent; }

/* ---------- keyframes ---------- */
@keyframes glow     { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.06)} }
@keyframes irid     { 0%{filter:hue-rotate(-15deg) saturate(1.12)} 50%{filter:hue-rotate(18deg) saturate(1.32)} 100%{filter:hue-rotate(-15deg) saturate(1.12)} }
@keyframes shimmer  { 0%,100%{opacity:.3;transform:translate(0,0) scale(1)} 50%{opacity:.65;transform:translate(-2.5%,2%) scale(1.05)} }
@keyframes shimmer2 { 0%,100%{opacity:.28;transform:translate(0,0) scale(1.04)} 50%{opacity:.6;transform:translate(3%,-2%) scale(1)} }
@keyframes hue      { 0%{background-position:0% 0%} 100%{background-position:0% 240%} }
@keyframes bob      { 0%,100%{transform:rotate(45deg) translate(0,0);opacity:.6} 50%{transform:rotate(45deg) translate(5px,5px);opacity:1} }
@keyframes recpulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(.7);opacity:.55} }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-hero);
  color: var(--tx-hero);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg--1 {
  background:
    radial-gradient(46% 40% at 50% 32%, rgba(232,98,44,.62), transparent 60%),
    radial-gradient(42% 50% at 80% 80%, rgba(176,52,24,.5), transparent 62%),
    radial-gradient(34% 42% at 12% 72%, rgba(232,150,70,.28), transparent 60%);
  animation: glow 10s ease-in-out infinite, irid 7s ease-in-out infinite;
}
.hero__bg--2 {
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 34% at 40% 36%, rgba(255,86,120,.30), transparent 60%),
    radial-gradient(40% 40% at 72% 70%, rgba(255,196,92,.30), transparent 62%);
  animation: shimmer 7.5s ease-in-out infinite, irid 6s ease-in-out infinite reverse;
}
.hero__bg--3 {
  mix-blend-mode: screen;
  background:
    radial-gradient(34% 32% at 64% 30%, rgba(180,96,255,.22), transparent 58%),
    radial-gradient(36% 38% at 26% 66%, rgba(255,150,60,.26), transparent 60%);
  animation: shimmer2 9s ease-in-out infinite, irid 8.5s ease-in-out infinite;
}
.hero__bg--vignette {
  background: radial-gradient(125% 100% at 50% 0%, transparent 44%, rgba(0,0,0,.55));
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

/* ---------- header ---------- */
.header {
  position: relative; z-index: 3;
  max-width: var(--hero-w); margin: 0 auto; width: 100%;
  padding: clamp(20px,3vw,30px) var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--tx-hero); text-decoration: none;
}
.logo__dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--acc);
  display: inline-block; box-shadow: 0 0 14px 2px rgba(240,116,60,.8);
}
.logo--sm { font-size: 16px; gap: 9px; color: var(--tx); }
.logo--sm .logo__dot { width: 9px; height: 9px; box-shadow: 0 0 10px rgba(240,116,60,.7); }

.nav {
  display: flex; align-items: center; gap: clamp(14px,2vw,26px);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--tx-sec);
}
.nav__link { color: var(--tx-sec); text-decoration: none; white-space: nowrap; transition: color .15s; }
.nav__link:hover { color: var(--tx-3); }
.nav__cta {
  cursor: pointer; font-family: inherit; color: #FFD9C2;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240,116,60,.5);
  padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 12.5px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.nav__cta:hover { background: rgba(240,116,60,.16); }

/* ---------- hero inner ---------- */
.hero__inner {
  position: relative; z-index: 3; flex: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: var(--hero-w); margin: 0 auto;
  padding: clamp(16px,3vw,30px) var(--pad-x) 110px;
}
.hero__cols {
  display: flex; flex-wrap: wrap; gap: clamp(28px,5vw,60px); align-items: center; width: 100%;
}
.hero__lead { flex: 1 1 430px; min-width: 0; text-align: left; }
.hero__aside { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #FFCBAE;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-3);
  padding: 7px 14px; border-radius: 100px; margin-bottom: clamp(18px,2.4vw,24px);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px 2px rgba(240,116,60,.9); }

.hero__title {
  font-size: clamp(34px,5.2vw,62px); line-height: 1.03; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 clamp(16px,2.2vw,22px); text-wrap: balance; color: var(--tx-3);
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--acc);
}
.hero__sub {
  font-size: clamp(16px,1.7vw,20px); color: var(--tx-sec);
  max-width: 480px; margin: 0 0 clamp(22px,3vw,30px); text-wrap: pretty;
}

/* ---------- composer (поле ввода) ---------- */
.composer-wrap { width: 100%; max-width: 560px; text-align: left; }
.composer {
  display: flex; gap: 8px; align-items: flex-end;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240,116,60,.45); border-radius: 18px;
  padding: 11px 11px 11px 20px;
  box-shadow: 0 0 50px -6px rgba(232,98,44,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.composer__input {
  flex: 1; border: none; outline: none; resize: none; font-family: inherit;
  font-size: 16px; line-height: 1.45; color: var(--tx-3); background: transparent;
  padding: 11px 0; height: 46px; min-height: 46px; max-height: 132px; overflow-y: auto;
}
/* герой: одна строка, высота как у кнопки «Начать» (placeholder укорочен под один ряд) */
.hero .composer__input { font-size: 15px; }
.composer__mic {
  flex: none; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(240,116,60,.5); cursor: pointer;
  background: rgba(255,255,255,.05); color: var(--acc-light-2); border-radius: 13px;
  transition: background .15s;
}
.composer__mic:hover { background: rgba(240,116,60,.14); }
.composer__rec {
  display: none; width: 13px; height: 13px; border-radius: 3px; background: var(--acc);
  box-shadow: 0 0 14px rgba(240,116,60,.9); animation: recpulse 1s ease-in-out infinite;
}
.composer__mic.is-recording .composer__mic-icon { display: none; }
.composer__mic.is-recording .composer__rec { display: block; }
.composer__submit {
  flex: none; border: none; cursor: pointer;
  background: var(--grad-btn); color: #fff; font-family: inherit;
  font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 13px;
  box-shadow: 0 0 26px -4px rgba(240,116,60,.8);
  transition: filter .15s;
}
.composer__submit:hover { filter: brightness(1.06); }
.composer__hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--tx-mono); margin: 12px 4px 0;
}

/* ---------- route card (right) ---------- */
.route-card {
  position: relative; width: 100%; max-width: 430px; padding: 26px 22px; border-radius: 24px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 90px -30px rgba(232,98,44,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.route-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.route-card__title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; color: var(--tx-2); }
.route-card__meta { font-family: var(--mono); font-size: 11px; color: var(--tx-mono); }
.route-card__body { position: relative; padding: 4px 0; }
.route-card__line {
  position: absolute; left: 8px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #F0743C, #F7B267, #E8622C, #F0743C);
  background-size: 100% 240%; animation: hue 5s linear infinite;
}
.route-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px,1.6vw,20px); }
.route-node { display: flex; gap: 15px; align-items: center; position: relative; }
.route-node__dot {
  flex: none; width: 19px; height: 19px; border-radius: 50%; position: relative; z-index: 1;
  box-shadow: 0 0 0 4px rgba(20,16,12,.85), 0 0 18px rgba(240,116,60,.8);
}
.route-node__dot--filled { background: var(--grad-btn); }
.route-node__dot--ring { background: var(--bg); border: 2px solid var(--acc); box-shadow: 0 0 0 4px rgba(20,16,12,.85); }
.route-node__card {
  flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.route-node__name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--tx); display: flex; align-items: center; gap: 7px; }
.route-node__desc { font-size: 12px; color: var(--tx-desc); }
.route-node__num { font-family: var(--mono); font-size: 11px; color: var(--acc-light-2); }

.badge-beta {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--beta-tx);
  border: 1px solid var(--beta-bd); border-radius: 4px; padding: 1px 5px;
}
.badge-beta--lg { font-size: 10.5px; letter-spacing: .05em; border-radius: 5px; padding: 2px 6px; }

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none;
}
.scroll-cue__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--tx-mono); }
.scroll-cue__arrow {
  width: 13px; height: 13px;
  border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg); animation: bob 1.6s ease-in-out infinite;
  box-shadow: 2px 2px 12px rgba(240,116,60,.5);
}

/* ============================================================
   RAIL WRAPPER + BLOCKS
   ============================================================ */
.rail { max-width: var(--content); margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }

.block { display: flex; gap: clamp(14px,2.5vw,28px); }
.block__rail { flex: none; width: var(--rail-w); position: relative; display: flex; justify-content: center; }
.block__rail--empty { display: block; }
.block__body { flex: 1; min-width: 0; padding: clamp(34px,5vw,72px) 0; }
.block__body--cta { padding: clamp(34px,5vw,64px) 0 clamp(40px,6vw,80px); }

/* линия маршрута */
.rail-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rail); }
.rail-line--half     { bottom: 50%; }              /* обрывается на середине (последний этап) */
.rail-line--from-mid { top: 62px; bottom: 0; }     /* начинается у узла */
.rail-line--to-mid   { top: 0; height: 62px; bottom: auto; } /* доходит до финиша */

.rail-dot {
  position: relative; margin-top: 62px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--acc);
  box-shadow: 0 0 0 5px var(--bg), 0 0 12px rgba(240,116,60,.5);
}
.rail-dot--finish {
  margin-top: 54px; width: 18px; height: 18px; border: none; background: var(--grad-btn);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 7px rgba(232,98,44,.3), 0 0 18px rgba(240,116,60,.6);
}

/* типографика секций */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--tx-mute); margin-bottom: 14px; }
.kicker--accent { font-size: 12.5px; color: var(--acc); margin-bottom: 16px; }
.h2 {
  font-size: clamp(24px,3.4vw,38px); line-height: 1.12; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 clamp(24px,3.5vw,40px); text-wrap: balance; color: var(--tx-2);
  max-width: 680px;
}
.h2--sm { font-size: clamp(22px,3vw,32px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 clamp(20px,3vw,30px); max-width: none; }
.h2--lg { font-size: clamp(26px,3.8vw,44px); line-height: 1.1; margin: 0 0 clamp(20px,3vw,28px); max-width: 620px; }
.lead-text { margin: 0; color: var(--tx-sec-2); font-size: 16px; }
.lead-text--wide { margin: 0 0 clamp(26px,3.5vw,38px); max-width: 560px; text-wrap: pretty; }

/* stages head h2 — без ограничения ширины */
.stages__head .h2 { max-width: none; }

/* grids */
.grid { display: grid; }
.grid--cols   { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: clamp(16px,2.5vw,28px); }
.grid--steps  { grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(18px,3vw,36px); }
.grid--value  { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(14px,2vw,24px); }
.grid--slots  { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.grid--pricing{ grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: clamp(14px,2vw,20px); align-items: stretch; }

.feature__title { font-weight: 700; font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; color: var(--tx); }
.feature__text  { margin: 0; color: var(--tx-sec-2); font-size: 15.5px; text-wrap: pretty; }
.step__num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--acc); margin-bottom: 10px; }

/* stages */
.stages { display: block; }
.stages__head { flex: 1; min-width: 0; padding-top: clamp(14px,2vw,24px); }
.stages__head .h2 { margin: 0 0 6px; }
.stage { flex: 1; min-width: 0; padding: 30px 0; }
.stage__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.stage__name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--tx); }
.stage__text { margin: 5px 0 12px; color: var(--tx-sec-2); font-size: 15.5px; }
.stage-node {
  position: relative; margin-top: 36px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-btn); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 5px var(--bg), 0 8px 18px -6px rgba(232,98,44,.6);
}
.stage-node--ring { background: var(--bg); color: var(--acc); border: 2px solid var(--acc); box-shadow: 0 0 0 5px var(--bg); }

.tags { font-family: var(--mono); font-size: 12px; color: var(--tx-mute); display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* value */
.value { border-left: 2px solid var(--acc); padding: 2px 0 2px 16px; font-size: 16px; line-height: 1.5; color: var(--tx-body); text-wrap: pretty; }

/* social proof */
.stats { display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,56px); margin-bottom: 22px; }
.stat__num { font-size: clamp(28px,4vw,42px); font-weight: 800; letter-spacing: -.02em; color: var(--tx-2); }
.stat__num--accent { color: var(--acc); }
.stat__label { font-family: var(--mono); font-size: 11.5px; color: var(--tx-mute); }
.slot {
  border: 1.5px dashed var(--line-3); border-radius: 14px; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--tx-mute-2); text-align: center; padding: 18px;
}

/* pricing */
.plan {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 22px;
}
.plan--featured {
  background: linear-gradient(180deg, rgba(240,116,60,.16), rgba(240,116,60,.05));
  border: 1px solid rgba(240,116,60,.5); position: relative;
  box-shadow: 0 0 60px -18px rgba(232,98,44,.6);
}
.plan__badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: #fff;
  background: var(--grad-btn); padding: 4px 10px; border-radius: 6px;
  box-shadow: 0 6px 16px -6px rgba(232,98,44,.8);
}
.plan__head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.plan__name { font-weight: 700; font-size: 17px; color: var(--tx); }
.plan--featured .plan__name { color: var(--tx-3); margin-bottom: 4px; }
.plan__tagline { font-family: var(--mono); font-size: 12px; color: var(--tx-mono); margin-bottom: 18px; }
.plan__tagline--accent { color: #E0B49A; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan__amount { font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--tx-2); white-space: nowrap; }
.plan__amount--accent { color: #FFF3EB; }
.plan__period { font-family: var(--mono); font-size: 12px; color: var(--tx-mute); }
.plan__period--accent { color: #C99A7C; }
.plan__features { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--tx-sec); margin-bottom: 24px; }
.plan__features--accent { color: #F0E0D2; }
.plan__feature { display: flex; gap: 10px; align-items: flex-start; }
.plan__bullet { flex: none; margin-top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
.plan__bullet--light { background: var(--acc-light); }
.plan__btn {
  margin-top: auto; text-align: center; cursor: pointer; font-family: inherit;
  border: 1px solid var(--line-4); background: transparent; color: var(--tx);
  font-weight: 600; font-size: 14px; padding: 12px; border-radius: 11px; transition: background .15s;
}
.plan__btn:hover { background: rgba(255,255,255,.05); }
.plan__btn--primary {
  border: none; background: var(--grad-btn); color: #fff; font-weight: 700; padding: 13px;
  box-shadow: 0 10px 26px -8px rgba(232,98,44,.7);
}
.plan__btn--primary:hover { filter: brightness(1.06); background: var(--grad-btn); }

/* final cta composer overrides */
.composer-wrap--cta { max-width: 560px; }
.composer--cta {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240,116,60,.4); border-radius: 14px;
  padding: 10px 10px 10px 18px; box-shadow: 0 0 44px -10px rgba(232,98,44,.4);
}
.composer__mic--cta { width: 42px; height: 42px; border-radius: 11px; }
.composer__mic--cta svg { width: 19px; height: 19px; }
.composer__submit--cta { padding: 11px 20px; border-radius: 10px; box-shadow: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--content); margin: 0 auto;
  padding: clamp(28px,4vw,40px) clamp(20px,5vw,40px);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
.footer__copy { font-family: var(--mono); font-size: 11.5px; color: var(--tx-mute-2); text-wrap: pretty; }

/* ============================================================
   PAGE-FADE — переходная завеса лендинг → кабинет
   ============================================================ */
.page-fade {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.page-fade.is-active { opacity: 1; pointer-events: all; }
/* лёгкий «провал внутрь» всей страницы при уходе */
body.is-leaving { transition: transform .32s ease, opacity .32s ease; transform: scale(.985); opacity: .4; }

/* ============================================================
   АДАПТИВ — 1280 / 768 / 375
   ============================================================ */

/* ≤ 1280: чуть ужать герой к контентной ширине */
@media (max-width: 1280px) {
  :root { --hero-w: 1120px; }
}

/* ≤ 768: планшет — герой в одну колонку, поле ввода на всю ширину */
@media (max-width: 768px) {
  .hero__cols { flex-direction: column; align-items: stretch; }
  .hero__lead, .hero__aside { flex: 1 1 auto; }
  .hero__aside { justify-content: flex-start; }
  .route-card { max-width: 100%; }
  .composer-wrap { max-width: 100%; }
  .hero__sub { max-width: none; }
  .hero__inner { padding-bottom: 96px; }
}

/* ≤ 375: мобайл — компактнее линия и отступы, без горизонтального скролла */
@media (max-width: 480px) {
  :root { --rail-w: 30px; }
  .nav { gap: 12px; }
  .nav__link { display: none; }            /* на узком экране оставляем только «начать» */
  .composer { flex-wrap: wrap; padding: 11px; }
  .composer__input { flex: 1 1 100%; padding: 6px 4px; }
  .composer__submit { flex: 1; }
  .stats { gap: 18px 28px; }
  .route-node__card { flex-wrap: wrap; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION — отключаем все анимации
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body.is-leaving { transform: none; }
}
