/* ══════════════════════════════════════════════════════════════
   krylo — громкое направление (site-brief.md, версия 2)
   Чёрное поле, один оранжевый акцент, крыло как объект.
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   Шрифты со своего сервера. Google Fonts из России отдаётся
   нестабильно, поэтому обращений к нему в рантайме нет ни одного.
   Файлы — woff2, нарезанные по unicode-range: кириллица и латиница,
   базовые и расширенные. Расширенные нужны не для экзотики —
   в latin-ext живёт знак рубля U+20BD. Браузер скачивает только те
   куски, чьи символы реально встретились на странице.
   font-display: swap — текст читается сразу системным начертанием
   и подменяется, когда файл доехал; пустого экрана не бывает.
   Geologica на Google вариативная: 700 и 800 делят один файл.
   ══════════════════════════════════════════════════════════════ */

/* ── Geologica ── */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-latin.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: 'Geologica';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-latin.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: 'Geologica';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/geologica-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Onest ── */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin.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: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin.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: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin.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: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/onest-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin.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: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/onest-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Martian Mono ── */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/martian-mono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/martian-mono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* ноль без перечёркивания: из глифа убран контур-диагональ,
     файл переименован по OFL — «Martian Mono Plain Zero» */
  src: url('../assets/fonts/martian-mono-400-latin-plainzero.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: 'Martian Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/martian-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── PT Serif Italic ── книжный курсив ParaType, сделан под кириллицу.
   Заменил Playfair Display: у того каллиграфическое «р» читалось как
   модный журнал, здесь нужен сухой редакционный курсив. */
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/pt-serif-400-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/pt-serif-400-italic-latin.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 {
  /* ── поле ────────────────────────────────────────────────── */
  --dark:        #0E0E0F;            /* основное тёмное поле       */
  --light:       #F2EFE8;            /* светлые секции             */
  --ink-d:       #EFEBE3;            /* текст на тёмном  16.3:1    */
  --ink-l:       #14140F;            /* текст на светлом 16.1:1    */
  --mute-d:      #8A857C;            /* приглушённый на тёмном 5.3:1 */
  --mute-d-hi:   #A09B94;            /* вторичный текст хиро и подписи цифр 7.0:1 */
  --mute-l:      #5C574D;            /* приглушённый на светлом 6.3:1 */
  --accent:      #E2542C;            /* ровно один акцент          */
  --on-accent:   #14140F;            /* текст на акценте 4.9:1     */
  /* акцент как текст: на тёмном 5.1:1 — можно; на светлом 3.3:1 —
     нельзя, только плашкой, лентой или подчёркиванием.
     Тёмный текст на плашке акцента — 4.9:1.                      */
  --line-d:      rgba(239,235,227,.12);
  --line-l:      rgba(20,20,15,.14);
  --line-d-str:  rgba(239,235,227,.34);  /* границы полей ≥3:1     */
  --line-l-str:  rgba(20,20,15,.42);
  --line-acc:    rgba(20,20,15,.32);     /* линия на оранжевом поле */

  /* ── шкала кегля, шаг 1,25, база 18 px ───────────────────── */
  /* Нижняя ступень поднята с .64rem (11,5 px) до .72rem (13 px):
     служебный набор ниже 12 px не читается на телефоне, а покупатель
     здесь — собственник 40+. Шаг до --t-1 из-за этого 1,11, а не 1,25;
     роли различаются прописными и разрядкой, а не только кеглем. */
  --t-2: .72rem;   --t-1: .8rem;    --t0: 1rem;      --t1: 1.25rem;
  --t2: 1.5625rem; --t3: 1.953rem;  --t4: 2.441rem;  --t5: 3.052rem;
  --t6: 3.815rem;  --t7: 4.768rem;  --t8: 5.96rem;   --t9: 7.451rem;
  --t10: 9.314rem; --t11: 11.642rem; --t12: 14.553rem;  /* только разделитель */

  /* ── шкала отступов 8/16/24/40/64/96/160/240 ─────────────── */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 160px; --s8: 240px;

  --gut: clamp(20px, 5vw, 80px);
  --top-h: 68px;                     /* высота шапки: от неё считается первый экран */     /* поле страницы              */

  /* ── время ───────────────────────────────────────────────── */
  --e-out:  cubic-bezier(.16,1,.3,1);
  --e-big:  cubic-bezier(.22,1,.36,1);
}

/* ── сброс ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink-d);
  font-family: Onest, system-ui, sans-serif;
  font-size: var(--t0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
em { font-style: normal; }

.mono { font-family: "Martian Mono", ui-monospace, monospace; font-weight: 400; }
.ta-r { text-align: right; }
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Курсивное вкрапление. Ровно три на страницу: h1 хиро, «Цены»,
   «Заявка». Ни одного в теле. */
.hero__h1 em, .price__h2 em, .ask__h2 em {
  font-family: "PT Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
}
/* «руками» — акцент, а не сноска: крупнее набора в 1,15 раза и
   сидит на базовой линии своей строки, а не висит над ней. */
.hero__h1 em {
  font-size: 1.2em;
  line-height: .88;
  vertical-align: baseline;
  display: inline-block;
}

/* ── фокус: двойное кольцо, прозрачный контур для forced-colors ─ */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--ink-d);
}
/* на светлом поле внешнее кольцо фокуса должно быть тёмным */
.what :focus-visible, .price :focus-visible, .work :focus-visible,
.ask :focus-visible, .save :focus-visible {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--ink-l);
}

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 90;
  background: var(--ink-d); color: var(--ink-l);
  padding: var(--s2) var(--s3); font-weight: 700;
  transition: top .14s ease-out;
}
.skip:focus { top: var(--s2); }

