@import url("fonts.css");

/* ══════════════════════════════════════════════════════════════════════════
   157×69 — лендинг. Айдентика v1.0, сентябрь 2026.
   Чертёжный стиль: бумажный фон, стальной акцент, хайрлайны с угловыми
   метками, кадр 3:2 как единственный модуль. Кирпич принадлежит событию и
   занимает не больше 10% площади: одна кнопка, один кадр в ленте, одна метка
   инцидента. Скруглений нет нигде — рамка чертежа не скругляется.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --paper:      #f2f2f3;
  --graphite:   #1d1f20;
  --steel:      #5980a6;
  --steel-100:  #eef6ff;
  --steel-300:  #b5d9fd;
  --steel-700:  #416180;
  --steel-800:  #2c455d;
  --steel-900:  #1d2d3d;
  --brick:      #b5432f;
  --bordo:      #7a2b22;
  --sand:       #e6d9c6;

  --divider:    color-mix(in srgb, var(--graphite) 16%, transparent);
  --muted:      color-mix(in srgb, var(--graphite) 62%, transparent);
  --faint:      color-mix(in srgb, var(--graphite) 45%, transparent);

  --head: "157 Head", "Barlow Condensed", "Roboto Condensed", system-ui, sans-serif;
  --text: "157 Text", "Barlow", "Roboto", system-ui, sans-serif;

  --gutter: max(20px, 4vw);
  --wrap: 1180px;
  --cell: 12px;              /* модуль сетки значка — шаг перфорации ленты */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--text);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--steel-700); text-underline-offset: 3px; }
a:hover { color: var(--steel-900); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--steel) 30%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* — надзаголовок: Condensed 600, caps, +0.08em, 13/16 — */
.kicker {
  font-family: var(--head); font-weight: 600; font-size: 13px; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-700);
  margin: 0 0 10px;
}
/* — метаданные: Barlow 500, +0.06em, 11/14 — */
.meta {
  font-family: var(--text); font-weight: 500; font-size: 11px; line-height: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
}
.lead { font-size: 19px; line-height: 30px; color: var(--muted); max-width: 62ch; }

/* ── рамка чертежа с угловыми метками ───────────────────────────────────── */
.blueprint { position: relative; border: 1px solid var(--divider); }
.blueprint > i {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--graphite) 55%, transparent);
}
.blueprint > i::before, .blueprint > i::after { content: ""; position: absolute; background: currentColor; }
.blueprint > i::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > i::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > i.tl { top: -6px; left: -6px; }
.blueprint > i.tr { top: -6px; right: -6px; }
.blueprint > i.bl { bottom: -6px; left: -6px; }
.blueprint > i.br { bottom: -6px; right: -6px; }

/* ── логотип: число + лента из четырёх ячеек 3:2, третья залита ──────────── */
.logo { display: inline-flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit; }
.logo__num {
  font-family: var(--head); font-weight: 600; font-size: var(--logo-size, 20px);
  line-height: 1; letter-spacing: 0.005em; display: block;
}
.logo__strip { display: flex; gap: calc(var(--logo-size, 20px) * 0.05); margin-top: calc(var(--logo-size, 20px) * 0.2); }
.logo__strip > span {
  flex: 1; aspect-ratio: 3 / 2;              /* пропорция кадра — всегда 3:2 */
  border: 1px solid var(--steel);
}
.logo__strip > span:nth-child(3) { border-color: var(--brick); background: var(--brick); }
.logo--invert .logo__num { color: var(--paper); }
.logo--invert .logo__strip > span { border-color: var(--paper); }
.logo--invert .logo__strip > span:nth-child(3) { border-color: var(--brick); background: var(--brick); }

/* ── кнопки: Condensed 600, 14/17, без скруглений ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 17px;
  padding: 11px 20px; border: 1px solid var(--divider); border-radius: 0;
  background: transparent; color: var(--graphite); text-decoration: none;
  cursor: pointer; transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.btn:hover { background: color-mix(in srgb, var(--graphite) 7%, transparent); color: var(--graphite); }
.btn:active { background: color-mix(in srgb, var(--graphite) 14%, transparent); }
/* кирпич — только событие: одна главная кнопка на экран */
.btn--event { background: var(--brick); border-color: var(--brick); color: var(--paper); }
.btn--event:hover { background: var(--bordo); border-color: var(--bordo); color: var(--paper); }
.btn--event:active { background: var(--bordo); }
.btn--steel { background: var(--steel); border-color: var(--steel); color: var(--paper); }
.btn--steel:hover { background: var(--steel-700); border-color: var(--steel-700); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--wide { width: 100%; }

/* ── шапка ──────────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--divider);
}
.header__in { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.header .logo { --logo-size: 19px; margin-right: auto; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav a {
  font-family: var(--head); font-weight: 600; font-size: 14px; line-height: 17px;
  color: var(--graphite); text-decoration: none;
}
.header__nav a:hover { color: var(--steel-700); }
.header__cta-short { display: none; }
@media (max-width: 880px) { .header__nav { display: none; } }
@media (max-width: 520px) {
  /* на узком экране кнопка остаётся — это единственный путь к форме сверху */
  .header__cta-long { display: none; }
  .header__cta-short { display: inline; }
  .header__cta { padding-inline: 16px; }
}

