/* ==========================================================================
   Nine Casino Aplikacja – theme "Midnight Sapphire & Gold" (art deco)
   Fonts: Cinzel (logo, headings, numbers) + Manrope (text), local woff2
   ========================================================================== */

/* ---------- Fonts (variable, latin + latin-ext: ą ć ę ł ń ó ś ź ż) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --navy-950: #040a18;
  --navy-900: #071226;
  --navy-850: #0a1834;
  --navy-800: #0e2045;
  --navy-700: #142c5c;
  --navy-600: #1d3c78;

  --gold-100: #fbf1d0;
  --gold-200: #f3dc9a;
  --gold-300: #e6c574;
  --gold-400: #d6b25e;
  --gold-500: #b8913c;
  --gold-600: #8f6d24;
  --gold-grad: linear-gradient(135deg, #fbecb8 0%, #e2c06b 30%, #b8913c 62%, #f0d488 100%);

  --text: #c6cfe4;
  --text-strong: #f5f1e6;
  --muted: #8d9abb;
  --line: rgba(214, 178, 94, .22);
  --line-strong: rgba(214, 178, 94, .5);
  --line-soft: rgba(160, 180, 230, .12);

  --font-text: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Cinzel", "Times New Roman", Georgia, serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .85);
  --shadow-gold: 0 14px 34px -14px rgba(214, 178, 94, .55);
  --header-h: 72px;
  --container: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(29, 60, 120, .55), transparent 70%),
    radial-gradient(900px 500px at -10% 30%, rgba(20, 44, 92, .45), transparent 70%),
    var(--navy-900);
  color: var(--text);
  font: 400 17px/1.75 var(--font-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

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

a { color: var(--gold-300); text-decoration-color: rgba(230, 197, 116, .45); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-200); }

:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1.1em; }
strong, b { color: var(--text-strong); font-weight: 700; }
code { padding: .1em .4em; border-radius: 6px; background: rgba(214, 178, 94, .12); color: var(--gold-200); font-size: .9em; }
address { margin: 0 0 1.2em; padding: 16px 20px; border-left: 3px solid var(--gold-400); border-radius: 0 var(--radius) var(--radius) 0; background: var(--navy-850); font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: 10px;
  background: var(--gold-400); color: var(--navy-950); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Gold text helper */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Art-deco divider: line – diamond – line */