/* ══ ШАПКА ════════════════════════════════════════════════════ */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s4);
  height: var(--top-h);
  padding: 0 var(--gut);
  background: color-mix(in srgb, var(--dark) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.top__mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: var(--t2); letter-spacing: -.02em;
  text-decoration: none;
}
.top__wing { width: 34px; height: auto; fill: var(--accent); }
.top__nav { display: flex; gap: var(--s3); margin-left: auto; }
.top__nav a { display: inline-block; padding: 4px 0; white-space: nowrap; }
/* Единственная ссылка навигации с акцентом: она ведёт в форму.
   Не плашка и не кнопка — тёмная лента снизу, как у ссылок страницы. */
/* Текущий раздел подсвечивает скроллспай (aria-current), а «Заявка» —
   не вкладка, а действие: оформлена кнопкой, чтобы не читалась как
   «вы здесь». */
.top__nav a[aria-current="true"] {
  color: var(--ink-d);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.top__nav-cta {
  color: var(--ink-d) !important;
  padding: 6px 14px !important;
  border: 1px solid var(--line-d-str);
  transition: border-color .14s ease-out;
}
.top__nav-cta:hover, .top__nav-cta[aria-current="true"] {
  border-color: var(--accent);
  box-shadow: none;
}
.top__nav a, .top__tg {
  font-size: var(--t-1); color: var(--mute-d);
  text-decoration: none; transition: color .14s ease-out;
}
.top__nav a:hover, .top__tg:hover { color: var(--ink-d); }
/* WCAG 2.5.8: минимальная цель 24×24 — набивка добирает высоту строки */
.top__tg { font-family: "Martian Mono", ui-monospace, monospace; display: inline-block; padding: 4px 0; }

/* ══ 1 · ХИРО ═════════════════════════════════════════════════
   Титульный лист: надзаголовок, заголовок, одна строка, одна кнопка —
   в верхней трети; полоса цифр прижата к низу первого экрана.
   Крыло справа уходит за край и приглушено, чтобы не спорить с H1. */
.hero {
  position: relative;
  min-height: calc(100vh - var(--top-h));
  min-height: calc(100svh - var(--top-h));
  display: flex; flex-direction: column;
  padding: clamp(var(--s5), 10vh, var(--s7)) var(--gut) 0;
  overflow: clip;
}
.hero__object {
  position: absolute;
  top: 44%; left: 60%;
  width: 71vw; max-width: 1420px;
  transform: translateY(-50%);
  pointer-events: none;
  /* темнее в целом, но контраст держит блики на верхней обшивке */
  filter: brightness(.72) contrast(1.1);
}
/* Кадр рендера растворяется с трёх сторон: справа он уходит за экран,
   слева, сверху и снизу маска гасит прямую границу кадра. */
.hero__object img {
  width: 100%; height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, var(--dark) 30%),
    linear-gradient(to bottom, transparent 0, var(--dark) 13%, var(--dark) 66%, transparent 96%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, var(--dark) 30%),
    linear-gradient(to bottom, transparent 0, var(--dark) 13%, var(--dark) 66%, transparent 96%);
          mask-composite: intersect;
}
.hero__text { position: relative; z-index: 1; max-width: 54rem; margin-bottom: clamp(var(--s4), 6vh, var(--s6)); }
.hero__eyebrow {
  font-size: var(--t-2); text-transform: uppercase; letter-spacing: .1em;
  color: var(--mute-d);
  margin-bottom: var(--s2);
}

