/* ==========================================================================
   025 PROXY — base.css
   Концепция «Круг» (SPEC §2): карбон, хром, красный. Общие шрифты, токены,
   сброс, типографика, кнопки, шапка, подвал, компоненты подстраниц
   (документы, устройства, 404), печать. Стили главной — в home.css.

   Контракты (SPEC §5):
   - Тема одна — тёмная: html[data-theme="dark"]. Семантические переменные
     (--fg, --fg-muted, --link, --line …) заданы на :root; .theme-dark —
     совместимый синоним (ничего не меняет).
   - Кнопки: a.btn.btn--primary (красная, скошенные углы через clip-path
     на ::before — кольцо фокуса не обрезается) | a.btn.btn--ghost (хромовый
     контур) (+ .btn--lg, .btn--sm).
   - Шапка фиксированная, высота — var(--header-h); .is-scrolled — фон
     с размытием (site.js). Подстраницы сами отступают от неё.
   - Карбон: класс .carbon или переменные --carbon-weave + --carbon-size
     (background-image / background-size, два слоя).
   - Прямые потомки article.device-page (.page-hero, .page-section,
     .page-cta, .related-devices) сами выравниваются по сетке 1240px.
   - Цвета — из логотипа, кабинета и лендинга proxy025proxy.ru
     (#07080B, #0B0D12, #101319, #1D2129, #EEF1F6, #98A0AB, #666D78,
     #FF2A33, #E51D28-#9D0C15, #C1121F, #FF5158, #FF7D82, #7B828D).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Шрифты
   Exo 2 (variable 100–900, прямой и курсив) — заголовки, цифры, цены.
   Golos Text (variable 400–900) — текст, интерфейс, кнопки, документы.
   latin-ext подключается только ради знака рубля (U+20BD).
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-cyrillic.woff2?v=b47f37d678") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin.woff2?v=4a259dde31") 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: "Exo 2";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin-ext.woff2?v=8d28e4ca44") format("woff2");
  unicode-range: U+20BD;
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-cyrillic-italic.woff2?v=04af8a210a") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin-italic.woff2?v=26a4dc84a1") 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: "Exo 2";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/exo2-latin-ext-italic.woff2?v=37d5771fbc") format("woff2");
  unicode-range: U+20BD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-cyrillic.woff2?v=17d048ca05") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-latin.woff2?v=9a69d0aa47") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/golos-latin-ext.woff2?v=6225934349") format("woff2");
  unicode-range: U+20BD;
}

/* Метрически подогнанные запасные шрифты: пока грузятся woff2, текст
   занимает почти то же место (меньше сдвигов макета). size-adjust — по
   ширине русского текста относительно Arial (CoreText, wght 400 / 600 /
   700 / 800), ascent/descent — метрики шрифта, делённые на size-adjust. */
@font-face {
  font-family: "Golos Fallback";
  font-style: normal;
  font-weight: 100 550;
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"), local("Roboto-Regular"), local("Liberation Sans"), local("Arimo");
  size-adjust: 107%;
  ascent-override: 91.6%;
  descent-override: 20.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Golos Fallback";
  font-style: normal;
  font-weight: 551 1000;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("Arimo Bold");
  size-adjust: 100.4%;
  ascent-override: 97.6%;
  descent-override: 21.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Exo 2 Fallback";
  font-style: normal;
  font-weight: 100 550;
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"), local("Roboto-Regular"), local("Liberation Sans"), local("Arimo");
  size-adjust: 102.5%;
  ascent-override: 97.5%;
  descent-override: 19.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Exo 2 Fallback";
  font-style: normal;
  font-weight: 551 1000;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("Arimo Bold");
  size-adjust: 99.3%;
  ascent-override: 100.6%;
  descent-override: 20.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Exo 2 Fallback";
  font-style: italic;
  font-weight: 100 550;
  src: local("Arial Italic"), local("Arial-ItalicMT"), local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Roboto Italic"), local("Roboto-Italic"), local("Liberation Sans Italic"), local("Arimo Italic");
  size-adjust: 101.8%;
  ascent-override: 98.2%;
  descent-override: 19.8%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Exo 2 Fallback";
  font-style: italic;
  font-weight: 551 1000;
  src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Roboto Bold Italic"), local("Roboto-BoldItalic"), local("Liberation Sans Bold Italic"), local("Arimo Bold Italic");
  size-adjust: 100.4%;
  ascent-override: 99.5%;
  descent-override: 20%;
  line-gap-override: 0%;
}


/* --------------------------------------------------------------------------
   2. Токены
   -------------------------------------------------------------------------- */