.deco {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px; color: var(--gold-400);
}
.deco::before, .deco::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.deco span { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 12px rgba(214, 178, 94, .6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 15px/1.2 var(--font-text); letter-spacing: .02em;
  text-align: center; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--gold-grad); background-size: 160% 160%; background-position: 0 0;
  color: var(--navy-950); box-shadow: var(--shadow-gold);
}
.btn--gold:hover { color: var(--navy-950); background-position: 100% 100%; filter: brightness(1.06); }
.btn--outline { border-color: var(--line-strong); background: rgba(214, 178, 94, .06); color: var(--gold-200); }
.btn--outline:hover { border-color: var(--gold-300); background: rgba(214, 178, 94, .14); color: var(--gold-100); }
.btn--ghost { border-color: var(--line-soft); background: rgba(255, 255, 255, .04); color: var(--text-strong); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--gold-200); }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; white-space: normal; } }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--navy-950), var(--navy-850) 50%, var(--navy-950));
  font-size: 13px; text-align: center; color: var(--muted);
}
.topbar p { margin: 0; padding: 8px 16px; }
.topbar b { color: var(--gold-300); }
.topbar a { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 38, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .9); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400) 20%, var(--gold-200) 50%, var(--gold-400) 80%, transparent);
  opacity: .55;
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.logo__mark { width: 44px; height: 44px; filter: drop-shadow(0 4px 12px rgba(214, 178, 94, .3)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text span {
  font: 700 19px/1.1 var(--font-display); letter-spacing: .08em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__text small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative; display: block; padding: 8px 11px;
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover { color: var(--gold-200); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; gap: 10px; margin-left: auto; }
.header-actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.burger {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin-left: 4px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(214, 178, 94, .06); color: var(--gold-200); cursor: pointer;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: "";
}
.burger__lines { position: relative; }
.burger__lines::before { position: absolute; top: -6px; }
.burger__lines::after { position: absolute; top: 6px; width: 14px; }

@media (max-width: 599px) {
  .header-actions .btn--outline { display: none; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__text span { font-size: 16px; }
  .logo__text small { font-size: 9px; letter-spacing: .22em; }
}
@media (max-width: 479px) {
  .header-inner { gap: 10px; }
  .logo { gap: 8px; }
  .header-actions .btn { padding: 8px 14px; }
  .header-actions .btn .icon { display: none; }
}
@media (max-width: 359px) {
  .logo__text small { display: none; }
  .logo__text span { font-size: 14px; }
}
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 8px; }
  .burger { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 16, .7); opacity: 0; transition: opacity .3s; }
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 20px;
  width: min(360px, 88vw); padding: 18px 20px 28px; overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.mobile-menu.is-open .mobile-menu__panel { transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu__close {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--gold-200); cursor: pointer;
}
.mobile-menu__nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu__nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-strong); font-weight: 600; text-decoration: none;
}
.mobile-menu__nav a::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-400); }
.mobile-menu__nav a:hover { color: var(--gold-200); }
.mobile-menu__cta { display: grid; gap: 10px; }
.mobile-menu__note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Age badge ---------- */
.age-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border: 2px solid var(--gold-400); border-radius: 50%;
  color: var(--gold-200); font: 700 15px/1 var(--font-display);
}
.age-badge--sm { width: 34px; height: 34px; font-size: 12px; }

/* ---------- Author (right-aligned at the start of the content) ---------- */
.author-bar { padding: 18px 0 0; }
.author-bar__inner { display: flex; justify-content: flex-end; }
.author {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 24, 52, .75); box-shadow: var(--shadow);
  text-align: right;
}
.author__meta { display: flex; flex-direction: column; line-height: 1.3; }
.author__role { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.author__name { color: var(--text-strong); font: 700 16px/1.3 var(--font-display); letter-spacing: .03em; }
.author__date { color: var(--muted); font-size: 12px; }
.author__avatar {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  padding: 2px; background: var(--gold-grad);
}
.author__avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--navy-600), var(--navy-900));
  color: var(--gold-200); font: 700 16px/1 var(--font-display); letter-spacing: .04em;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 56px; isolation: isolate; overflow: hidden; }
.hero::before {
  /* art-deco sunburst */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -40%;
  width: 1600px; height: 1600px; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(214, 178, 94, .055) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 55%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 55%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  color: var(--gold-300); font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-400); }

