/* ============================================================
   ЕДУ ВЕЗУ — «Жёлтая энергия»
   Дисплей: Unbounded (вариативный 600–800)
   Текст:   Golos Text (вариативный 400–700)
   ============================================================ */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/static/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/static/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* --- Токены --- */
:root {
  --sun: #FFD21E;
  --sun-deep: #F7B500;
  --ink: #17130B;
  --milk: #FFF8E8;
  --tomato: #FF4D1C;
  --card: #FFFFFF;
  --ink-70: rgb(23 19 11 / 70%);
  --ink-55: rgb(23 19 11 / 55%);
  --ink-12: rgb(23 19 11 / 12%);
  --milk-70: rgb(255 248 232 / 70%);
  --milk-14: rgb(255 248 232 / 14%);
  --r-card: 26px;
  --font-display: "Unbounded", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "Golos Text", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
}

/* --- База --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
sup { color: var(--tomato); font-weight: 700; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 2.6rem); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 100; top: .9rem; left: .9rem;
  padding: .8rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--milk); font-weight: 700; text-decoration: none;
  transform: translateY(-220%);
}
.skip-link:focus { transform: translateY(0); }

/* --- Типографика --- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin-bottom: 1.1rem;
  overflow-wrap: anywhere;
}
.eyebrow {
  font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1rem; color: var(--ink-55);
}
.eyebrow--tomato { color: var(--tomato); }
.eyebrow--sun { color: var(--sun); }
.mark {
  position: relative; white-space: nowrap;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 16" preserveAspectRatio="none"><path d="M5 11 C45 3 95 14 130 8 S205 4 235 9" fill="none" stroke="%23FF4D1C" stroke-width="8" stroke-linecap="round"/></svg>') no-repeat left bottom / 100% .18em;
  padding-bottom: .16em;
}

.footnote { max-width: 72ch; margin-top: 1.1rem; font-size: .85rem; line-height: 1.55; color: var(--milk-70); opacity: .75; }
.footnote--ink { color: var(--ink-55); opacity: 1; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .95rem 1.8rem; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn--ink { background: var(--ink); color: var(--milk); box-shadow: 0 10px 24px rgb(23 19 11 / 22%); }
.btn--ink:hover { transform: translateY(-2px); background: #000; }
.btn--sun {
  background: var(--sun); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
.btn--sun:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--xl { min-height: 58px; padding: 1.1rem 2.2rem; font-size: 1.12rem; }
.btn--s { min-height: 42px; padding: .6rem 1.2rem; font-size: .92rem; box-shadow: none; }
/* У жёлтой кнопки тень — часть силуэта, а не украшение: без неё в шапке
   остаётся один контур и кнопка теряется на жёлтом. Смещение меньше, чем
   у крупных, иначе в липкой шапке она перевешивает. */
.btn--sun.btn--s { box-shadow: 3px 3px 0 var(--ink); }
.btn--sun.btn--s:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translateY(1px); }

.link-more { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2.5px; }
.link-more:hover { color: var(--tomato); }

/* --- Шапка --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 210 30 / 90%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink-12);
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; padding: .68rem 0; width: min(1160px, 100% - 2.6rem); margin-inline: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
}
.brand__bolt { height: 1.15em; width: auto; }
.topbar__nav { margin-left: auto; display: flex; gap: 1.35rem; font-weight: 600; font-size: .95rem; }
.topbar__nav a { text-decoration: none; }
.topbar__nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2.5px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, #FFD93F 0%, var(--sun) 60%, #FFCB00 100%);
  padding-top: clamp(2.6rem, 5.5vw, 4.6rem);
  text-align: center;
  overflow: hidden;
}
.hero__copy { max-width: 62rem; }
.hero__lead {
  max-width: 47ch; margin: 1.3rem auto 0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; color: rgb(23 19 11 / 78%);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.3rem; margin-top: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 1.7rem 0 0; padding: 0; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgb(255 255 255 / 62%); border: 2px solid var(--ink-12); border-radius: 999px;
  padding: .5rem 1.05rem; font-weight: 600; font-size: .9rem;
}
.hero__chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }

/* --- Сцена --- */