.hero__h1 {
  font-size: clamp(var(--t3), min(6.2vw, 9vh), var(--t7));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: calc(var(--s3) + var(--s1));
  text-wrap: balance;
}
.hero__sub {
  font-size: var(--t0); line-height: 1.5; color: var(--mute-d-hi);
  max-width: 32rem;
  margin-bottom: calc(var(--s3) + var(--s1));
}
/* Кнопка — не компонент, а строка действия: текст, оранжевая стрелка
   и волосная линия снизу. На наведении линия становится оранжевой. */
.hero__cta {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-d-str);
  color: var(--ink-d); text-decoration: none;
  font-weight: 500; font-size: var(--t0);
  transition: border-color .14s ease-out;
}
.hero__cta:hover { border-bottom-color: var(--accent); }
.hero__arrow { color: var(--accent); }

/* Появление — чистый CSS, без ожидания скриптов с CDN: первый кадр
   сразу содержит текст, анимация лишь 550 мс его «проявляет». */
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow, .hero__h1, .hero__sub, .hero__cta, .hero__figs {
    animation: hero-in .55s var(--e-out) both;
  }
  .hero__h1   { animation-delay: .04s; }
  .hero__sub  { animation-delay: .12s; }
  .hero__cta  { animation-delay: .18s; }
  .hero__figs { animation-delay: .26s; }
  .hero__object img { animation: wing-in .8s ease-out both; }
}
@keyframes wing-in { from { opacity: 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: var(--t0);
  padding: 18px var(--s3);
  text-decoration: none;
  transition: transform .14s ease-out;
}
.btn:hover { transform: translateX(4px); }
.btn--dark { background: var(--ink-l); color: var(--light); }

/* ══ 2 · ЦИФРЫ — нижняя полоса первого экрана ═══════════════ */
.hero__figs {
  position: relative; z-index: 1;
  margin: auto 0 0;
  padding: var(--s4) 0 clamp(var(--s4), 6vh, var(--s5));
  border-top: 1px solid var(--line-d);
}
.figs__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.figs__i { display: flex; flex-direction: column; gap: var(--s1); }
.figs__i + .figs__i { border-left: 1px solid var(--line-d); padding-left: var(--s4); }
.figs__n {
  font-size: clamp(var(--t2), 2.7vw, var(--t5));
  line-height: 1.02;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figs__c { font-size: var(--t-1); color: var(--mute-d-hi); line-height: 1.45; }

/* ══ 3 · ЧТО ДЕЛАЕМ ═══════════════════════════════════════════ */
.what {
  background: var(--light); color: var(--ink-l);
  padding: var(--s7) var(--gut) var(--s6);
  overflow-x: clip; overflow-y: visible;
}
.what__h2 {
  font-size: var(--t4); font-weight: 800; color: var(--ink-l);
  letter-spacing: -.03em; line-height: 1.06;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-l);
  margin-bottom: var(--s5);
}
.what__i {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s3) var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-l);
}
.what__num { font-size: var(--t-1); color: var(--mute-l); }
.what__name { font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }

/* убывающий кегль по важности — 7 ступеней вниз по шкале 1,25 */
.what__i:nth-child(1) .what__name { font-size: var(--t5); }
.what__i:nth-child(2) .what__name { font-size: var(--t4); }
.what__i:nth-child(3) .what__name { font-size: var(--t3); }
.what__i:nth-child(4) .what__name { font-size: var(--t3); }
.what__i:nth-child(5) .what__name { font-size: var(--t2); }
.what__i:nth-child(6) .what__name { font-size: var(--t2); }
.what__i:nth-child(7) .what__name { font-size: var(--t1); }