:root {
  /* Палитра «Круг» (SPEC §2.1) */
  --c-carbon-0: #07080B;     /* фон страницы */
  --c-carbon-1: #0B0D12;     /* фон секций и подстраниц */
  --c-carbon-2: #101319;     /* панели, поля */
  --c-carbon-3: #1D2129;     /* линии, рамки, деления */
  --c-chrome: #EEF1F6;       /* основной текст, хром (17.7:1 на #07080B) */
  --c-chrome-2: #98A0AB;     /* второстепенный текст (7.6:1) */
  --c-graphite: #666D78;     /* только крупное/декор: 3.8:1 */
  --c-red: #E51D28;          /* основной акцент */
  --c-red-hot: #FF3B43;      /* свечение, ховер, фокус (5.7:1 на #07080B) */
  --c-red-deep: #7D0A12;     /* вишнёвый, градиенты */
  --c-brand: #B20000;        /* фирменный красный кабинета */

  /* Дополнительно — с лендинга proxy025proxy.ru */
  --c-red-signal: #FF2A33;   /* сигнальный красный: свечения, огни, метки */
  --c-red-dark: #C1121F;     /* тёмный красный лендинга */
  --c-red-ember: #9D0C15;    /* низ градиента кнопки лендинга */
  --c-red-light: #FF5158;    /* ссылки на тёмном (6.1:1 на #0B0D12) */
  --c-red-pale: #FF7D82;     /* ховер ссылок, конец «гоночной» полосы (7.9:1) */
  --c-steel: #7B828D;        /* служебные подписи (5.0:1 на #0B0D12) */
  --c-carbon-panel: #0B0E13; /* низ панелей лендинга */
  --c-paper: #E3E7EC;        /* текст подстраниц (15.7:1 на #0B0D12) */

  /* Кнопка: белый на #D0141F — 5.5:1, на #9D0C15 — 8.4:1;
     ховер #DC1822 — 5.0:1, #A50D16 — 7.9:1 (WCAG AA для 15–17px) */
  --c-btn-top: #D0141F;
  --c-btn-bottom: var(--c-red-ember);
  --c-btn-top-hover: #DC1822;
  --c-btn-bottom-hover: #A50D16;

  /* Металл и фактуры */
  --chrome-text: linear-gradient(180deg, #FFFFFF 0%, #E3E7EC 42%, #A9B0BA 68%, #EEF1F6 100%);  /* худшая точка #A9B0BA — 9.2:1 */
  --racing-stripe: linear-gradient(90deg, var(--c-red-deep), var(--c-red-signal) 60%, var(--c-red-pale));
  --brand-gradient: linear-gradient(90deg, #811512, #FF0708);
  --panel-bg: linear-gradient(180deg, var(--c-carbon-2), var(--c-carbon-panel));
  --carbon-weave:
    conic-gradient(rgba(238, 241, 246, 0.028) 0 25%, rgba(238, 241, 246, 0) 0 50%, rgba(238, 241, 246, 0.028) 0 75%, rgba(238, 241, 246, 0) 0),
    repeating-linear-gradient(45deg, rgba(238, 241, 246, 0.014) 0 1px, rgba(238, 241, 246, 0) 1px 3px);
  --carbon-size: 10px 10px, auto;
  --checker: conic-gradient(rgba(238, 241, 246, 0.075) 0 25%, rgba(238, 241, 246, 0) 0 50%, rgba(238, 241, 246, 0.075) 0 75%, rgba(238, 241, 246, 0) 0);
  --kerb: repeating-linear-gradient(90deg, var(--c-red) 0 10px, var(--c-chrome) 10px 20px);
  --glow-red: rgba(255, 42, 51, 0.42);

  /* Шрифты */
  --font-display: "Exo 2", "Exo 2 Fallback", Arial, sans-serif;
  --font-body: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Шкала (база 17px, SPEC §2.2) */
  --fs-h1-home: clamp(2.6rem, 1rem + 6vw, 6rem);
  --fs-h1: clamp(2.1rem, 1.1rem + 3.4vw, 4rem);
  --fs-h1-doc: clamp(1.75rem, 0.95rem + 3vw, 3.25rem);   /* длинные названия документов */
  --fs-h2: clamp(1.9rem, 1rem + 2.8vw, 3.5rem);
  --fs-h2-sub: clamp(1.7rem, 1.1rem + 2vw, 2.625rem);    /* H2 на подстраницах, ниже H1 */
  --fs-h2-doc: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  --fs-h3: clamp(1.3rem, 1.24rem + 0.25vw, 1.45rem);
  --fs-lead: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-price: clamp(2.2rem, 1.4rem + 2vw, 3.2rem);

  --lh-h1-home: 0.95;
  --lh-h1: 1;
  --lh-h2: 1.02;
  --lh-h3: 1.2;
  --lh-lead: 1.5;
  --lh-body: 1.6;
  --lh-prose: 1.65;          /* документы: длинный текст */
  --lh-small: 1.45;

  /* ≤ ~70 знаков: средняя русская буква Golos около 0.57em */
  --measure: 40em;

  /* Отступы — кратны 4px */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --sp-128: 128px;
  --sp-192: 192px;
  --section-y: clamp(64px, 9vw, 128px);

  /* Радиусы по иерархии: метки 4, кнопки 8, панели 18; скос — только .btn--primary */
  --r-tag: 4px;
  --r-btn: 8px;
  --r-panel: 18px;
  --chamfer: 10px;

  /* Сетка */
  --container: 1240px;
  /* поля не заходят под вырез экрана в ландшафте (viewport-fit=cover) */
  --gutter: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --bleed: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  --header-h: 64px;
  --cluster-w: 128px;        /* резерв под приборку на главной ≥ 1100px */

  /* Движение */
  --ease-out: cubic-bezier(0.22, 0.8, 0.26, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.18s;
  --dur: 0.32s;
  --dur-slow: 0.5s;
}

@media (min-width: 72em) {
  :root {
    --header-h: 72px;
  }
}


/* --------------------------------------------------------------------------
   3. Семантические переменные (тема одна — тёмная)
   -------------------------------------------------------------------------- */

:root,
.theme-dark {
  --fg: var(--c-chrome);
  --fg-muted: var(--c-chrome-2);
  --fg-strong: var(--c-chrome);
  --fg-heading: var(--c-chrome);
  --fg-faint: var(--c-steel);
  --accent: var(--c-red-hot);
  --link: var(--c-red-light);
  --link-hover: var(--c-red-pale);
  --btn-fg: #FFFFFF;
  --ghost-fg: var(--c-chrome);
  --ghost-line: rgba(238, 241, 246, 0.36);
  --ghost-hover-bg: rgba(238, 241, 246, 0.06);
  --ghost-hover-line: rgba(238, 241, 246, 0.78);
  --line: rgba(152, 160, 171, 0.2);
  --line-strong: rgba(152, 160, 171, 0.4);
  --surface: var(--c-carbon-2);
  --focus: var(--c-red-hot);
}

/* Подстраницы (как кабинет): фон #0B0D12, текст #E3E7EC (SPEC §5.3) */
.page-doc,
.page-device,
.page-404 {
  --fg: var(--c-paper);
}

.theme-dark {
  color: var(--fg);
  color-scheme: dark;
}


/* --------------------------------------------------------------------------
   4. Сброс и база
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background-color: var(--c-carbon-0);
  scrollbar-color: #2A2F39 var(--c-carbon-0);
  /* фокус и якоря не уходят под фиксированную шапку (WCAG 2.4.11) */
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: 16px;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--fg);
  background-color: var(--c-carbon-0);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(255, 59, 67, 0.18);
}

body.page-doc,
body.page-device,
body.page-404 {
  background-color: var(--c-carbon-1);
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

svg {
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

p,
li,
dd,
dt,
figcaption,
blockquote,
td,
th {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

/* Заголовки: Exo 2. H1/H2 — курсив 800 («скорость»), H3 — прямой 700 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--fg-heading);
  overflow-wrap: break-word;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
}

h4,
h5,
h6 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
}

/* узкие экраны: длинные русские слова в крупном курсиве переносятся */
@media (max-width: 479.98px) {
  h1,
  h2 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

strong,
b {
  font-weight: 600;
  color: var(--fg-strong);
}

small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--link-hover);
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

table {
  border-collapse: collapse;
}

::selection {
  background-color: rgba(229, 29, 40, 0.6);
  color: #FFFFFF;
}

/* Фокус: 2px кольцо «раскалённого» красного (5.3–5.7:1 к карбону) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Якоря не прячутся под фиксированной шапкой: основной отступ задаёт
   scroll-padding-top у html (шапка + 16px), здесь — поправки: секции —
   вровень с шапкой, заголовки и пункты — шапка + 32px. */
section[id] {
  scroll-margin-top: -16px;
}

h2[id],
h3[id],
.faq__item[id],
.doc__section[id],
.clause[id] {
  scroll-margin-top: 16px;
}


/* --------------------------------------------------------------------------
   5. Служебное: пропуск навигации, скрытый текст, контейнер, карбон
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  background-color: var(--c-btn-top);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  color: #FFFFFF;
  outline: 2px solid var(--c-chrome);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nowrap {
  white-space: nowrap;
}

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

/* Карбоновое плетение: очень тихо (2–3% к фону). Можно класть поверх
   любого тёмного фона: background-image: var(--carbon-weave), …;
   background-size: var(--carbon-size), … */
.carbon {
  background-color: var(--c-carbon-0);
  background-image: var(--carbon-weave);
  background-size: var(--carbon-size);
}

/* Хромированный текст — только для крупных цифр и надписей (≥ 24px) */
.chrome-text {
  color: var(--c-chrome);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome-text {
    background-image: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}


/* --------------------------------------------------------------------------
   6. Кнопки
   Основная — красный градиент лендинга (#D0141F-#9D0C15, белый ≥ 5.5:1)
   со скошенными углами. Скос — clip-path на ::before, а не на самой
   кнопке: иначе обрезалось бы кольцо фокуса.
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background-color: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    filter var(--dur) ease,
    transform var(--dur-fast) ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  border-radius: 0;
  color: var(--btn-fg);
  /* запасной фон, если clip-path не поддерживается — ниже @supports */
  background-color: var(--c-btn-top);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background-color: var(--c-btn-top);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, var(--c-btn-top), var(--c-btn-bottom));
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: opacity var(--dur-fast) ease;
}

/* ховер — светлее градиент, отдельным слоем (градиенты не анимируются) */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, var(--c-btn-top-hover), var(--c-btn-bottom-hover));
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

@supports (clip-path: polygon(0 0, 100% 0, 100% 100%)) {
  .btn--primary {
    background-color: transparent;
  }
}

.btn--primary:hover {
  color: var(--btn-fg);
  filter: drop-shadow(0 10px 22px var(--glow-red));
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--ghost-line);
  color: var(--ghost-fg);
}

.btn--ghost:hover {
  background-color: var(--ghost-hover-bg);
  border-color: var(--ghost-hover-line);
  color: var(--ghost-fg);
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
  --chamfer: 8px;
}


/* --------------------------------------------------------------------------
   7. Шапка
   Над героем прозрачная; после начала прокрутки (.is-scrolled) — тёмная
   полупрозрачная с размытием. Мобильное меню — до 72em (1152px): пять
   разделов, кабинет и кнопка помещаются в строку только с 1152px.
   -------------------------------------------------------------------------- */

.site-header {
  --hdr-bg: rgba(7, 8, 11, 0.9);    /* лендинг: 0.86 + blur; чуть плотнее под мелкой навигацией */
  --hdr-solid: #0B0D12;
  --hdr-line: rgba(238, 241, 246, 0.09);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--fg);
  background-color: rgba(7, 8, 11, 0);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}