/* Сцена — фоновый слой hero, текст лежит поверх неё. padding-bottom резервирует
   полосу, в которой видны город и дорога; всё, что выше, сцена заполняет небом.
   Раньше сцена была отдельной полосой с height: clamp(250px, 27.8vw, 400px).
   Коэффициент 27.8vw повторяет пропорции viewBox (400/1440), поэтому пока clamp
   не упирался в границы, slice ничего не резал. Но после ~1440px ширины высота
   вставала на 400px, ширина росла дальше, slice масштабировал по ширине — и
   отрисованная высота переставала влезать. xMidYMax прибивает картинку к низу,
   так что срезалось сверху: у города пропадали крыши, у пешехода — голова. */
.hero__stage { position: relative; padding-bottom: clamp(250px, 27.8vw, 400px); }
.hero__stage .hero__copy { position: relative; z-index: 1; }
.scene-strip { position: absolute; inset: 0; }
.scene { --pace: 1; --wheel: .62s; --spoke-o: 1; display: block; width: 100%; height: 100%; }

/* Темп режима. Единица — «Вело»: все длительности сцены записаны для него.
   --pace разгоняет дорогу и штрихи скорости, --wheel — оборот колеса
   (у колёс свой ряд: на быстрых режимах спицы иначе идут в строб).
   Параллакс города разгоняет app.js через playbackRate — смена animation-duration
   пересчитала бы прогресс, и город прыгал бы по горизонтали при переключении. */
.scene[data-mode="walk"]    { --pace: .41; }
.scene[data-mode="bike"]    { --pace: 1;    --wheel: .62s; }
.scene[data-mode="scooter"] { --pace: 1.22; --wheel: .52s; }
.scene[data-mode="ebike"]   { --pace: 1.5;  --wheel: .46s; }
.scene[data-mode="moped"]   { --pace: 1.88; --wheel: .40s; --spoke-o: .45; }
.scene[data-mode="car"]     { --pace: 2.38; --wheel: .35s; --spoke-o: .3; }

@keyframes cityloop { to { transform: translate3d(-1440px, 0, 0); } }
.skyline--far { animation: cityloop 72s linear infinite; }
.skyline--near { animation: cityloop 30s linear infinite; }

@keyframes dashmove { to { stroke-dashoffset: -82; } }
.road-dash { animation: dashmove calc(1.05s / var(--pace)) linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin var(--wheel) linear infinite var(--play, running); }
.scene__rays { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }

@keyframes hover-drift { 50% { transform: translateX(34px); } }
.cloud--a { animation: hover-drift 13s ease-in-out infinite; }
.cloud--b { animation: hover-drift 17s ease-in-out infinite reverse; }

@keyframes zoomline {
  0% { opacity: 0; transform: translateX(30px); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: translateX(-64px); }
}
.speedlines rect { animation: zoomline calc(1.05s / var(--pace)) linear infinite; }
.speedlines rect:nth-child(2) { animation-delay: calc(.35s / var(--pace)); }
.speedlines rect:nth-child(3) { animation-delay: calc(.7s / var(--pace)); }

/* Сустав рига: геометрия внутри рисуется от (0,0), поворот идёт вокруг этой точки.
   У самого сустава не бывает атрибута transform — иначе CSS-анимация его сотрёт.
   animation-play-state здесь — только страховка для суставов без собственной анимации:
   сокращённая запись `animation:` в правилах режимов сбрасывает это свойство,
   поэтому каждое такое правило несёт var(--play, running) внутри самой записи. */
.j { transform-origin: 0 0; animation-play-state: var(--play, running); }

/* Дальняя нога и рука отделяются от ближних не прозрачностью, а собственным
   тоном. Через opacity просвечивал жёлтый фон, и конечность отдавала болотным;
   этот цвет — тот же ink, только светлее, так что читается как тень, а не как
   дырка в фигуре. */