/* ══ 4 · ЦЕНЫ — единственная плотная секция ═══════════════════ */
.price {
  background: var(--light); color: var(--ink-l);
  padding: var(--s6) var(--gut) var(--s7);
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.price__head { align-self: start; }
.price__h2 {
  font-size: var(--t5); font-weight: 800;
  line-height: 1.04; letter-spacing: -.03em;
  margin-bottom: var(--s3);
}
.price__h2 em { font-weight: 500; }
.price__t { width: 100%; border-collapse: collapse; }
/* Две колонки: направление тянется, цена прижата вправо по своей
   ширине. Третьей колонки «Что входит» больше нет. */
.price__t th, .price__t td { text-align: left; padding: 14px var(--s3) 14px 0; }
.price__t th:first-child { width: auto; }
.price__t th:last-child, .price__t td:last-child { width: 1%; padding-right: 0; }
.price__t thead th {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-weight: 400; font-size: var(--t-2);
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--mute-l);
  border-bottom: 1px solid var(--line-l-str);
  padding-bottom: var(--s1);
}
.price__t tbody tr { border-bottom: 1px solid var(--line-l); }
.price__t tbody th { font-weight: 700; font-size: var(--t0); }
.price__t tbody td { font-size: var(--t-1); color: var(--mute-l); }
.price__t tbody td.mono {
  font-size: var(--t0); color: var(--ink-l);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  padding-right: 0;
}
.price__t tbody tr:last-child th, .price__t tbody tr:last-child td { color: var(--mute-l); }
.price__t tbody tr:last-child th { font-weight: 500; }
/* Главный дифференциатор студии — не сноска в колонке, а строка
   во всю ширину под ценами, средним заголовочным кеглем и основным
   цветом. Ровно один раз на странице: дубль из «Как проходит работа»
   снят. */
.price__claim {
  grid-column: 1 / -1;
  /* собственного отступа нет: разрыв даёт gap сетки секции */
  padding-top: var(--s3);
  border-top: 2px solid var(--accent);
}
.price__claim-t {
  font-size: var(--t4);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink-l);
  max-width: 24ch;
}
.price__claim-s {
  margin-top: var(--s3);
  font-size: var(--t-1);
  color: var(--mute-l);
  max-width: 62ch;
}
.price__claim-s a {
  display: inline-block; padding: 4px 0;   /* WCAG 2.5.8: цель 24 px */
  color: var(--ink-l);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ══ 5 · КАК ПРОХОДИТ РАБОТА ══════════════════════════════════ */
.flow { position: relative; padding: var(--s7) var(--gut); }
.flow__top { margin-bottom: var(--s5); }
.flow__h2 {
  font-size: var(--t4); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.06;
  max-width: 18ch;
}
.flow__line {
  position: absolute; left: var(--gut); right: var(--gut);
  width: auto; height: 2px;
  margin-top: calc(var(--s4) * -1);
}
.flow__line path {
  stroke: var(--accent); stroke-width: 2; fill: none;
  vector-effect: non-scaling-stroke;
}
.flow__steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
  /* номер и название шага — все четыре на одной горизонтали */
  align-items: start;
}
.flow__s { display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); }
.flow__n {
  font-size: var(--t2); color: var(--accent);
  letter-spacing: -.02em; line-height: 1;
}
.flow__t { font-size: var(--t1); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

.flow__cta {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line-d);
}
.flow__cta a {
  font-size: var(--t1); font-weight: 700;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.flow__cta .mono { font-size: var(--t-1); color: var(--mute-d); }

/* ══ 6 · РАБОТЫ ═══════════════════════════════════════════════ */
.work {
  background: var(--light); color: var(--ink-l);
  padding: var(--s6) var(--gut);
  overflow-x: clip; overflow-y: visible;
}
.work__top {
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-l);
  margin-bottom: var(--s5);
}
.work__h2 {
  font-size: var(--t5);
  font-weight: 800; letter-spacing: -.04em; line-height: .95;
}
/* Кейсы. Каждый лежит на тёмном стенде — том же поле, что у первого
   экрана, — а скриншоты на нём как образцы на чертёжном столе: тонкая
   светлая рамка и оранжевые метки обреза по углам. Приём один для
   любого снимка — десктоп, телефон, что угодно: положи картинку в
   .shot, и она впишется. Скруглений и теней нет, как во всей системе. */