.site-header.is-scrolled {
  background-color: var(--hdr-bg);
  border-bottom-color: var(--hdr-line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background-color: var(--hdr-solid);
  }
}

.site-header.is-open {
  background-color: var(--hdr-solid);
  border-bottom-color: var(--hdr-line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  max-width: max(var(--container), 77.5rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--c-chrome);
  text-decoration: none;
  border-radius: var(--r-tag);
  flex: none;
}

.site-header__logo:hover {
  color: #FFFFFF;
}

.site-header__mark {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-header__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__link,
.site-header__cabinet {
  color: var(--c-chrome-2);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

/* Бургер (мобильные) */
.site-header__burger {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: none;
  color: var(--c-chrome);
}

.site-header__burger-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
}

.site-header__burger-lines::before,
.site-header__burger-lines::after {
  content: "";
  position: absolute;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition:
    transform var(--dur) var(--ease-out),
    width var(--dur) var(--ease-out),
    top var(--dur) var(--ease-out);
}

.site-header__burger-lines::before {
  top: 1px;
  width: 22px;
}

/* нижняя линия короче и красная — как стрелка на красной зоне */
.site-header__burger-lines::after {
  top: 9px;
  width: 14px;
  background-color: var(--c-red-hot);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-lines::after {
  top: 5px;
  width: 22px;
  transform: rotate(-45deg);
  background-color: currentColor;
}

@media (max-width: 71.999em) {
  .site-header__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 4px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--hdr-solid);
    background-image: var(--carbon-weave);
    background-size: var(--carbon-size);
    border-bottom: 1px solid var(--hdr-line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.22s ease,
      transform 0.22s var(--ease-out),
      visibility 0s linear 0.22s;
  }

  .site-header.is-open .site-header__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .site-header__link {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-chrome);
  }

  .site-header__link:hover {
    color: var(--c-red-pale);
  }

  .site-header__actions {
    display: grid;
    gap: 12px;
  }

  .site-header__cabinet {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--ghost-line);
    border-radius: var(--r-btn);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ghost-fg);
  }

  .site-header__cabinet:hover {
    background-color: var(--ghost-hover-bg);
    border-color: var(--ghost-hover-line);
    color: var(--ghost-fg);
  }

  .site-header__cta {
    min-height: 52px;
    padding: 14px 20px;
    font-size: 1.0625rem;
  }

  .site-header__backdrop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background-color: rgba(3, 4, 6, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  .site-header.is-open .site-header__backdrop {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  html.is-menu-open,
  html.is-menu-open body {
    overflow: hidden;
  }
}

/* 320px: логотип + бургер помещаются, слово-знак чуть мельче */
@media (max-width: 359.98px) {
  .site-header__wordmark {
    font-size: 1.0625rem;
  }

  .site-header__mark {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 72em) {
  .site-header__burger,
  .site-header__backdrop {
    display: none;
  }

  .site-header__logo {
    margin-right: 0;
  }

  .site-header__panel {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 16px;
  }

  .site-header__list {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .site-header__link,
  .site-header__cabinet {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-inline: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration-thickness: 1px;
    text-underline-offset: 7px;
    border-radius: var(--r-tag);
  }

  .site-header__cabinet {
    color: var(--c-chrome);
  }

  .site-header__link:hover,
  .site-header__cabinet:hover {
    color: var(--c-chrome);
    text-decoration-line: underline;
    text-decoration-color: var(--c-red-hot);
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    padding-left: 12px;
  }

  .site-header__cta {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.875rem;
    white-space: nowrap;
    --chamfer: 8px;
  }
}

@media (min-width: 80em) {
  .site-header__panel {
    margin-left: 32px;
  }

  .site-header__list {
    gap: 24px;
  }

  .site-header__link,
  .site-header__cabinet {
    font-size: 0.9375rem;
  }

  .site-header__actions {
    gap: 20px;
    padding-left: 16px;
  }

  .site-header__cta {
    padding: 8px 20px;
    font-size: 0.9375rem;
  }
}


/* --------------------------------------------------------------------------
   8. Подвал
   Без реквизитов (SPEC §3): бренд, колонки, нижняя строка — копирайт.
   Верхняя граница — тонкая «гоночная» полоса.
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  background-color: var(--c-carbon-0);
  background-image: var(--carbon-weave);
  background-size: var(--carbon-size);
  color: var(--c-chrome);
  color-scheme: dark;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 10, 18, 0), var(--c-red-deep) 18%, var(--c-red-signal) 50%, var(--c-red-deep) 82%, rgba(125, 10, 18, 0));
  opacity: 0.85;
}

.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer__top {
  display: grid;
  gap: 48px;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--c-chrome);
  text-decoration: none;
  border-radius: var(--r-tag);
}

.site-footer__logo:hover {
  color: #FFFFFF;
}

.site-footer__mark {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-footer__tagline {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--c-chrome-2);
}

.site-footer__pay {
  margin-top: 12px;
  max-width: 40ch;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.site-footer__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-chrome);
}

.site-footer__list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list a {
  display: inline-block;
  padding-block: 5px;
  color: var(--c-chrome-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__list a:hover {
  color: var(--c-chrome);
  text-decoration-line: underline;
  text-decoration-color: var(--c-red-hot);
}

.site-footer__bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}

@media (max-width: 559.98px) {
  .site-footer__col--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 800px) {
  .site-footer__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: 64px;
  }
}


/* --------------------------------------------------------------------------
   9. Общие компоненты
   -------------------------------------------------------------------------- */

/* Хлебные крошки: разделитель — наклонная черта, как курсив заголовков */
.breadcrumbs {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-inline: 10px;
  background-color: var(--c-red-hot);
  opacity: 0.8;
  transform: skewX(-18deg);
}

.breadcrumbs a {
  display: inline-block;
  padding-block: 4px;
  color: inherit;
  text-decoration-color: var(--line-strong);
}

.breadcrumbs a:hover {
  color: var(--c-chrome);
  text-decoration-color: currentColor;
}

.breadcrumbs [aria-current="page"] {
  color: var(--fg);
}

/* FAQ: div.faq > details.faq__item > summary.faq__q + div.faq__a
   summary — block, а не flex: так текст вопроса остаётся одним потоком
   (никаких обёрток-span внутри). Маркер — кольцо с плюсом, абсолютно
   справа; место под него резервирует padding-right. */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  position: relative;
  display: block;
  padding: 20px 56px 20px 0;
  list-style: none;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-chrome);
  cursor: pointer;
  border-radius: var(--r-tag);
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-fast) ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::marker {
  content: "";
}

/* плюс в кольце; при открытии вертикальная черта схлопывается, кольцо
   становится красным — «поворот ключа» */
.faq__q::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--c-red-hot);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition:
    background-size var(--dur) var(--ease-out),
    border-color var(--dur-fast) ease,
    transform var(--dur) var(--ease-out);
}

