/* ==== FONTS-AUTO-START (генерит scripts/fetch-fonts.js — не править руками) ==== */
/* Автогенерация scripts/fetch-fonts.js — PT Sans / PT Sans Narrow / PT Mono */
/* cyrillic-ext */
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-4.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-5.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-7.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-8.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-9.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-10.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-11.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-12.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-13.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-14.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-15.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/pt-16.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-17.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-18.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-19.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/pt-20.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;
}
/* ==== FONTS-AUTO-END ==== */

/* ==========================================================================
   3D Filament Uchet — «журнал учёта»: бумага-миллиметровка, чернильные рамки,
   моноширинные цифры, зелёный акцент катушки (иконка программы), штампы.
   ========================================================================== */

:root {
  --bg: #edf0f4;            /* бумага (холодная) */
  --bg-alt: #e3e7ee;        /* бумага темнее (чередование секций) */
  --bg-card: #f7f9fc;       /* бланк */
  --bg-input: #fbfdff;
  --border: #c0c8d4;        /* линии сетки/таблиц */
  --border-strong: #232a33; /* чернильные рамки */
  --text: #20262e;          /* чернила */
  --text-muted: #5f6b7a;
  --accent: #4c8f47;        /* зелёный катушки */
  --accent-2: #35702f;      /* ссылки, детали */
  --accent-ink: #2b5a27;
  --stamp: #b3402a;         /* штамп «красным карандашом» */
  --cta: #4c8f47;           /* основная кнопка — зелёная катушка с чернильной
                               рамкой-оттиском (тёмную заливку не возвращать:
                               под Dark Reader сливается с фоном) */
  --cta-hover: #35702f;
  --cta-text: #ffffff;      /* белый текст на зелёном */
  --ok: #35702f;
  --err: #b3402a;
  --radius: 2px;
  --font-sans: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  --font-narrow: 'PT Sans Narrow', 'Arial Narrow', 'PT Sans', sans-serif;
  --font-mono: 'PT Mono', Consolas, 'Cascadia Mono', monospace;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* Миллиметровка рисуется на canvas (js/main.js): Dark Reader не трогает
     содержимое canvas, а цвет чернил подстраивается под фактический фон.
     position+z-index делают body слоем: canvas (z:-1 внутри него) всегда
     над фоном body и под контентом — даже если DR красит сам html
     и фон body перестаёт пробрасываться в корень. */
  position: relative;
  z-index: 0;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ---------- Кнопки: моно, прямые углы, «печать формы» ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 14px; font-size: .74rem; }
.btn-lg { padding: 15px 30px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); border-color: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; }

/* Зелёная заливка + чернильная рамка со сдвигом «оттиска»: в светлой теме
   контраст с бумагой, под Dark Reader зелёный остаётся различимым. */
.btn-cta {
  background: var(--cta);
  color: var(--cta-text);
  border: 2px solid var(--border-strong);
  box-shadow: 3px 3px 0 var(--border-strong);
}
.btn-cta:hover {
  background: var(--cta-hover);
  color: #fff;
  border-color: var(--accent-ink);
  box-shadow: 3px 3px 0 var(--accent-ink);
  text-decoration: none;
}
.btn-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-strong); }

/* Вторичная кнопка: зелёные текст и рамка вместо чернильных — заметнее
   рядом с залитой CTA, но заливки нет (иерархию не ломаем). */
.btn-ghost { background: transparent; color: var(--accent-ink); border: 2px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }

.btn-icon { width: 18px; height: 18px; }

/* ---------- Шапка: бланк с линованным низом ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  letter-spacing: .01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--accent-ink); }
.logo-icon { width: 26px; height: 26px; }

.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  /* рамка есть всегда (прозрачная) — hover не сдвигает строку */
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); }
.lang-switch a:hover { color: var(--accent-ink); text-decoration: none; }
/* Активный язык — жирным чернильным */
.lang-switch .lang-on { color: var(--text); font-weight: 700; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger span { width: 22px; height: 2px; background: var(--text); }

/* ---------- Точные якоря: липкая шапка не должна накрывать начало блока ---------- */

section[id], .carousel[id] { scroll-margin-top: 78px; }

/* ---------- Hero ---------- */

.hero { padding: 52px 0 44px; }

.hero h1 {
  font-family: var(--font-narrow);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}
/* Первая строка заголовка EN-версии: название программы капсом */
.h1-caps {
  display: block;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.accent-text {
  color: var(--text);
  box-shadow: inset 0 -0.34em 0 rgba(76, 143, 71, .35);
}

.lead { margin-top: 18px; font-size: 1.08rem; color: var(--text-muted); max-width: 34em; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* Бейдж = поле бланка: моно, рамка, без скруглений */
.badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
  white-space: nowrap;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }

/* Штамп со скидкой на кнопке «Купить лицензию» — как бейдж в прайс-листе */
.btn-discount {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 2px solid var(--stamp);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--stamp);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text-muted);
}