/* Кейсы — один сплошной тёмный стенд до самого низа секции, без
   бумажных провалов между проектами. Проекты разделены волосной
   линией и порядковым номером. */
.work { padding-bottom: 0; }
.work__top { display: flex; justify-content: space-between; align-items: end; gap: var(--s3); }
.work__nav { display: flex; align-items: center; gap: var(--s1); }
.work__count { font-size: var(--t-1); color: var(--mute-l); margin-right: var(--s2); white-space: nowrap; }
.work__count b { font-weight: 400; color: var(--ink-l); }
.work__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent; color: var(--ink-l);
  border: 1px solid var(--line-l-str);
  font: inherit; font-size: var(--t1); line-height: 1;
  cursor: pointer;
  transition: border-color .14s ease-out;
}
.work__btn:hover:not(:disabled) { border-color: var(--ink-l); }
.work__btn:disabled { opacity: .35; cursor: default; }

/* Лента кейсов: листается вбок — свайпом, тачпадом, стрелками или
   клавишами. Слайд встаёт на место снапом. Кто не листает — просто
   крутит страницу дальше, лента вертикаль не перехватывает. */
.cases {
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: var(--dark); color: var(--ink-d);
  margin: 0 calc(var(--gut) * -1);
}
.cases::-webkit-scrollbar { display: none; }
.cases:focus-visible { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 4px var(--ink-d); }
.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s4);
  align-items: center;
  padding: var(--s6) var(--gut) calc(var(--s6) + var(--s4));
}
.case { flex: 0 0 100%; scroll-snap-align: start; }
.case + .case { border-left: 1px solid var(--line-d); }
.case__stage { grid-column: 1 / 10; position: relative; }
.case__t {
  grid-column: 10 / 13;
  font-size: var(--t4); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.06;
}
.case--flip .case__stage { grid-column: 4 / 13; grid-row: 1; }
.case--flip .case__t     { grid-column: 1 / 4;  grid-row: 1; }

.shot { position: relative; display: block; }
.shot img {
  display: block; width: 100%; height: auto;
  outline: 1px solid var(--line-d-str); outline-offset: -1px;
}
/* метки обреза: восемь коротких штрихов по углам, за краем снимка */
.shot::before {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  --m: linear-gradient(var(--accent), var(--accent));
  background:
    var(--m) 0 0 / 14px 1px no-repeat,      var(--m) 0 0 / 1px 14px no-repeat,
    var(--m) 100% 0 / 14px 1px no-repeat,   var(--m) 100% 0 / 1px 14px no-repeat,
    var(--m) 0 100% / 14px 1px no-repeat,   var(--m) 0 100% / 1px 14px no-repeat,
    var(--m) 100% 100% / 14px 1px no-repeat, var(--m) 100% 100% / 1px 14px no-repeat;
}
/* телефон — тот же образец, только меньше, поверх угла большого */
.shot--phone {
  position: absolute; right: 4%; bottom: -14%;
  width: 21%;
}

/* ══ 7 · РАЗДЕЛИТЕЛЬ ══════════════════════════════════════════ */
.div {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  display: flex; align-items: center;
  overflow: clip;
  background: var(--dark);
}
.div__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;      /* в кадр попадает светлая часть крыла */
  filter: brightness(.35);
}
.div__word {
  position: relative;
  width: 100%;
  display: flex; justify-content: center;   /* поровну за оба края */
  white-space: nowrap;
}
.div__word span {
  display: inline-block;
  font-size: clamp(var(--t9), 24vw, var(--t12));
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .74;
  color: var(--ink-d);
}
/* will-change поднимается только пока разделитель в кадре — класс ставит
   ScrollTrigger в app.js. Постоянный слой держит память зря. */
.div--live .div__word span { will-change: transform; }

/* ══ 8 · СПАСЕНИЕ — единственная оранжевая секция ═════════════ */
.save {
  position: relative;
  background: var(--accent);
  color: var(--ink-l);
  padding: var(--s6) var(--gut);
  overflow: clip;
}
/* Тёмная штора поверх содержимого: уезжает вверх и открывает секцию.
   Раскрытие читается так же, как прежняя заливка снизу, но текст
   ни в одном кадре не оказывается тёмным по тёмному. */
