/* ==========================================================================
   Bogatyr — сайт платформы. Общая дизайн-система.
   Токены цвета сверены с фирменным стилем проекта (web/src/styles/tokens.css:
   accent #ff2d21 / ink #1a1a1a) и с редакционным направлением мокапов
   web-design/v2-dosie.html (тёплая бумага, серифный дисплей, моно-надзаголовки).
   font-stack: Georgia (display) + системный гротеск (body) — по прецеденту
   docs/design/mobile-ui-concepts.html проекта.
   ========================================================================== */

:root {
  /* поверхности */
  --paper: #f7f5f0;
  --paper-2: #f1eee6;
  --sheet: #ffffff;
  --dark: #14120f;
  --dark-2: #1e1a16;

  /* текст */
  --ink: #1a1a1a;
  --ink-2: #33322f;
  --mut: #6e6b66;
  --dim: #9b978f;

  /* линии */
  --line: #e3e0d8;
  --line-2: #d3cfc4;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* акцент — фирменный красный; тёмные варианты для текста и заливок */
  --accent: #ff2d21;
  --accent-fill: #d4231a;
  --accent-fill-hover: #b81c13;
  --accent-ink: #b81c13;
  --accent-bg: #fff0ef;
  --accent-line: #ffc9c4;

  /* семантика */
  --ok: #1e9e6a;
  --ok-bg: #edfaf3;
  --warn: #96590a;
  --warn-bg: #fdf6e8;
  --bad: #c93a28;
  --bad-bg: #fdf0ee;
  --info: #2f5d8c;
  --info-bg: #eef3f9;

  /* типографика */
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* сетка */
  --wrap: 1200px;
  --gut: clamp(18px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --shadow-1: 0 1px 2px rgba(20, 18, 15, 0.05);
  --shadow-2: 0 2px 6px rgba(20, 18, 15, 0.06), 0 18px 40px -28px rgba(20, 18, 15, 0.4);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── типографика ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.22; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: 15px; font-weight: 650; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.kicker.plain::before { display: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mut); }
.tnum { font-variant-numeric: tabular-nums; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }

/* ── каркас ──────────────────────────────────────────────────────────────── */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }

section { padding: clamp(52px, 7vw, 96px) 0; }
section.tight { padding: clamp(36px, 4vw, 56px) 0; }
section.dark { background: var(--dark); color: #efece6; }
section.dark h2, section.dark h3, section.dark h1 { color: #fbf9f5; }
section.dark .lead, section.dark p { color: #c9c4ba; }
section.dark .kicker { color: #a5a09a; }
section.alt { background: var(--paper-2); }
section.sheet { background: var(--sheet); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── шапка ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; line-height: 1;
  padding-bottom: 2px;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; }
.brand-txt span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #5c5954; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  padding: 8px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(20, 18, 15, 0.05); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(20, 18, 15, 0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  background: var(--sheet);
  border-radius: 9px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 14px; }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gut) 20px;
    box-shadow: var(--shadow-2);
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-inline { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .nav-links .nav-cta-inline .btn { width: 100%; }
}

@media (min-width: 941px) {
  .nav-links .nav-cta-inline { display: none; }
}

/* ── селектор языка ──────────────────────────────────────────────────────── */

.lang { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.lang a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mut);
  padding: 6px 7px;
  border-radius: 6px;
  text-decoration: none;
}
.lang a:hover { background: rgba(20, 18, 15, 0.06); color: var(--ink); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); background: rgba(20, 18, 15, 0.07); }
.lang-mobile { display: none; margin-top: 12px; margin-left: 0; }
.lang-mobile a { font-size: 13px; padding: 8px 12px; border: 1px solid var(--line-2); }

@media (max-width: 940px) {
  .nav-links .lang { display: none; }
  .lang-mobile { display: flex; }
  .lang-mobile a[aria-current="true"] { border-color: var(--ink); }
}

/* ── кнопки ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, color 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { background: var(--accent-fill-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(20, 18, 15, 0.04); border-color: var(--ink-2); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink-2); padding-left: 4px; padding-right: 4px; }
.btn-quiet:hover { color: var(--accent-ink); text-decoration: none; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
section.dark .btn-ghost { color: #f2efe9; border-color: var(--line-dark); }
section.dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── сетки ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split-wide { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
}

/* ── карточки ────────────────────────────────────────────────────────────── */