/* ── секции ─────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--divider); }
.section__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.06; margin: 0 0 14px; }
.section__intro { margin-bottom: clamp(32px, 5vw, 48px); }

/* ── герой ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 7vw, 84px) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--divider); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 56px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.hero h1 { font-size: clamp(38px, 6.2vw, 64px); line-height: 1.0; margin: 0 0 20px; }
.hero__text { max-width: 46ch; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* три числа под текстом */
.figures { display: flex; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; margin-top: 36px; }
.figures__n { font-family: var(--head); font-weight: 600; font-size: 34px; line-height: 1; }
.figures__c { font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 6px; max-width: 20ch; }

/* кадр с камеры: дуотон в сталь, поверх — разметка зала и трек объекта */
.shot { position: relative; }
.shot__frame {
  aspect-ratio: 3 / 2; position: relative; overflow: hidden; isolation: isolate;
  background: var(--steel-900);
}
.shot__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__frame::after {          /* дуотон в стальной акцент — только по фото */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--steel); mix-blend-mode: color;
}
/* разметка идёт поверх дуотона: кирпич события не должен уходить в сталь */
.shot__plan { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.shot__plan .zone rect {
  fill: color-mix(in srgb, var(--paper) 5%, transparent);
  stroke: color-mix(in srgb, var(--paper) 38%, transparent); stroke-width: 1;
}
.shot__plan .zone text {
  font-family: var(--head); font-weight: 600; font-size: 8px; letter-spacing: 0.09em;
  fill: color-mix(in srgb, var(--paper) 62%, transparent);
}
.shot__plan .track {
  fill: none; stroke: var(--steel-300); stroke-width: 1.4;
  stroke-dasharray: 5 4; stroke-linecap: square;
}
.shot__plan .dots circle { fill: var(--steel-300); }
.shot__plan .event { fill: color-mix(in srgb, #b5432f 22%, transparent); stroke: var(--brick); stroke-width: 2; }
/* подпись к отметке инцидента — сидит ровно на прямоугольнике .event в SVG */
.shot__box { position: absolute; z-index: 3; left: 28.7%; top: 44%; width: 12.7%; height: 26%; }
.shot__tag {
  position: absolute; left: -2px; top: -22px; background: var(--brick); color: var(--paper);
  font-family: var(--head); font-weight: 600; font-size: 11px; line-height: 20px;
  letter-spacing: 0.08em; padding-inline: 7px; white-space: nowrap;
}
.shot__cap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; font-family: var(--head); font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-700);
}

/* ── лента кадров: таймлайн смены ───────────────────────────────────────── */
.strip {
  background: var(--steel-900); color: var(--paper);
  padding-block: clamp(44px, 6vw, 72px);
  overflow: hidden;            /* лента режется краем листа, а не полосой прокрутки */
}
.strip .kicker { color: var(--steel-300); }
.strip__title { font-size: clamp(24px, 3.4vw, 34px); color: var(--paper); margin: 0 0 8px; }
.strip__note { color: color-mix(in srgb, var(--paper) 62%, transparent); max-width: 58ch; margin-bottom: 32px; }
/* Лента остаётся в текстовой колонке слева и уходит за правый край листа:
   ширину не считаем от 100vw (полоса прокрутки сбивала бы выравнивание) —
   просто разрешаем ячейкам вылезти, а обрезает их overflow секции. */
.strip__film { position: relative; padding-block: 20px; }
/* перфорация: 14×8 с шагом 18 — уходит за границу листа, не заканчивается внутри */
.strip__film::before, .strip__film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background-image: linear-gradient(to right,
    color-mix(in srgb, var(--paper) 34%, transparent) 0 14px, transparent 14px 18px);
  background-size: 18px 8px; background-repeat: repeat-x;
}
.strip__film::before { top: 0; left: -100vw; right: -100vw; }
.strip__film::after { bottom: 0; left: -100vw; right: -100vw; }
.strip__cells { display: flex; flex-wrap: nowrap; gap: var(--cell); }
.strip__cell {
  flex: 0 0 clamp(112px, 13vw, 168px); aspect-ratio: 3 / 2; position: relative;
  border: 1px solid color-mix(in srgb, var(--paper) 34%, transparent);
  display: grid; place-items: center;
}
.strip__cell time {
  font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--paper) 58%, transparent);
}
/* ровно один выделенный кадр, и только кирпичом */
.strip__cell--event { border: 2px solid var(--brick); background: color-mix(in srgb, var(--brick) 22%, transparent); }
.strip__cell--event time { color: var(--paper); }
.strip__track {
  margin-top: 20px; font-family: var(--head); font-weight: 600; font-size: 14px;
  letter-spacing: 0.1em; color: var(--steel-300);
}

