/* ==========================================================================
   Mostbet — обзор для Кыргызстана (mostbetonline-kg.com)
   Единый стиль для всех страниц. Токены, каркас, компоненты, адаптив.
   ========================================================================== */

/* ---------- Шрифты (self-hosted, latin + cyrillic) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Токены ---------- */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #eaf1f9;
  --surface-3: #dfeaf6;
  --fg: #0b1b2b;
  --ink: #22354a;
  --muted: #53677d;
  --border: #dbe4ee;
  --border-strong: #c3d3e3;

  --brand: #08509d;
  --brand-700: #073f7c;
  --brand-800: #062f5d;
  --brand-900: #041f3f;
  --accent: #ff4c00;
  --accent-700: #d93f00;
  --accent-ink: #bf3a00;
  --accent-soft: #fff0e8;

  --ok: #0d6b43;
  --ok-soft: #e6f4ec;
  --warn: #8a4b00;
  --warn-soft: #fdf1de;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8, 32, 60, 0.06);
  --shadow: 0 10px 30px -18px rgba(6, 47, 93, 0.45);
  --shadow-lg: 0 26px 60px -32px rgba(6, 47, 93, 0.55);

  --font-display: "Manrope", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Manrope", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --rail-w: 268px;
  --read: 72ch;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-700);
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 16px 0;
  padding: 0;
}

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

::selection {
  background: #ffd7c4;
  color: var(--fg);
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--surface);
  color: var(--brand-800);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-border: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-border: var(--accent);
  --btn-fg: #fff;
  font-size: 18px;
  font-weight: 750;
}

.btn--accent:hover {
  --btn-bg: var(--accent-700);
  --btn-border: var(--accent-700);
}

.btn--brand:hover {
  --btn-bg: var(--brand-700);
  --btn-border: var(--brand-700);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-800);
  --btn-border: var(--border-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--brand-800);
  --btn-border: var(--brand);
}

.btn--on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--brand-800);
  --btn-border: #fff;
}

.btn--on-dark:hover {
  --btn-bg: #eaf1f9;
  --btn-fg: var(--brand-900);
  --btn-border: #eaf1f9;
}

.btn--on-dark-ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.55);
}

.btn--on-dark-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
  --btn-fg: #fff;
  --btn-border: #fff;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}

.btn__note {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

/* ---------- Шапка ---------- */
.topline {
  background: var(--brand-900);
  color: #cfe0f2;
  font-size: 13px;
  line-height: 1.4;
}

.topline__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-block: 6px;
}

.topline p {
  margin: 0;
}

.topline__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topline a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.topline a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.masthead {
  background: var(--surface);
}

.masthead__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 48px;
}

.brand__mark {
  display: none;
}

.nav {
  margin-inline-start: 4px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__link:hover {
  background: var(--surface-2);
  color: var(--brand-800);
}

.nav__link.is-active {
  color: var(--brand-800);
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.masthead__actions .btn {
  min-height: 44px;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--brand-800);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand-800);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  height: calc(100vh - 64px);
  overflow-y: scroll;
  padding-bottom: 140px;
}

.drawer.is-open {
  display: block;
}

.drawer__in {
  padding-block: 14px 22px;
}

.drawer__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}

.drawer__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.drawer__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.drawer__list a:hover {
  background: var(--surface-2);
  color: var(--brand-800);
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
  padding-top: 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "-";
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-800);
  text-decoration: underline;
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Каркас: левый рельс + контент ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 30px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 34px) clamp(40px, 5vw, 72px);
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.rail__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.rail__card--facts {
  align-content: start;
}

.rail__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.rail-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.rail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.rail-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rail-facts dt {
  color: var(--muted);
}

.rail-facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--fg);
  text-align: right;
}

.rail__card--promo {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #dce9f7;
}

.rail__card--promo .rail__eyebrow {
  color: #ffc9b0;
}

.rail__code {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 4px;
}

.rail__hint {
  font-size: 13px;
  line-height: 1.5;
  color: #c9dcef;
  margin-bottom: 12px;
}

.rail__nav ul {
  list-style: none;
  display: grid;
  gap: 1px;
}

.rail__nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rail__nav a:hover {
  background: var(--surface-2);
  color: var(--brand-800);
}

.rail__nav a.is-active {
  background: var(--surface-2);
  color: var(--brand-800);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.rail__nav .rail__group + .rail__group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rail__note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-inline: 4px;
}

.rail__note strong {
  color: var(--fg);
}

