/* ─────────────────────────────────────────────────────────────────────────────
   Лендинг raceflow.ru в оформлении «Эфир» — том же, что у табло и сайта
   картодрома: плоский чёрный, эфирный красный, узкий прописной в титрах,
   моноширинные цифры. Токены совпадают с apps/web/src/styles/broadcast.css,
   чтобы нарисованное здесь не расходилось со снимками настоящих экранов.

   Стилей в атрибутах нет: Caddy отдаёт страницу со строгим CSP без
   'unsafe-inline', поэтому всё — классами, а разное для строк табло —
   через :nth-child.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/SofiaSansCondensed-cyrillic-600800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Sofia Sans Condensed';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/SofiaSansCondensed-latin-600800.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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-cyrillic-400700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-latin-400700.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;
}
@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: #0a0a0c;
  --bg-alt: #0f0f12;
  --panel: #141418;
  --panel-2: #1b1b21;
  --pos-top: #2a2a33;
  --line: #26262e;
  --line-2: #3a3a44;
  --line-soft: #1e1e24;

  --text: #ffffff;
  --text-2: #c9c9d4;
  --text-3: #b1b1bb;
  --muted: #8d8d9b;

  --red: #e10600;
  --red-soft: #ff6b66;
  --green: #2ed573;
  --amber: #ffb020;
  --purple: #c77dff;
  --lead: linear-gradient(90deg, #3a0f12 0%, #141418 60%);
  --cut: 16px;

  --font-cond: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1376px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 9vw, 120px);

  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-body);
  font-size: 16px;
  line-height: 1.55;
  -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: 2px;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
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;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.skip:focus {
  left: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.cond {
  font-family: var(--font-cond);
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.kicker::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--red);
  flex: none;
}

.h1 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(60px, 8.6vw, 136px);
  line-height: 0.86;
  letter-spacing: -0.005em;
}

.h2 {
  font-family: var(--font-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(42px, 5.2vw, 80px);
  line-height: 0.92;
  text-wrap: balance;
}

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-3);
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #f20a03;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--ghost {
  border: 1px solid var(--line-2);
  background: transparent;
}

.btn--ghost:hover {
  border-color: #fff;
  background: transparent;
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 17px;
}

.btn--wide {
  width: 100%;
}

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

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

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

.brand__mark {
  width: 23px;
  height: 31px;
}

.brand__name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a:hover {
  color: #fff;
}

/* ── Первый экран ────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-top: 40px;
  padding-bottom: 96px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-width: 0;
}

.hero__lead {
  max-width: 33em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip--go {
  border-color: #1f6b3e;
  color: var(--green);
}

.chip--go::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.chip--live {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  letter-spacing: 0.16em;
}

.chip--live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ── Табло первого экрана: строки как на сайте картодрома в «Эфире» ──────── */

.tower {
  min-width: 0;
  background: var(--bg);
}

.tower__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 18px;
}

.tower__title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tower__name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 0.9;
  text-transform: uppercase;
}

.clock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 12px;
  background: #000;
  border-top: 4px solid var(--red);
}

.clock__value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.clock__left {
  margin-left: 8px;
  font-size: 0.5em;
  color: var(--amber);
}