/* ── шаги 01–03 ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border: 1px solid var(--divider); }
.steps__i { padding: 28px 26px; border-right: 1px solid var(--divider); }
.steps__i:last-child { border-right: 0; }
@media (max-width: 760px) {
  .steps__i { border-right: 0; border-bottom: 1px solid var(--divider); }
  .steps__i:last-child { border-bottom: 0; }
}
.steps__n { font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; color: var(--steel-700); margin-bottom: 10px; }
.steps__i h3 { font-size: 22px; margin: 0 0 8px; }
.steps__i p { font-size: 15px; line-height: 24px; color: var(--muted); }

/* ── аудитории / карточки ───────────────────────────────────────────────── */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { padding: 26px 28px; }
.card h3 { font-size: 20px; margin: 0 0 12px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; font-size: 15px; line-height: 25px; color: var(--muted); }
.card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 6px; border: 1px solid var(--steel); }

/* ── таблица фактов ─────────────────────────────────────────────────────── */
.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts th {
  text-align: left; font-family: var(--head); font-weight: 600; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  padding: 10px 12px; border-bottom: 1px solid var(--divider); white-space: nowrap;
}
.facts td { padding: 13px 12px; border-bottom: 1px solid color-mix(in srgb, var(--graphite) 8%, transparent); vertical-align: top; }
.facts tbody tr:hover { background: var(--steel-100); }
.facts td:first-child { font-family: var(--head); font-weight: 600; font-size: 16px; white-space: nowrap; }
/* Таблица шире экрана прокручивается внутри себя, страница — никогда.
   Затенение у правого края подсказывает, что строка продолжается. */
.facts__scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--paper) 30%, transparent) left / 40px 100% no-repeat,
    linear-gradient(to left,  var(--paper) 30%, transparent) right / 40px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--graphite) 14%, transparent), transparent) left / 14px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--graphite) 14%, transparent), transparent) right / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* ── контакты вместо формы, пока приём заявок выключен ──────────────────── */
.contact { display: grid; gap: 20px; padding: 30px 28px; }
.contact__lead { font-size: 17px; line-height: 27px; }
.contact__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.contact__list li {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 13px 0; border-top: 1px solid var(--divider);
}
.contact__list li:last-child { border-bottom: 1px solid var(--divider); }
.contact__label {
  font-family: var(--head); font-weight: 600; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); flex: 0 0 88px;
}
.contact__value {
  font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.1;
  color: var(--graphite); text-decoration: none;
}
.contact__value:hover { color: var(--steel-700); text-decoration: underline; }
.contact__hint { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ── форма пилота: включается вместе со службой приёма заявок ───────────── */
.pilot { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.form { display: grid; gap: 16px; padding: 30px 28px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field > label { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 6px; }
.field > label .req { color: var(--brick); }
.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 0;
  font-family: var(--text); font-size: 15px; color: var(--graphite);
  background: color-mix(in srgb, var(--graphite) 3%, transparent);
  border: 1px solid var(--divider); caret-color: var(--steel);
}
.input:hover { border-color: color-mix(in srgb, var(--graphite) 40%, transparent); }
.input:focus-visible { border-color: var(--steel); outline-offset: 0; }
.input:user-invalid { border-color: var(--brick); }
textarea.input { min-height: 92px; resize: vertical; line-height: 23px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 18px; color: var(--muted); }
.consent input { margin: 2px 0 0; accent-color: var(--steel); width: 15px; height: 15px; flex: none; }
.form__status { font-size: 14px; line-height: 21px; min-height: 21px; }
.form__status[data-tone="ok"] { color: var(--steel-700); }
.form__status[data-tone="err"] { color: var(--bordo); }

/* ── подвал ─────────────────────────────────────────────────────────────── */
.footer { background: var(--steel-900); color: var(--paper); padding-block: clamp(40px, 6vw, 64px); }
.footer__in { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer .logo { --logo-size: 22px; }
.footer h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-300); margin: 0 0 12px; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { color: var(--steel-300); text-decoration: underline; }
.footer p, .footer li { font-size: 14px; line-height: 24px; color: color-mix(in srgb, var(--paper) 74%, transparent); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px; display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  font-size: 12px; color: color-mix(in srgb, var(--paper) 58%, transparent);
}

/* ── страница политики ──────────────────────────────────────────────────── */
.doc { max-width: 74ch; padding-block: clamp(48px, 7vw, 80px); }
.doc h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 26px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
