/* =========================================================================
   WOWBet — wowbet-betting.com
   Single stylesheet for every page. Dark theme, RTL (fa-IR).
   Palette derivation (OKLch, from the three brand colours):
     #8840fc -> oklch(0.5726 0.2569 294.12)  accent
     #2d3052 -> oklch(0.3234 0.0603 278.62)  navy  -> darkened to 0.175 / 0.135
     #ffffff -> oklch(1 0 0)                 foreground
   Contrast (WCAG, verified): white/accent 5.02, white/accent-hover 6.18,
   fg/bg 18.98, muted/bg 8.04, accent-light/bg 7.81.
   ========================================================================= */

/* ---------- 1. tokens ---------- */
:root {
  /* surfaces */
  --bg: #0d0f20;            /* oklch(0.175 0.035 278.62) */
  --bg-deep: #060715;       /* oklch(0.135 0.032 278.62) */
  --surface: #181a2c;       /* oklch(0.225 0.036 278.62) */
  --surface-2: #23263a;     /* oklch(0.275 0.038 278.62) */
  --navy: #2d3052;          /* brand */
  --border: #333546;        /* oklch(0.335 0.030 278.62) */
  --border-2: #494c5f;

  /* text */
  --fg: #ffffff;
  --muted: #a6a8b6;
  --muted-2: #838591;

  /* accent (single accent colour) */
  --accent: #8840fc;
  --accent-hover: #7a2fe8;
  --accent-active: #6a20d6;
  --accent-light: #b295ff;  /* accent used as text on dark */
  --accent-soft: #31254f;

  /* states */
  --success: #4ac06c;
  --danger: #e94646;
  --gold: #e8b53b;

  /* type */
  --font-display: 'Cairo', 'Vazirmatn', system-ui, sans-serif;
  --font-body: 'Vazirmatn', 'Cairo', system-ui, sans-serif;

  /* metrics */
  --container: 1240px;
  --pad: clamp(16px, 4vw, 24px);
  --header-h: 68px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px -22px rgb(0 0 0 / 0.85);
  --ring: 2px solid var(--accent-light);
}

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.6em;
  letter-spacing: 0;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.2em; padding-inline-start: 1.35em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 700; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; direction: ltr; unicode-bidi: embed; }

:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- 3. layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 900px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 48px);
}
.content { min-width: 0; }