/* ---------- Полоса-карусель скриншотов: центр + бесконечная лента ---------- */

.carousel { position: relative; margin-top: 40px; }

.car-viewport {
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}

.car-track {
  display: flex;
  gap: 24px;
  transition: transform .45s ease;
  will-change: transform;
  padding: 8px 0;
}

.car-slide {
  flex: 0 0 min(640px, 86%);
  /* Боковые (нецентральные) слайды — приглушённые */
  opacity: .35;
  transition: opacity .35s;
}
.car-slide.car-active { opacity: 1; }
/* Курсор-подсказка: центральный слайд открывает лайтбокс (zoom-in),
   боковой — проматывает ленту к себе */
.car-slide.car-active a { cursor: zoom-in; }
.car-slide:not(.car-active) a { cursor: pointer; }

/* Ряд управления: стрелки по краям, по центру точки; текущий скрин — полоска */
.car-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 320px;   /* стрелки ещё на 30% ближе к центру (460 → 320) */
  margin: 20px auto 0;
}

.car-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.car-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent-ink); }

.car-dots { display: flex; align-items: center; gap: 10px; }
.car-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: width .25s ease, background .25s ease, border-color .25s ease;
}
/* Полоска текущего скрина */
.car-dot.car-on {
  width: 30px;
  background: var(--accent);
  border-color: var(--accent-ink);
}

.car-count {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--text-muted);
}

/* ---------- Секции ---------- */

.section { padding: 52px 0; }
.section-alt { background: var(--bg-alt); }

/* Рубрика раздела: моноширинная строка над заголовком */
.section-title {
  font-family: var(--font-narrow);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}
.section-title::before {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
#features .section-title::before { content: "РАЗДЕЛ 01 · ВОЗМОЖНОСТИ"; }
#how .section-title::before { content: "РАЗДЕЛ 02 · ОФОРМЛЕНИЕ ЗАКАЗА"; }
#pricing .section-title::before { content: "РАЗДЕЛ 03 · ПРАЙС-ЛИСТ"; }
#faq .section-title::before { content: "РАЗДЕЛ 04 · ВОПРОСЫ И ОТВЕТЫ"; }
:lang(en) #features .section-title::before { content: "SECTION 01 · FEATURES"; }
:lang(en) #how .section-title::before { content: "SECTION 02 · HOW TO BUY"; }
:lang(en) #pricing .section-title::before { content: "SECTION 03 · PRICE LIST"; }
:lang(en) #faq .section-title::before { content: "SECTION 04 · FAQ"; }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 10px auto 36px;
  max-width: 40em;
}

/* ---------- Возможности: страницы журнала ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.feature-card {
  padding: 26px 26px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* сетка 3×2: у правой колонки и нижнего ряда линий нет */
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:nth-child(n+4) { border-bottom: 0; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent-ink);
  background: var(--bg-input);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-family: var(--font-narrow);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature-card p { font-size: .93rem; color: var(--text-muted); }

/* ---------- Скриншоты (слайды карусели) ---------- */

.shot a {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--border);
  overflow: hidden;
  background: var(--bg-card);
}
.shot a:hover { box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--accent); }

/* Видео-слайд в карусели: заглушка с кнопкой Play → VK-плеер по клику.
   Рамка и тень — как у скриншотов, чтобы слайды смотрелись единой лентой */
.video-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--border);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.video-box:hover { box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--accent); }
.video-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--border);
}
.video-play svg { width: 56px; height: 56px; fill: #fff; margin-left: -6px; }
.car-slide.car-active .video-box { cursor: pointer; }

.shot figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-muted);
  text-align: center;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 26, 21, .92);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; } /* hidden должен перебивать display:grid */
.lightbox img { max-width: 100%; max-height: 92vh; border: 1px solid #c0c8d4; }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  color: #f7f9fc;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Как купить: нумерованные позиции ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.steps li { padding: 26px; border-right: 1px solid var(--border); }
.steps li:last-child { border-right: 0; }

.step-num {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-input);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.steps h3 { font-family: var(--font-narrow); font-size: 1.15rem; margin-bottom: 6px; }
.steps p { font-size: .93rem; color: var(--text-muted); }

.pay-methods {
  margin-top: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------- Прайс-лист ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card:hover, .price-card.selected { box-shadow: 0 0 0 2px var(--accent); }

.price-card-best { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink); }

/* Штамп «резиновыми буквами» */
.best-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 4px 12px;
  white-space: nowrap;
}