.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { margin-bottom: 2px; }
.card .card-kicker { margin-bottom: 2px; }
.card p { color: var(--mut); font-size: 15.5px; }
.card.flat { box-shadow: none; }
.card.accent { border-color: var(--accent-line); background: linear-gradient(180deg, #fff 0%, var(--accent-bg) 100%); }

section.dark .card {
  background: var(--dark-2);
  border-color: var(--line-dark);
  box-shadow: none;
}
section.dark .card p { color: #b5b0a6; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
section.dark .list li { color: #c9c4ba; }

.tick { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--ok); }
.tick-red { stroke: var(--accent-fill); }
.cross { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--bad); }

/* ── моно-чипы: цитаты, вердикты, статусы ────────────────────────────────── */

.cite {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  display: inline-block;
}
.cite.neutral { color: var(--mut); background: var(--paper-2); border-color: var(--line-2); }

.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-ok { color: var(--ok); background: var(--ok-bg); border-color: #bfe8d4; }
.badge-warn { color: var(--warn); background: var(--warn-bg); border-color: #ecd9ab; }
.badge-bad { color: var(--bad); background: var(--bad-bg); border-color: #f3cdc7; }
.badge-info { color: var(--info); background: var(--info-bg); border-color: #ccdcee; }
.badge-ink { color: #efece6; background: rgba(255, 255, 255, 0.1); border-color: var(--line-dark); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot-ok { color: var(--ok); background: var(--ok); }
.dot-bad { color: var(--bad); background: var(--bad); }
.dot-warn { color: var(--warn); background: var(--warn); }

/* ── таблицы ─────────────────────────────────────────────────────────────── */

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sheet); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  font-weight: 700;
  background: var(--paper-2);
  position: sticky; top: 0;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl .rowhead { font-weight: 600; color: var(--ink); }
table.tbl tbody tr:hover { background: rgba(20, 18, 15, 0.02); }
table.tbl .yes { color: var(--ok); font-weight: 650; }
table.tbl .no { color: var(--dim); }

/* ── пилюли / сегменты ───────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--sheet); border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill.is-on { background: var(--ink); color: #fbf9f5; border-color: var(--ink); }

.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border: 0; background: transparent; color: var(--mut);
  border-radius: 7px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-1); }

/* ── герой ───────────────────────────────────────────────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-1);
}
.hero-card .hero-card-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hero-card .hc-row { padding: 13px 0; border-bottom: 1px dashed var(--line-2); }
.hero-card .hc-row:last-of-type { border-bottom: 0; }
.hero-card .hc-row p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; }
.hero-card .hc-foot { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 4px; font-size: 12.5px; color: var(--mut); }

/* ── цифры / статистика ──────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stats > div { padding: 20px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sheet); }
.stats b { font-family: var(--font-display); display: block; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.02em; }
.stats span { display: block; font-size: 13.5px; color: var(--mut); margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── шаги / таймлайн ─────────────────────────────────────────────────────── */

.steps { display: flex; flex-direction: column; counter-reset: s; }
.step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  counter-increment: s;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-bg); color: var(--accent-ink); border: 1px solid var(--accent-line);
}
.step-n::before { content: counter(s); }
.step h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.step p { color: var(--mut); font-size: 15.5px; }
.step .step-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }

/* ── окно продукта ───────────────────────────────────────────────────────── */

.frame {
  background: var(--dark);
  border-radius: var(--r-xl);
  padding: 10px;
  box-shadow: var(--shadow-2);
  border: 1px solid #2b2721;
}
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 4px 8px 10px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4d463b; display: block; }
.frame-bar .frame-url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: #8d887e;
  background: #201c18; border: 1px solid #2f2a23; border-radius: 6px; padding: 4px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app {
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 430px;
}
.app-side { background: var(--sheet); border-right: 1px solid var(--line); padding: 16px 14px; }
.app-side .side-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.app-side ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.app-side li { font-size: 13.5px; color: var(--mut); padding: 7px 9px; border-radius: 6px; display: flex; align-items: center; gap: 7px; }
.app-side li.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.app-side li.on::before { content: ""; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; }
.app-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.app-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app-head h4 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.app-head .mono { font-size: 11.5px; color: var(--mut); }
.bubble { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.bubble.q { background: var(--ink); color: #f4f1ec; border-color: var(--ink); border-bottom-right-radius: 4px; margin-left: auto; max-width: 78%; }
.bubble.a { border-top-left-radius: 4px; }
.bubble .bubble-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.bubble.q .bubble-meta { color: #9d978d; }
.bubble p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.bubble.q p { color: #eae6df; }
.claim { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line-2); }
.claim:first-of-type { border-top: 0; }
.claim-body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.claim-src { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.verdict { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); flex-wrap: wrap; }
.verdict .verdict-txt { font-size: 13px; color: var(--ink-2); }
@media (max-width: 820px) { .app { grid-template-columns: minmax(0, 1fr); } .app-side { display: none; } }

/* ── цитата / отзыв-блок ─────────────────────────────────────────────────── */

blockquote.pull {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: clamp(18px, 2.4vw, 30px);
  max-width: 44ch;
}
blockquote.pull cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); font-style: normal; }

/* ── код ─────────────────────────────────────────────────────────────────── */

.code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  background: var(--dark);
  color: #e8e3da;
  border: 1px solid #2b2721;
  border-radius: var(--r-md);
  padding: 15px 17px;
  overflow-x: auto;
  white-space: pre;
  display: block;
}
.code .c { color: #7d776d; }
.code .p { color: #ff8b7f; }
.code .s { color: #b8d99a; }
.code-inline {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 6px; color: var(--ink-2);
  white-space: nowrap;
}

/* ── аккордеон / FAQ ─────────────────────────────────────────────────────── */

details.qa { border-top: 1px solid var(--line); padding: 4px 0; }
details.qa:last-of-type { border-bottom: 1px solid var(--line); }
details.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--ink);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 20px; color: var(--mut); line-height: 1;
}
details.qa[open] summary::after { content: "–"; }
details.qa .qa-body { padding: 0 0 20px; color: var(--mut); font-size: 15.5px; max-width: 76ch; }
details.qa .qa-body p + p { margin-top: 0.8em; }

/* ── полосы-акценты ──────────────────────────────────────────────────────── */

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 16px 18px;
}
.notice p { font-size: 15px; color: var(--ink-2); }
.notice.info { border-left-color: var(--info); }
.notice.warn { border-left-color: var(--warn); }

.honest {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--paper-2);
  font-size: 14px;
  color: var(--mut);
}
.honest b { color: var(--ink-2); }