.faq__q:hover {
  color: #FFFFFF;
}

.faq__q:hover::after {
  border-color: var(--c-red-hot);
}

.faq__item[open] > .faq__q::after {
  border-color: var(--c-red-hot);
  background-size: 12px 2px, 2px 0;
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 56px 24px 0;
  color: var(--fg);
}

.faq__a > * + * {
  margin-top: 12px;
}

.faq__a p,
.faq__a li {
  max-width: var(--measure);
}

.faq__a ul,
.faq__a ol {
  padding-left: 1.4em;
}

.faq__a ul > li::marker {
  color: var(--accent);
}

@media (max-width: 559.98px) {
  .faq__a {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] > .faq__a {
    animation: faq-reveal var(--dur) var(--ease-out) both;
  }

  /* плавная высота — только где есть interpolate-size (Chromium). В WebKit
     ::details-content уже есть, а interpolate-size нет: с этим переходом
     открытый вопрос оставался высотой 0 (проверено в WebKit macOS 26) */
  @supports selector(::details-content) and (interpolate-size: allow-keywords) {
    .faq__item {
      interpolate-size: allow-keywords;
    }

    .faq__item::details-content {
      height: 0;
      overflow: clip;
      transition:
        height var(--dur) var(--ease-out),
        content-visibility var(--dur) allow-discrete;
    }

    .faq__item[open]::details-content {
      height: auto;
    }
  }
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Таблицы: волосяные линии, без заливок; цифры — табличные */
.table-wrap {
  max-width: 100%;
  margin-block: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-wrap.is-scrollable {
  border-right: 1px solid var(--line);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.table-wrap > .table:not(.requisites) {
  min-width: 36rem;
}

.table caption {
  padding-bottom: 12px;
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--c-chrome);
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table th:first-child,
.table td:first-child {
  padding-left: 0;
}

.table th:last-child,
.table td:last-child {
  padding-right: 0;
}

.table thead th {
  padding-top: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
  border-bottom: 2px solid var(--c-carbon-3);
  vertical-align: bottom;
}

.table tbody th {
  font-weight: 600;
  color: var(--c-chrome);
}

.table tbody tr:hover > * {
  background-color: rgba(238, 241, 246, 0.025);
}

/* Выноска / примечание: панель лендинга + красная метка на левой кромке */
.callout,
.doc__note {
  position: relative;
  margin-block: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background-color: var(--c-carbon-2);
  background-image: var(--panel-bg);
  color: var(--fg);
}

.callout::before,
.doc__note::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -1px;
  width: 3px;
  height: 28px;
  border-radius: 0 2px 2px 0;
  background-color: var(--c-red);
}

.callout > * + *,
.doc__note > * + * {
  margin-top: 12px;
}

.callout h2,
.callout h3,
.doc__note h2,
.doc__note h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.callout ul,
.callout ol,
.doc__note ul,
.doc__note ol {
  padding-left: 1.4em;
}

@media (min-width: 720px) {
  .callout,
  .doc__note {
    padding: 24px 32px;
  }
}

/* Иллюстрации-схемы на страницах устройств */
.device-figure {
  margin-block: 40px;
}

.device-figure__img {
  display: block;
  max-width: 100%;
  height: auto;
}

.device-figure figcaption {
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}


/* --------------------------------------------------------------------------
   10. Документы: body.page-doc > article.doc
   Тёмный длинный текст: #E3E7EC на #0B0D12, строка ≤ ~70 знаков,
   межстрочный 1.65, номера пунктов вынесены на поле, оглавление
   липкое с 1024px.
   -------------------------------------------------------------------------- */

.page-doc main {
  position: relative;
  isolation: isolate;
}

/* карбон и слабый вишнёвый отсвет только в шапке документа */
.page-doc main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 34rem;
  pointer-events: none;
  background-image:
    radial-gradient(48rem 22rem at 88% -8rem, rgba(125, 10, 18, 0.32), rgba(125, 10, 18, 0) 70%),
    var(--carbon-weave);
  background-size: auto, var(--carbon-size);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}

.doc {
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) var(--gutter) var(--section-y);
}