.price-card h3 { font-family: var(--font-narrow); font-size: 1.2rem; }
.price-line { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 12px; }
.price {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
}
.price-old {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 2px;
}
.price-per {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card li {
  font-size: .92rem;
  color: var(--text-muted);
  padding: 5px 0 5px 22px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent-ink);
  font-weight: 700;
}

/* Кнопка выбора тарифа: по умолчанию нейтральная (нечёрная/незелёная),
   зелёной становится только кнопка ВЫБРАННОГО тарифа — выбор синхронен
   с формой покупки (класс .selected навешивается/снимается синхронизацией) */
.btn-choose { background: transparent; color: var(--text); }
.btn-choose:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.price-card.selected .btn-choose {
  background: var(--accent);
  border-color: var(--accent-ink);
  color: #fff;
}
.price-card.selected .btn-choose:hover { background: var(--accent-ink); }

/* ---------- Форма заказа ---------- */

.buy-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--bg-alt), 0 0 0 6px var(--border);
  padding: 34px 32px;
}
.buy-box h3 {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-ink);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-strong);
}

.form-row { margin-bottom: 16px; }
.form-row label, .label-text {
  display: block;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.req { color: var(--stamp); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color .12s, box-shadow .12s;
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-ink);
}
.form-row input.invalid { border-color: var(--err); }

#f-hwid { font-family: var(--font-mono); letter-spacing: .08em; text-transform: lowercase; }

.hint { font-size: .82rem; color: var(--text-muted); margin-top: 6px; }

.radio-row { display: flex; gap: 20px; }
.radio-row label {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 400;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}

.legal-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

.buy-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .95rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
}
.buy-status.ok { border-color: var(--ok); color: var(--accent-ink); }
.buy-status.err { border-color: var(--err); color: var(--stamp); }
.buy-status.info { border-color: var(--accent-ink); color: var(--text); }

/* Ключ на странице успеха */
.buy-status p { margin: 0 0 10px; }
.key-code {
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  word-break: break-all;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--text);
  user-select: all;
}
.btn-copy { padding: 8px 16px; font-size: .74rem; }
.key-hint { font-size: .8rem; color: var(--text-muted); margin: 10px 0 0; }

/* ---------- FAQ ---------- */

#faq details {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
#faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-family: var(--font-narrow);
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
  position: relative;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent-ink);
}
#faq details[open] summary::after { content: "−"; }
#faq details[open] summary { border-bottom: 1px dashed var(--border); }
.faq-body { padding: 4px 20px 18px; }
.faq-body p { font-size: .95rem; color: var(--text-muted); }

/* ---------- Скачать ---------- */

.download-box { text-align: center; }
.download-box h2 { font-family: var(--font-narrow); font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.download-box > p { color: var(--text-muted); margin: 10px 0 30px; }
.download-note {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---------- Футер: реквизиты документа ---------- */

.site-footer {
  border-top: 1px solid var(--border-strong);
  padding: 48px 0 32px;
  background: var(--bg-alt);
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand {
  font-family: var(--font-narrow);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-head {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-strong);
}
.footer-cols a { display: block; color: var(--text-muted); font-size: .9rem; padding: 3px 0; }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-muted { color: var(--text-muted); font-size: .85rem; }

.footer-legal {
  border-top: 1px solid var(--border-strong);
  padding-top: 20px;
}
.footer-legal p {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--text-muted);
}
.footer-legal p:first-child { margin-bottom: 4px; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  /* восстанавливаем линии сетки признаков для 2 колонок */
  .feature-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .feature-card:nth-child(n+5) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--border); }
  .steps li:last-child { border-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav, .header-right .lang-switch { display: none; }
  .burger { display: flex; }
  /* «Скачать» прижимаем к правому краю, к бургеру; логотип — к левому.
     Место освобождаем зазорами: между иконкой и названием, и между блоками */
  .header-inner { gap: 10px; }
  .logo { gap: 5px; }
  .header-right { margin-left: auto; }
  .burger { margin-left: 0; }
  /* Нижняя кнопка «Скачать» — строго по центру и на 7% уже */
  .download-box .btn-lg {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-strong);
    padding: 14px 24px 18px;
    gap: 14px;
  }
  .car-btn { width: 34px; height: 34px; font-size: 1.1rem; }
  .car-dot { width: 8px; height: 8px; }
  .car-dot.car-on { width: 22px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
}
