/* ─────────────────────────────────────────────────────────────────────────────
   Страница пилотов raceflow.ru/pilots — вариант А «Линия» с холста
   «Лендинг для пилотов». Оформлена как приложение пилота, а не как «Эфир»
   главной: тёмный фон с фиолетовым оттенком, системный шрифт iOS и одна
   линия, которая становится волной, трассой, звуком и рацией — как в туре
   первого запуска приложения. Цвета — токены приложения: RF (RFDesign.swift)
   и тёмная палитра онбординга (OnboardingArt.swift).

   Стилей в атрибутах нет: Caddy отдаёт страницу с тем же строгим CSP, что и
   главную, без 'unsafe-inline'. У SVG — только атрибуты представления
   (fill, stroke), они под CSP не попадают.
   ───────────────────────────────────────────────────────────────────────── */

/* Golos — запасной шрифт там, где нет San Francisco (Android, Windows).
   На iPhone и Mac файлы не скачиваются: первым в списке стоит системный */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/GolosText-cyrillic-400600.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 600;
  font-display: swap;
  src: url('/fonts/GolosText-latin-400600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0b12;
  --card: #1c1a24;
  --card-2: #26242c;
  --activity: #1c1c1e;
  --bezel: #2a2830;

  --text: #ffffff;
  --body: rgba(235, 235, 245, 0.72);
  --soft: #ebebf5;
  --dim: #c7c7cc;
  --muted: #a1a1a8;

  --accent: #bf5af2;
  --accent-fill: #9a4bd6;
  --good: #30d158;
  --live: #ff453a;

  --edge: rgba(255, 255, 255, 0.1);
  --edge-2: rgba(255, 255, 255, 0.14);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Golos Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Golos Text', 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.skip:focus {
  left: 8px;
}

/* Градиенты и узоры, на которые ссылаются рисунки страницы. Не display: none —
   иначе часть браузеров не рисует градиенты, объявленные в скрытом SVG */
.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 76px;
}