.save__fill {
  position: absolute; inset: 0; z-index: 2;
  background: var(--dark);
  transform: scaleY(0);
  transform-origin: 50% 0;
}
.save__in {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: var(--s5);
  align-items: end;
}
.save__h2 {
  font-size: var(--t4);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  max-width: 20ch;
}
.save__p { font-size: var(--t0); max-width: 44ch; }
.save__cta {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  padding-top: var(--s3);
  border-top: 1px solid var(--line-acc);
}
.save__cta a {
  font-weight: 700; font-size: var(--t1);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.save__cta .mono { font-size: var(--t-1); }

/* ══ 9 · ПОЧЕМУ БЫСТРО ════════════════════════════════════════ */
.fast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  gap: var(--s5);
  align-items: center;
  padding: var(--s6) var(--gut);
  overflow-x: clip; overflow-y: visible;
}
.fast__h2 {
  font-size: var(--t4); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.06;
  margin-bottom: var(--s3);
}
.fast__p { font-size: var(--t1); color: var(--ink-d); max-width: 40ch; }

/* крыло уходит за правый край — рифма с обрезом первого экрана */
.fast__object { margin-right: calc(var(--gut) * -1); }
.fast__object img {
  mix-blend-mode: screen;
  width: calc(100% + var(--gut));
  max-width: none;
}

/* ══ 10 · ЗАЯВКА — без анимации ═══════════════════════════════ */
.ask {
  background: var(--light); color: var(--ink-l);
  padding: var(--s7) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.ask__h2 {
  font-size: var(--t5);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  max-width: 16ch;
  margin-bottom: var(--s5);
}
.ask__h2 em { font-weight: 500; }
.f { margin-bottom: var(--s3); max-width: 34rem; }
.f label { display: block; font-size: var(--t-1); margin-bottom: var(--s1); }
.f input[type=text], .f textarea {
  width: 100%;
  font: inherit; font-size: var(--t0);
  color: var(--ink-l);
  background: transparent;
  border: 1px solid var(--line-l-str);
  padding: 14px var(--s2);
  border-radius: 0;
}
.f textarea { resize: vertical; }
.f input:hover, .f textarea:hover { border-color: var(--ink-l); }
.f--check { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: start; margin-top: var(--s4); }
.f--check input { width: 26px; height: 26px; accent-color: var(--accent); margin: 0; }
.f--check label { font-size: var(--t-1); color: var(--mute-l); margin: 0; }
.f--check .f__e { grid-column: 1 / -1; }
.f__e { font-size: var(--t-1); margin-top: var(--s1); color: var(--ink-l); }
.f__e::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
/* тот же слот в подвале стоит на тёмном поле: 2.69 : 1 → 5.3 : 1 */
/* Экран после отправки встаёт на место формы целиком, а не строкой
   под ней: заголовок, срок ответа, прямые каналы. Введённое обратно
   не показываем — это доказательство для разработчика, а не награда
   для человека, который только что отдал свой телефон. */
.ask__echo {
  max-width: 40rem;
  padding-top: var(--s3);
  border-top: 2px solid var(--accent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.ask__echo.is-in { opacity: 1; transform: none; }
.echo__h {
  font-size: var(--t4);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink-l);
}
.echo__p {
  margin-top: var(--s3);
  font-size: var(--t1);
  color: var(--ink-l);
  max-width: 30ch;
}
.echo__links { margin-top: var(--s2); }
.echo__links li + li { margin-top: var(--s2); }
.echo__links a {
  display: flex; justify-content: space-between; gap: var(--s2);
  font-size: var(--t1); font-weight: 500;
  text-decoration: none;
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--line-l-str);
  transition: border-color .14s ease-out;
}
.echo__links a:hover { border-bottom-color: var(--accent); }
.echo__links .mono { font-size: var(--t-1); color: var(--mute-l); align-self: end; }

/* Ловушка для ботов: убрана из вида, но не type=hidden — боты её заполняют */
.f-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.btn[disabled] { cursor: progress; transform: none; }

/* Сбой отправки — рядом с кнопкой, форма и введённое остаются на месте */
.ask__fail {
  max-width: 40rem;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 2px solid var(--accent);
}
.fail__h {
  font-size: var(--t2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink-l);
}
.fail__p { margin-top: var(--s2); font-size: var(--t0); color: var(--ink-l); max-width: 36ch; }

.ask__side { border-top: 1px solid var(--line-l-str); padding-top: var(--s3); }
.ask__side-h {
  font-size: var(--t-2); text-transform: uppercase; letter-spacing: .05em;
  color: var(--mute-l); margin-bottom: var(--s2);
}
.ask__links { margin-bottom: var(--s5); }
.ask__links li + li { margin-top: var(--s2); }
.ask__links a {
  display: flex; justify-content: space-between; gap: var(--s2);
  font-size: var(--t1); font-weight: 500;
  text-decoration: none;
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--line-l);
  transition: border-color .14s ease-out;
}
.ask__links a:hover { border-bottom-color: var(--accent); }
.ask__links .mono { font-size: var(--t-1); color: var(--mute-l); align-self: end; }