.container .doc,
.container > .doc {
  padding-inline: 0;
}

.doc__head {
  position: relative;
  max-width: 60rem;
  padding-bottom: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

/* короткая красная полоса на линии — «старт» текста */
.doc__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--racing-stripe);
}

.doc__head .breadcrumbs {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.doc__title {
  font-size: var(--fs-h1-doc);
  line-height: 1.04;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-chrome);
}

.doc__meta {
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}

.doc__lead {
  margin-top: 16px;
  max-width: 38em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--fg);
}

.doc__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

/* Оглавление: шкала слева, текущий раздел — красная метка */
.doc__toc {
  align-self: start;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background-color: var(--c-carbon-2);
  background-image: var(--panel-bg);
}

.doc__toc-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-chrome);
}

.doc__toc ol,
.doc__toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.doc__toc a {
  position: relative;
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-chrome-2);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.doc__toc a::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background-color: transparent;
  transition: background-color var(--dur-fast) ease;
}

.doc__toc a:hover {
  color: var(--c-chrome);
}

.doc__toc a[aria-current="true"] {
  color: #FFFFFF;
}

.doc__toc a[aria-current="true"]::before {
  background-color: var(--c-red-hot);
  box-shadow: 0 0 10px rgba(255, 59, 67, 0.55);
}

/* Кнопка сворачивания (добавляет site.js, только на узких экранах) */
.doc__toc-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: var(--c-chrome);
  border-radius: var(--r-tag);
}

.doc__toc-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--c-red-hot);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}

.doc__toc.is-open .doc__toc-icon {
  background-size: 10px 2px, 2px 0;
}

@media (max-width: 1023.98px) {
  .doc__toc.is-enhanced {
    padding-block: 6px;
  }

  .doc__toc.is-enhanced .doc__toc-title {
    display: none;
  }

  .doc__toc.is-enhanced .doc__toc-toggle {
    display: flex;
  }

  .doc__toc.is-enhanced:not(.is-open) > ol,
  .doc__toc.is-enhanced:not(.is-open) > ul {
    display: none;
  }

  .doc__toc.is-enhanced.is-open > ol,
  .doc__toc.is-enhanced.is-open > ul {
    margin: 4px 0 12px;
  }
}

@media (min-width: 1024px) {
  .doc__body {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }

  .doc__toc {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 8px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
    scrollbar-width: thin;
  }

  .doc__toc a {
    font-size: 0.875rem;
  }

  .doc__toc a:focus-visible {
    outline-offset: -2px;
  }
}

/* Длинный текст */
.prose {
  max-width: var(--measure);
  font-size: var(--fs-body);
  line-height: var(--lh-prose);
  color: var(--fg);
  overflow-wrap: break-word;
}

.prose > * + *,
.prose .doc__section > * + * {
  margin-top: 16px;
}

.prose h2 {
  font-size: var(--fs-h2-doc);
  line-height: 1.15;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--c-chrome);
}

.prose h3 {
  font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  line-height: 1.3;
  font-style: normal;
  font-weight: 700;
  color: var(--c-chrome);
}

.prose * + h2 {
  margin-top: 56px;
}

.prose * + h3 {
  margin-top: 32px;
}

.prose h3 + * {
  margin-top: 12px;
}

.prose h2 + * {
  margin-top: 20px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li > ul,
.prose li > ol {
  margin-top: 8px;
}

.prose ul > li::marker {
  color: var(--c-red-hot);
}

.prose ol > li::marker {
  color: var(--c-chrome-2);
  font-variant-numeric: tabular-nums;
}

.prose a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.prose strong {
  color: var(--c-chrome);
}

.doc__content {
  min-width: 0;
}

.doc__section + .doc__section {
  margin-top: clamp(48px, 6vw, 72px);
}

.doc__section > h2:first-child {
  margin-top: 0;
}

.doc__content > .doc__note {
  margin-top: clamp(48px, 6vw, 72px);
}

/* Пункты договора: номер вынесен на поле (висячий) */
.clause {
  position: relative;
}

.clause__num {
  font-family: var(--font-display);
  font-size: 0.875em;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--c-chrome-2);
  white-space: nowrap;
}

@media (max-width: 559.98px) {
  .clause__num {
    margin-right: 0.2em;
  }
}

@media (min-width: 560px) {
  .clause {
    padding-left: 3.75rem;
  }

  .clause__num {
    position: absolute;
    top: 0;
    left: 0;
    /* строка номера = строке текста пункта: lh × размер родителя */
    line-height: calc(var(--lh-prose) * 1em / 0.875);
  }

  /* списки внутри пункта выравниваются по тексту пункта */
  .prose .clause ~ ul,
  .prose .clause ~ ol {
    padding-left: calc(3.75rem + 1.4em);
  }
}

