/* ==========================================================================
   WOWBet — shared stylesheet
   Brand tokens: #8840fc (brand), #2d3052 (ink), #ffffff (light background)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #8840fc;
  --brand-ink: #6a1fd6;
  --brand-deep: #5714b8;
  --brand-050: #f4eefe;
  --brand-100: #e8dcfd;

  --ink: #2d3052;
  --ink-2: #3d416b;
  --muted: #5b6080;
  --bg: #ffffff;
  --surface: #f6f6fb;
  --surface-2: #eef0f8;
  --border: #e3e4f0;
  --border-strong: #cfd2e4;

  --ok: #0f7a52;
  --warn: #9a5b00;
  --danger: #b3231f;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;

  --shadow-s: 0 1px 2px rgba(45, 48, 82, .06), 0 1px 3px rgba(45, 48, 82, .06);
  --shadow-m: 0 6px 18px rgba(45, 48, 82, .08);
  --shadow-l: 0 16px 40px rgba(45, 48, 82, .14);

  --container: 1200px;
  --gap: clamp(16px, 2.2vw, 28px);

  --h1: clamp(1.95rem, 1.35rem + 2.1vw, 3.05rem);
  --h2: clamp(1.45rem, 1.18rem + .95vw, 1.95rem);
  --h3: clamp(1.12rem, 1.03rem + .36vw, 1.32rem);
  --body: 1.0625rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

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

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); font-weight: 800; }
h2 { font-size: var(--h2); font-weight: 700; }
h3 { font-size: var(--h3); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }
ul.plain { list-style: none; padding-left: 0; }
ul.plain > li { position: relative; padding-left: 1.4em; }
ul.plain > li::before {
  content: "";
  position: absolute;
  left: .2em; top: .62em;
  width: .45em; height: .45em;
  background: var(--brand);
  border-radius: 2px;
}

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

[id] { scroll-margin-top: 96px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 68px;
}
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: 132px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex; align-items: center; gap: clamp(6px, 1.4vw, 20px);
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--brand-ink);
  border-bottom-color: var(--brand);
  text-decoration: none;
}
.main-nav a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.main-nav + .header-cta { margin-left: 0; }

.burger {
  display: none;
  width: 46px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-s); cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; border-radius: 2px;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.1;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { background: var(--brand-050); border-color: var(--brand); color: var(--brand-ink); }
.btn-tonal { background: var(--brand-050); color: var(--brand-ink); border-color: var(--brand-100); }
.btn-tonal:hover { background: var(--brand-100); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }

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

/* ---------- 5. Hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-050) 0%, #ffffff 88%); border-bottom: 1px solid var(--border); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(30px, 5vw, 62px);
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: .5em; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 46ch; }
.hero-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 26px; font-weight: 500; }
.hero-points li::before {
  content: ""; position: absolute; left: 4px; top: .48em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
}
.hero-meta b { color: var(--ink); font-family: var(--font-display); }

.hero-visual { position: relative; }
.hero-shot {
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-l);
  background: #fff;
}
.hero-shot img { width: 100%; height: auto; }
.hero-shot:hover { text-decoration: none; }

/* Review screenshots are clickable: each one opens the offer in a new tab */
.media-link {
  display: block;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.media-link img { transition: border-color .18s ease; }
.media-link:hover img { border-color: var(--brand); }
.media-link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Inside a clipping card an outer ring would be cut off, so draw it inward */
.page-hero-media .media-link:focus-visible,
.hero-shot:focus-visible { outline-offset: -4px; }
.page-hero-media { transition: border-color .18s ease; }
.page-hero-media:has(.media-link:hover) { border-color: var(--brand); }
.hero-badge {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-m);
  max-width: calc(100% - 32px);
}
.hero-badge .hero-badge-value {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--brand-ink);
  line-height: 1.1;
}
.hero-badge .hero-badge-label { font-size: .8rem; color: var(--muted); line-height: 1.3; }

/* ---------- 6. Page hero (inner pages) ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero-inner { padding-block: clamp(22px, 3.2vw, 38px) clamp(24px, 3.6vw, 44px); }
.page-hero h1 { margin-bottom: .45em; max-width: 30ch; }
.page-hero .page-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; margin-bottom: 20px; }

.page-hero-inner--media {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 46px);
  align-items: center;
}
.page-hero-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-m);
}
.page-hero-media img { width: 100%; height: auto; }
.page-hero-media--portrait { width: fit-content; margin-inline: auto; box-shadow: var(--shadow-l); }
.page-hero-media--portrait img { width: auto; max-width: 100%; max-height: 430px; }

.breadcrumbs { margin-bottom: 14px; font-size: .88rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: inline-flex; gap: 6px; margin: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "-"; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-ink); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 7. Layout grid ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 52px) clamp(40px, 5vw, 72px);
}

/* ---------- 8. Article ---------- */
.article { min-width: 0; }
.article > section { padding-top: clamp(26px, 3.2vw, 40px); border-top: 1px solid var(--border); margin-top: clamp(26px, 3.2vw, 40px); }
.article > section:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.article h2 { margin-bottom: .75em; }
.article h3 { margin-top: 1.6em; }
.article p { color: var(--ink-2); }
.article-lead p { font-size: 1.08rem; }
.article strong { color: var(--ink); }