/* ══ 11 · ПОДВАЛ ══════════════════════════════════════════════ */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s5) var(--gut);
  border-top: 1px solid var(--line-d);
  font-size: var(--t-1);
  color: var(--mute-d);
}
.foot__mark {
  display: block;
  font-size: var(--t2); font-weight: 800; letter-spacing: -.03em;
  color: var(--ink-d); text-decoration: none;
  margin-bottom: var(--s1);
}
.foot__b p { max-width: 42ch; }
.foot p + p { margin-top: 4px; }
.foot a { color: var(--ink-d); }
.foot__c a { display: inline-block; padding: 4px 0; }

/* ══════════════════════════════════════════════════════════════
   Стартовые состояния анимации. Живут только под .anim —
   нет JS или включён reduce, класса нет и страница сразу готова.
   ══════════════════════════════════════════════════════════════ */
.anim [data-rise] { opacity: 0; transform: translateY(28px); }
.anim [data-slide="l"] { opacity: 0; transform: translateX(-56px); }
.anim [data-slide="r"] { opacity: 0; transform: translateX(56px); }
.anim [data-cascade] > * { opacity: 0; transform: translateY(-14px); }
.anim .flow__line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .save__fill { transform: scaleY(1); }

/* ══ АДАПТИВ ══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .work__top { grid-template-columns: 1fr; gap: var(--s3); align-items: start; }

  .price { grid-template-columns: 1fr; gap: var(--s5); }
  .price__head { position: static; }
  .flow__steps { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); }
  .flow__line { display: none; }
  .fast { grid-template-columns: 1fr; gap: var(--s5); }
  .ask { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .foot { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
}

@media (max-width: 860px) {
  /* Навигация не прячется, а становится лентой под маркой: страница
     12 000 px, и без неё до формы нет ни одного перехода. Прокрутка
     горизонтальная, подписи в языке страницы, без иконок и бургера. */
  /* На телефоне в шапке только марка и путь в форму: лента разделов
     не помещалась и съедала высоту, а до формы ведёт одна кнопка. */
  .top { padding-top: var(--s2); padding-bottom: var(--s2); }
  .top__tg, .top__nav a:not(.top__nav-cta) { display: none; }
  /* На телефоне крыла нет: первый экран — логотип, заголовок,
     строка и кнопка без пустого пролёта; цифры сеткой 2×2 ниже. */
  :root { --top-h: 60px; }
  .hero { min-height: 0; padding-top: clamp(var(--s5), 9vh, var(--s6)); }
  .hero__object { display: none; }
  .hero__text { margin-bottom: var(--s5); }
  .hero__h1 { font-size: clamp(var(--t3), 10.2vw, var(--t5)); line-height: 1.02; }
  .hero__h1 br { display: none; }
  .figs__row { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .figs__i:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figs__i:nth-child(3), .figs__i:nth-child(4) { padding-top: var(--s3); border-top: 1px solid var(--line-d); }
  .what__i { grid-template-columns: 3rem 1fr; }
  .case { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s5) var(--gut); }
  .case__stage, .case--flip .case__stage { grid-column: 1; grid-row: auto; margin-right: 18%; }
  .case__t, .case--flip .case__t { grid-column: 1; grid-row: auto; font-size: var(--t2); }
  .shot--phone { width: 34%; right: -20%; bottom: -22%; }
  .shot::before { inset: -8px; }
  .save__in { grid-template-columns: 1fr; gap: var(--s3); }

  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  html { font-size: 106%; }
  .flow__steps { grid-template-columns: 1fr; gap: var(--s4); }
  .price__t thead { display: none; }
  .price__t tbody tr { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; }
  .price__t tbody th, .price__t tbody td { padding: 0; }
  /* width:1% из настольной раскладки схлопывает ячейку цены во флексе */
  .price__t tbody th:first-child { flex: 1 1 auto; }
  .price__t tbody td:last-child { width: auto; flex: 0 0 auto; }
}

