/* Clash Grotesk — Indian Type Foundry, лицензия Fontshare (см. DESIGN.md §3).
   Файлы лежат рядом, а не тянутся с CDN: страница про приватность не имеет права
   отдавать IP посетителя третьей стороне ради шрифта. */
@font-face {
  font-family: 'Clash Grotesk';
  src: url('/assets/fonts/clash-grotesk-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Grotesk';
  src: url('/assets/fonts/clash-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Clash Grotesk';
  src: url('/assets/fonts/clash-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Токены — светлая ветка DESIGN.md §2, и только она. Тёмной темы на сайте нет
   намеренно: приложение по умолчанию светлое, и один предсказуемый вид важнее
   уважения к системной настройке для страницы, которую отправляют ссылкой.
   Значения контраста измерены в DESIGN.md — подбирать их на глаз запрещено. */
:root {
  --surface: #f2f8fa;
  --surface-fill: #e0e7ea;
  --ink: #00272e;
  --ink-dim: #4e5f65;
  --hairline: rgba(0, 39, 46, 0.13);
  --hairline-strong: rgba(0, 39, 46, 0.26);
  --accent: #adff00;
  --accent-text: #22664b;
  --attention: #c9930a;
  --attention-text: #7a5000;
  --overdue: #c24b33;
  --overdue-text: #a63524;
  /* Lime на светлом — только заливка, текст поверх всегда ink (DESIGN.md §2). */
  --on-accent: #00272e;

  --ink-80: rgba(0, 39, 46, 0.8);
  --ink-55: rgba(0, 39, 46, 0.55);
  --ink-35: rgba(0, 39, 46, 0.35);
  --ink-20: rgba(0, 39, 46, 0.2);
  --track: rgba(0, 39, 46, 0.11);

  --radius-screen: 22px;
  --shadow-screen: 0 24px 60px -32px rgba(0, 39, 46, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
  /* Полосы прокрутки — тоже поверхность бренда, а не дефолт браузера. */
  scrollbar-color: var(--ink-35) var(--surface-fill);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Clash Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.03rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent-text);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface-fill);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-35);
  border: 3px solid var(--surface-fill);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-55);
}

a {
  color: var(--ink);
  text-decoration-color: var(--hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: currentColor;
}

/* Одиночная ссылка-строка в прозе получает высоту цели касания
   вертикальным паддингом, не ломая строчный поток. */
p > a:only-child {
  display: inline-block;
  padding-block: 9px;
  margin-block: -9px;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Гасим ровно то, что двигается: единственную анимацию появления экрана.
   Смена цвета кнопки движением не является и настройки не касается —
   глобальный запрет отнял бы у неё полезную обратную связь заодно. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-screen {
    animation: none;
  }

  .brand:hover .brand-tile {
    transform: none;
  }

  .pt-swap {
    animation: none;
  }
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 12px;
  text-decoration: none;
}

/* ─── Шапка ─────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(14px) saturate(0.85);
  border-bottom: 1px solid var(--hairline);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.19rem;
  margin-right: auto;
}

.brand-tm {
  margin-left: 0.12em;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0;
  vertical-align: 0.58em;
}

/* Логотип в шапке — та же связка, что в иконке приложения: лаймовая лента
   на петролевом поле. Лайм как заливка внутри плитки разрешён (brand README,
   «Branded dark use»), тогда как лайм по светлому фону дал бы контраст 1.5:1
   и запрещён DESIGN.md §9. */
.brand-tile {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  border-radius: 8px;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-tile {
  transform: scale(1.06);
}

.brand-tile .plate {
  fill: var(--ink);
}

.brand-tile .ribbon {
  fill: var(--accent);
}

/* Лента складывается по секциям: «один маршрут, сложенный через время»
   из design/brand/README.md. Класс ставит скрипт, поэтому при выключенном
   JS логотип нарисован целиком, а не спрятан в стартовом состоянии. */
.brand-fold .ribbon path {
  transform-box: fill-box;
  animation: ribbon-fold 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-fold .ribbon path:nth-of-type(1) {
  transform-origin: center bottom;
  animation-name: ribbon-stem;
  animation-delay: 90ms;
}

.brand-fold .ribbon path:nth-of-type(2) {
  transform-origin: left center;
  animation-delay: 200ms;
}

.brand-fold .ribbon path:nth-of-type(3) {
  transform-origin: center top;
  animation-name: ribbon-bowl;
  animation-delay: 310ms;
}

@keyframes ribbon-stem {
  from { transform: translateY(-42%) scaleY(0.55); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes ribbon-fold {
  from { transform: translateX(-34%) scaleX(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes ribbon-bowl {
  from { transform: translateY(38%) scale(0.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ─── Одометр ────────────────────────────────────────────────────────── */

.odo-win {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  vertical-align: baseline;
  line-height: 1;
}

.odo-strip {
  display: block;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.28, 1);
  will-change: transform;
}

.odo-strip span {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.odo-rank-0 { transition-duration: 880ms; }
.odo-rank-1 { transition-duration: 810ms; }
.odo-rank-2 { transition-duration: 740ms; }
.odo-rank-3 { transition-duration: 670ms; }
.odo-rank-4 { transition-duration: 600ms; }
.odo-rank-5 { transition-duration: 530ms; }
.odo-rank-6 { transition-duration: 460ms; }
.odo-rank-7 { transition-duration: 420ms; }
.odo-index-0 { transition-delay: 0ms; }
.odo-index-1 { transition-delay: 45ms; }
.odo-index-2 { transition-delay: 90ms; }
.odo-index-3 { transition-delay: 135ms; }
.odo-index-4 { transition-delay: 180ms; }
.odo-index-5 { transition-delay: 225ms; }
.odo-index-6 { transition-delay: 270ms; }
.odo-index-7 { transition-delay: 315ms; }
.odo-target-10 { transform: translateY(-50%); }
.odo-target-11 { transform: translateY(-55%); }
.odo-target-12 { transform: translateY(-60%); }
.odo-target-13 { transform: translateY(-65%); }
.odo-target-14 { transform: translateY(-70%); }
.odo-target-15 { transform: translateY(-75%); }
.odo-target-16 { transform: translateY(-80%); }
.odo-target-17 { transform: translateY(-85%); }
.odo-target-18 { transform: translateY(-90%); }
.odo-target-19 { transform: translateY(-95%); }

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-dim);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Ниже 700px навигация не пропадает, а переносится второй строкой:
   на телефоне это основной способ добраться до Support и Privacy, и
   прятать их за отсутствием элемента управления нельзя. Перенос, а не
   горизонтальная прокрутка — ничего не остаётся за краем. */
@media (max-width: 700px) {
  /* В две строки шапка занимала бы пятую часть экрана постоянно. Страница
     листается линейно, поэтому здесь она обычная, а не залипающая. */
  .site-head {
    position: static;
    backdrop-filter: none;
    background: var(--surface);
  }

  .site-head .wrap {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-bottom: 2px;
  }

  .brand {
    margin-right: 0;
    width: 100%;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0 18px;
    border-top: 1px solid var(--hairline);
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 3.25rem;
  padding: 0 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-fill);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-note {
  font-size: 0.84rem;
  color: var(--ink-dim);
  margin: 20px 0 0;
}

/* ─── Early access ─────────────────────────────────────────────────── */

.early-access-form {
  max-width: 980px;
  margin-top: 40px;
  padding: 28px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
}

.waitlist-form-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 248, 250, 0.2);
}

.waitlist-form-head p {
  max-width: 58ch;
  margin: 0;
  color: rgba(242, 248, 250, 0.76);
  font-size: 0.86rem;
}

.waitlist-form-head .waitlist-title {
  color: var(--surface);
  font-size: 1.12rem;
  font-weight: 500;
}

.waitlist-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(190px, 0.8fr) auto;
  gap: 16px;
  align-items: end;
}

.waitlist-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-label {
  color: rgba(242, 248, 250, 0.78);
  font-size: 0.82rem;
  font-weight: 500;
}

.early-access-form input[type="email"],
.early-access-form select {
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              background 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.early-access-form input[type="email"]::placeholder {
  color: var(--ink-dim);
  opacity: 1;
}

.early-access-form input[type="email"]:hover,
.early-access-form select:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--surface));
}

.early-access-form input[type="email"]:focus,
.early-access-form select:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 36%, transparent);
  outline-offset: 2px;
}

.waitlist-row .btn {
  min-height: 3.5rem;
  padding-inline: 26px;
  white-space: nowrap;
}

.waitlist-row .btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.consent-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  max-width: 760px;
  margin-top: 18px;
  color: rgba(242, 248, 250, 0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-row input {
  appearance: none;
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid rgba(242, 248, 250, 0.72);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.consent-row input::before {
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  content: '';
  transform: rotate(-45deg) scale(0);
}

.consent-row input:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.consent-row input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.consent-row a {
  color: var(--surface);
  text-underline-offset: 3px;
}

.waitlist-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

.waitlist-status:empty {
  display: none;
}

.waitlist-status[data-state="error"] { color: #ffb4a5; }
.waitlist-status[data-state="success"] { color: var(--accent); }
.waitlist-status[data-state="pending"] { color: rgba(242, 248, 250, 0.76); }

.early-access-form[data-complete="true"] {
  box-shadow: inset 0 -4px 0 var(--accent);
}

.waitlist-honeypot {
  position: fixed;
  inset: auto auto 0 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 760px) {
  .early-access-form {
    padding: 22px;
  }

  .waitlist-row {
    grid-template-columns: 1fr;
  }

  .waitlist-row .btn {
    width: 100%;
    margin-top: 2px;
  }
}

/* ─── Секции и типографика ──────────────────────────────────────────── */

section {
  padding: 92px 0;
  scroll-margin-top: 78px;
}

/* ─── Ритм фонов ──────────────────────────────────────────────────────
   Три тона из DESIGN.md §2, а не декоративные оттенки: базовая
   поверхность, тональная заливка ниже фона и одна тёмная ветка
   Deep River. Смена тона — сам разделитель, поэтому волосяная линия
   нужна только там, где два соседа одного тона. */

.band-tint {
  background: var(--surface-fill);
}

.band-base + .band-base {
  border-top: 1px solid var(--hairline);
}

/* Единственное переключение темы на странице, и оно осознанное: раздел о
   передаче истории — эмоциональный пик, и только на тёмном лайм по
   DESIGN.md §2 разрешён как цвет текста. Остальная страница остаётся
   светлой; это не альтернация фонов, а одна смена. */
.band-dark {
  --surface: #00272e;
  --surface-fill: #0b3640;
  --ink: #dce9ea;
  --ink-dim: #8fa9ae;
  --hairline: rgba(213, 220, 223, 0.16);
  --hairline-strong: rgba(213, 220, 223, 0.34);
  --accent-text: #adff00;
  --track: rgba(213, 220, 223, 0.16);
  --shadow-screen: 0 30px 70px -30px rgba(0, 0, 0, 0.66);
  background: var(--surface);
  color: var(--ink);
}

/* ─── Крупная лента сроков (раздел Deadlines) ─────────────────────────
   Строки идут во всю ширину контейнера: полосы становятся длинными, и
   разница в скорости их заполнения наконец читается. */

.status-list-lg .status-item {
  padding: 22px 0 18px;
}

.status-list-lg .status-row {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  padding-bottom: 14px;
}

.status-list-lg .dot {
  width: 12px;
  height: 12px;
}

.status-list-lg .track {
  height: 5px;
  border-radius: 3px;
}

/* ─── Полоса чисел (раздел Costs) ─────────────────────────────────────
   Числа встают в ряд во всю ширину и отделены волосяными линиями, а не
   собраны в колонку рядом с текстом. */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px 44px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 44px 0 52px;
}

.costs-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .costs-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* ─── Утверждение и четыре строки (раздел Documents) ──────────────────
   Крупная строка вместо заголовка с абзацем: раздел про один жест, и
   composition это повторяет. */

.pull {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.018em;
  max-width: 30ch;
  margin: 0 0 18px;
  text-wrap: balance;
}

.four-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  /* Вертикальный зазор обязателен: без него линия сверху читается как
     нижняя рамка предыдущей строки, то есть как рамка вокруг каждой. */
  gap: 34px 40px;
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
}

.four-up.facts {
  margin-bottom: 48px;
}

.four-up li {
  padding: 20px 0 0;
  border-top: 1px solid var(--hairline-strong);
  font-size: 0.97rem;
  color: var(--ink-dim);
}

.four-up strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 5px;
}

/* ─── Сличение «уезжает / не уезжает» (раздел Privacy) ────────────────
   Асимметрия один-к-пяти и есть содержание раздела, поэтому колонки
   тоже неравные, а не разложены поровну. */

.ledger-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: start;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .ledger-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.ledger-split .ledger-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-strong);
  margin-bottom: 0;
}

/* ─── Тёмная секция: экран уходит за край ─────────────────────────────
   На тёмном светлый скриншот сам становится источником света, поэтому
   он подрезан краем контейнера, а не аккуратно вписан в колонку. */

.bleed-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

@media (max-width: 940px) {
  .bleed-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .bleed-pair .screen {
    max-width: 420px;
  }
}


h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 20ch;
  text-wrap: balance;
}

h3 {
  font-size: 1.19rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 8px;
}

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 54ch;
  margin: 0 0 34px;
}

p {
  max-width: 64ch;
}

.muted {
  color: var(--ink-dim);
}

.tight {
  margin-bottom: 0;
}

.privacy-proof-note { margin-top: 40px; }

/* ─── Stat block: label сверху, число снизу, воздух вместо рамок ─────── */

.stat-label {
  font-size: max(12px, 0.78rem);
  color: var(--ink-dim);
  margin: 0 0 2px;
}

.num {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  display: block;
}

.num-stat {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

/* Единица — строчными, 0.32em от числа, цветом ink-dim (DESIGN.md §3). */
.u {
  font-size: max(12px, 0.36em);
  font-weight: 400;
  color: var(--ink-dim);
  margin-left: 0.32em;
  letter-spacing: 0;
}

/* ─── Строка статуса: точка + слово + значение ───────────────────────── */

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-item {
  padding: 17px 0 13px;
  border-top: 1px solid var(--hairline);
}

.status-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.status-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 9px;
  font-size: 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  align-self: center;
  box-shadow: 0 0 0 1px var(--ink-20);
}

.dot-ok {
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--ink-35);
}