/* ---------- Главный герой (главная) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(255, 76, 0, 0.28) 0%, rgba(255, 76, 0, 0) 46%),
    radial-gradient(100% 120% at 4% 100%, rgba(0, 132, 255, 0.28) 0%, rgba(0, 132, 255, 0) 55%),
    linear-gradient(158deg, var(--brand-900) 0%, var(--brand) 62%, #0a63bd 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.78fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 3.4vw, 30px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.hero__eyebrow b {
  color: #ffb896;
  font-weight: 700;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__lead {
  color: #e2edf9;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.6;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__actions .btn {
  min-height: 52px;
  padding-inline: 26px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-top: 22px;
  font-size: 14px;
  color: #cfe0f2;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  flex: none;
  color: #8fd6b4;
}

.hero__copy {
  min-width: 0;
}

.hero__media {
  justify-self: end;
  width: 100%;
  max-width: 282px;
}

.hero__device {
  position: relative;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.hero__device:hover {
  transform: translateY(-3px);
}

.hero__device img {
  width: 100%;
  height: auto;
}

.hero__device-caption {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #c6d9ee;
  text-align: center;
}

.hero__ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  font-size: 13.5px;
  color: #fff;
}

.hero__ticket b {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 14.5px;
}

/* ---------- Внутренний герой ---------- */
.page-hero {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 96% 0%, rgba(255, 76, 0, 0.1) 0%, rgba(255, 76, 0, 0) 52%),
    linear-gradient(160deg, #ffffff 0%, #eef4fb 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(22px, 3vw, 38px);
  align-items: center;
}