.clock__label {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.trow {
  position: relative;
  display: grid;
  grid-template-columns: 50px 54px minmax(0, 1fr) 82px 74px 66px;
  align-items: center;
  column-gap: 8px;
  padding-right: 22px;
}

.tower__cols {
  min-height: 34px;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tower__cols span:nth-child(1),
.tower__cols span:nth-child(2) {
  text-align: center;
}

.tower__cols span:nth-child(n + 4) {
  text-align: right;
}

.tower__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tower__rows .trow {
  min-height: 56px;
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  overflow: hidden;
}

.tower__rows .trow:first-child {
  background: var(--lead);
}

.trow__pos {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 800;
}

.trow:nth-child(1) .trow__pos {
  background: var(--red);
}

.trow:nth-child(2) .trow__pos,
.trow:nth-child(3) .trow__pos {
  background: var(--pos-top);
}

.trow__kart {
  justify-self: center;
  min-width: 36px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.trow__pilot {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding-left: 4px;
}

.trow__name {
  overflow: hidden;
  font-family: var(--font-cond);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trow__class {
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trow__class b {
  font-weight: 500;
  color: var(--red-soft);
}

.trow__last,
.trow__best,
.trow__gap {
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.trow__last {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.trow__delta {
  font-size: 11px;
  color: var(--green);
}

.trow__delta--down {
  color: var(--red-soft);
}

.trow__last--pb > span:first-child {
  color: var(--green);
}

.trow__best,
.trow__gap {
  color: var(--text-2);
}

.trow__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #fff;
}

.trow__flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* Ширина полосы и момент вспышки у каждой строки свои: пилоты на разных
   точках круга. Длительность — круг пилота, задержка — сколько он уже проехал */
.tower__rows .trow:nth-child(1) .trow__bar, .tower__rows .trow:nth-child(1) .trow__flash { --lap: 41.5s; --at: -25.7s; width: 62%; }
.tower__rows .trow:nth-child(2) .trow__bar, .tower__rows .trow:nth-child(2) .trow__flash { --lap: 41.6s; --at: -22.9s; width: 55%; }
.tower__rows .trow:nth-child(3) .trow__bar, .tower__rows .trow:nth-child(3) .trow__flash { --lap: 41.5s; --at: -19.9s; width: 48%; }
.tower__rows .trow:nth-child(4) .trow__bar, .tower__rows .trow:nth-child(4) .trow__flash { --lap: 42s; --at: -16.4s; width: 39%; }
.tower__rows .trow:nth-child(5) .trow__bar, .tower__rows .trow:nth-child(5) .trow__flash { --lap: 42.3s; --at: -12.7s; width: 30%; }
.tower__rows .trow:nth-child(6) .trow__bar, .tower__rows .trow:nth-child(6) .trow__flash { --lap: 42.1s; --at: -10.1s; width: 24%; }
.tower__rows .trow:nth-child(7) .trow__bar, .tower__rows .trow:nth-child(7) .trow__flash { --lap: 43s; --at: -6s; width: 14%; }
.tower__rows .trow:nth-child(8) .trow__bar, .tower__rows .trow:nth-child(8) .trow__flash { --lap: 42.9s; --at: -39.9s; width: 93%; }

.tower__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.tower__foot-best span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--purple);
}

/* Часы заезда: прошло и сколько осталось (в скобках), как на табло. Цифры —
   счётчики CSS: работают без скрипта и не перерисовывают страницу */
@property --em {
  syntax: '<integer>';
  inherits: false;
  initial-value: 6;
}
@property --es {
  syntax: '<integer>';
  inherits: false;
  initial-value: 30;
}
@property --rm {
  syntax: '<integer>';
  inherits: false;
  initial-value: 3;
}
@property --rs {
  syntax: '<integer>';
  inherits: false;
  initial-value: 29;
}

.cnt-em {
  counter-reset: em var(--em);
}
.cnt-em::after {
  content: counter(em, decimal-leading-zero);
}
.cnt-es {
  counter-reset: es var(--es);
}
.cnt-es::after {
  content: counter(es, decimal-leading-zero);
}
.cnt-rm {
  counter-reset: rm var(--rm);
}
.cnt-rm::after {
  content: counter(rm, decimal-leading-zero);
}
.cnt-rs {
  counter-reset: rs var(--rs);
}
.cnt-rs::after {
  content: counter(rs, decimal-leading-zero);
}

@keyframes em {
  from {
    --em: 0;
  }
  to {
    --em: 10;
  }
}
@keyframes es {
  from {
    --es: 0;
  }
  to {
    --es: 60;
  }
}
@keyframes rm {
  from {
    --rm: 9;
  }
  to {
    --rm: -1;
  }
}
@keyframes rs {
  from {
    --rs: 59;
  }
  to {
    --rs: -1;
  }
}
@keyframes lap {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes flash {
  0% {
    opacity: 0.18;
  }
  4% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Заезд десятиминутный, на странице он идёт с 06:30 */
  .cnt-em {
    animation: em 600s steps(10) -390s infinite;
  }
  .cnt-es {
    animation: es 60s steps(60) -390s infinite;
  }
  .cnt-rm {
    animation: rm 600s steps(10) -390s infinite;
  }
  .cnt-rs {
    animation: rs 60s steps(60) -390s infinite;
  }
  .trow__bar {
    animation: lap var(--lap) linear var(--at) infinite;
  }
  .trow__flash {
    animation: flash var(--lap) linear var(--at) infinite;
  }
  .ticker__track {
    animation: ticker 60s linear infinite;
  }
}

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

.ticker {
  display: flex;
  align-items: stretch;
  height: 52px;
  background: var(--panel);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.ticker__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: none;
  padding: 0 22px;
  background: var(--red);
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker__viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dcdce2;
  white-space: nowrap;
}

.ticker__item::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #5a5a66;
}

/* ── Разделы ─────────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--section);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section__title {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.split__text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.split__media {
  flex: 1.4 1 560px;
  min-width: 0;
}

/* ── 01 Сигнал ───────────────────────────────────────────────────────────── */

.signal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 3px;
}

.signal__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 28px 26px 30px;
  background: var(--panel);
}

.signal__step--air {
  background: var(--red);
}

.signal__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.signal__step--air .signal__num {
  color: rgba(255, 255, 255, 0.8);
}

.signal__title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.signal__arrow {
  position: absolute;
  top: 26px;
  right: 24px;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.signal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 3px;
  padding: 18px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.note .label {
  color: var(--amber);
}

.note .text {
  color: var(--text-2);
}

/* ── 02 Табло ────────────────────────────────────────────────────────────── */

.tv {
  padding: clamp(6px, 1vw, 14px);
  background: #050506;
  border: 1px solid #23232a;
  border-radius: 12px;
}

.tv img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.tv__cap {
  margin-top: 14px;
  text-align: center;
}

.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 3px;
  margin-top: 48px;
}

.screens__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 22px;
  background: var(--panel);
}

.screens__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}

.screens__title {
  padding-inline: 6px;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.02;
  text-transform: uppercase;
}