/* ---------- 4. buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--fg);
  --btn-bd: var(--border-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 10px 26px -14px var(--accent);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--primary:active { --btn-bg: var(--accent-active); --btn-bd: var(--accent-active); }

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

.btn--soft { --btn-bg: var(--surface); --btn-fg: var(--fg); --btn-bd: var(--border); }
.btn--soft:hover { --btn-bg: var(--surface-2); --btn-bd: var(--border-2); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 5. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgb(13 15 32 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgb(0 0 0 / 0.9); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 132px; height: auto; display: block; }

.main-nav { margin-inline-start: 8px; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.main-nav a[aria-current='page'] { background: var(--accent-soft); color: #fff; }

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

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 88% -10%, rgb(136 64 252 / 0.22), transparent 62%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-pill);
  background: rgb(136 64 252 / 0.12);
  color: var(--accent-light);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero h1 { margin-bottom: 0.5em; }
.hero h1 .accent { color: var(--accent-light); }
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}
.hero-chips li {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: 0.86rem;
  font-weight: 600;
}
.hero-media { display: flex; justify-content: flex-end; }
.hero-link { display: block; border-radius: 22px; }
.hero-link:hover img { border-color: var(--accent); }
.hero-media img {
  display: block;
  width: auto;
  max-height: 620px;
  border-radius: 22px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.hero-facts .k { display: block; color: var(--muted); font-size: 0.8rem; }
.hero-facts .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }

/* ---------- 7. inner page hero + breadcrumbs ---------- */
.page-head {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-head .container { padding-block: clamp(22px, 3vw, 34px); }
.breadcrumbs {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: '-'; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs [aria-current='page'] { color: var(--fg); }

.page-lead { color: var(--muted); max-width: 78ch; margin-bottom: 0; }

/* ---------- 8. table of contents ---------- */
.toc {
  margin: 0 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: '+';
  margin-inline-start: auto;
  font-size: 1.3rem;
  color: var(--accent-light);
  line-height: 1;
}
.toc[open] > summary::after { content: '\2212'; }
.toc > summary:hover { color: var(--fg); }
.toc ol {
  margin: 0;
  padding: 0 20px 18px;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}
.toc li { counter-increment: toc; margin-bottom: 8px; break-inside: avoid; }
.toc a { display: inline-flex; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.toc a::before { content: counter(toc) '.'; color: var(--accent-light); font-weight: 700; }
.toc a:hover { color: var(--fg); }

/* ---------- 9. prose blocks ---------- */
.prose { max-width: 78ch; }
.prose h2 {
  margin: 2.4em 0 0.7em;
  padding-top: 0.2em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7em 0 0.5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose > *:last-child { margin-bottom: 0; }

.prose ul { list-style: none; padding-inline-start: 0; }
.prose ul > li { position: relative; padding-inline-start: 26px; }
.prose ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.prose ul.is-check > li::before {
  content: '\2713';
  inset-inline-start: 0;
  top: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--success);
  font-weight: 700;
}
.prose ol { padding-inline-start: 1.5em; }
.prose ol li::marker { color: var(--accent-light); font-weight: 700; }

/* figures */
.figure { margin: 0 0 1.6em; }
.figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.figure figcaption { margin-top: 10px; color: var(--muted-2); font-size: 0.85rem; }
.figure-link { display: block; position: relative; border-radius: var(--radius); }
.figure-link:hover img { border-color: var(--accent); }
.figure-link:hover { text-decoration: none; }
.figure-badge {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgb(13 15 32 / 0.86);
  border: 1px solid var(--border-2);
  color: var(--fg);
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* tables */
.table-wrap {
  margin: 0 0 1.6em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
caption {
  caption-side: top;
  text-align: start;
  padding: 15px 18px 12px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
th, td { padding: 12px 18px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); color: var(--fg); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:hover td, tbody tr:hover th { background: rgb(136 64 252 / 0.08); }

/* notes / callouts */
.note {
  margin: 0 0 1.6em;
  padding: 16px 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}
.note strong { color: var(--fg); }
.note--warn { border-color: rgb(232 181 59 / 0.45); background: rgb(232 181 59 / 0.08); }
.note--warn strong { color: var(--gold); }

/* cards / steps / stats */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.cards li { margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cards h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.steps { margin: 0 0 1.6em; padding: 0 !important; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 16px 20px 16px 20px;
  padding-inline-start: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}
.steps strong { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 1.6em; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
.stats .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--fg); }
.stats .k { display: block; color: var(--muted); font-size: 0.85rem; }

/* promo / code box */
.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.6em;
  padding: 20px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: rgb(136 64 252 / 0.1);
}
.promo-text { flex: 1 1 220px; }
.promo-text strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.promo-text span { color: var(--muted); font-size: 0.9rem; }
.promo-code {
  padding: 10px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--fg);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: 1px;
  direction: ltr;
}

/* end-of-page conversion block */
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 2.2em 0 0;
  padding: 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.cta-block > div { flex: 1 1 260px; }
.cta-block strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.cta-block p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- 10. sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}
.side-card > h2, .side-card > h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.side-facts { margin: 0 0 16px; padding: 0; list-style: none; font-size: 0.92rem; }
.side-facts li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); }
.side-facts li:last-child { border-bottom: 0; }
.side-facts .k { color: var(--muted); }
.side-facts .v { font-weight: 600; }
.rating { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rating .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.rating .score { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.rating .of { color: var(--muted); font-size: 0.85rem; }
.side-links { margin: 0; padding: 0; list-style: none; font-size: 0.93rem; }
.side-links li { margin: 0; border-bottom: 1px solid var(--border); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--fg); font-weight: 600; }
.side-links a::after { content: '\2039'; color: var(--accent-light); }
.side-links a:hover { color: var(--accent-light); text-decoration: none; }
.age-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-inline: auto;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.side-note { margin: 12px 0 0; color: var(--muted-2); font-size: 0.8rem; text-align: center; }

/* ---------- 11. FAQ ---------- */
.faq { margin: clamp(32px, 4vw, 52px) 0 0; }
.faq > h2 { margin-top: 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  margin-inline-start: auto;
  color: var(--accent-light);
  font-size: 1.25rem;
  line-height: 1;
}
.faq-item[open] > summary::after { content: '\2212'; }
.faq-item > summary:hover { color: var(--accent-light); }
.faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- 12. author ---------- */
.author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.author-avatar {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.author-name { margin: 0 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.author-role { margin: 0 0 8px; color: var(--accent-light); font-size: 0.85rem; font-weight: 600; }
.author-bio { margin: 0; color: var(--muted); font-size: 0.93rem; }
.author-updated { margin: 10px 0 0; color: var(--muted-2); font-size: 0.8rem; }

/* ---------- 13. CTA bar (mobile) + modal (desktop) ---------- */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 8px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgb(9 10 24 / 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.cta-bar .btn { flex: 1 1 0; min-height: 40px; padding: 6px 12px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgb(6 7 21 / 0.78);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-card h2 { margin-bottom: 8px; font-size: 1.4rem; }
.modal-card p { color: var(--muted); font-size: 0.95rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 18px; }
.modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--border); }
.modal-fine { margin: 14px 0 0; color: var(--muted-2); font-size: 0.78rem; }

/* ---------- 14. footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 40px);
  padding-block: clamp(32px, 4vw, 52px) 28px;
}
.footer-col h2, .footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.footer-logo-link { display: inline-block; }
.footer-logo { width: 140px; height: auto; display: block; margin-bottom: 14px; }
.footer-nav { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.footer-nav li { margin: 0 0 8px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }
.footer-contact { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.footer-contact li { margin: 0 0 10px; }
.footer-contact a { color: var(--fg); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.badge-row li { margin: 0; }
.badge-row a, .badge-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.badge-row a:hover { border-color: var(--accent); color: var(--fg); text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .age-badge { width: 48px; height: 48px; font-size: 0.85rem; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-legal li { margin: 0; }
.footer-legal a { color: var(--muted); }

/* ---------- 15. responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .side-card--wide { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    height: calc(100vh - 68px);
    padding: 12px var(--pad) 120px;
    overflow-y: scroll;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .burger { display: block; }
  .header-actions .btn--ghost { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-content: center; }
  .hero-media img { max-height: 520px; }
  .toc ol { columns: 1; }
  .hero-chips {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cta-bar { display: flex; }
  body { padding-bottom: 78px; }
  .hero-facts .v {
    font-size: .7rem;
  }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .author { flex-direction: column; }
  .page-head .container { padding-block: 18px; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btn { padding: 10px 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .modal-card { padding: 22px; }

  .hero-facts {
    display: none;
  }
}

/* ---------- 16. utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.stack-lg > * + * { margin-top: 1.6em; }
.nowrap { white-space: nowrap; }
.updated { color: var(--muted-2); font-size: 0.82rem; margin: 0 0 18px; }


.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.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 {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}
@media (max-width:384px) {
    header .btn--soft {
      display: none;
    }
  }