.page-hero--text {
  background:
    radial-gradient(90% 120% at 96% 0%, rgba(255, 76, 0, 0.1) 0%, rgba(255, 76, 0, 0) 52%),
    linear-gradient(160deg, #ffffff 0%, #eef4fb 100%);
  border-color: var(--border);
}

.page-hero--text .page-hero__in {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid #ffd6c2;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(27px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  max-width: 58ch;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-hero__media {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-hero__media img {
  width: 100%;
  height: auto;
}

.page-hero--portrait .page-hero__media {
  max-width: 320px;
  justify-self: end;
}

/* ---------- Оглавление ---------- */
.toc {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toc__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

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

.toc__summary:hover {
  background: var(--surface-2);
}

.toc__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.toc__count {
  font-size: 13px;
  color: var(--muted);
}

.toc__chevron {
  margin-inline-start: auto;
  flex: none;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.toc[open] .toc__chevron {
  transform: rotate(180deg);
}

.toc__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
  padding: 4px 14px 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.toc__list a:hover {
  background: var(--surface-2);
  color: var(--brand-800);
}

.toc__emoji {
  flex: none;
  font-size: 15px;
  line-height: 1;
}

.toc__list .toc__numeral {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 18px;
}

/* ---------- Статья ---------- */
.prose {
  max-width: none;
  margin-top: clamp(24px, 3vw, 36px);
}

/* Текстовые блоки держат комфортную меру, медиа и таблицы занимают
   всю ширину контентной колонки. */
.prose > *,
.section > *,
.faq > * {
  max-width: var(--read);
}

.prose > .section,
.prose > .figure,
.prose > .table-wrap,
.prose > .cta-band,
.prose > .author,
.prose > .toc,
.prose > .faq,
.section > .figure,
.section > .table-wrap,
.section > .cta-band,
.faq > .faq__list {
  max-width: none;
}

.prose > * + * {
  margin-top: 18px;
}

.prose > p,
.prose > ul,
.prose > ol,
.prose > .table-wrap,
.prose > .figure,
.prose > .shot-pair,
.prose > .callout,
.prose > .pros-cons,
.prose > .steps {
  margin-top: 18px;
}

.prose .lead {
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--ink);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose a:not(.btn) {
  color: var(--brand-700);
  text-decoration-color: #9dbde0;
  text-decoration-thickness: 1px;
}

.prose a:not(.btn):hover {
  color: var(--brand-800);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.section {
  margin-top: clamp(38px, 4.6vw, 58px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.section:first-of-type {
  margin-top: 30px;
}

.section__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.section__num {
  color: var(--accent-ink);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.section h2 {
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section h2 + p,
.section h2 + .prose-lead {
  margin-top: 12px;
}

.section h3 {
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 10px;
}

.section > p + p {
  margin-top: 14px;
}

.section ul,
.section ol {
  padding-left: 0;
}

/* Маркированные списки контента: только списки, которые являются
   прямыми детьми секции, — компонентные списки (TOC, плюсы/минусы,
   шаги) оформляются своими правилами. */
.section > ul,
.prose > ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.section > ul > li,
.prose > ul > li {
  position: relative;
  padding-left: 26px;
}

.section > ul > li::before,
.prose > ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.section > ol:not(.steps),
.prose > ol:not(.steps) {
  list-style: none;
  counter-reset: item;
  display: grid;
  gap: 10px;
}

.section > ol:not(.steps) > li,
.prose > ol:not(.steps) > li {
  counter-increment: item;
  position: relative;
  padding-left: 36px;
}

.section > ol:not(.steps) > li::before,
.prose > ol:not(.steps) > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
}

.section > ul > li + li,
.section > ol > li + li,
.prose > ul > li + li,
.prose > ol > li + li {
  margin-top: 2px;
}

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

/* ---------- Таблицы ---------- */
.table-wrap {
  position: relative;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--brand-900);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

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

tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 42%;
}

tbody td {
  color: var(--ink);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td,
tbody tr:hover th {
  background: #f8fbfe;
}

.table-wrap table {
  min-width: 520px;
}

.facts-table tbody th {
  width: 40%;
}

.facts-table td {
  font-weight: 500;
}

.table-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Изображения ---------- */
.figure {
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.figure img {
  width: 100%;
  border-radius: calc(var(--radius) - 6px);
}

.figure figcaption {
  padding: 10px 6px 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.figure--flush {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.figure--flush img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.figure--flush figcaption {
  padding-inline: 2px;
}

.figure--device {
  max-width: 420px;
}

.figure--device img {
  width: auto;
  max-height: 620px;
  margin-inline: auto;
}

.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shot-pair .figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ---------- Выноски ---------- */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 20px 0;
}

.callout__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--brand);
  flex: none;
}

.callout p + p {
  margin-top: 8px;
}

.callout--info {
  border-color: #c6dcf2;
  background: #f0f6fd;
}

.callout--warn {
  border-color: #f0d3b4;
  background: var(--warn-soft);
}

.callout--warn .callout__icon {
  background: #f7e2c8;
  color: var(--warn);
}

.callout--ok {
  border-color: #c4e3d1;
  background: var(--ok-soft);
}

.callout--ok .callout__icon {
  background: #d3ebdd;
  color: var(--ok);
}

.callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}

/* ---------- Плюсы и минусы ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pros-cons__col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
}

.pros-cons__col h3 {
  margin: 0 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-cons__col ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.pros-cons__col li {
  position: relative;
  padding-left: 24px;
}

.pros-cons__col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.pros-cons__col--pro li::before {
  content: "+";
  color: var(--ok);
}

.pros-cons__col--con li::before {
  content: "–";
  color: var(--accent-ink);
}

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.prose .steps > li,
.section .steps > li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: none;
}

.prose .steps > li::before,
.section .steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-ink);
  letter-spacing: 0.02em;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
}

/* ---------- Полоса CTA ---------- */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--brand-800);
  color: #dbe9f7;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.cta-band__text {
  font-size: 14.5px;
  line-height: 1.5;
  color: #cfe0f2;
}

.cta-band .btn {
  flex: none;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: clamp(38px, 4.6vw, 58px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.faq__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--fg);
  border-radius: var(--radius);
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary:hover {
  background: #f8fbfe;
}

.faq__item > summary::after {
  content: "+";
  margin-inline-start: auto;
  flex: none;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  transition: transform 0.18s ease;
}

.faq__item[open] > summary::after {
  content: "–";
  color: var(--accent-ink);
}

.faq__item[open] > summary {
  background: #f8fbfe;
}

.faq__answer {
  padding: 0 18px 16px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  max-width: 68ch;
}

.faq__answer p + p {
  margin-top: 8px;
}

/* ---------- Автор ---------- */
.author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: clamp(36px, 4vw, 52px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-800);
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
}

.author__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.author__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 750;
  color: var(--fg);
}

.author__role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

.author__bio {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 8px;
  max-width: 66ch;
}

.author__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.author__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--brand-900);
  color: #c8daee;
  padding-block: 40px 22px;
  margin-top: 0;
}

.footer__col {
  min-width: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.05fr;
  gap: clamp(20px, 3vw, 40px);
}

.footer__brand img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #b9cde3;
  max-width: 34ch;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 2px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #c8daee;
  font-size: 14px;
  text-decoration: none;
}

.footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* Знаки доверия в подвале */
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}

.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icons .pay-icon img {
  display: block;
  filter: brightness(100);
}

.footer-icons .pay-icon:hover span {
  background: #fff;
  color: var(--brand-900);
}

/* Платёжные методы в подвале */
.payments-wrap {
  margin: 30px 0;
}

.payments-wrap h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.payment-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-item img {
  display: block;
  width: auto;
  height: auto;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}

.payments-wrap__note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #a9c2db;
  max-width: 88ch;
}

.footer__contacts {
  font-size: 14px;
  line-height: 1.6;
  display: grid;
  gap: 6px;
}

.footer__contacts a {
  color: #fff;
  text-decoration: none;
}

.footer__contacts a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.age-badge__circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  flex: none;
}

.age-badge__text {
  font-size: 12px;
  line-height: 1.45;
  color: #c8daee;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: #a9c2db;
}