.top__start {
  display: flex;
  align-items: center;
  gap: 12px clamp(14px, 2.4vw, 32px);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 19px;
  height: 26px;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Переключатель «Картодромам | Пилотам» — тот же, что на главной, но в
   оформлении приложения: капсула, выбранная половина — фиолетовым */
.switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.switch__item {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.switch__item:hover {
  color: #fff;
}

.switch__item[aria-current='page'] {
  padding: 0 16px;
  background: var(--accent-fill);
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 16px;
  background: #fff;
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: #e9e4f2;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--edge-2);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
}

.btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions .btn {
  flex: 1 1 220px;
}

/* ── Текст ───────────────────────────────────────────────────────────────── */

.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.h1 {
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2--sm {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34em;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

.text {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Первый экран: заголовок и телефон на волне ──────────────────────────── */

.hero {
  padding-top: clamp(28px, 5vw, 72px);
}

.hero__text {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__text .actions {
  justify-content: center;
  width: 100%;
  max-width: 560px;
  padding-top: 10px;
}

.note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

/* Волна идёт через всю ширину за телефоном: яркая бежит влево, бледная
   под ней — вправо, как WaveLines в приложении. Период — ширина экрана */
.stage__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 250px;
  height: 150px;
}

.wave {
  overflow: hidden;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave__main {
  animation: wave-left 7s linear infinite;
}

.wave__echo {
  animation: wave-right 10s linear infinite;
}

.stage__row {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 44px;
  padding-inline: 16px;
}

.phone {
  flex: none;
  width: 300px;
  padding: 9px;
  border-radius: 54px;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px var(--edge-2);
}

.phone img {
  width: 100%;
  border-radius: 45px;
}

/* Плашки по бокам телефона — как система рисует заезд на экране блокировки
   (RaceLiveActivity.swift) и пуш итога (RaceResultNotifier) */
.plate {
  flex: none;
  width: 336px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.stage .plate--activity {
  align-self: flex-start;
  margin-top: 64px;
}

.stage .plate--push {
  align-self: flex-end;
  margin-bottom: 96px;
}

.plate--activity {
  padding: 14px 16px;
  border-radius: 24px;
  background: var(--activity);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.plate--push {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.35;
}

.app-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.app-icon--push {
  width: 36px;
  height: 36px;
}

.activity__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.activity__clock {
  font-size: 14px;
  font-weight: 600;
}

.activity__body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.activity__place {
  font-family: var(--font-round);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.activity__laps {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity__best {
  font-size: 16px;
  font-weight: 600;
}

.activity__last {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.activity__gap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 16px;
  font-weight: 600;
}

.activity__gap span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.activity__bar {
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.activity__bar span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.slower {
  color: var(--live);
}

.push__body {
  flex: 1 1 auto;
  min-width: 0;
}

.push__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.push__title {
  font-weight: 600;
}

.push__time {
  font-size: 12px;
  color: var(--muted);
}

.push__text {
  color: var(--soft);
}

/* ── Главы: текст и рисунок линией, через одну — зеркально ───────────────── */

.chapter {
  padding-block: clamp(56px, 8vw, 112px);
}

.chapter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

/* row-reverse переносится текстом вперёд, так что на телефоне у каждой
   главы сначала текст, потом рисунок */
.chapter--rev .chapter__inner {
  flex-direction: row-reverse;
}

.chapter__text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chapter__art {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 600px;
}

.chapter__art--wide {
  flex-basis: 480px;
  max-width: 620px;
}

.art {
  display: block;
  width: 100%;
  height: auto;
  font-variant-numeric: tabular-nums;
}

.art .round {
  font-family: var(--font-round);
}

/* Карта «Пилот» без пустых полей по бокам: на телефоне она крупнее, на
   компьютере не растёт выше 340 px */
.art--card {
  max-width: 340px;
  margin-inline: auto;
}

/* Подписи к рисункам — текстом страницы, а не внутри SVG: на телефоне
   рисунок ужимается, а текст должен оставаться читаемым */
.art__caption {
  font-size: 15px;
  color: var(--muted);
}

.pill {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.3;
}

.pill__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Заезд вживую: трасса линией, под ней места, экран блокировки и пуш */
.live {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 15px;
  color: var(--muted);
}

.live__label b {
  font-weight: 600;
  color: #fff;
}

.live__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
}

.live__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.standings {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.standings li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--soft);
}

.standings .standings__me {
  background: rgba(191, 90, 242, 0.22);
  color: #fff;
  font-weight: 600;
}

.standings__lap {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.standings__lap--best {
  color: var(--accent);
}

.live__activity {
  flex: 1 1 300px;
  width: auto;
}

.live__push {
  width: auto;
}

/* Ассистент: фразы и звуковая волна */
.voice {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Рация: фраза менеджера, линия голосового между ними, выбор голоса */
.radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-align: center;
}

.bubble__text {
  font-size: 17px;
  font-weight: 600;
}

.bubble__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.bubble__ok {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--good);
}

.radio__names {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

/* Подписи стоят под кружками: те на 11,8 % и 88,2 % ширины рисунка.
   Длинная подпись на узком экране чуть шире — но в одну строку */
.radio__names span {
  min-width: 23.6%;
  text-align: center;
  white-space: nowrap;
}

.seg {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--edge);
}

.seg__item {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.seg__item--on {
  background: var(--accent-fill);
  color: #fff;
}

/* Профиль: уровень, заезды, подиумы и круги заезда */
.profile {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
}

.level {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.level__ring {
  width: 180px;
  height: 180px;
}

.level__num {
  position: absolute;
  top: 50px;
  font-family: var(--font-round);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.level__word {
  position: absolute;
  top: 108px;
  font-size: 14px;
  color: var(--muted);
}

.level__title {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
}

.level__next {
  font-size: 14px;
  color: var(--muted);
}

.profile__side {
  flex: 1 1 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-family: var(--font-round);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 15px;
  color: var(--muted);
}

/* Подиумы ступенями 2-1-3, как в профиле приложения: место — цветом и
   высотой ступени, без медалей */
.podium {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.podium__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
}

.podium__count {
  font-size: 15px;
  font-weight: 600;
}

.podium__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
  color: var(--bg);
  font-size: 22px;
  font-weight: 700;
}

.podium__step--1 {
  height: 76px;
  background: #ffc53d;
}

.podium__step--2 {
  height: 56px;
  background: #cbd5e1;
}

.podium__step--3 {
  height: 40px;
  background: #f0842a;
}

.laps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.laps__caption {
  font-size: 14px;
  color: var(--muted);
}

.laps__caption b {
  font-weight: 600;
  color: var(--good);
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--soft);
}

.facts li {
  display: flex;
  gap: 12px;
}

.facts li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  font-size: 15px;
}

/* Звуковая волна ассистента: три синусоиды, каждая со своей скоростью */
.voice__a {
  animation: voice-a 2.2s linear infinite;
}

.voice__b {
  animation: voice-b 3.4s linear infinite;
}

.voice__c {
  animation: voice-c 7s linear infinite;
}

/* Трасса прорисовывается, когда доходит до экрана (класс ставит pilots.js).
   Без скрипта линия просто нарисована */
.js .art:not(.is-visible) .draw {
  stroke-dashoffset: 1;
}

.js .art.is-visible .draw {
  animation: draw 2.4s cubic-bezier(0.33, 1, 0.68, 1) both;
}

/* ── И ещё ───────────────────────────────────────────────────────────────── */

.more {
  padding-block: clamp(48px, 7vw, 96px);
}

.more__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.card {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--edge-2);
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__title {
  font-size: 17px;
  font-weight: 600;
}

.card__text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── Скачать: знак на волне, как вступление в приложении ─────────────────── */

.download {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.download__wave {
  position: relative;
  height: 170px;
}

.download__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download__mark svg {
  width: 48px;
  height: 64px;
}

.download__inner {
  max-width: 980px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 56px;
}

.download__text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.download__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download .actions {
  padding-top: 6px;
}

.qr {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr svg {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 20px;
  background: #fff;
}

.qr figcaption {
  max-width: 180px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.download__venue {
  max-width: 980px;
  margin-top: 48px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.download__venue a {
  color: var(--accent);
  font-weight: 600;
}

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

.foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot__brand svg {
  flex: none;
  width: 14px;
  height: 19px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot__links a {
  color: var(--soft);
  text-decoration: none;
}

.foot__links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Движение ────────────────────────────────────────────────────────────── */

@keyframes wave-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1440px);
  }
}

@keyframes wave-right {
  from {
    transform: translateX(-1440px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes voice-a {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-173.33px);
  }
}

@keyframes voice-b {
  from {
    transform: translateX(-260px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes voice-c {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-520px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* «Уменьшение движения»: волны стоят, трасса нарисована сразу. Карты на
   трассе и точку рации (SMIL) останавливает pilots.js */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wave__main,
  .wave__echo,
  .voice__a,
  .voice__b,
  .voice__c,
  .js .art.is-visible .draw {
    animation: none;
  }
}

/* ── Узкие экраны ────────────────────────────────────────────────────────── */

/* Плашкам по бокам телефона не хватает места — телефон остаётся один.
   Те же плашки есть в главе «Заезд вживую» */
@media (max-width: 1120px) {
  .stage .plate {
    display: none;
  }
}

/* QR нужен только на компьютере: с телефона кнопка App Store ближе */
@media (max-width: 820px) {
  .qr {
    display: none;
  }
}

/* Кнопка «Скачать» уходит из шапки — она первая в экране, а знак и
   переключатель остаются в одной строке */
@media (max-width: 640px) {
  .top__cta {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand__name {
    display: none;
  }
}