.hero__title { margin-bottom: 20px; font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; line-height: 1.16; }
.hero__title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 64ch; font-size: 17.5px; }
.hero .btn-row { margin: 26px 0 30px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li {
  padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 44, 92, .55), rgba(10, 24, 52, .4));
  text-align: center;
}
.stats b { display: block; font: 700 24px/1.1 var(--font-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Bonus "ticket" card */
.ticket {
  position: relative; margin: 0; padding: 30px 26px 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--navy-800), var(--navy-850)) padding-box,
    var(--gold-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 0 6px rgba(214, 178, 94, .05);
  text-align: center;
}
.ticket::before, .ticket::after {
  /* notches */
  content: ""; position: absolute; top: 58%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900); border: 1.5px solid var(--gold-500);
}
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket__seal {
  position: absolute; top: -18px; right: 18px;
  display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-950);
  font: 800 11px/1.1 var(--font-text); letter-spacing: .06em; text-align: center;
  box-shadow: var(--shadow-gold); transform: rotate(12deg);
}
.ticket__label { margin: 0 0 6px; color: var(--gold-300); font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.ticket__amount { margin: 0; font: 800 clamp(44px, 7vw, 58px)/1 var(--font-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticket__plus { margin: 8px 0 18px; color: var(--text-strong); font-weight: 700; }
.ticket__list { margin: 0 0 22px; padding: 16px 0 0; border-top: 1px dashed var(--line-strong); list-style: none; text-align: left; }
.ticket__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.ticket__list li:last-child { border-bottom: 0; }
.ticket__list b { color: var(--gold-200); white-space: nowrap; }
.ticket__fine { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Facts ---------- */
.facts { padding: 48px 0 8px; }
.facts__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .facts__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.facts__intro h2 { font-size: clamp(22px, 3vw, 28px); }

/* ---------- Layout: content + sticky sidebar ---------- */
.layout { display: grid; gap: 40px; padding: 40px 0 64px; }
@media (min-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; } }
.sidebar { display: none; }
@media (min-width: 1100px) {
  .sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
}

/* Table of contents */
.toc {
  padding: 22px 22px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 44, 92, .5), rgba(10, 24, 52, .5));
}
.toc h2 { margin-bottom: 12px; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-size: 14px; line-height: 1.45; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 22px; color: var(--gold-400); font: 700 13px/1.6 var(--font-display); }
.toc a:hover { color: var(--gold-200); }
.toc li:last-child a { border-bottom: 0; }

details.toc--mobile { padding: 0; }
details.toc--mobile summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  color: var(--text-strong); font: 700 16px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
details.toc--mobile summary::-webkit-details-marker { display: none; }
details.toc--mobile summary::after { content: "+"; color: var(--gold-300); font: 400 24px/1 var(--font-text); }
details.toc--mobile[open] summary::after { content: "−"; }
details.toc--mobile ol { padding: 0 20px 16px; }
@media (min-width: 1100px) { details.toc--mobile { display: none; } }

.side-card {
  padding: 22px; border-radius: var(--radius-lg); text-align: center;
  background:
    linear-gradient(160deg, var(--navy-700), var(--navy-850)) padding-box,
    var(--gold-grad) border-box;
  border: 1px solid transparent;
}
.side-card p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.side-card strong { display: block; margin: 0 0 14px; font: 800 30px/1.1 var(--font-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Content sections ---------- */
.content > * + * { margin-top: 0; }
.section { position: relative; padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line-soft); }
.section:last-child { margin-bottom: 0; border-bottom: 0; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.sec-num {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  transform: rotate(45deg); border: 1px solid var(--gold-400); border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 0 0 4px rgba(214, 178, 94, .08);
}
.sec-num span { transform: rotate(-45deg); color: var(--gold-200); font: 700 15px/1 var(--font-display); }

.prose h3 {
  position: relative; margin: 30px 0 12px; padding-left: 18px;
  font-size: clamp(18px, 2.2vw, 21px); letter-spacing: .02em;
}
.prose h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 3px; background: var(--gold-grad); }

.prose ul, .prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose ul li { position: relative; padding: 6px 0 6px 28px; }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 1.05em;
  width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-grad);
}
.prose ol { counter-reset: step; }
.prose ol li { position: relative; counter-increment: step; min-height: 34px; padding: 6px 0 10px 50px; }
.prose ol li::before {
  content: counter(step); position: absolute; left: 0; top: 4px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-950); font: 800 15px/1 var(--font-display);
}
.prose ul.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.prose ul.cols li {
  padding: 10px 14px 10px 32px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(20, 44, 92, .35);
  font-weight: 600; color: var(--text-strong);
}
.prose ul.cols li::before { left: 13px; top: 1.15em; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 0 0 1.4em; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(10, 24, 52, .6);
}
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.table thead th {
  background: linear-gradient(180deg, rgba(214, 178, 94, .22), rgba(214, 178, 94, .1));
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold-100); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.table tbody tr:hover { background: rgba(214, 178, 94, .06); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { color: var(--text-strong); font-weight: 700; }
.table td:not(:first-child) { white-space: nowrap; }
.table--wrap td { white-space: normal !important; }
.table--kv tbody th { width: 42%; color: var(--muted); font-weight: 600; }
.table--kv tbody td { color: var(--text-strong); font-weight: 600; white-space: normal; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 26px 0 8px; padding: 22px 24px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 160px at 100% 0, rgba(214, 178, 94, .18), transparent 70%),
    linear-gradient(120deg, var(--navy-700), var(--navy-850));
}
.cta-band p { margin: 0; color: var(--text-strong); font: 700 19px/1.35 var(--font-display); }
.cta-band small { display: block; margin-top: 4px; color: var(--muted); font: 500 14px/1.4 var(--font-text); }
@media (max-width: 599px) { .cta-band .btn { width: 100%; white-space: normal; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 32, 69, .55); transition: border-color .2s, background-color .2s;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(20, 44, 92, .55); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; padding: 0; font-size: 17px; line-height: 1.4; }
.faq summary h3::before { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--gold-300); border-bottom: 2px solid var(--gold-300);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__a { padding: 0 20px 6px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 50% 0, rgba(214, 178, 94, .08), transparent 70%),
    var(--navy-950);
  font-size: 15px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-200), var(--gold-400), transparent);
}
.footer-top { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin: 16px 0 0; color: var(--muted); }
.footer-col h2 { margin-bottom: 14px; color: var(--gold-200); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--gold-200); }
.footer-col p { color: var(--muted); }