.footer__bottom p {
  max-width: 88ch;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer__bottom a {
  color: #dbe9f7;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ---------- Мобильная панель CTA ---------- */
.mobile-bar {
  display: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1120px) {
  :root {
    --rail-w: 240px;
  }

  .nav__link {
    padding-inline: 9px;
    font-size: 14.5px;
  }

  .footer__grid {
    grid-template-columns: 1.15fr 1fr;
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .hero__in,
  .page-hero__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    justify-self: start;
    max-width: 270px;
  }

  .page-hero__in, .hero__in {
    text-align: center;
  }

  .page-hero__actions, .hero__actions {
    justify-content: center;
  }

  .page-hero__media,
  .page-hero--portrait .page-hero__media {
    max-width: 100%;
    justify-self: stretch;
    margin: 0 auto;
  }

  .page-hero--portrait .page-hero__media {
    max-width: 340px;
    justify-self: start;
  }

  .hero__media {
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }

  .rail {
    display: none;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .masthead__actions {
    display: none;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -18px rgba(6, 47, 93, 0.6);
  }

  .mobile-bar .btn {
    min-height: 40px;
    font-size: 15px;
    padding: 0 12px;
  }

  .mobile-bar__age {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: -2px;
    display: none;
  }

  body {
    padding-bottom: 104px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }

  .topline__in {
    flex-wrap: wrap;
    gap: 2px 12px;
    padding-block: 6px;
    font-size: 12px;
  }

  .topline__meta span {
    display: none;
  }

  .brand img {
    height: 40px;
  }

  .toc__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .pros-cons,
  .shot-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band .btn {
    width: 100%;
  }

  .author {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
    gap: 14px;
  }

  .author__avatar {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__col--about,
  .footer__col--contacts {
    grid-column: auto;
  }

  .hero__in {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(27px, 7vw, 34px);
  }

  .hero__lead {
    font-size: 16.5px;
  }

  .hero__media {
    max-width: 240px;
  }

  .page-hero__in {
    padding: 18px;
  }

  .figure--device {
    max-width: 100%;
  }

  .figure--device img {
    max-height: 520px;
  }

  .prose {
    max-width: 100%;
  }

  .prose > *,
  .section > *,
  .faq > * {
    max-width: 100%;
  }

  .table-wrap table {
    min-width: 480px;
  }

  .section {
    margin-top: 34px;
  }

  .callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .callout__icon {
    display: none;
  }
}

@media (max-width: 420px) {
  .drawer__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    font-size: 12px;
  }

  .hero__ticket {
    width: 100%;
  }

  .page-hero__actions, .hero__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Печать ---------- */
@media print {
  .topline,
  .masthead,
  .rail,
  .mobile-bar,
  .toc,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .layout {
    display: block;
  }

  .prose {
    max-width: 100%;
  }
}

/* ---------- Служебные уточнения ---------- */
.section h2,
.faq h2 {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.faq h2 {
  font-size: clamp(24px, 2.7vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-hero__media {
  margin: 0;
}

.page-hero__media figcaption {
  padding: 8px 4px 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.footer__contacts {
  margin-top: 12px;
}

@media (max-width: 800px) {
  .payments-grid {
    gap: 16px;
  }

  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .topline__in {
    display: none;
  }
}

@media (max-width: 420px) {
  .footer-icons .pay-icon img {
    height: auto;
    max-width: 100%;
  }
}

.prose > .faq {
  max-width: none;
}

@media (max-width: 760px) {
  .prose > .author {
    margin-top: 30px;
  }
}

/* ---------- Иерархия CTA на мобильных ----------
   Единственная акцентная кнопка — в закреплённой нижней панели.
   Кнопки в герое и финальном блоке остаются, но вторичны. */
@media (max-width: 980px) {
  .hero__actions .btn--accent {
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.62);
  }

  .hero__actions .btn--accent:hover {
    --btn-bg: rgba(255, 255, 255, 0.18);
    --btn-fg: #fff;
    --btn-border: #fff;
  }

  .page-hero__actions .btn--accent {
    --btn-bg: transparent;
    --btn-fg: var(--brand-800);
    --btn-border: var(--brand);
  }

  .page-hero__actions .btn--accent:hover {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--brand-900);
    --btn-border: var(--brand-800);
  }

  .cta-band .btn--accent {
    --btn-bg: transparent;
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.62);
  }

  .cta-band .btn--accent:hover {
    --btn-bg: rgba(255, 255, 255, 0.14);
    --btn-fg: #fff;
    --btn-border: #fff;
  }
}

/* ---------- Контентная колонка ---------- */
.content {
  min-width: 0;
}

/* Промокод в герое нужен только там, где левый рельс скрыт. */
@media (min-width: 981px) {
  .hero__ticket {
    display: none;
  }
}

/* На страницах без CTA закреплённая панель не рендерится — убираем и отступ. */
@media (max-width: 980px) {
  body[data-cta="none"] {
    padding-bottom: 0;
  }
}