/* ── формы ───────────────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--dim); }
.input, .select, .textarea {
  font: inherit; font-size: 15px;
  padding: 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--sheet);
  color: var(--ink);
  width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px rgba(255, 45, 33, 0.13); }
.input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }
.err { font-size: 12.5px; color: var(--bad); display: none; }
.field.has-err .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mut); }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent-fill); flex: none; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  accent-color: var(--accent-fill);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent-fill) 0%, var(--accent) 100%);
  opacity: .35;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -8px;
  border-radius: 50%; background: var(--accent-fill);
  border: 3px solid var(--sheet); box-shadow: var(--shadow-1);
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--sheet); border-radius: 50%; background: var(--accent-fill); }

figure.shot { margin: 0; }
figure.shot img { border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); }
figure.shot figcaption { font-size: 13.5px; color: var(--mut); margin-top: 12px; }

/* ── ошибка отправки формы ──────────────────────────────────────────────── */

.form-error {
  margin-top: 14px;
  border: 1px solid #f3cdc7;
  background: var(--bad-bg);
  color: var(--bad);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.form-error:empty { display: none; }

/* ── согласие на аналитику ──────────────────────────────────────────────── */

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: min(380px, calc(100vw - 40px));
  background: var(--sheet);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.consent.is-visible { opacity: 1; transform: none; }
.consent-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.consent-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mut);
  margin: 0 0 14px;
}
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
}

/* ── футер ───────────────────────────────────────────────────────────────── */

.foot { background: var(--dark); color: #b5b0a6; padding: clamp(40px, 5vw, 64px) 0 28px; font-size: 14px; }
.foot a { color: #ddd8cf; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #8b867c; margin: 0 0 14px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot .foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.foot .foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: #8b867c; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── крошки ──────────────────────────────────────────────────────────────── */

.crumbs { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); display: flex; gap: 8px; align-items: center; padding-top: 26px; }
.crumbs a { color: var(--mut); }
.crumbs span { color: var(--line-2); }

/* ── утилиты ─────────────────────────────────────────────────────────────── */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; }
.mt-5 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 34px; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.wrapgap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hr-s { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .nav, .foot, .btn { display: none !important; }
  body { background: #fff; }
}