.rg { padding: 32px 0; border-bottom: 1px solid var(--line-soft); }
.rg__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-bottom: 20px; }
.rg__head h2 { margin: 0; font-size: 20px; }
.rg__head p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); }
.rg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.rg-link {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px;
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(20, 44, 92, .3);
  color: var(--text); text-decoration: none; transition: border-color .2s;
}
.rg-link:hover { border-color: var(--line-strong); color: var(--text); }
.rg-link__logo {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy-800); border: 1px solid var(--line); color: var(--gold-200); font: 700 12px/1 var(--font-display);
}
.rg-link__txt { display: flex; flex-direction: column; line-height: 1.35; font-size: 14px; }
.rg-link__txt strong { font-size: 14.5px; }
.rg-link__txt span { color: var(--muted); font-size: 13px; }
.rg__hotline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 20px 0 0; color: var(--muted); }
.rg__hotline a { font: 700 22px/1.2 var(--font-display); text-decoration: none; }
.rg__hotline .small { font-size: 13px; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 10px; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-bottom a { color: var(--text); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-200); }
.disclaimer { margin: 10px 0 0; color: #6d7a9c; font-size: 13px; line-height: 1.65; }

/* ---------- Legal pages ---------- */
.page-hero { position: relative; padding: 40px 0 36px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -200px; top: -400px; width: 900px; height: 900px;
  background: repeating-conic-gradient(rgba(214, 178, 94, .05) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 60%);
  mask-image: radial-gradient(circle, #000 0, transparent 60%);
}
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.page-hero p { max-width: 70ch; }
.muted { color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumbs li + li::before { content: "◆"; margin-right: 6px; color: var(--gold-500); font-size: 9px; vertical-align: 2px; }
.breadcrumbs a { color: var(--text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-200); }

.page-section { padding: 44px 0 64px; }
.legal { max-width: 860px; }
.legal .toc { margin-bottom: 36px; }
.legal h2 { margin-top: 38px; font-size: clamp(20px, 2.6vw, 25px); }
.legal ul { padding-left: 0; list-style: none; }
.legal ul li { position: relative; padding: 4px 0 4px 26px; }
.legal ul li::before { content: ""; position: absolute; left: 6px; top: 1em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-400); }
.legal .toc ol li::before { display: none; }
.callout {
  margin: 0 0 1.3em; padding: 16px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(214, 178, 94, .07);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
