/* AviGamePlay — единый CSS. Токены → база → компоненты → шаблоны → адаптив. */

:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --surface: #17171b;
  --surface-2: #1f1f25;
  --line: #2a2a31;
  --line-2: #3a3a44;

  --red: #e50539;
  --red-2: #ff2d5a;
  --red-d: #9e0628;
  --red-soft: rgba(229, 5, 57, .12);
  --green: #28a909;
  --gold: #ffc83d;
  --x-low: #34b4ff;
  --x-mid: #913ef8;
  --x-high: #c017b4;

  --text: #ffffff;
  --body: #d7d7de;
  --muted: #9a9aa6;

  --radius: 12px;
  --radius-s: 8px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --section-gap: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
  transition: padding-bottom .25s ease;
}
img, svg { max-width: 100%; }
a { color: var(--red-2); text-underline-offset: 3px; }
a:hover { color: #ff6b8b; }
h1, h2, h3 { color: var(--text); line-height: 1.22; margin: 0 0 .6em; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 20px; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ext { font-size: .85em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 46px; padding: 10px 22px; border-radius: 10px;
  font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px rgba(229, 5, 57, .7); }
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--red-d); }
.btn-light:hover { background: #ffe5eb; color: var(--red-d); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- Логотип / самолёт ---------- */
.plane { width: 40px; height: auto; display: block; }
.plane-body { fill: var(--red); }
.plane-wing { fill: var(--red-d); }
.plane-glass { fill: #fff; opacity: .85; }
.plane-prop { fill: #fff; opacity: .7; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(229, 5, 57, .35)); }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo-name { font: 800 23px/1 var(--font); color: #fff; letter-spacing: -.025em; white-space: nowrap; }
.logo-a { color: var(--red-2); }
.logo-tag { font-size: 10px; line-height: 1; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.logo:hover .logo-name { color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 13, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.main-nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; justify-content: center; }
.nav-item { position: relative; margin: 0; }
.nav-item > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 12px; border-radius: 8px;
  color: var(--body); text-decoration: none; font: 600 15px/1.2 var(--font);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-item > a:hover, .sub-toggle:hover { color: #fff; background: var(--surface-2); }
.nav-item > a[aria-current="page"], .has-sub.is-active > .sub-toggle { color: #fff; background: var(--red-soft); box-shadow: inset 0 -2px 0 var(--red); }
.chev { width: 11px; height: 8px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub {
  display: none; list-style: none; margin: 0; padding: 8px;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
}
/* «мост» над подменю, чтобы курсор не терял меню в зазоре */
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub.open > .sub { display: block; }
html:not(.js) .has-sub:hover > .sub, html:not(.js) .has-sub:focus-within > .sub { display: block; }
.sub li { margin: 0; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--body); text-decoration: none; font-weight: 600; }
.sub a:hover { background: var(--surface-2); color: #fff; }
.sub a[aria-current="page"] { color: #fff; background: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 8px; font: 700 13px/1 var(--font); text-decoration: none; }
.lang-current { background: var(--surface-2); color: #fff; }
.lang-link { color: var(--muted); }
.lang-link:hover { color: #fff; background: var(--surface-2); }
.menu-toggle { display: none; }

/* ---------- Основная колонка ---------- */
.main { padding-top: 28px; padding-bottom: 56px; }

/* ---------- Hero главной ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
  padding: 36px 40px; margin-bottom: 28px;
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(229, 5, 57, .22), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 18px;
  position: relative; overflow: hidden;
}
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--red-soft); color: #ff8aa5; font: 700 13px/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin-bottom: .45em; }
.hero-lead { font-size: 17.5px; color: var(--body); max-width: 62ch; }
.hero-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { margin: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font: 700 14px/1.2 var(--font); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-legal { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--muted); }
.hero-pills-mobile { display: none; }
.hero > * { min-width: 0; }

/* Иллюстрация «экран игры» */
.flight { margin: 0; }
.flight-screen { background: #0a0a0c; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; box-shadow: 0 24px 60px -24px rgba(229, 5, 57, .45); }
.flight-stage { position: relative; aspect-ratio: 5 / 3; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 120% at 0% 100%, #2a0712 0%, #0d0d10 60%); }
.flight-rays {
  position: absolute; width: 300%; height: 300%; left: -150%; bottom: -150%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .045) 0 5deg, transparent 5deg 10deg);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.flight-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-area { fill: rgba(229, 5, 57, .42); }
.flight-line { fill: none; stroke: var(--red); stroke-width: 4; vector-effect: non-scaling-stroke; }
.flight-plane { position: absolute; width: 17%; transform: translate(-30%, -70%) rotate(-12deg); transition: opacity .3s; }
.flight-plane .plane { width: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.flight-plane.gone { transition: left .9s ease-in, top .9s ease-in, opacity .9s; left: 115% !important; top: -20% !important; opacity: 0; }
.flight-mult { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 900 clamp(34px, 5vw, 56px)/1 var(--font); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); white-space: nowrap; }
.flight.is-gone .flight-mult { color: var(--red-2); }
.flight-mult[data-label]::before { content: attr(data-label); display: block; font-size: .32em; letter-spacing: .12em; text-align: center; margin-bottom: 6px; }
.flight-next { position: absolute; left: 50%; bottom: 14%; width: 40%; height: 4px; transform: translateX(-50%); background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.flight-next span { display: block; height: 100%; width: 0; background: var(--red); }
.flight.is-waiting .flight-next { opacity: 1; }
.flight.is-waiting .flight-next span { width: 100%; transition: width 1.2s linear; }
.flight figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* История множителей */
.pills { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; overflow: hidden; }
.pill { margin: 0; flex-shrink: 0; padding: 2px 10px; border-radius: 999px; background: #000; font: 800 13px/1.6 var(--font); font-variant-numeric: tabular-nums; }
.x-low { color: var(--x-low); }
.x-mid { color: var(--x-mid); }
.x-high { color: var(--x-high); }
.pill.is-new { animation: pill-in .4s ease; }
@keyframes pill-in { from { transform: translateX(-12px); opacity: 0; } }

/* ---------- Заголовок внутренних страниц ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.page-head {
  padding: 32px 36px; margin-bottom: 28px; border-radius: 18px;
  border: 1px solid var(--line-2);
  background: radial-gradient(90% 160% at 100% 0%, rgba(229, 5, 57, .18), transparent 60%), var(--surface);
}
.page-head-plain { background: var(--surface); }
.page-lead { font-size: 17.5px; max-width: 75ch; }
.page-lead p:last-child { margin-bottom: .6em; }
.page-meta { margin: 0; font-size: 14px; color: var(--muted); }
.page-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Оглавление ---------- */
.toc { margin-bottom: 32px; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toc-title { margin: 0; font-size: 18px; }
.toc-toggle { min-height: 40px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; font: 700 14px/1.2 var(--font); cursor: pointer; }
.toc-toggle:hover { border-color: var(--red); }
.toc-list { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 20px; }
.toc-list[hidden] { display: none; }
.toc-list li { counter-increment: toc; margin: 0; }
.toc-list a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--body); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc-list a::before { content: counter(toc, decimal-leading-zero); color: var(--red); font-weight: 800; font-variant-numeric: tabular-nums; }
.toc-list a:hover { background: var(--surface-2); color: #fff; }

/* ---------- Разделы ---------- */
.sec { margin-bottom: var(--section-gap); }
.sec > h2 { padding-bottom: 12px; margin-bottom: 18px; position: relative; }
.sec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: var(--red); }
.sec-lead { font-size: 17px; color: #e6e6ec; }
.sec-body > :last-child { margin-bottom: 0; }
.sec-more {
  margin-top: 14px; min-height: 42px; padding: 8px 16px; border-radius: 10px;
  background: transparent; color: #fff; border: 1px solid var(--line-2);
  font: 700 15px/1.2 var(--font); cursor: pointer;
}
.sec-more:hover { border-color: var(--red); }
.sec-more::after { content: " ↓"; color: var(--red); }
.sec-more[aria-expanded="true"]::after { content: " ↑"; }
.content-narrow { max-width: 820px; }
.updated { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wide table { min-width: 640px; }
caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 700; color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line-2); }
th, td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--surface-2); color: #fff; font-weight: 700; white-space: nowrap; }
tbody th { color: #fff; font-weight: 600; }
tbody tr:hover > * { background: rgba(255, 255, 255, .02); }

/* ---------- Шаги ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1.2em; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.step { counter-increment: step; margin: 0; position: relative; padding: 18px 18px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 4px; }
.step-title { font-size: 16.5px; line-height: 1.3; }
.step-text { font-size: 15px; color: var(--body); }

/* ---------- Карточки ---------- */
.cards { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { margin: 0; padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.card-link { padding: 0; }
.card-link a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; color: inherit; text-decoration: none; border-radius: 12px; }
.card-link:hover { border-color: var(--red); }
.card-ico { width: 30px; height: 30px; color: var(--red); margin-bottom: 4px; }
.card-title { font-size: 16.5px; line-height: 1.3; }
.card-text { font-size: 15px; }
.card-more { margin-top: auto; padding-top: 6px; color: var(--red-2); font-weight: 700; font-size: 14.5px; }

/* ---------- Примечания, плюсы/минусы, баннер ---------- */
.note { display: flex; gap: 12px; padding: 14px 16px; margin: 0 0 1.2em; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 15px; }
.note > div > :last-child { margin-bottom: 0; }
.note-ico { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--x-low); }
.note-warn { border-color: rgba(255, 200, 61, .35); background: rgba(255, 200, 61, .06); }
.note-warn .note-ico { color: var(--gold); }
.note-ok { border-color: rgba(40, 169, 9, .4); background: rgba(40, 169, 9, .07); }
.note-ok .note-ico { color: #4bd12a; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.2em; }
.pc { padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.pc h3 { margin-top: 0; font-size: 17px; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding-left: 26px; position: relative; }
.pc-pros li::before { content: "+"; position: absolute; left: 0; color: #4bd12a; font-weight: 900; }
.pc-cons li::before { content: "−"; position: absolute; left: 0; color: var(--red-2); font-weight: 900; }

.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 24px 0; padding: 22px 26px; border-radius: 14px;
  background: linear-gradient(110deg, var(--red-d), var(--red) 55%, #ff4d6d);
  color: #fff;
}
.cta-banner-text { display: flex; flex-direction: column; gap: 4px; }
.cta-banner-text strong { font-size: 19px; }
.cta-banner-text span { color: rgba(255, 255, 255, .9); font-size: 15px; }
.cta-banner .btn { flex-shrink: 0; }

/* ---------- Промокод ---------- */
.promo-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 6px; }
.promo-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; width: 100%; }
.promo-code { display: inline-flex; align-items: center; min-height: 54px; padding: 8px 22px; border: 2px dashed var(--red); border-radius: 12px; background: #000; color: #fff; font: 900 24px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; user-select: all; }
.copy-btn { min-width: 132px; }
.copy-btn.is-ok { background: var(--green); box-shadow: none; }
.copy-btn.is-err { background: var(--surface-2); }
.copy-status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.faq-item[open] { border-color: rgba(229, 5, 57, .5); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative; color: #fff; font-weight: 700; font-size: 16.5px; line-height: 1.4; border-radius: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--red-2); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 18px 16px; }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- Связанные ---------- */
.related { margin-top: 8px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 28px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.footer-h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; }
.chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--body); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: var(--red); color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; }
.footer-legal p { margin: 0; }
.footer-copy { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.age-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red); color: #fff; font: 900 13px/1 var(--font); }
.age-badge-sm { width: 30px; height: 30px; font-size: 11px; }

/* ---------- Нижняя панель ---------- */
.bonus-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(17, 17, 20, .97); border-top: 2px solid var(--red);
  box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, .7);
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.bonus-bar.show { transform: translateY(0); visibility: visible; transition: transform .3s ease, visibility 0s; }
.bonus-bar-inner { display: flex; align-items: center; gap: 14px; min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
.bar-plane .plane { width: 36px; }
.bar-text { margin: 0; flex: 1; color: #fff; font-weight: 600; line-height: 1.35; }
.bar-amount { color: var(--gold); font-size: 1.2em; }
.bar-tail { color: var(--body); font-weight: 500; }
.bar-age { display: inline-block; margin-left: 4px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; color: var(--muted); }
.bar-close { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--body); cursor: pointer; }
.bar-close svg { width: 16px; height: 16px; }
.bar-close:hover { color: #fff; border-color: var(--red); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-top: 60px; }
.nf-code { font: 900 110px/1 var(--font); color: var(--red); font-style: italic; }
.nf-code span { font-size: .45em; color: #fff; }
.nf-block { margin: 28px auto; max-width: 520px; }

/* ---------- Без JS: показывать всё ---------- */
html:not(.js) .sec-more, html:not(.js) .toc-toggle { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav-item > a, .sub-toggle { padding: 8px 9px; font-size: 14.5px; }
  .logo-tag { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .hero-visual { display: none; }
  .hero-pills-mobile { display: block; order: -1; }
  .hero-actions .btn { width: 100%; }
  .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 24px 22px; }
  .cta-banner { flex-direction: column; align-items: stretch; text-align: left; }
}

@media (max-width: 768px) {
  :root { --section-gap: 36px; --header-h: 60px; }
  h2 { font-size: 23px; }
  .header-inner { gap: 10px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
    border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff;
    font: 700 14px/1 var(--font); cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; }
  .burger::after { top: 5px; }
  .menu-toggle[aria-expanded="true"] .burger { background: transparent; }
  .menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-5px) rotate(-45deg); }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line-2);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 10px var(--gutter) 18px;
  }
  .main-nav.open { display: block; }
  html:not(.js) .main-nav { display: block; position: static; padding: 0; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .logo { margin-right: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item > a, .sub-toggle { width: 100%; justify-content: space-between; min-height: 48px; font-size: 16px; padding: 10px 12px; }
  .sub { position: static; box-shadow: none; border: 0; background: var(--surface); margin: 2px 0 6px; padding: 4px; min-width: 0; }
  .sub::before { display: none; }
  .sub a { padding: 12px 14px; }
  .toc-list a { padding: 9px 8px; }
  .proscons { grid-template-columns: 1fr; }
  .bonus-bar-inner { gap: 10px; }
  .bar-plane, .bar-tail { display: none; }
  .bar-text { font-size: 14.5px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .toc-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .step::before { margin: 0; }
  .step-title { flex: 1; }
  .step-text { width: 100%; }
  .hero { padding: 22px 18px; border-radius: 14px; }
  .hero-lead, .page-lead { font-size: 16.5px; }
  .promo-code { width: 100%; justify-content: center; font-size: 21px; }
  .copy-btn { width: 100%; }
  .page-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hide-xs { display: none; }
  .logo-name { font-size: 20px; }
  .logo-mark { width: 34px; height: 34px; }
  .btn-hdr { padding: 6px 10px; font-size: 13.5px; min-height: 38px; }
  .menu-label { display: none; }
  .menu-toggle { padding: 0 11px; }
  .lang a, .lang span { min-width: 34px; }
}

@media (max-width: 520px) {
  .header-actions .btn-hdr { display: none; }
}

@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .logo { gap: 6px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-name { font-size: 18px; }
  .lang a, .lang span { min-width: 30px; padding: 0 4px; }
}

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