.limb--far path { stroke: #453A28; }
.limb--far rect { fill: #453A28; }

.rider { --play: paused; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.scene[data-mode="walk"] .rider--walk,
.scene[data-mode="bike"] .rider--bike,
.scene[data-mode="scooter"] .rider--scooter,
.scene[data-mode="ebike"] .rider--ebike,
.scene[data-mode="moped"] .rider--moped,
.scene[data-mode="car"] .rider--car { --play: running; opacity: 1; transform: translateY(0); }
.scene[data-mode="walk"] .speedlines rect { animation-play-state: paused; }
.scene[data-mode="walk"] .speedlines { opacity: 0; }

/* Кочка на дороге: короткий вертикальный толчок и его гашение коленом.
   Одна пара кейфреймов на все катящиеся режимы, период задаёт каждый режим сам. */
.bump { animation-name: bump; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-play-state: var(--play, running); }
@keyframes bump {
  0%, 100% { transform: translateY(0); }
  22% { transform: translateY(-2.4px); }
  46% { transform: translateY(.8px); }
  70% { transform: translateY(-1px); }
}
@keyframes bumpKnee {
  0%, 100% { transform: rotate(0deg); }
  22% { transform: rotate(-3.5deg); }
  46% { transform: rotate(2deg); }
  70% { transform: rotate(-1.2deg); }
}

/* Шаг: цикл 1.5 с при скорости дороги 32 ед/с. Дальняя нога и рука — те же
   кейфреймы со сдвигом на половину цикла. Только linear: траектория уже
   просэмплирована обратной кинематикой, easing бы её исказил. */
.rider--walk { --step: 1.5s; }
.walk__hip { animation: walkHip var(--step) linear infinite var(--play, running); }
.rider--walk .j--leg-near  { animation: walkThigh var(--step) linear infinite var(--play, running); }
.rider--walk .j--shin-near { animation: walkShin  var(--step) linear infinite var(--play, running); }
.rider--walk .j--foot-near { animation: walkFoot  var(--step) linear infinite var(--play, running); }
.rider--walk .j--arm-near     { animation: walkShoulder var(--step) linear infinite var(--play, running); }
.rider--walk .j--forearm-near { animation: walkElbow    var(--step) linear infinite var(--play, running); }
.rider--walk .j--leg-far   { animation: walkThigh var(--step) linear infinite var(--play, running); animation-delay: calc(var(--step) / -2); }
.rider--walk .j--shin-far  { animation: walkShin  var(--step) linear infinite var(--play, running); animation-delay: calc(var(--step) / -2); }
.rider--walk .j--foot-far  { animation: walkFoot  var(--step) linear infinite var(--play, running); animation-delay: calc(var(--step) / -2); }
.rider--walk .j--arm-far     { animation: walkShoulder var(--step) linear infinite var(--play, running); animation-delay: calc(var(--step) / -2); }
.rider--walk .j--forearm-far { animation: walkElbow    var(--step) linear infinite var(--play, running); animation-delay: calc(var(--step) / -2); }
.rider--walk .j--torso { animation: walkTorso var(--step) ease-in-out infinite var(--play, running); }
.rider--walk .j--head  { animation: walkHead var(--step) ease-in-out infinite var(--play, running); animation-delay: -.12s; }
.rider--walk .j--pack  { animation: walkPack calc(var(--step) / 2) ease-in-out infinite var(--play, running); animation-delay: -.09s; }

@keyframes walkThigh {
  0% { transform: rotate(-17.1deg); }
  6.3% { transform: rotate(-19.9deg); }
  12.5% { transform: rotate(-15.4deg); }
  18.8% { transform: rotate(-7.1deg); }
  25% { transform: rotate(-3.7deg); }
  31.3% { transform: rotate(-5.2deg); }
  37.5% { transform: rotate(-6.1deg); }
  43.8% { transform: rotate(-4.8deg); }
  50% { transform: rotate(-0.4deg); }
  56.3% { transform: rotate(9.8deg); }
  62.5% { transform: rotate(7.2deg); }
  68.8% { transform: rotate(-8.7deg); }
  75% { transform: rotate(-18.7deg); }
  81.3% { transform: rotate(-26deg); }
  87.5% { transform: rotate(-30.5deg); }
  93.8% { transform: rotate(-30.6deg); }
  100% { transform: rotate(-17.1deg); }
}
@keyframes walkShin {
  0% { transform: rotate(2.2deg); }
  6.3% { transform: rotate(14.8deg); }
  12.5% { transform: rotate(12.6deg); }
  18.8% { transform: rotate(2.4deg); }
  25% { transform: rotate(2.2deg); }
  31.3% { transform: rotate(12.1deg); }
  37.5% { transform: rotate(21deg); }
  43.8% { transform: rotate(25.5deg); }
  50% { transform: rotate(23.5deg); }
  56.3% { transform: rotate(8.8deg); }
  62.5% { transform: rotate(14.5deg); }
  68.8% { transform: rotate(37.8deg); }
  75% { transform: rotate(48deg); }
  81.3% { transform: rotate(52deg); }
  87.5% { transform: rotate(49.9deg); }
  93.8% { transform: rotate(39.5deg); }
  100% { transform: rotate(2.2deg); }
}
@keyframes walkFoot {
  0% { transform: rotate(4.9deg); }
  6.3% { transform: rotate(5.1deg); }
  12.5% { transform: rotate(2.8deg); }
  18.8% { transform: rotate(4.7deg); }
  25% { transform: rotate(1.5deg); }
  31.3% { transform: rotate(-7deg); }
  37.5% { transform: rotate(-15deg); }
  43.8% { transform: rotate(-18.6deg); }
  50% { transform: rotate(-13.3deg); }
  56.3% { transform: rotate(-1.2deg); }
  62.5% { transform: rotate(-5.9deg); }
  68.8% { transform: rotate(-29deg); }
  75% { transform: rotate(-37.5deg); }
  81.3% { transform: rotate(-34.6deg); }
  87.5% { transform: rotate(-28.5deg); }
  93.8% { transform: rotate(-18.4deg); }
  100% { transform: rotate(4.9deg); }
}
@keyframes walkHip {
  0% { transform: translateY(2px); }
  6.3% { transform: translateY(1.7px); }
  12.5% { transform: translateY(1px); }
  18.8% { transform: translateY(0.3px); }
  25% { transform: translateY(0px); }
  31.3% { transform: translateY(0.3px); }
  37.5% { transform: translateY(1px); }
  43.8% { transform: translateY(1.7px); }
  50% { transform: translateY(2px); }
  56.3% { transform: translateY(1.7px); }
  62.5% { transform: translateY(1px); }
  68.8% { transform: translateY(0.3px); }
  75% { transform: translateY(0px); }
  81.3% { transform: translateY(0.3px); }
  87.5% { transform: translateY(1px); }
  93.8% { transform: translateY(1.7px); }
  100% { transform: translateY(2px); }
}
/* Плечо качается широко, локоть — скупо. Первая редакция плана давала ±14° на
   плече и до +30° на локте: рука при этом ни разу не выходила за силуэт корпуса
   (stroke-width 17, сустав плеча ровно на осевой) и на переднем махе оказывалась
   на 4.4 ед ВНУТРИ него. Замерено в браузере: с этими значениями вылет составляет
   12.7 ед вперёд и 18.3 ед назад. Локоть нарочно не догибается на переднем махе —
   иначе предплечье подворачивается к телу и съедает весь вынос. */
@keyframes walkShoulder {
  0% { transform: rotate(36deg); }
  12.5% { transform: rotate(25.5deg); }
  25% { transform: rotate(0deg); }
  37.5% { transform: rotate(-25.5deg); }
  50% { transform: rotate(-36deg); }
  62.5% { transform: rotate(-25.5deg); }
  75% { transform: rotate(0deg); }
  87.5% { transform: rotate(25.5deg); }
  100% { transform: rotate(36deg); }
}
@keyframes walkElbow {
  0% { transform: rotate(8deg); }
  12.5% { transform: rotate(9.2deg); }
  25% { transform: rotate(12deg); }
  37.5% { transform: rotate(14.8deg); }
  50% { transform: rotate(16deg); }
  62.5% { transform: rotate(14.8deg); }
  75% { transform: rotate(12deg); }
  87.5% { transform: rotate(9.2deg); }
  100% { transform: rotate(8deg); }
}
@keyframes walkTorso { 0%, 100% { transform: rotate(1.2deg); } 50% { transform: rotate(-1.2deg); } }
@keyframes walkHead { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes walkPack { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(1.5deg); } }

/* Педалирование: стопа привязана к педали обратной кинематикой, поэтому шатун
   и суставы обязаны крутиться одной длительностью --crank. 0 % — шатун на «3 часа».
   transform-origin: 3px 3px в системе fill-box — это локальный (0,0), то есть каретка. */
.rider--bike, .rider--ebike { --crank: calc(var(--wheel) * 2.6); }
.rider--bike .bump, .rider--ebike .bump { animation-duration: .86s; }
.crank { transform-box: fill-box; transform-origin: 3px 3px; animation: spin var(--crank) linear infinite var(--play, running); }
.crank--far { animation-delay: calc(var(--crank) / -2); }
.rider--bike .j--thigh-near, .rider--ebike .j--thigh-near { animation: pedalThigh var(--crank) linear infinite var(--play, running); }
.rider--bike .j--calf-near,  .rider--ebike .j--calf-near  { animation: pedalShin  var(--crank) linear infinite var(--play, running); }
.rider--bike .j--shoe-near,  .rider--ebike .j--shoe-near  { animation: pedalFoot  var(--crank) linear infinite var(--play, running); }
.rider--bike .j--thigh-far, .rider--ebike .j--thigh-far { animation: pedalThigh var(--crank) linear infinite var(--play, running); animation-delay: calc(var(--crank) / -2); }
.rider--bike .j--calf-far,  .rider--ebike .j--calf-far  { animation: pedalShin  var(--crank) linear infinite var(--play, running); animation-delay: calc(var(--crank) / -2); }
.rider--bike .j--shoe-far,  .rider--ebike .j--shoe-far  { animation: pedalFoot  var(--crank) linear infinite var(--play, running); animation-delay: calc(var(--crank) / -2); }
.rider--bike .j--torso-ride, .rider--ebike .j--torso-ride { animation: pedalTorso calc(var(--crank) / 2) ease-in-out infinite var(--play, running); }

@keyframes pedalThigh {
  0% { transform: rotate(-54.8deg); }
  8.3% { transform: rotate(-40.4deg); }
  16.7% { transform: rotate(-24.9deg); }
  25% { transform: rotate(-17.7deg); }
  33.3% { transform: rotate(-21.7deg); }
  41.7% { transform: rotate(-28deg); }
  50% { transform: rotate(-35.8deg); }
  58.3% { transform: rotate(-45.6deg); }
  66.7% { transform: rotate(-57deg); }
  75% { transform: rotate(-66.9deg); }
  83.3% { transform: rotate(-70.3deg); }
  91.7% { transform: rotate(-65.6deg); }
  100% { transform: rotate(-54.8deg); }
}
@keyframes pedalShin {
  0% { transform: rotate(60.9deg); }
  8.3% { transform: rotate(39.4deg); }
  16.7% { transform: rotate(18.8deg); }
  25% { transform: rotate(15.9deg); }
  33.3% { transform: rotate(35.6deg); }
  41.7% { transform: rotate(57.2deg); }
  50% { transform: rotate(77.3deg); }
  58.3% { transform: rotate(93.9deg); }
  66.7% { transform: rotate(104deg); }
  75% { transform: rotate(104.9deg); }
  83.3% { transform: rotate(96.2deg); }
  91.7% { transform: rotate(80.6deg); }
  100% { transform: rotate(60.9deg); }
}
@keyframes pedalFoot {
  0% { transform: rotate(-6.2deg); }
  8.3% { transform: rotate(0.9deg); }
  16.7% { transform: rotate(6.2deg); }
  25% { transform: rotate(1.8deg); }
  33.3% { transform: rotate(-13.8deg); }
  41.7% { transform: rotate(-29.2deg); }
  50% { transform: rotate(-41.6deg); }
  58.3% { transform: rotate(-48.3deg); }
  66.7% { transform: rotate(-47deg); }
  75% { transform: rotate(-38deg); }
  83.3% { transform: rotate(-26deg); }
  91.7% { transform: rotate(-15deg); }
  100% { transform: rotate(-6.2deg); }
}
@keyframes pedalTorso { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }

/* Индикатор батареи электровелосипеда: дышащая точка, вне ритма педалирования. */
.battery { transform-box: fill-box; transform-origin: center; animation: battery 1.9s ease-in-out infinite var(--play, running); }
@keyframes battery {
  0%, 100% { opacity: .45; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Самокат: вилка и дека — жёсткая связка, трясутся вместе через общий .bump,
   колени гасят толчок отдельным суставом. Крен корпуса — отдельный, более медленный ритм. */
.rider--scooter .bump { animation-duration: .78s; }
.rider--scooter .j--knee-near, .rider--scooter .j--knee-far { animation: bumpKnee .78s ease-in-out infinite var(--play, running); }
.rider--scooter .j--calf-near, .rider--scooter .j--calf-far { animation: bumpKnee .78s ease-in-out infinite var(--play, running); animation-delay: -.06s; }
.rider--scooter .j--lean { animation: lean 2.4s ease-in-out infinite var(--play, running); }

@keyframes lean { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }

/* Мотор: частая мелкая дрожь поверх медленной работы подвески. */
.rider--moped .bump { animation-duration: .92s; }
.shake { animation: idleShake .07s linear infinite var(--play, running); }
.rider--moped .j--lean { animation: lean 2.8s ease-in-out infinite var(--play, running); }

@keyframes idleShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(.35px, -.5px); }
  50% { transform: translate(-.3px, .35px); }
  75% { transform: translate(.25px, .4px); }
}

/* Клуб выхлопа: растёт, светлеет и сносится назад. */
.puff { transform-box: fill-box; transform-origin: center; animation: puff 1.5s ease-out infinite var(--play, running); }
.puff:nth-child(2) { animation-delay: -.5s; }
.puff:nth-child(3) { animation-delay: -1s; }
@keyframes puff {
  0% { opacity: .5; transform: translate(0, 0) scale(.3); }
  60% { opacity: .22; }
  100% { opacity: 0; transform: translate(-52px, -20px) scale(1.6); }
}

/* Кузов ходит по вертикали чаще, чем водитель кивает, — так читается подвеска.
   heave висит на .car__shell, а зеркало — на её родителе: анимация transform
   стёрла бы атрибут transform того же элемента. */
.car__shell { animation: heave .62s ease-in-out infinite var(--play, running); }
.rider--car .j--nod { animation: nod 1.3s ease-in-out infinite var(--play, running); animation-delay: -.2s; }
.rider--car .puff { animation-duration: 1.15s; }

@keyframes heave {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-1.6px); }
  62% { transform: translateY(.7px); }
}
@keyframes nod { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* --- Дорожная панель с доком --- */
.roadbar { background: var(--ink); margin-top: -2px; padding: 1rem 0 1.4rem; }
.roadbar__inner { display: flex; flex-direction: column; align-items: center; gap: .85rem; }
.dock {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
  background: rgb(255 248 232 / 7%); border: 2px solid var(--milk-14); border-radius: 999px; padding: .42rem;
  max-width: 100%;
}
.dock__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: var(--milk); border: 0; border-radius: 999px;
  min-height: 44px; padding: .5rem 1.05rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.dock__btn:hover { background: rgb(255 248 232 / 13%); }
.dock__btn.is-active { background: var(--sun); color: var(--ink); font-weight: 700; }
.dock__emoji { font-size: 1.12em; line-height: 1; }
.dock__caption { min-height: 1.5em; margin: 0; text-align: center; font-size: .95rem; color: var(--milk-70); }

/* --- Бегущая строка --- */
.ribbon { background: var(--ink); border-top: 2px dashed rgb(255 248 232 / 16%); overflow: hidden; padding: .78rem 0; }
.ribbon__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ribbon__track span {
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Зоны --- */
.zone { padding: clamp(3.4rem, 7.5vw, 6.2rem) 0; }
.zone--milk { background: var(--milk); }
.zone--ink { background: var(--ink); color: var(--milk); }
.zone--steps, .zone--faq { border-top: 2px dashed var(--ink-12); }

/* --- Бенто-карточки условий --- */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.2rem; }
.card {
  background: var(--card); border: 2px solid rgb(23 19 11 / 8%); border-radius: var(--r-card);
  padding: 1.7rem; display: flex; flex-direction: column; gap: .55rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgb(23 19 11 / 10%); }
.card__icon { width: 46px; height: 46px; margin-bottom: .35rem; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.card p { color: var(--ink-70); font-size: .97rem; line-height: 1.55; }
.card--tomato { background: var(--tomato); border-color: var(--tomato); color: var(--milk); }
.card--tomato p { color: rgb(255 248 232 / 88%); }

/* --- Цифры --- */
.zone--ink .h2 { color: var(--milk); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.3rem; }
.stats__item {
  display: flex; flex-direction: column-reverse; gap: .45rem;
  border: 2px solid var(--milk-14); border-radius: 22px; padding: 1.35rem 1.45rem;
}
.stats__item dd {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1; color: var(--sun); white-space: nowrap;
}
.stats__item dd sup { font-size: .55em; }
.stats__item dt { font-size: .88rem; color: var(--milk-70); }

/* --- Прикидка дохода --- */
.estimator {
  display: grid; grid-template-columns: 1fr; gap: 1.8rem;
  background: var(--card); border: 2px solid rgb(23 19 11 / 8%); border-radius: 30px;
  padding: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2rem;
}
.estimator__label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: .75rem; }
.estimator__cities { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.estimator__cities legend { padding: 0; margin-bottom: .75rem; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span {
  display: inline-block; background: var(--card); border: 2px solid rgb(23 19 11 / 25%); border-radius: 999px;
  padding: .58rem 1.1rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover span { border-color: rgb(23 19 11 / 55%); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--milk); }
.chip input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }

.estimator__hours { margin-top: .4rem; }
.estimator__hours output { font-family: var(--font-display); font-weight: 700; color: var(--tomato); }
input[type="range"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 10px; margin: .7rem 0 .5rem; border-radius: 999px;
  background: var(--ink-12); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); border: 4px solid var(--ink);
  box-shadow: 0 3px 8px rgb(23 19 11 / 25%);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun); border: 4px solid var(--ink);
  box-shadow: 0 3px 8px rgb(23 19 11 / 25%);
}
.estimator__scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-55); }