.figure { margin: 22px 0 26px; }
.figure img {
  width: 100%; height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.figure figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* ---------- 9. Table of contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin: 24px 0 28px;
}
.toc > details > summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 0;
}
.toc > details > summary::-webkit-details-marker { display: none; }
.toc > details > summary::after {
  content: "+";
  font-family: var(--font-body); font-weight: 700; font-size: 1.25rem;
  color: var(--brand-ink); line-height: 1;
}
.toc > details[open] > summary::after { content: "\2212"; }
.toc ul { list-style: none; padding: 0 0 14px; margin: 0; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 8px; break-inside: avoid; }
.toc a { color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.toc a:hover { color: var(--brand-ink); }

/* ---------- 10. Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .88rem; }
tbody tr:nth-child(even) { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 11. Step lists ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps > li b { display: block; color: var(--ink); }

/* ---------- 12. CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.4vw, 38px);
  margin: 30px 0;
}
.cta-band h2, .cta-band h3 { color: #fff; margin-top: 0; }
.cta-band p { color: #d7d9ea; max-width: 62ch; }
.cta-band .btn-row { margin-top: 18px; }
.cta-band .btn-primary { background: var(--brand); color: #fff; }
.cta-band .btn-primary:hover { background: #9a5cff; color: #fff; }
.cta-band .btn-outline { border-color: #6f74a3; color: #fff; }
.cta-band .btn-outline:hover { background: #3d416b; border-color: #8f93bd; color: #fff; }

/* ---------- 13. Sidebar ---------- */
.sidebar { display: grid; gap: 16px; position: sticky; top: 88px; }
.side-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}
.side-card--offer { background: var(--brand-050); border-color: var(--brand-100); }
.side-title {
  font-size: .82rem; font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 0 0 12px;
}
.side-card--offer .side-kicker {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 6px;
}
.side-offer-value { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; margin: 0 0 4px; color: var(--ink); }
.side-offer-sub { font-size: .88rem; color: var(--ink-2); margin: 0 0 14px; }
.side-card .btn + .btn { margin-top: 10px; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { margin: 0; border-bottom: 1px solid var(--border); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-weight: 600; font-size: .93rem; color: var(--ink); }
.side-list a::after { content: "\2192"; color: var(--brand); font-weight: 700; }
.side-list a:hover { color: var(--brand-ink); text-decoration: none; }

.side-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.side-facts dt { color: var(--muted); }
.side-facts dd { margin: 0; font-weight: 600; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: #fff;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; color: var(--ink);
  letter-spacing: .01em;
}
.side-card--offer .chip, .footer-card .chip { background: #fff; }
.side-note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- 14. Author block ---------- */
.author {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: clamp(20px, 2.6vw, 28px);
  margin: clamp(26px, 3.4vw, 40px) 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.author-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.author-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; }
.author-role { font-size: .88rem; color: var(--brand-ink); font-weight: 600; margin: 0 0 8px; }
.author-bio { font-size: .95rem; color: var(--ink-2); margin: 0; }
.author-bio + .author-bio { margin-top: .7em; }
.author-meta { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }

/* ---------- 15. FAQ ---------- */
.faq { margin: 20px 0 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--brand-ink); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-body { padding: 14px 18px 18px; color: var(--ink-2); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--ink); color: #d7d9ea;  }
.footer-top { padding-block: clamp(34px, 4.4vw, 56px) clamp(26px, 3vw, 38px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.footer-brand img { width: 140px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .94rem; color: #c3c6dd; }
.footer-col h2, .footer-col h3 {
  font-size: .84rem; text-transform: uppercase; letter-spacing: .09em;
  color: #fff; margin: 0 0 14px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #c3c6dd; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: .93rem; color: #c3c6dd; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 9px; font-size: .93rem; color: #c3c6dd; }
.footer-contact span { display: block; color: #8f93bd; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-contact a { color: #fff; }
.footer-card {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, .04);
}
.footer-card .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.footer-card + .footer-card { margin-top: 14px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .06);
  color: #fff; font-size: .8rem; font-weight: 600;
  font-family: var(--font-display);
}
.trust-badge:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.trust-badge b { color: #fff; font-size: .95rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 20px 26px;
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center;
}
.age-badge {
  width: 46px; height: 46px; flex: 0 0 auto;
  border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff;
}
.footer-legal { font-size: .84rem; color: #a6a9c8; max-width: 78ch; }
.footer-legal p { margin: 0 0 .5em; }
.footer-legal a { color: #cfd2e6; }

/* ---------- 17. Modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 22, 42, .62); }
.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  border-radius: var(--radius-l);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-l);
  text-align: center;
}
.modal-dialog img { width: 138px; margin: 0 auto 16px; }
.modal-dialog h2 { font-size: 1.35rem; margin-bottom: .5em; }
.modal-dialog p { color: var(--ink-2); font-size: .96rem; }
.modal-actions { display: grid; gap: 10px; margin-top: 20px; }
.modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--surface-2); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--border-strong); }
.modal-fine { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- 18. Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(45, 48, 82, .1);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1 1 0; min-height: 40px; }

/* ---------- 19. Misc ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .side-card--offer { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-m);
    padding: 10px clamp(16px, 4vw, 24px) 18px;
    display: none;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .header-cta {
    margin-left: auto !important;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { padding: 14px 2px; font-size: 1rem; border-bottom: 0; }
  .main-nav a[aria-current="page"] { color: var(--brand-ink); }
  .header-cta { margin-left: auto; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: inline-flex; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .mobile-cta { display: flex; }
  .page-hero h1 { max-width: none; }
  body { padding-bottom: 61px; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .toc ul { columns: 1; }
  .author { grid-template-columns: minmax(0, 1fr); }
  .header-cta .btn { padding: 10px 14px; font-size: .9rem; }
  .brand img { width: 116px; }
  .footer-bottom { padding-bottom: 34px; }

  .btn-row {
    flex-direction: column;
  }
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0 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;
  }
}