.dot-attention {
  background: var(--attention);
}

.dot-overdue {
  background: var(--overdue);
}

.status-row .name {
  font-weight: 500;
}

.status-row .val {
  margin-left: auto;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.state-ok {
  color: var(--accent-text);
}

.state-attention {
  color: var(--attention-text);
}

.state-overdue {
  color: var(--overdue-text);
}

/* Полоса прогресса срока: трек ниже фона, заливка по статусу. */
.track {
  height: 3px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}

.track span {
  display: block;
  height: 100%;
  border-radius: 2px;
  /* Значение живёт в width, поэтому без скрипта полоса просто нарисована.
     Рост — в scaleX, чтобы анимация шла на композиторе, а не в layout. */
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.w-100 { width: 100%; }
.w-97 { width: 97%; }
.w-77 { width: 77%; }
.w-63 { width: 63%; }
.w-40 { width: 40%; }
.w-30 { width: 30%; }

[data-grow="380"] { transition-duration: 380ms; }
[data-grow="520"] { transition-duration: 520ms; }
[data-grow="620"] { transition-duration: 620ms; }
[data-grow="900"] { transition-duration: 900ms; }
[data-grow-delay="90"] { transition-delay: 90ms; }
[data-grow-delay="180"] { transition-delay: 180ms; }
[data-grow-delay="270"] { transition-delay: 270ms; }
.grow-ready { --p: 0; }

.track .fill-ok {
  background: var(--accent);
}

.track .fill-attention {
  background: var(--attention);
}

.track .fill-overdue {
  background: var(--overdue);
}

/* ─── Горизонтальный бар-чарт: подписи вне заливки (DESIGN.md §5) ────── */

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li {
  padding: 14px 0 0;
}

.bar-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.94rem;
  margin-bottom: 7px;
}

.bar-line .v {
  margin-left: auto;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ink-35);
  transform: scaleX(var(--p, 1));
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-track .lead {
  background: var(--accent);
}

.bar-track .second {
  background: var(--ink-80);
}

.bar-track .third {
  background: var(--ink-55);
}

/* ─── Чипы выбора: язык Selection chip из приложения ─────────────────── */

/* ─── Скриншоты приложения ──────────────────────────────────────────── */

.screen {
  border-radius: var(--radius-screen);
  overflow: hidden;
  box-shadow: var(--shadow-screen), inset 0 0 0 1px var(--hairline);
  background: var(--surface);
  line-height: 0;
}

.screen picture {
  display: block;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Кадрирование средствами CSS: файл остаётся полным, страница показывает
   ровно ту часть экрана, которая несёт утверждение раздела. */
.screen-crop img {
  aspect-ratio: 720 / 900;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.shot-caption {
  font-size: max(12px, 0.78rem);
  color: var(--ink-dim);
  margin: 14px 0 0;
  text-align: center;
}

.screen-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Пара экранов доказывает «то же самое на Android» — для этого достаточно
   верха каждого экрана, а не всей их высоты. */
.screen-pair .screen img {
  aspect-ratio: 720 / 1090;
  height: auto;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 620px) {
  .screen-pair {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Hero показывает верх экрана: крупное число и статусы. Целиком экран здесь
   слишком высокий — он утопил бы заголовок ниже линии сгиба. */
.screen-hero img {
  aspect-ratio: 720 / 1070;
  height: auto;
  object-fit: cover;
  object-position: top;
}

/* Единственный авторский момент движения: экран в первом блоке проявляется
   из мягкой расфокусировки. Стартовое состояние уже видимо, поэтому без JS
   и без риска пустого места, если анимация не проиграет. */
.hero-screen {
  animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes settle {
  from {
    transform: translateY(14px) scale(0.985);
    filter: blur(4px);
    opacity: 0.55;
  }
  to {
    transform: none;
    filter: blur(0);
    opacity: 1;
  }
}

/* ─── Раскладки ─────────────────────────────────────────────────────── */

.hero {
  padding: clamp(60px, 9vw, 112px) 0 96px;
  border-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 72px;
  align-items: center;
}

@media (max-width: 940px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }
}

/* ─── Реестр «уезжает / не уезжает» ─────────────────────────────────── */

.ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger li {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.97rem;
}

.ledger li:last-child {
  border-bottom: 1px solid var(--hairline);
}

.ledger-head {
  font-size: max(12px, 0.78rem);
  color: var(--ink-dim);
  margin: 0 0 8px;
}

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

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 46px 0 60px;
  font-size: 0.88rem;
  color: var(--ink-dim);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}

.foot-choice {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font: inherit;
  cursor: pointer;
}

.site-foot a {
  color: var(--ink-dim);
  text-decoration: none;
}

.site-foot a:hover,
.foot-choice:hover {
  color: var(--ink);
}

.foot-choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Website analytics consent ───────────────────────────────────── */

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent {
  position: fixed;
  z-index: 40;
  inset: auto 0 0;
  border-top: 1px solid rgba(242, 248, 250, 0.28);
  background: var(--ink);
  color: var(--surface);
}

.analytics-consent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding-block: 24px;
}

.analytics-consent-title,
.analytics-consent-copy {
  margin: 0;
  color: var(--surface);
}

.analytics-consent-title {
  font-size: 1.08rem;
  font-weight: 500;
}

.analytics-consent-copy {
  max-width: 67ch;
  margin-top: 4px;
  color: rgba(242, 248, 250, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.analytics-consent-copy a {
  color: var(--surface);
  text-underline-offset: 3px;
}

.analytics-consent-actions {
  display: flex;
  gap: 10px;
}

.analytics-consent-actions .btn {
  min-width: 12rem;
}

.analytics-decline {
  border: 1.5px solid rgba(242, 248, 250, 0.72);
  background: transparent;
  color: var(--surface);
}

.analytics-decline:hover {
  background: rgba(242, 248, 250, 0.1);
}

@media (max-width: 760px) {
  .analytics-consent-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 20px;
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .analytics-consent-actions {
    grid-template-columns: 1fr;
  }
}

/* ─── Текстовые страницы (privacy / support / delete) ───────────────── */

.doc {
  padding: 56px 0 92px;
  border-top: 0;
}

.doc .wrap {
  max-width: 720px;
}

.doc h1 {
  font-size: clamp(1.94rem, 4.6vw, 2.75rem);
  margin-bottom: 12px;
}

.doc h2 {
  font-size: 1.38rem;
  font-weight: 500;
  margin: 46px 0 14px;
  max-width: none;
}

.doc h3 {
  font-size: 1.06rem;
  margin: 30px 0 8px;
}

.doc p,
.doc li {
  font-size: 1.03rem;
  color: var(--ink);
  max-width: 72ch;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin: 9px 0;
}

.doc .updated {
  font-size: 0.84rem;
  color: var(--ink-dim);
  margin: 0 0 8px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.94rem;
}

.doc th,
.doc td {
  text-align: left;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.doc th {
  font-weight: 500;
  color: var(--ink-dim);
  font-size: max(12px, 0.81rem);
}

.doc td {
  font-feature-settings: 'tnum';
}

.cookie-table {
  table-layout: fixed;
}

.cookie-table code {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .cookie-table,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table td {
    display: block;
    width: 100%;
  }

  .cookie-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cookie-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .cookie-table td {
    padding: 0;
    border: 0;
  }

  .cookie-table td + td {
    margin-top: 12px;
  }

  .cookie-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-dim);
    content: attr(data-label);
    font-size: max(12px, 0.78rem);
    font-weight: 500;
  }
}

.callout {
  background: var(--surface-fill);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 26px 0;
}

.callout p {
  margin: 0;
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── Живой выбор типа двигателя ──────────────────────────────────────
   Раздел не рассказывает, что приложение перестраивается под машину, а
   даёт это проверить. Работает без скрипта: radio + `:has()`. Скрипт
   добавляет только переход между списками. */

.pt-demo {
  margin-top: 4px;
}

.pt-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.pt-legend {
  font-size: max(12px, 0.78rem);
  color: var(--ink-dim);
  padding: 0;
  margin: 0 0 10px;
}

.pt-chips.vt-chips {
  margin-bottom: 22px;
}

.pt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 38px;
  padding: 0;
}

/* Скрыт визуально, но остаётся в фокусной последовательности и доступен
   скринридеру — потому это radio, а не div с обработчиком. */
.pt-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pt-chips label {
  user-select: none;
  -webkit-user-select: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--surface-fill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-chips label:hover {
  background: color-mix(in srgb, var(--surface-fill) 70%, var(--ink) 8%);
}

.pt-chips input:checked + label {
  background: var(--accent);
  color: var(--on-accent);
}

.pt-chips input:focus-visible + label {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.pt-count {
  font-size: max(12px, 0.78rem);
  color: var(--ink-dim);
  margin: 0 0 4px;
}

.pt-list {
  display: none;
}

/* Без поддержки :has() остаётся список по умолчанию — не все десять. */
.pt-list[data-default] {
  display: block;
}

@supports selector(:has(*)) {
  .pt-list[data-default] {
    display: none;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-ICE_PETROL:checked) .pt-list[data-pt="ICE_PETROL"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-ICE_DIESEL:checked) .pt-list[data-pt="ICE_DIESEL"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-HEV:checked) .pt-list[data-pt="HEV"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-PHEV:checked) .pt-list[data-pt="PHEV"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-BEV:checked) .pt-list[data-pt="BEV"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-HYDROGEN:checked) .pt-list[data-pt="HYDROGEN"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-LPG:checked) .pt-list[data-pt="LPG"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-LPG_ONLY:checked) .pt-list[data-pt="LPG_ONLY"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-CNG:checked) .pt-list[data-pt="CNG"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-car:checked):has(#pt-CNG_ONLY:checked) .pt-list[data-pt="CNG_ONLY"][data-vt="car"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-ICE_PETROL:checked) .pt-list[data-pt="ICE_PETROL"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-ICE_DIESEL:checked) .pt-list[data-pt="ICE_DIESEL"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-HEV:checked) .pt-list[data-pt="HEV"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-PHEV:checked) .pt-list[data-pt="PHEV"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-BEV:checked) .pt-list[data-pt="BEV"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-HYDROGEN:checked) .pt-list[data-pt="HYDROGEN"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-LPG:checked) .pt-list[data-pt="LPG"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-LPG_ONLY:checked) .pt-list[data-pt="LPG_ONLY"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-CNG:checked) .pt-list[data-pt="CNG"][data-vt="moto"] {
    display: block;
  }

  .pt-demo:has(#vt-moto:checked):has(#pt-CNG_ONLY:checked) .pt-list[data-pt="CNG_ONLY"][data-vt="moto"] {
    display: block;
  }
}

.pt-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-items li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.97rem;
}

.pt-items .every {
  margin-left: auto;
  color: var(--ink-dim);
  font-size: max(12px, 0.78rem);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

/* Пара «каталог + живой экран»: списки слева, мото-гараж справа.
   Скриншот прижат к верху — списки меняют высоту при переключении. */
.pt-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}

.pt-shot {
  max-width: 360px;
  justify-self: center;
}

/* Кроп глубже общего: строка «Chain clean & lube» — весь смысл кадра —
   сидит на двух третях высоты экрана. */
.pt-shot .screen-crop img {
  aspect-ratio: 720 / 1055;
}

@media (max-width: 940px) {
  .pt-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.pt-swap {
  animation: pt-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pt-in {
  from {
    opacity: 0.3;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