.estimator__result {
  background: linear-gradient(160deg, #FFD93F, var(--sun) 70%);
  border-radius: 22px; padding: 1.7rem 1.5rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.estimator__result .estimator__label { margin-bottom: 0; }
.estimator__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.15; }

/* --- Трекер шагов --- */
.tracker { list-style: none; margin: 2.6rem 0 2.2rem; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.9rem; }
.tracker__step { position: relative; padding-left: 2.5rem; }
.tracker__step::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--ink);
}
.tracker__step:first-child::before { background: var(--tomato); animation: pulse 2.2s ease-out infinite; }
.tracker__step::after {
  content: ""; position: absolute; left: 10px; top: 32px; bottom: -1.7rem;
  border-left: 3px dashed rgb(23 19 11 / 25%);
}
.tracker__step:last-child::after { content: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 77 28 / 45%); }
  70% { box-shadow: 0 0 0 14px rgb(255 77 28 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(255 77 28 / 0%); }
}
.tracker__tag {
  display: inline-block; background: var(--card); border: 2px solid var(--ink-12); border-radius: 999px;
  padding: .32rem .8rem; font-weight: 600; font-size: .8rem; color: var(--ink-70); margin-bottom: .7rem;
}
.tracker__step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; margin-bottom: .45rem; }
.tracker__step p { color: var(--ink-70); font-size: .98rem; max-width: 38ch; }
.steps__cta { text-align: center; margin-top: 1.4rem; }