/* Реквизиты */
.requisites {
  max-width: 44rem;
}

.requisites th,
.requisites td {
  padding-block: 12px;
}

.requisites tbody th,
.requisites tr > :first-child {
  width: 36%;
  padding-right: 24px;
  font-weight: 500;
  color: var(--c-chrome-2);
}

.requisites td {
  color: var(--c-chrome);
  font-variant-numeric: normal;
  overflow-wrap: anywhere;
}

.requisites tr:first-child > * {
  border-top: 1px solid var(--line);
}

@media (max-width: 559.98px) {
  .requisites,
  .requisites tbody,
  .requisites tr,
  .requisites th,
  .requisites td {
    display: block;
    width: auto;
  }

  .requisites tr {
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
  }

  .requisites tr:first-child {
    border-top: 1px solid var(--line);
  }

  .requisites th,
  .requisites td,
  .requisites tr:first-child > * {
    padding: 0;
    border: 0;
  }

  .requisites tbody th,
  .requisites tr > :first-child {
    width: auto;
    padding: 0 0 2px;
    font-size: var(--fs-small);
  }
}


/* --------------------------------------------------------------------------
   11. Страницы устройств: body.page-device > article.device-page
   Герой — карбон, вишнёвый отсвет справа, двойная «гоночная» полоса по
   нижней кромке и диск-логотип, стоящий на ней (≥ 1100px).
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 80px));
  padding-bottom: clamp(56px, 8vw, 104px);
  padding-inline: var(--bleed);
  background-color: var(--c-carbon-0);
  background-image:
    radial-gradient(44rem 30rem at 92% 40%, rgba(229, 29, 40, 0.16), rgba(229, 29, 40, 0) 70%),
    linear-gradient(180deg, rgba(11, 13, 18, 0) 55%, var(--c-carbon-1) 100%),
    var(--carbon-weave);
  background-size: auto, auto, var(--carbon-size);
}

/* двойная полоса: широкая + тонкая, гаснет к правому краю */
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vw, 32px);
  z-index: -1;
  height: 12px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--c-red-deep), var(--c-red) 38%, rgba(229, 29, 40, 0) 92%) top / 100% 6px no-repeat,
    linear-gradient(90deg, var(--c-red-deep), var(--c-red) 38%, rgba(229, 29, 40, 0) 92%) bottom / 100% 2px no-repeat;
  opacity: 0.85;
}

.page-hero > .container {
  max-width: none;
  padding-inline: 0;
}

.page-hero > * {
  position: relative;
}

.page-hero .breadcrumbs {
  margin-bottom: clamp(24px, 4vw, 44px);
}

.page-hero__title {
  max-width: 16ch;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-chrome);
}

.page-hero__lead {
  max-width: 36em;
  margin-top: clamp(16px, 2.4vw, 28px);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--fg);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.page-hero__note {
  max-width: 40em;
  margin-top: 16px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-chrome-2);
}

@media (max-width: 479.98px) {
  .page-hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* До 1100px диска нет — отсвет меньше и уходит в правый верхний угол,
   чтобы не лежать под текстом */
@media (max-width: 1099.98px) {
  .page-hero {
    background-image:
      radial-gradient(26rem 18rem at 100% 0%, rgba(229, 29, 40, 0.14), rgba(229, 29, 40, 0) 70%),
      linear-gradient(180deg, rgba(11, 13, 18, 0) 55%, var(--c-carbon-1) 100%),
      var(--carbon-weave);
  }
}

/* Широкий экран: диск-логотип справа «стоит» на гоночной полосе.
   Текст ограничен по ширине, чтобы не заходить под диск. */
@media (min-width: 1100px) {
  .page-hero::after {
    content: "";
    position: absolute;
    right: calc(var(--bleed) - 12px);
    bottom: calc(clamp(18px, 3vw, 32px) + 16px);
    z-index: -1;
    width: clamp(280px, 26vw, 380px);
    aspect-ratio: 1;
    max-height: calc(100% - var(--header-h) - 48px);
    pointer-events: none;
    background: url("/assets/img/logo-512.webp?v=c62644d79c") center / contain no-repeat;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 36px rgba(229, 29, 40, 0.18));
    transform: rotate(-8deg);
  }

  .page-hero > .breadcrumbs,
  .page-hero > .page-hero__title,
  .page-hero > .page-hero__lead,
  .page-hero > .page-hero__actions,
  .page-hero > .page-hero__note {
    max-width: min(var(--hero-text-max, 40em), calc(100% - clamp(280px, 26vw, 380px) - 48px));
  }

  .page-hero > .page-hero__title {
    --hero-text-max: 16ch;
  }
}

