/* ВсеЧеки — стили сайта. Без сборки: правьте прямо здесь.
   Палитра и шрифты — в :root. Анимации — только transform и opacity. */

/* ---------- Шрифты (OFL, свои файлы, latin + cyrillic) ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/unbounded-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: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/manrope-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.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 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-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;
}

/* ---------- Токены ---------- */
/* Цвета светлой темы. Тёмная тема переопределяет те же токены ниже («Тёмная тема»).
   Чек-заявка — бумага в обеих темах: на .receipt действуют значения светлой темы. */
:root, .receipt {
  color-scheme: light;
  --paper: #F7F6F2;          /* фон страницы */
  --white: #FFFFFF;          /* поверхности: карточки, «Доставка», ярлык */
  --ink: #141517;            /* текст, линии, «чернильные» кнопки */
  --ink-hover: #000000;
  --muted: #5E6066;
  --line: #DCDAD3;
  --accent: #E5352B;        /* красная полоса конца рулона: метки, крупный текст, фон кнопок */
  --accent-ink: #D12E24;    /* тот же красный чуть глубже — фон кнопок с мелким белым текстом (AA ≥ 4.5) */
  --accent-press: #B8261D;
  --accent-text: #D12E24;   /* мелкий красный текст на фоне страницы */
  --on-accent: #FFFFFF;
  --dark: #141517;           /* тёмные секции, мобильное меню */
  --dark-2: #1C1E21;
  --dark-line: #2E3035;
  --dark-line-strong: #4A4C52;
  --dark-edge: transparent;  /* край тёмной секции (виден только в тёмной теме) */
  --on-dark: #F7F6F2;
  --on-dark-muted: #A9AAB0;
  --on-dark-soft: #8E9096;
  --accent-on-dark: #FF8A80;
  --footer-bg: #0D0E10;
  --header-bg: rgba(247, 246, 242, .92);
  --scrim: rgba(20, 21, 23, .4);
  --media-hi: #FFFFFF;
  --media-lo: #EFEDE7;
  --placeholder: #8A8C91;
  --field-focus: #F4F3EE;
  --chip-hover: #F0EFEA;
  --error: #B3241B;
  --error-bg: #FFF3F2;
  --error-bg-soft: #FFF6F5;
  --shadow-paper: 0 1px 0 rgba(20, 21, 23, .04), 0 18px 40px -18px rgba(20, 21, 23, .28);
  --receipt-shadow: drop-shadow(0 30px 40px rgba(20, 21, 23, .16)) drop-shadow(0 2px 3px rgba(20, 21, 23, .08));
}
:root {
  /* Бумага ленты, чека и значка: в тёмной теме чуть приглушена, печать на ней всегда графитовая. */
  --sheet: #FFFFFF;
  --tape-ink: #141517;
  --tape-edge: #7A7C82;      /* край ленты: ≥ 3:1 к светлому и тёмному фону */
  --tape-shade: rgba(20, 21, 23, .07);
  --icon-moon: block;
  --icon-sun: none;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Сетка: лента идёт по левому «рельсу», контент — правее неё. */
  --frame: 1440px;
  --rail-x: 32px;
  --tape-w: 44px;
  --rail-gap: 44px;
  --gutter: 48px;
  --content-x: calc(var(--rail-x) + var(--tape-w) + var(--rail-gap));
  --rail-left: calc(max(0px, (100% - var(--frame)) / 2) + var(--rail-x));

  --header-h: 76px;
  --radius: 4px;
  --section-y: clamp(64px, 8.4vw, 136px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* Ширина ленты: ≥ 40 px от 1024, ≥ 32 px от 640, ≥ 22 px уже. Сетка, логотип, меню и линия отрыва считаются от неё. */
@media (max-width: 1099px) {
  :root { --rail-x: 16px; --tape-w: 40px; --rail-gap: 24px; --gutter: 32px; --header-h: 68px; }
}
@media (max-width: 1023px) {
  :root { --rail-x: 16px; --tape-w: 32px; --rail-gap: 24px; }
}
@media (max-width: 699px) {
  :root { --rail-x: 10px; --tape-w: 32px; --rail-gap: 16px; --gutter: 16px; --header-h: 60px; }
}
@media (max-width: 639px) {
  :root { --rail-x: 6px; --tape-w: 24px; --rail-gap: 12px; }
}

/* ---------- Тёмная тема ----------
   Та же палитра: графит — фон, бумага — текст, красный — акцент. Тёмные секции глубже фона и с краем.
   Без выбора посетителя — по теме системы; выбор (theme.js) ставит data-theme на <html>.
   Два блока ниже держать одинаковыми. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141517;
    --white: #1C1E21;
    --ink: #F7F6F2;
    --ink-hover: #FFFFFF;
    --muted: #A9AAB0;
    --line: #34363B;
    --accent-text: #FF8A80;
    --dark: #0B0C0E;
    --dark-edge: #303237;
    --footer-bg: #070809;
    --header-bg: rgba(20, 21, 23, .92);
    --scrim: rgba(0, 0, 0, .6);
    --media-hi: #2A2C30;
    --media-lo: #1C1E21;
    --placeholder: #85878D;
    --field-focus: #24262A;
    --chip-hover: #24262A;
    --error: #FF8A80;
    --error-bg: #2B1A19;
    --error-bg-soft: #2B1A19;
    --shadow-paper: 0 0 0 1px #2E3035, 0 18px 40px -18px rgba(0, 0, 0, .6);
    --receipt-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
    --sheet: #F7F6F2;
    --icon-moon: none;
    --icon-sun: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141517;
  --white: #1C1E21;
  --ink: #F7F6F2;
  --ink-hover: #FFFFFF;
  --muted: #A9AAB0;
  --line: #34363B;
  --accent-text: #FF8A80;
  --dark: #0B0C0E;
  --dark-edge: #303237;
  --footer-bg: #070809;
  --header-bg: rgba(20, 21, 23, .92);
  --scrim: rgba(0, 0, 0, .6);
  --media-hi: #2A2C30;
  --media-lo: #1C1E21;
  --placeholder: #85878D;
  --field-focus: #24262A;
  --chip-hover: #24262A;
  --error: #FF8A80;
  --error-bg: #2B1A19;
  --error-bg-soft: #2B1A19;
  --shadow-paper: 0 0 0 1px #2E3035, 0 18px 40px -18px rgba(0, 0, 0, .6);
  --receipt-shadow: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
  --sheet: #F7F6F2;
  --icon-moon: none;
  --icon-sun: block;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 1100px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.mono { font-family: var(--f-mono); }

.frame {
  position: relative;
  max-width: var(--frame);
  margin-inline: auto;
  padding-left: var(--content-x);
  padding-right: var(--gutter);
}

/* Битая картинка (файл ещё не отрендерен) не показывает alt-текст поверх вёрстки. */
img { color: transparent; font-size: 0; }

/* ---------- Ссылки и кнопки ---------- */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover { color: var(--accent-text); }
.section--dark .link, .link-light { color: var(--on-dark); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  transition: transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .25s var(--ease-out); flex: none; }
.btn:hover .icon { transform: translateX(4px); }
.btn--accent { --btn-bg: var(--accent-ink); --btn-fg: var(--on-accent); }
.btn--accent:hover { --btn-bg: var(--accent-press); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--dark:hover { --btn-bg: var(--ink-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: var(--on-dark); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--large { min-height: 60px; padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--text {
  --btn-bg: transparent; --btn-fg: var(--muted);
  border-color: transparent; padding-inline: 12px; font-family: var(--f-mono); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 4px;
}
.btn--text:hover { --btn-fg: var(--ink); transform: none; }
.btn[disabled] { cursor: progress; transform: none; opacity: .75; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled::before, html:not(.js) .site-header::before { opacity: 1; }
.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: calc(var(--rail-x) - 4px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo__mark { width: calc(var(--tape-w) + 8px); height: auto; flex: none; }
/* Значок — верх той же ленты: бумага и графитовая печать в обеих темах. */
.logo__paper { fill: var(--sheet); stroke: var(--tape-ink); }
.logo__print { stroke: var(--tape-ink); }
.logo__cut { stroke: var(--accent); }
.logo__word {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo--light { color: var(--on-dark); }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 7px; right: 7px; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .icon { color: var(--accent); }

/* Переключатель темы (theme.js). Без JS бесполезен — скрыт. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle__icon { grid-area: 1 / 1; width: 20px; height: 20px; }
.theme-toggle__icon--moon { display: var(--icon-moon); }
.theme-toggle__icon--sun { display: var(--icon-sun); }
html:not(.js) .theme-toggle { display: none; }
.doc-page .site-header__actions { margin-left: auto; }
/* Узкий телефон: логотип, «На главную» и кнопка темы помещаются в одну строку. */
@media (max-width: 639px) {
  .doc-page .site-header__inner { gap: 10px; }
  .doc-page .doc-back { padding-inline: 14px; }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ''; left: 0; top: 0; margin: 0; }
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { opacity: 0; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--scrim);
}
.mobile-menu__panel {
  position: absolute;
  inset: 0 0 auto 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px var(--gutter) 32px calc(var(--rail-x) + var(--tape-w) + var(--rail-gap));
  background: var(--dark);
  color: var(--on-dark);
  animation: menu-in .35s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
.mobile-menu__list { counter-reset: none; }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  min-height: 48px;
  border-bottom: 1px dashed var(--dark-line);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu__list .mono { font-size: 12px; color: var(--on-dark-muted); font-weight: 500; }
.mobile-menu__actions { display: grid; gap: 12px; margin-top: 24px; }
.mobile-menu__contacts { display: grid; gap: 4px; margin-top: 20px; font-family: var(--f-mono); }
.mobile-menu__contacts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (max-width: 1379px) {
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 699px) {
  .header-cta { display: none; }
  .header-phone__number { display: none; }
  .header-phone { border: 2px solid var(--ink); border-radius: 999px; width: 48px; height: 48px; }
  .theme-toggle { width: 48px; height: 48px; }
  .site-header__actions { gap: 8px; }
  .logo__word { font-size: 19px; }
  .logo { gap: 10px; }
}
@media (min-width: 1380px) { .mobile-menu { display: none !important; } }

/* ---------- Лента ---------- */
.tape-run { position: relative; }
.tape {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rail-left);
  width: var(--tape-w);
  z-index: 3;
  pointer-events: none;
}
.tape__clip { position: absolute; inset: 0; overflow: hidden; }
.tape__paper {
  position: absolute;
  inset: 0;
  /* «Напечатанные» строки чека: SVG-плитка без текста, повторяется по всей длине ленты. */
  background:
    linear-gradient(90deg, var(--tape-shade), transparent 18%, transparent 82%, var(--tape-shade)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 240' preserveAspectRatio='none'%3E%3Cg fill='%23141517' fill-opacity='.36'%3E%3Crect x='9' y='20' width='22' height='2'/%3E%3Crect x='9' y='28' width='14' height='2'/%3E%3Crect x='9' y='36' width='18' height='2'/%3E%3Crect x='9' y='60' width='22' height='1' fill-opacity='.7'/%3E%3Crect x='9' y='84' width='10' height='2'/%3E%3Crect x='25' y='84' width='6' height='2'/%3E%3Crect x='9' y='92' width='12' height='2'/%3E%3Crect x='27' y='92' width='4' height='2'/%3E%3Crect x='9' y='100' width='8' height='2'/%3E%3Crect x='24' y='100' width='7' height='2'/%3E%3Crect x='9' y='140' width='22' height='3'/%3E%3Crect x='9' y='176' width='1' height='14'/%3E%3Crect x='11' y='176' width='2' height='14'/%3E%3Crect x='15' y='176' width='1' height='14'/%3E%3Crect x='18' y='176' width='3' height='14'/%3E%3Crect x='23' y='176' width='1' height='14'/%3E%3Crect x='26' y='176' width='2' height='14'/%3E%3Crect x='30' y='176' width='1' height='14'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 240px repeat-y,
    var(--sheet);
  /* Край ленты внутри бумаги (снаружи его срезал бы .tape__clip): ≥ 3:1 к фону любой секции. */
  box-shadow: inset 1px 0 0 var(--tape-edge), inset -1px 0 0 var(--tape-edge);
}
/* Красная полоса конца рулона перед чеком-заявкой. */
.tape__end {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(520px, 60vh);
  display: flex;
  justify-content: center;
  padding-block: 28px 40px;
  background: linear-gradient(90deg, transparent 0 62%, var(--accent) 62% 100%);
}
.tape__end-text {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tape-ink);
  white-space: nowrap;
  margin-right: 30%;
}
.tape__tip {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 10px;
  margin-top: -1px;
  background: var(--sheet);
  --mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}

/* До первого кадра скрипта лента ещё не «напечатана» (только если анимации разрешены). */
@media (prefers-reduced-motion: no-preference) {
  .js [data-tape] .tape__clip { transform: translateY(-100%); }
  .js [data-tape] .tape__paper { transform: translateY(100%); }
  .js [data-tape] .tape__tip { top: 0; }
}

/* Метки разделов, «напечатанные» на ленте. */
.tape-mark {
  position: absolute;
  z-index: 4;
  top: calc(var(--section-y) - 8px);
  left: var(--rail-left);
  width: var(--tape-w);
  display: flex;
  justify-content: center;
  padding-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tape-ink);
  writing-mode: vertical-rl;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .6s;
}
.tape-mark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  border-top: 2px dashed var(--tape-ink);
  opacity: .5;
}
.js .tape-mark:not(.is-printed) { opacity: 0; }
@media (max-width: 1099px) { .tape-mark { font-size: 10px; letter-spacing: .1em; } }
@media (max-width: 639px) {
  .tape-mark { font-size: 0; padding-top: 0; }
  .tape-mark::before { left: 2px; right: 2px; }
  .tape__end-text { display: none; }
  .tape__end { background: linear-gradient(90deg, transparent 0 55%, var(--accent) 55% 100%); }
}

/* ---------- Общие секции ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--dark); color: var(--on-dark); box-shadow: inset 0 1px 0 var(--dark-edge), inset 0 -1px 0 var(--dark-edge); }
.section--dark .section-head__lead, .section--dark p:not([class]) { color: var(--on-dark-muted); }

.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head__num::before { content: ''; width: 10px; height: 10px; background: var(--accent); flex: none; }
.section-head__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 0.5rem + 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-head__title em { font-style: normal; color: var(--muted); }
.section--dark .section-head__title em { color: var(--on-dark-soft); }
.section-head__lead {
  margin-top: 24px;
  max-width: 600px;
  font-size: clamp(17px, 0.95rem + 0.3vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.section-head--split .section-head__lead { margin-top: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* Строки «чека»: подпись …… значение */
.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: baseline; gap: 8px; }
.row dt { flex: none; order: 0; }
.row dd { flex: 0 1 auto; order: 2; margin: 0; text-align: right; max-width: 62%; }
.row::before {
  content: '';
  order: 1;
  flex: 1 1 auto;
  min-width: 16px;
  border-bottom: 2px dotted currentColor;
  opacity: .35;
  transform: translateY(-4px);
}

/* ---------- Первый экран ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 64px); overflow: clip; }
.hero__grid { position: relative; min-height: min(860px, calc(100svh - var(--header-h) - 64px)); }
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 6vw, 96px); }
.hero__title {
  margin-top: clamp(18px, 2.4vw, 32px);
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: .9;
}
.hero__line { display: block; font-size: clamp(3rem, 0.6rem + 9.4vw, 9rem); }
.hero__dot { color: var(--accent); }
.hero__line--sub {
  max-width: 17em;
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(1.25rem, 0.8rem + 1.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 30em;
  margin-top: clamp(18px, 2vw, 28px);
  font-size: clamp(17px, 0.95rem + 0.35vw, 20px);
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }

.hero__visual {
  position: relative;
  z-index: 1;
}
.hero__roll { position: relative; will-change: transform; }
.hero__roll img { width: 100%; height: auto; aspect-ratio: 1; }

.receipt__barcode {
  height: 34px;
  margin-top: 18px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 19px, var(--ink) 19px 22px, transparent 22px 25px);
  opacity: .85;
}

@media (min-width: 1100px) {
  .hero__grid { display: block; }
  .hero__copy { max-width: 64%; }
  .hero__title .hero__line:first-child { white-space: nowrap; }
  .hero__visual {
    position: absolute;
    top: clamp(120px, 11vw, 180px);
    right: var(--gutter);
    width: 46%;
    max-width: 660px;
  }
}
@media (max-width: 1099px) {
  .hero__visual { display: grid; grid-template-columns: 1fr; margin-top: -8px; padding-bottom: 56px; }
  .hero__roll { width: min(560px, 100%); margin-left: auto; }
}
@media (max-width: 699px) {
  .hero__copy { padding-bottom: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__roll { width: 100%; margin-right: -8px; }
}

/* Бегущая строка внизу первого экрана */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: 16px;
  border-block: 1px solid var(--ink);
}
.ticker__track {
  display: flex;
  width: max-content;
}
/* Строка едет, только когда работает main.js: без JS её нечем остановить (WCAG 2.2.2). */
[data-ui-ready] .ticker__track { animation: ticker 48s linear infinite; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle {
  display: none;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: var(--gutter);
  translate: 0 -50%;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  box-shadow: -24px 0 24px 8px var(--ink);
}
[data-ui-ready] .ticker__toggle { display: grid; }
.ticker__toggle:hover { background: var(--paper); color: var(--ink); }
.ticker__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ticker__icon { grid-area: 1 / 1; width: 16px; height: 16px; }
.ticker__icon--play, .ticker.is-paused .ticker__icon--pause { display: none; }
.ticker.is-paused .ticker__icon--play { display: block; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(15px, 0.8rem + 0.6vw, 22px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker__track span::after { content: ''; width: 9px; height: 9px; background: var(--accent); rotate: 45deg; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 01. Почему ВсеЧеки ---------- */
.why-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 40px 0;
  min-height: 340px;
}
.why-card + .why-card { padding-left: 32px; border-left: 1px solid var(--line); }
.why-card__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(4rem, 2rem + 4vw, 7rem);
  line-height: .85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: auto;
  padding-bottom: 28px;
}
.why-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 0.9rem + 1vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.why-card p { color: var(--muted); max-width: 30ch; }
.why-card__stamp {
  position: absolute;
  top: 32px;
  right: 24px;
  padding: 6px 10px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  rotate: -7deg;
}

/* Суть бывшего «Производства» — строка «чека»: подпись, точечная выноска, значение. */
.why-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-bottom: clamp(32px, 4vw, 56px);
  border-top: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.4;
}
.why-facts > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.why-facts > div::before {
  content: '';
  order: 1;
  flex: 1 1 auto;
  min-width: 16px;
  border-bottom: 2px dotted currentColor;
  opacity: .35;
  transform: translateY(-4px);
}
.why-facts dt { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.why-facts dd { order: 2; margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

@media (max-width: 1099px) {
  .why-main { grid-template-columns: 1fr; }
  .why-card { min-height: 0; padding: 28px 0 32px; }
  .why-card + .why-card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .why-card__num { padding-bottom: 12px; }
  .why-card__stamp { top: 30px; right: 0; }
  .why-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}
@media (max-width: 699px) {
  .why-facts { grid-template-columns: minmax(0, 1fr); font-size: 14px; }
  .why-facts > div { padding: 12px 0; }
}
@media (max-width: 899px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- 02. Продукция ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.format-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}
.format-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(60% 55% at 50% 58%, var(--media-hi) 0, var(--media-lo) 100%);
  overflow: hidden;
}
.format-card__media img {
  position: absolute;
  inset: 7% 6% 1%;
  width: 88%;
  height: 92%;
  object-fit: contain;
  transition: transform .8s var(--ease-out);
}
.format-card:hover .format-card__media img { transform: translateY(-8px) rotate(-2deg); }
.format-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 32px 32px; }
.format-card__tag {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.format-card__size {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 1.4rem + 5vw, 7rem);
  line-height: .95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.format-card__x { display: inline-block; margin-inline: .08em; color: var(--accent); font-weight: 600; }
.format-card__caption {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.format-card .btn { margin-top: auto; }

.format-card--custom {
  grid-column: 1 / -1;
  background: var(--dark);
  color: var(--on-dark);
}
.format-card--custom .format-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-areas: "tag chips" "title chips" "text chips" "btn chips";
  align-content: start;
  gap: 10px 56px;
  padding: clamp(28px, 4vw, 48px);
}
.format-card--custom .format-card__tag { grid-area: tag; color: var(--accent-on-dark); }
.format-card__title {
  grid-area: title;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.format-card--custom p:not(.format-card__tag) { grid-area: text; color: var(--on-dark-muted); max-width: 34ch; }
.format-card--custom .btn { grid-area: btn; justify-self: start; margin-top: 16px; }
.size-chips {
  grid-area: chips;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: center;
}
.size-chips li {
  display: grid;
  gap: 2px;
  padding: 16px 16px 14px;
  border: 1px dashed var(--dark-line-strong);
  border-radius: var(--radius);
  font-family: var(--f-mono);
}
.size-chips span { font-size: clamp(18px, 0.9rem + 0.6vw, 24px); font-weight: 600; color: var(--on-dark); white-space: nowrap; }
.size-chips small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }

@media (max-width: 899px) {
  .formats { grid-template-columns: 1fr; }
  .format-card--custom .format-card__body { grid-template-columns: 1fr; grid-template-areas: "tag" "title" "text" "chips" "btn"; }
  .size-chips { margin-top: 12px; }
}
@media (max-width: 699px) {
  .format-card__body { padding: 22px 20px 24px; }
  .size-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-card .btn { width: 100%; }
}

/* ---------- 03. Как работаем ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 8px 0;
  border-top: 2px solid var(--ink);
}
.step + .step { padding-left: 24px; border-left: 1px dashed var(--line); }
.step::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.step + .step::before { left: -7px; }
.step__num {
  display: block;
  margin-bottom: 40px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.step__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 0.8rem + 0.6vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: 16px; }
.step--loop .step__num { color: var(--accent-text); }
.step--loop::before { background: var(--accent); border-color: var(--accent); }
@media (max-width: 1099px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 0 0 32px 36px; border-top: 0; border-left: 2px solid var(--ink); }
  .step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .step::before, .step + .step::before { top: 0; left: -8px; }
  .step__num { margin-bottom: 10px; line-height: 1; }
}

/* ---------- 04. Доставка ---------- */
.delivery { background: var(--white); }
.delivery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px 80px;
  align-items: start;
}
.delivery__title { font-size: clamp(2.4rem, 0.8rem + 5vw, 6rem); }
.delivery__grid .section-head { margin-bottom: 0; }
.delivery__body { padding-top: 12px; }
.delivery__body > p { color: var(--muted); max-width: 40ch; }
.delivery__lead { font-size: clamp(19px, 1rem + 0.5vw, 24px); color: var(--ink) !important; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.ship-label {
  margin-top: 36px;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  background:
    repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--white) 10px 20px) top / 100% 10px no-repeat,
    var(--white);
  padding-top: 34px;
}
.ship-label__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink) !important;
}
.ship-label__row span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ship-label__row strong { font-weight: 600; text-align: right; }
.ship-label .btn { margin-top: 20px; width: 100%; }
@media (max-width: 899px) { .delivery__grid { grid-template-columns: 1fr; } }

/* ---------- 05. Сотрудничество ---------- */
/* Один экран: кому подходит · что получаете · что указать в заявке, и одна кнопка. */
.partners .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
}
.partners__col { min-width: 0; padding-top: 20px; border-top: 2px solid var(--on-dark); }
.partners__col-title {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.partner-types { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-types li {
  padding: 9px 16px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
/* «Любые партнёры» — главное: сотрудничество для всех. */
.partner-types li:last-child { border-color: var(--accent); }
.partners__list { counter-reset: ask; }
.partners__list li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-bottom: 1px dashed var(--dark-line);
  font-weight: 600;
  line-height: 1.4;
  color: var(--on-dark);
}
.partners__list li:first-child { padding-top: 0; }
.partners__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(9px + .45em);
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.partners__list li:first-child::before { top: .45em; }
.partners__list--steps li { padding-left: 36px; counter-increment: ask; }
.partners__list--steps li::before {
  content: counter(ask, decimal-leading-zero);
  top: 9px;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--accent);
}
.partners__list--steps li:first-child::before { top: 0; }
.partners__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 32px;
  border-top: 1px dashed var(--dark-line);
}
.partners__cta p { font-family: var(--f-mono); font-size: 15px; }
@media (max-width: 899px) {
  .partners__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 699px) {
  .partners__cta { padding-top: 24px; }
  .partners__cta .btn { width: 100%; }
}

/* ---------- 06. Вопросы ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px 80px;
  align-items: start;
}
.faq__grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq__list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px dashed var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.faq-item summary::after {
  content: '';
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--ink); background-image: linear-gradient(var(--paper), var(--paper)), linear-gradient(var(--paper), var(--paper)); }
.faq-item p { padding: 0 64px 26px 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section-head { position: static; }
  .faq-item p { padding-right: 0; }
}

/* ---------- 08. Заявка: чек на конце ленты ---------- */
.order { padding-top: 0; background: var(--paper); }
.anchor { position: absolute; top: 0; left: 0; }
.order__cut {
  position: relative;
  height: 1px;
  margin-bottom: clamp(56px, 7vw, 104px);
  border-top: 2px dashed var(--ink);
  opacity: .9;
}
.order__cut span {
  position: absolute;
  top: -12px;
  left: calc(var(--rail-left) + var(--tape-w) + var(--rail-gap));
  padding: 0 12px 0 34px;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 22px;
}
.order__cut span::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 22px;
  height: 20px;
  /* Ножницы — маска, закрашенная цветом текста: видны в обеих темах. */
  background: var(--ink);
  --scissors: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M8.6 7.6 20 18M8.6 16.4 20 6'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: var(--scissors);
  mask: var(--scissors);
}
.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 48px 80px;
  align-items: start;
}
.order__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.order__head .section-head__title { font-size: clamp(1.65rem, 0.6rem + 3.2vw, 3.4rem); }
.order__direct {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.order__direct-label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.order__phone {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.order__phone:hover { color: var(--accent-text); }
@media (max-width: 999px) {
  .order__grid { grid-template-columns: minmax(0, 1fr); }
  .order__head { position: static; }
  .order__direct { display: none; }
}

.receipt-wrap { filter: var(--receipt-shadow); }
.receipt {
  position: relative;
  padding: 40px clamp(20px, 3.4vw, 44px) 52px;
  background: var(--sheet);
  color: var(--ink);
  --mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 16px 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 51% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}
.receipt__head { text-align: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px dashed var(--line); }
.receipt__brand { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.receipt__meta { margin-top: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 26px;
}
.tabs__tab {
  min-height: 48px;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(11.5px, 3vw, 14px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tabs__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs__tab:focus-visible { outline-offset: -6px; outline-color: var(--accent); }
/* Тип заявки без JS: те же «вкладки», но это радиокнопки name="type"; с JS их скрывает .no-js-only,
   а без JS скрыты кнопки-вкладки, которые без скрипта ничего не делают. */
html:not(.js) .tabs--js { display: none; }
.tabs--choice { min-width: 0; margin-inline: 0; }
.tabs__item { position: relative; display: grid; }
.tabs__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
label.tabs__tab { display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; }
.tabs__input:checked + .tabs__tab { background: var(--ink); color: var(--paper); }
.tabs__input:focus-visible + .tabs__tab { outline: 3px solid var(--accent); outline-offset: -6px; }

.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.js .no-js-only { display: none; }
.field__hint { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.req { color: var(--accent-text); }
.field__input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 2px 8px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--placeholder); opacity: 1; }
.field__input:focus { outline: none; background: var(--field-focus); }
.field__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field__input--area { resize: vertical; min-height: 96px; border: 2px solid var(--ink); padding: 10px 12px; }
.field__input[aria-invalid="true"] { border-color: var(--accent-ink); background: var(--error-bg); }
.field-error {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--error);
}
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips__item { position: relative; display: inline-flex; }
.chips__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 46px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chips__chip:hover { background: var(--chip-hover); }
.chips__input:checked + .chips__chip { background: var(--ink); color: var(--paper); }
.chips__input:focus-visible + .chips__chip { outline: 3px solid var(--accent); outline-offset: 2px; }
.formats-field[aria-invalid="true"] .chips__chip { border-color: var(--accent-ink); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.receipt__summary {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
}
.receipt__summary dd { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt__total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 22px;
  padding: 12px 0;
  border-block: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

.field--check { margin-bottom: 20px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check__input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.check__input::before {
  content: '';
  width: 12px;
  height: 7px;
  border: solid var(--paper);
  border-width: 0 0 3px 3px;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .2s var(--ease-out);
}
.check__input:checked { background: var(--ink); }
.check__input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check__input[aria-invalid="true"] { border-color: var(--accent-ink); background: var(--error-bg); }
.check__label { font-size: 14px; line-height: 1.5; color: var(--muted); padding-top: 2px; cursor: pointer; }
.check__label a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.receipt__actions { display: grid; justify-items: center; gap: 4px; }

/* Пустая живая область остаётся в дереве доступности, иначе первое сообщение могут не озвучить. */
.receipt__status:empty { margin: 0; padding: 0; border: 0; }
.receipt__status {
  margin-top: 20px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-left-width: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.receipt[data-state="error"] .receipt__status { border-color: var(--accent-ink); background: var(--error-bg-soft); }
.receipt[data-state="sending"] .receipt__status { border-style: dashed; }
.receipt__status a { color: inherit; font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.receipt__status strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; color: var(--ink); }

.receipt[data-state="success"] .receipt__body, .receipt[data-state="success"] .tabs { display: none; }
.receipt__success { position: relative; text-align: center; padding: 8px 0 4px; }
.receipt__success .stamp { margin: 6px auto 22px; }
.receipt__success-title { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.receipt__success p:not(.stamp) { color: var(--muted); margin-bottom: 8px; }
.receipt__success .btn { margin-top: 16px; }
.receipt__success-title:focus { outline: none; }
.stamp {
  display: inline-block;
  padding: 10px 18px;
  border: 4px double var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  rotate: -8deg;
  animation: stamp-in .5s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes stamp-in { from { opacity: 0; transform: scale(1.8); } }
.receipt__thanks { margin-top: 10px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Контакты и реквизиты ---------- */
.contacts { padding-bottom: clamp(56px, 6vw, 96px); }
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head req" "list list";
  gap: 0 80px;
}
.contacts__grid .section-head { grid-area: head; }
.contacts__list { grid-area: list; display: grid; justify-items: start; align-content: start; gap: 10px; }
.contacts__phone {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 0.6rem + 4.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}
.contacts__phone:hover { color: var(--accent-on-dark); }
.contacts__mail {
  font-family: var(--f-mono);
  font-size: clamp(18px, 1rem + 0.6vw, 26px);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contacts__city { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--on-dark-muted); }
.requisites { grid-area: req; align-self: start; margin-top: 36px; padding: 24px 0 0; border-top: 2px solid var(--on-dark); font-family: var(--f-mono); font-size: 15px; }
.requisites__title { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.rows--light { gap: 10px; }
.rows--light dt { color: var(--on-dark-muted); }
.rows--light dd { color: var(--on-dark); font-weight: 600; }
@media (max-width: 899px) {
  .contacts__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "req"; gap: 40px; }
  .requisites { margin-top: 0; }
  .contacts__grid .section-head { margin-bottom: 0; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--footer-bg); color: var(--on-dark-muted); padding-block: 56px 40px; font-size: 15px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "brand nav contacts" "legal legal legal";
  gap: 40px;
}
.site-footer__brand { grid-area: brand; display: grid; gap: 14px; align-content: start; }
.site-footer__brand .logo__paper { fill: var(--sheet); stroke: var(--sheet); }
.site-footer__nav { grid-area: nav; }
.site-footer__nav ul { columns: 2; column-gap: 24px; }
.site-footer__nav a, .site-footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.site-footer__nav a:hover, .site-footer__contacts a:hover { color: var(--accent-on-dark); }
.site-footer__contacts { grid-area: contacts; display: grid; align-content: start; font-family: var(--f-mono); }
.site-footer__contacts span { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__legal { grid-area: legal; display: grid; gap: 6px; padding-top: 24px; border-top: 1px dashed var(--dark-line); font-size: 14px; }
.site-footer__legal a { color: var(--on-dark); text-underline-offset: 3px; }
@media (max-width: 899px) {
  .site-footer__inner { grid-template-columns: 1fr; grid-template-areas: "brand" "nav" "contacts" "legal"; gap: 28px; }
}

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js .why-main [data-reveal]:nth-child(2), .js .formats [data-reveal]:nth-child(2), .js .steps [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .why-main [data-reveal]:nth-child(3), .js .formats [data-reveal]:nth-child(3), .js .steps [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .partners__grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .partners__grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .steps [data-reveal]:nth-child(4) { transition-delay: .24s; }
.js .steps [data-reveal]:nth-child(5) { transition-delay: .32s; }
.js .hero [data-reveal]:nth-child(2) { transition-delay: .06s; }
.js .hero [data-reveal]:nth-child(3) { transition-delay: .14s; }
.js .hero [data-reveal]:nth-child(4) { transition-delay: .22s; }

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .js .tape-mark:not(.is-printed) { opacity: 1; }
  .hero__roll { will-change: auto; }
  [data-ui-ready] .ticker__toggle { display: none; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .tape, .tape-mark, .ticker, .mobile-menu { display: none !important; }
  body { background: #fff; }
  /* Бумага белая — печать всегда в светлой теме: те же токены, что тёмная тема переопределяет выше,
     со значениями из :root. Селекторы — как у тёмной темы, чтобы перебить её в любом случае.
     Сверяет tests/e2e/theme.spec.mjs («печать в тёмной теме»). */
  :root:not([data-theme="light"]), :root[data-theme="dark"] {
    color-scheme: light;
    --paper: #F7F6F2;
    --white: #FFFFFF;
    --ink: #141517;
    --ink-hover: #000000;
    --muted: #5E6066;
    --line: #DCDAD3;
    --accent-text: #D12E24;
    --dark: #141517;
    --dark-edge: transparent;
    --footer-bg: #0D0E10;
    --header-bg: rgba(247, 246, 242, .92);
    --scrim: rgba(20, 21, 23, .4);
    --media-hi: #FFFFFF;
    --media-lo: #EFEDE7;
    --placeholder: #8A8C91;
    --field-focus: #F4F3EE;
    --chip-hover: #F0EFEA;
    --error: #B3241B;
    --error-bg: #FFF3F2;
    --error-bg-soft: #FFF6F5;
    --shadow-paper: 0 1px 0 rgba(20, 21, 23, .04), 0 18px 40px -18px rgba(20, 21, 23, .28);
    --receipt-shadow: drop-shadow(0 30px 40px rgba(20, 21, 23, .16)) drop-shadow(0 2px 3px rgba(20, 21, 23, .08));
    --sheet: #FFFFFF;
    --icon-moon: block;
    --icon-sun: none;
  }
}

/* ---------- Юридические страницы ---------- */
.doc-page .site-header::before { opacity: 1; }
.doc-back { margin-left: auto; }
.doc { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); max-width: calc(var(--content-x) + 820px + var(--gutter)); margin-left: max(0px, calc((100% - var(--frame)) / 2)); }
.doc__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 0.8rem + 3.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.doc__meta { margin: 16px 0 40px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.doc h2 {
  margin: 40px 0 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0; display: grid; gap: 6px; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--accent); }
.doc a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc__sign { margin-top: 48px !important; padding-top: 20px; border-top: 2px dashed var(--line); font-family: var(--f-mono); font-size: 14px; }
.site-footer--doc { padding-block: 32px; }

/* ---------- 404 ---------- */
.not-found { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 56px 96px; }
.tape-torn {
  position: absolute;
  top: 0;
  left: var(--rail-left);
  width: var(--tape-w);
  height: 46%;
  background: var(--sheet);
  color: var(--tape-ink);
  box-shadow: inset 1px 0 0 var(--tape-edge), inset -1px 0 0 var(--tape-edge);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 28px;
  --mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 16px repeat-x;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 16px repeat-x;
}
.tape-torn__text { writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 639px) { .tape-torn__text { display: none; } }
.not-found__body { width: 100%; }
.not-found__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(6rem, 2rem + 18vw, 17rem);
  line-height: .85;
  letter-spacing: -0.06em;
}
.not-found__sub { display: block; margin-top: 20px; font-size: clamp(1.5rem, 1rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.not-found__text { max-width: 36em; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 0.95rem + 0.3vw, 20px); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found__contacts { margin-top: 24px; font-family: var(--f-mono); font-size: 15px; }

/* ---------- Ответ на заявку без JS (api/lead.php, LeadPage) ---------- */
.lead-result { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 56px 96px; }
.lead-result__body { width: 100%; }
.lead-result__title { max-width: 18ch; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; text-wrap: balance; }
.lead-result__text, .lead-result__contacts { max-width: 40em; margin-top: 20px; color: var(--muted); font-size: clamp(17px, 0.95rem + 0.3vw, 20px); }
.lead-result__errors { display: grid; gap: 8px; max-width: 40em; margin-top: 28px; padding: 16px 18px; border: 2px solid var(--accent-ink); border-left-width: 8px; background: var(--error-bg-soft); }
.lead-result__errors strong { font-weight: 700; }