/* --- FAQ --- */
.faq { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.faq__list { display: grid; gap: .75rem; }
.faq-item { background: var(--card); border: 2px solid rgb(23 19 11 / 8%); border-radius: 18px; padding: 0 1.35rem; }
.faq-item summary {
  list-style: none; position: relative; cursor: pointer;
  padding: 1.05rem 2.4rem 1.05rem 0; min-height: 44px;
  font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .1rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--tomato);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 1.15rem; color: var(--ink-70); max-width: 62ch; }

/* --- Финал --- */
.finale {
  background: radial-gradient(130% 130% at 50% 0%, #FFDA3D 0%, var(--sun) 55%, #FFC400 100%);
  padding: clamp(4.2rem, 9vw, 7rem) 0;
  text-align: center;
}
.display--finale { font-size: clamp(2rem, 5.2vw, 4.2rem); margin-bottom: 2.1rem; }
.finale__note { max-width: 47ch; margin: 1.4rem auto 0; font-size: .92rem; color: rgb(23 19 11 / 65%); }

/* --- Футер --- */
.footer { background: var(--ink); color: rgb(255 248 232 / 62%); padding: 3rem 0 4.5rem; font-size: .88rem; }
.footer__inner p { max-width: 78ch; margin-bottom: .55rem; }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .05em; color: var(--milk); margin-bottom: 1rem; }
.footer a { color: var(--sun); text-underline-offset: 4px; }
.footer__copy { margin-top: 1.5rem; color: rgb(255 248 232 / 38%); }