/* Секции страницы: ровный ритм, волосяная линия между ними */
.device-page > .page-section,
.device-page > .related-devices {
  width: min(100% - 2 * var(--gutter), var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}

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

.page-section + .page-section {
  border-top: 1px solid var(--line);
}

.page-section > .container {
  max-width: none;
  padding-inline: 0;
}

.page-section > h2 {
  font-size: var(--fs-h2-sub);
  line-height: 1.06;
}

.page-section > * + * {
  margin-top: 20px;
}

.page-section > h2 + * {
  margin-top: 24px;
}

.page-section > * + h3 {
  margin-top: 40px;
}

.page-section > h3 + * {
  margin-top: 12px;
}

.page-section > p,
.page-section > ul:not([class]),
.page-section > ol:not([class]) {
  max-width: var(--measure);
}

.page-section > * + .steps-list,
.page-section > * + .facts-list,
.page-section > * + .faq {
  margin-top: 40px;
}

.page-section > h2 + .steps-list,
.page-section > h2 + .facts-list,
.page-section > h2 + .faq {
  margin-top: 32px;
}

/* Выноски и иллюстрации в секции: отступ только сверху */
.page-section > :is(.callout, .device-figure) {
  margin-bottom: 0;
}

.page-section > * + .callout {
  margin-top: 32px;
}

.page-section > * + .device-figure {
  margin-top: 40px;
}

.page-section > :last-child {
  margin-bottom: 0;
}

.page-section > ul:not([class]),
.page-section > ol:not([class]) {
  padding-left: 1.4em;
}

.page-section > ul:not([class]) > li + li,
.page-section > ol:not([class]) > li + li {
  margin-top: 8px;
}

.page-section > ul:not([class]) > li::marker {
  color: var(--c-red-hot);
}

/* На широком экране заголовок секции — на левом поле, контент справа */
@media (min-width: 1024px) {
  .page-section:has(> h2) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

  .page-section:has(> h2) > * {
    grid-column: 2;
  }

  .page-section:has(> h2) > h2 {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: calc(var(--header-h) + 32px);
    margin-top: 0;
    padding-top: 2px;
  }

  /* первый элемент правой колонки — вровень с заголовком */
  .page-section:has(> h2) > h2 + :is(*, .steps-list, .facts-list, .faq, .callout, .device-figure) {
    margin-top: 0;
  }
}

/* ≥1024px: правая колонка (7fr, не шире ~611px) узкая для двух колонок
   фактов — факты в одну колонку. Сетку 5fr/7fr не сужаем на широких
   экранах: в колонке 4fr (~347px) H2 с неразрывной парой
   («не отключалось») рвался посреди слова. */
@media (min-width: 1024px) {
  .page-section:has(> h2) > .facts-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Шаги подключения: крупные курсивные цифры Exo 2 (хром) и «трасса»
   между ними — пунктир разметки с красным стартовым отрезком */
.steps-list {
  --step-num: clamp(2.75rem, 2.1rem + 2vw, 3.75rem);
  --step-col: clamp(44px, 6vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps-list__item,
.steps-list > li {
  position: relative;
  min-height: calc(var(--step-num) + 8px);
  padding-left: calc(var(--step-col) + clamp(16px, 3vw, 32px));
  padding-bottom: clamp(32px, 4vw, 48px);
  counter-increment: step;
}

.steps-list > li:last-child {
  padding-bottom: 0;
}

.steps-list > li::before {
  content: counter(step);
  content: counter(step) / "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--step-col);
  font-family: var(--font-display);
  font-size: var(--step-num);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: center;
  color: var(--c-chrome);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .steps-list > li::before {
    background-image: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.steps-list > li::after {
  content: "";
  position: absolute;
  top: calc(var(--step-num) * 0.9 + 12px);
  bottom: 12px;
  left: calc(var(--step-col) / 2 - 1px);
  width: 2px;
  background:
    linear-gradient(var(--c-red), var(--c-red)) 0 0 / 2px 22px no-repeat,
    repeating-linear-gradient(to bottom, rgba(152, 160, 171, 0.45) 0 10px, rgba(152, 160, 171, 0) 10px 20px) 0 30px / 2px calc(100% - 30px) no-repeat;
}

.steps-list > li:last-child::after {
  display: none;
}

.steps-list > li > h3 {
  padding-top: 0.2em;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 700;
}

.steps-list > li > * + * {
  margin-top: 10px;
}

.steps-list > li > p {
  max-width: var(--measure);
}

/* Факты: две колонки, волосяные линии, красная метка сектора — без карточек */
.facts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(32px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.facts-list > li {
  position: relative;
  padding-block: 20px 24px;
  border-top: 1px solid var(--line);
}

.facts-list > li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--c-red);
}

.facts-list h3 {
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  line-height: 1.2;
  font-weight: 700;
}

.facts-list h3 + p {
  margin-top: 8px;
}

.facts-list p {
  max-width: var(--measure);
  color: var(--c-chrome-2);
}

@media (min-width: 720px) {
  .facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Призыв: тёмная полоса финиша — клетчатый флаг по верхней кромке
   (гаснет вправо) и красный отсвет снизу справа */
.page-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 112px);
  padding-inline: var(--bleed);
  background-color: var(--c-carbon-0);
  background-image:
    radial-gradient(60% 90% at 92% 120%, rgba(229, 29, 40, 0.22), rgba(229, 29, 40, 0) 70%),
    var(--carbon-weave);
  background-size: auto, var(--carbon-size);
  border-block: 1px solid var(--c-carbon-3);
  color: var(--fg);
  color-scheme: dark;
}

.page-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 24px;
  pointer-events: none;
  background-image: var(--checker);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
}

.page-cta > .container {
  max-width: none;
  padding-inline: 0;
}

.page-cta > h2 {
  max-width: 20ch;
  font-size: var(--fs-h2-sub);
  line-height: 1.06;
  color: var(--c-chrome);
}

.page-cta > p {
  max-width: 38em;
  margin-top: 16px;
  color: var(--fg);
}

.page-cta > p + p {
  margin-top: 12px;
}

.page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 479.98px) {
  .page-cta__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 1024px) {
  .page-cta:has(> h2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(48px, 6vw, 96px);
    align-items: end;
  }

  .page-cta:has(> h2) > * {
    grid-column: 1;
  }

  .page-cta:has(> h2) > .page-cta__actions {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: end;
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* Другие устройства: ряд «боксов» с поребриком-меткой */
.related-devices {
  padding-block: clamp(48px, 7vw, 88px);
}

.page-section .related-devices,
.container .related-devices {
  width: auto;
  padding-block: 0;
}

.related-devices h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  line-height: 1.15;
}

.related-devices ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 0 24px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.related-devices li {
  position: relative;
  border-top: 1px solid var(--line-strong);
}

.related-devices li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background-image: var(--kerb);
}

.related-devices a {
  display: block;
  padding: 16px 0 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-chrome);
  text-decoration: none;
}

.related-devices a:hover {
  color: var(--link-hover);
  text-decoration-line: underline;
}

@media (max-width: 479.98px) {
  .related-devices ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
}

/* Узкие экраны: крупный курсив чуть плотнее, чтобы длинные слова помещались */
@media (max-width: 479.98px) {
  .page-hero__title,
  .doc__title,
  .not-found__title {
    letter-spacing: -0.02em;
  }
}


/* --------------------------------------------------------------------------
   12. 404: body.page-404 > section.not-found
   Карбон, отсвет «раскалённого» диска и поребрик по нижней кромке.
   -------------------------------------------------------------------------- */

.not-found {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: min(100svh, 980px);
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
  padding-bottom: clamp(64px, 9vw, 112px);
  padding-inline: var(--bleed);
  background-color: var(--c-carbon-0);
  background-image:
    radial-gradient(40rem 34rem at 82% 52%, rgba(229, 29, 40, 0.15), rgba(229, 29, 40, 0) 70%),
    linear-gradient(180deg, rgba(11, 13, 18, 0) 60%, var(--c-carbon-1) 100%),
    var(--carbon-weave);
  background-size: auto, auto, var(--carbon-size);
}

/* поребрик: красно-белые блоки, гаснут к центру */
.not-found::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 8px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--c-red) 0 28px, #C9CED6 28px 56px);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
}