.screens__item .text {
  padding-inline: 6px;
  font-size: 14.5px;
}

/* ── 03 Сайт ─────────────────────────────────────────────────────────────── */

.shots {
  position: relative;
  padding-bottom: clamp(0px, 6vw, 72px);
}

/* Окно сайта сдвинуто вправо, телефон стоит слева внизу: он закрывает только
   номера мест последних строк, а панель пилота справа остаётся на виду */
.browser {
  margin-left: clamp(0px, 14vw, 180px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 16px;
  background: #101014;
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.browser__url {
  flex: 1;
  max-width: 340px;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
}

.phone {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: #050506;
  border: 1px solid #2a2a32;
  border-radius: 44px;
}

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

.shots .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26%;
  max-width: 300px;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 3px;
  margin-top: 48px;
}

.points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dcdce2;
}

.points li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--red);
  flex: none;
}

/* ── 04 Маршал и механик ─────────────────────────────────────────────────── */

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.phones .phone {
  flex: 0 1 300px;
}

.phones figcaption {
  margin-top: 14px;
  text-align: center;
}

/* ── 05 Стойка, 06 Станция: снимки панели ────────────────────────────────── */

.window {
  background: #16120e;
  border: 1px solid #2c261f;
  border-radius: 12px;
  overflow: hidden;
}

.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: #100d0a;
  border-bottom: 1px solid #2c261f;
}

.window__bar .browser__dots span {
  background: #3a322a;
}

.window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #b0a08c;
  white-space: nowrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 3px;
  margin-top: 3px;
}

.features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
  background: var(--panel);
}

.features__title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.features .text {
  font-size: 15px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 16px 18px;
  background: var(--panel);
}

.facts dt {
  color: #fff;
}

.facts .text {
  font-size: 15px;
}

/* ── 07 Модули ───────────────────────────────────────────────────────────── */

.modules {
  border-top: 1px solid var(--line);
}

.mrow {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.5fr) 132px;
  gap: 8px 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.mrow__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.mrow__name {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}

.mrow .text {
  font-size: 15.5px;
}

.tag {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.tag--base {
  border-color: #fff;
  background: #fff;
  color: var(--bg);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 48px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
}

.price .mono {
  font-size: 15px;
  color: #dcdce2;
}

/* ── Заявка ──────────────────────────────────────────────────────────────── */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
}

.cta__text {
  flex: 1.2 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.cta__title {
  font-size: clamp(52px, 7vw, 116px);
  line-height: 0.88;
}

.form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__fields[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-size: 17px;
}

.field__input:focus {
  outline: 2px solid #fff;
  outline-offset: 0;
  border-color: #fff;
}

.field__hint {
  font-size: 13px;
  color: var(--muted);
}

/* Поле-ловушка для ботов: человек его не видит и не заполняет */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--red);
}

.consent a {
  color: var(--text-2);
}

.form__status {
  min-height: 1.4em;
  font-size: 14.5px;
  color: var(--red-soft);
}

.form__status:empty {
  display: none;
}

.form__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
}

.form__done[hidden] {
  display: none;
}

.form__done-title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 40px;
  line-height: 0.95;
  text-transform: uppercase;
}

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

.foot {
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 36px;
  padding-bottom: 44px;
}

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

.foot__brand svg {
  width: 18px;
  height: 24px;
}

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

.foot__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
}

.foot__links a:hover {
  color: #fff;
}

/* ── Текстовые страницы: политика, 404 ───────────────────────────────────── */

.doc {
  max-width: 820px;
  padding-block: 40px var(--section);
}

.doc .h2 {
  margin-bottom: 32px;
}

.doc h3 {
  margin: 36px 0 12px;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}

.doc p,
.doc li {
  color: var(--text-2);
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-left: 20px;
  list-style: square;
}

.doc a {
  color: #fff;
}

.doc--short {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

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

@media (max-width: 960px) {
  .nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .shots {
    padding-bottom: 0;
  }

  .browser {
    margin-left: 0;
  }

  .shots .phone {
    position: static;
    width: 70%;
    margin: 24px auto 0;
  }

  /* Три телефона бокса на узком экране — лентой с прокруткой вбок, а не
     столбиком в три экрана высотой */
  .phones {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    scrollbar-width: none;
  }

  .phones .phone {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }
}

@media (max-width: 720px) {
  .mrow {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .mrow .text,
  .mrow .tag {
    grid-column: 2;
  }

  .facts div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* На телефоне, как на сайте картодрома: без колонок карта и лучшего круга,
   имя переносится на вторую строку, а не обрезается */
@media (max-width: 560px) {
  .trow {
    grid-template-columns: 40px minmax(0, 1fr) 76px 58px;
    padding-right: 18px;
  }

  .trow__kart,
  .trow__best,
  .tower__cols span:nth-child(2),
  .tower__cols span:nth-child(5) {
    display: none;
  }

  .trow__pilot {
    padding-block: 6px;
  }

  .trow__name {
    font-size: 18px;
    white-space: normal;
  }

  .trow__class {
    white-space: normal;
  }

  .form {
    padding: 22px;
  }
}