/* --- Служебные страницы (политика) --- */
.legal { background: var(--milk); padding: clamp(2.4rem, 6vw, 4.4rem) 0 clamp(3rem, 7vw, 5rem); }
.legal__inner { width: min(760px, 100% - 2.6rem); margin-inline: auto; }
.legal__updated { color: var(--ink-55); font-size: .92rem; }
.legal__lead { margin-top: 1.5rem; }
.legal h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem); line-height: 1.22;
  margin: 2.3rem 0 .75rem;
}
.legal p { margin-bottom: .85rem; }
.legal ul { margin: 0 0 .85rem; padding-left: 1.35rem; }
.legal li { margin-bottom: .4rem; }
.legal a { text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* --- Мобильная CTA-панель --- */
.mobile-cta { display: none; }

/* --- Reveal --- */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.bento .reveal:nth-child(2), .stats .reveal:nth-child(2), .tracker .reveal:nth-child(2) { transition-delay: .07s; }
.bento .reveal:nth-child(3), .stats .reveal:nth-child(3), .tracker .reveal:nth-child(3) { transition-delay: .14s; }
.bento .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .21s; }
.bento .reveal:nth-child(5) { transition-delay: .28s; }
.bento .reveal:nth-child(6) { transition-delay: .35s; }

/* --- Десктоп-раскладки --- */
@media (min-width: 721px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__a { grid-column: span 5; }
  .bento__b { grid-column: span 4; }
  .bento__c { grid-column: span 3; }
  .bento__d { grid-column: span 3; }
  .bento__e { grid-column: span 4; }
  .bento__f { grid-column: span 5; }

  .stats { grid-template-columns: repeat(4, 1fr); }

  .tracker { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .tracker__step { padding-left: 0; padding-top: 2.4rem; }
  .tracker__step::before { top: 0; left: 2px; }
  .tracker__step::after {
    left: 40px; right: -1.4rem; top: 9px; bottom: auto;
    border-left: 0; border-top: 3px dashed rgb(23 19 11 / 25%);
  }
}
@media (min-width: 900px) {
  .estimator {
    grid-template-columns: 1.25fr 1fr;
    grid-template-areas:
      "cities result"
      "hours result";
    align-items: center;
    column-gap: 2.6rem;
  }
  .estimator__cities { grid-area: cities; align-self: end; }
  .estimator__hours { grid-area: hours; align-self: start; }
  .estimator__result { grid-area: result; padding: 2.1rem 1.8rem; }
  .faq { grid-template-columns: .85fr 1.15fr; gap: 2rem 3.5rem; }
  .faq__head { position: sticky; top: 96px; }
}

/* --- Мобильная адаптация --- */
@media (max-width: 720px) {
  body { padding-bottom: 86px; }
  .page-legal { padding-bottom: 0; }
  .topbar__nav { display: none; }
  .topbar__inner { justify-content: space-between; }

  .display { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  h1.display { max-width: 12ch; margin-inline: auto; }
  .hero__lead { font-size: 1rem; max-width: 34ch; overflow-wrap: anywhere; }
  .hero__cta { flex-direction: column; gap: .95rem; }
  .hero__chips li { font-size: .82rem; padding: .42rem .85rem; }

  /* На узких экранах ужимаем не саму сцену, а полосу, которую она занимает под
     текстом: сцена всегда тянется на всю обёртку, иначе она отвяжется от низа
     и наедет на абзац. */
  .hero__stage { padding-bottom: 250px; }
  .dock { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; border-radius: 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .dock::-webkit-scrollbar { display: none; }
  .dock__btn { scroll-snap-align: center; padding: .5rem .85rem; font-size: .88rem; }
  .dock__caption { font-size: .88rem; padding-inline: 1rem; }

  .stats__item dd { white-space: normal; }
  .estimator__value { font-size: 1.5rem; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgb(23 19 11 / 93%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .mobile-cta .btn { width: 100%; box-shadow: none; border-width: 2.5px; }
}

/* --- Сниженная анимация --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
  .rider { transform: none; }
  .ribbon__track { animation: none !important; }
}