/* ══ ДОКУМЕНТЫ: политика и оферта ═══════════════════════════ */
.doc {
  background: var(--light); color: var(--ink-l);
  padding: var(--s6) var(--gut) var(--s7);
}
.doc > * { max-width: 44rem; }
.doc__h1 {
  font-family: Geologica, Onest, system-ui, sans-serif;
  font-size: clamp(var(--t3), 8.4vw, var(--t5)); font-weight: 800; letter-spacing: -.03em; line-height: 1.04;
  margin-bottom: var(--s2);
}
.doc__date { font-size: var(--t-1); color: var(--mute-l); margin-bottom: var(--s5); }
.doc h2 {
  font-size: var(--t1); font-weight: 700; letter-spacing: -.02em;
  margin: var(--s5) 0 var(--s2);
}
.doc p, .doc li { font-size: var(--t0); line-height: 1.6; }
.doc p + p { margin-top: var(--s2); }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc li + li { margin-top: var(--s1); }
.doc a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc :focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--ink-l); }

/* ══ ТЕЛЕФОН ═══════════════════════════════════════════════════
   Отступы секций 160 px и кегли десктопа на 390 превращали страницу
   в 12 000 px прокрутки. Здесь всё на ступень-две плотнее. */
@media (max-width: 560px) {
  .hero__figs { padding-top: var(--s3); padding-bottom: var(--s4); column-gap: var(--s3); }
  .figs__i:nth-child(even) { padding-left: var(--s3); }

  .what, .price, .flow, .work, .fast, .ask, .save {
    padding-top: var(--s5); padding-bottom: var(--s5);
  }
  .work { padding-bottom: 0; }   /* лента кейсов доходит до конца секции */
  .work__btn { width: 44px; height: 44px; }
  .work__count { margin-right: var(--s1); }
  /* на телефоне стрелки уходят строкой под заголовок: рядом с ним им
     не хватает ширины, и правая вылезала за край экрана */
  .work__top { flex-wrap: wrap; row-gap: var(--s3); }
  /* на самых узких экранах курсив «бесплатно» не должен распирать форму */
  .ask__h2 { font-size: clamp(var(--t3), 9.6vw, var(--t5)); }
  .work__nav { width: 100%; }
  .work__count { margin-right: auto; }
  .what__h2, .flow__top, .work__top { margin-bottom: var(--s3); }
  .price { gap: var(--s4); }

  /* убывающий кегль сохраняется, но с потолком телефона */
  .what__i { padding: var(--s2) 0; row-gap: var(--s1); }
  .what__i:nth-child(1) .what__name,
  .what__i:nth-child(2) .what__name { font-size: var(--t3); }
  .what__i:nth-child(3) .what__name,
  .what__i:nth-child(4) .what__name { font-size: var(--t2); }
  .what__i:nth-child(n+5) .what__name { font-size: var(--t1); }

  .price__claim-t { font-size: var(--t2); }
  .save__h2 { font-size: var(--t2); }
  .flow__steps { gap: var(--s3); }
  .flow__cta { margin-top: var(--s4); }
  .foot { padding-top: var(--s4); padding-bottom: var(--s4); gap: var(--s3); }
}

/* Страховка на смену настройки движения на лету. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   Заголовочная гарнитура: Geologica на h1-h3 и на слове-монументе.
   Селектор по типу элемента (0,0,1), поэтому `.hero__h1 em`
   и соседи (0,1,1) остаются за курсивом PT Serif.
   ══════════════════════════════════════════════════════════════ */
h1, h2, h3, .div__word span, .what__name { font-family: Geologica, Onest, system-ui, sans-serif; }