.not-found__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.not-found__text {
  position: relative;
  max-width: 38rem;
}

.not-found__code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(12px, 2vw, 20px);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-chrome-2);
}

.not-found__code::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background-color: var(--c-red);
}

.not-found__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-chrome);
}

.not-found__lead {
  max-width: 34em;
  margin-top: clamp(16px, 2.4vw, 24px);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--fg);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.not-found__note {
  max-width: 38em;
  margin-top: 20px;
  color: var(--c-chrome-2);
}

.not-found__visual {
  position: relative;
  order: -1;
  width: clamp(112px, 30vw, 180px);
}

/* отсвет под диском — как у раскалённого ротора */
.not-found__visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  box-shadow: 0 0 60px 10px rgba(255, 59, 67, 0.22);
}

.not-found__disc {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-14deg);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
}

@media (max-width: 479.98px) {
  .not-found__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 900px) {
  .not-found__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(40px, 6vw, 96px);
  }

  .not-found__visual {
    order: 0;
    justify-self: center;
    width: min(100%, clamp(280px, 30vw, 440px));
  }
}


/* --------------------------------------------------------------------------
   13. Уменьшение движения
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .btn:active {
    transform: none;
  }
}


/* --------------------------------------------------------------------------
   14. Печать: чёрным по белому, без шапки, подвала и декора
   -------------------------------------------------------------------------- */

@media print {
  @page {
    margin: 18mm 16mm;
  }

  :root,
  .theme-dark,
  .page-doc,
  .page-device,
  .page-404,
  .page-cta,
  .site-footer {
    --fg: #000000;
    --fg-muted: #333333;
    --fg-strong: #000000;
    --fg-heading: #000000;
    --fg-faint: #333333;
    --accent: #000000;
    --link: #000000;
    --link-hover: #000000;
    --line: #BBBBBB;
    --line-strong: #888888;
    --surface: transparent;
    --c-chrome: #000000;
    --c-chrome-2: #333333;
    --c-paper: #000000;
    --c-red: #000000;
    --c-red-hot: #000000;
    --chrome-text: none;
    --fs-body: 11pt;
    --lh-body: 1.45;
    --lh-prose: 1.45;
    color-scheme: light;
  }

  html,
  body,
  main,
  .page-doc,
  .page-device,
  .page-404,
  .page-hero,
  .page-cta,
  .not-found,
  .doc__toc,
  .callout,
  .doc__note {
    background: #FFFFFF none !important;
    color: #000000 !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  /* хромированные цифры шагов — обычным чёрным */
  .steps-list > li::before,
  .chrome-text {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }

  /* шапки нет — экранные отступы под неё не нужны */
  .doc,
  .page-hero,
  .not-found {
    padding-top: 0;
    min-height: 0;
  }

  .page-hero,
  .not-found {
    padding-bottom: 12pt;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .doc__toc,
  .breadcrumbs,
  .page-hero__actions,
  .page-cta__actions,
  .not-found__actions,
  .not-found__visual,
  .page-doc main::before,
  .page-hero::before,
  .page-hero::after,
  .page-cta::before,
  .not-found::after,
  .doc__head::after,
  .facts-list > li::before,
  .related-devices li::before,
  .callout::before,
  .doc__note::before {
    display: none !important;
  }

  .doc {
    max-width: none;
    padding: 0;
  }

  .doc__head {
    max-width: none;
    padding-bottom: 12pt;
    margin-bottom: 16pt;
    border-bottom-color: #000000;
  }

  .doc__title,
  .page-hero__title,
  .not-found__title {
    font-size: 22pt;
    max-width: none;
  }

  .doc__lead {
    font-size: 12pt;
  }

  .doc__body {
    display: block;
  }

  .prose,
  .prose p,
  .prose li,
  .doc__lead,
  .page-hero > * {
    max-width: none !important;
  }

  .prose h2 {
    font-size: 15pt;
  }

  .page-section:has(> h2) {
    display: block;
  }

  .page-section:has(> h2) > h2 {
    position: static;
  }

  .page-cta {
    border: 0;
    padding-block: 12pt;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  tr,
  .callout,
  .doc__note,
  .steps-list > li {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .table-wrap > .table:not(.requisites) {
    min-width: 0;
  }

  .table tbody tr:hover > * {
    background: none;
  }

  a {
    color: #000000 !important;
    text-decoration: underline;
  }

  .prose a[href^="http"]::after,
  .doc a[href^="http"]::after,
  .device-page a[href^="http"]:not(.btn)::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }

  .faq__item::details-content {
    content-visibility: visible;
    height: auto;
    transition: none !important;
  }

  /* site.js открывает ответы перед печатью: без этого снимок печати
     попадал на opacity 0 анимации faq-reveal и ответы выходили пустыми */
  .faq__item[open] > .faq__a {
    animation: none !important;
  }

  .faq__q::after {
    display: none;
  }

  .faq__q,
  .faq__a {
    padding-right: 0;
  }

  .callout,
  .doc__note {
    border: 1px solid #999999;
  }

  .page-section + .page-section {
    border-top-color: #BBBBBB;
  }
}


/* --------------------------------------------------------------------------
   Режим высокой контрастности (forced-colors)
   Иконки нарисованы фоном/градиентами и в этом режиме пропадают —
   возвращаем их системными цветами; хромированный текст — обычным.
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .site-header__burger {
    border: 1px solid ButtonText;
  }

  .site-header__burger-lines::before,
  .site-header__burger-lines::after {
    forced-color-adjust: none;
    background-color: ButtonText;
  }

  .faq__q::after,
  .doc__toc-icon {
    forced-color-adjust: none;
    color: CanvasText;
    border-color: CanvasText;
  }

  .steps-list > li::before,
  .chrome-text {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }

  .btn--primary {
    border-color: ButtonText;
  }
}


/* --------------------------------------------------------------------------
   Без JavaScript
   site.js не добавит шапке фон и не откроет мобильное меню: шапка сразу
   непрозрачная, бесполезный бургер скрыт — на мобильных навигация
   остаётся в подвале.
   -------------------------------------------------------------------------- */
@media (scripting: none) {
  .site-header {
    background-color: var(--hdr-solid);
    border-bottom-color: var(--hdr-line);
  }
}

@media (scripting: none) and (max-width: 71.999em) {
  .site-header__burger {
    display: none;
  }
}
