/* ==========================================================================
   piperspincasino-official.com – theme "Bordeaux & Gold"
   Deep burgundy / wine background, polished gold accents, velvet textures
   Fonts: Playfair Display (logo, headings, numbers) + Onest (text), local woff2
   ========================================================================== */

/* ---------- Fonts (variable, latin + latin-ext: ą ć ę ł ń ó ś ź ż) ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-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: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-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: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-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: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/playfair-display-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;

  --wine-950: #120307;
  --wine-900: #1c060c;
  --wine-850: #260912;
  --wine-800: #320c18;
  --wine-700: #4a1124;
  --wine-600: #6b1832;
  --wine-500: #8c2142;

  --gold-100: #fbf0cf;
  --gold-200: #f2d98f;
  --gold-300: #e7c46a;
  --gold-400: #d4a845;
  --gold-500: #b0862c;
  --gold-600: #82601b;
  --gold-grad: linear-gradient(135deg, #fff1c1 0%, #e9c766 28%, #b8892d 58%, #f6dc8a 82%, #c99a3a 100%);

  --text: #e6d5cf;
  --text-strong: #fff7ea;
  --muted: #b89a9f;
  --line: rgba(212, 168, 69, .22);
  --line-strong: rgba(212, 168, 69, .55);
  --line-soft: rgba(255, 220, 220, .08);

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

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .9);
  --shadow-gold: 0 14px 34px -14px rgba(212, 168, 69, .6);
  --header-h: 74px;
  --container: 1220px;
}

/* ---------- 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(1100px 620px at 90% -12%, rgba(140, 33, 66, .45), transparent 70%),
    radial-gradient(900px 520px at -12% 28%, rgba(107, 24, 50, .35), transparent 70%),
    radial-gradient(700px 420px at 50% 110%, rgba(212, 168, 69, .07), transparent 70%),
    var(--wine-900);
  background-attachment: fixed;
  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(231, 196, 106, .45); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-100); }

: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.2;
  letter-spacing: .005em;
  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(212, 168, 69, .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(--wine-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(--wine-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 {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.small { font-size: .85em; }

/* ---------- 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-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  position: relative; overflow: hidden;
  background: var(--gold-grad); background-size: 160% 160%;
  color: #2a0710;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn--gold:hover { color: #2a0710; filter: brightness(1.06); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--outline { border-color: var(--line-strong); background: rgba(212, 168, 69, .06); color: var(--gold-200); }
.btn--outline:hover { border-color: var(--gold-300); background: rgba(212, 168, 69, .14); color: var(--gold-100); }
.btn--ghost { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: var(--text-strong); }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-100); }
.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; margin: 26px 0 0; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: linear-gradient(90deg, #3d0e1d, #6b1832 50%, #3d0e1d);
  border-bottom: 1px solid var(--line);
  color: var(--gold-100);
  font-size: 13.5px; text-align: center;
}
.topbar p { margin: 0; padding: 8px 16px; }
.topbar b { color: var(--gold-200); }
.topbar a { margin-left: 6px; font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(28, 6, 12, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background-color .25s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: .55;
}
.site-header.is-scrolled { background: rgba(18, 3, 7, .94); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .95); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); text-decoration: none; }
.logo:hover { color: var(--text-strong); }
.logo__mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text > span {
  font: 800 21px/1.05 var(--font-display); letter-spacing: .02em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__text small { margin-top: 4px; color: var(--muted); font: 600 10.5px/1 var(--font-text); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }

.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: 14.5px; font-weight: 600; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--gold-grad); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover { color: var(--gold-100); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: none; gap: 10px; }

.burger {
  display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(212, 168, 69, .07); cursor: pointer;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--gold-300); content: "";
}
.burger__lines { position: relative; }
.burger__lines::before { position: absolute; top: -6px; }
.burger__lines::after { position: absolute; top: 6px; }

@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1200px) and (max-width: 1299px) { .main-nav a { padding: 8px 8px; font-size: 14px; } }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.mobile-menu.is-open { visibility: visible; }
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(10, 2, 4, .72); 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: 18px;
  width: min(380px, 100%); padding: 18px 20px 26px; overflow-y: auto;
  background: linear-gradient(180deg, var(--wine-800), var(--wine-950));
  border-left: 1px solid var(--line-strong);
  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: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--gold-300); cursor: pointer;
}
.mobile-menu__nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu__nav a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-soft);
  color: var(--text-strong); font-weight: 600; text-decoration: none;
}
.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: 13.5px; }

.age-badge {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 2px solid var(--gold-400); border-radius: 50%;
  color: var(--gold-200); font: 800 17px/1 var(--font-display);
  background: radial-gradient(circle at 35% 30%, var(--wine-600), var(--wine-900));
}
.age-badge--sm { width: 34px; height: 34px; font-size: 12px; border-width: 1.5px; }

/* ---------- Author bar (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: 14px; margin: 0;
  padding: 8px 8px 8px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 17, 36, .35), rgba(74, 17, 36, .85));
  text-align: right;
}
.author__meta { display: flex; flex-direction: column; line-height: 1.25; }
.author__role { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.author__name { color: var(--gold-200); font: 700 17px/1.3 var(--font-display); }
.author__date { color: var(--muted); font-size: 12.5px; }
.author__avatar {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  padding: 2px; border-radius: 50%; 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(--wine-500), var(--wine-800));
  color: var(--gold-100); font: 700 16px/1 var(--font-display); letter-spacing: .04em;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 34px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(212, 168, 69, .07) 0 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%);
}
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 54px; } }

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

.hero__title { font-size: clamp(31px, 5vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: 22px; }
.hero__title em {
  display: block; margin-top: 8px; font-style: italic; font-weight: 700;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 680px; font-size: 18px; color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 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); text-align: center;
  background: linear-gradient(180deg, rgba(107, 24, 50, .38), rgba(38, 9, 18, .6));
}
.stats b { display: block; font: 800 26px/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: 13px; letter-spacing: .06em; }

/* Bonus card */
.ticket {
  position: relative; padding: 34px 28px 26px; text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% 0, rgba(212, 168, 69, .2), transparent 60%),
    linear-gradient(170deg, var(--wine-600), var(--wine-800) 55%, var(--wine-950));
  box-shadow: var(--shadow), 0 0 0 1px var(--line-strong), inset 0 0 0 6px rgba(18, 3, 7, .35), inset 0 0 0 7px rgba(212, 168, 69, .3);
}
.ticket__seal {
  position: absolute; top: -18px; right: 18px;
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--gold-grad); color: #2a0710; box-shadow: var(--shadow-gold);
  font: 800 12px/1.15 var(--font-text); letter-spacing: .06em; transform: rotate(10deg);
}
.ticket__label { margin: 0 0 6px; color: var(--gold-200); font-size: 12.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.ticket__amount {
  margin: 0; font: 900 clamp(44px, 7vw, 64px)/1.05 var(--font-display);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.ticket__plus { margin: 6px 0 20px; color: var(--text-strong); font-size: 18px; font-weight: 600; }
.ticket__list {
  display: grid; gap: 0; margin: 0 0 22px; padding: 6px 16px; list-style: none; text-align: left;
  border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong);
}
.ticket__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 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); }
.ticket__fine { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Facts block ---------- */
.facts { padding: 0 0 30px; }
.facts__grid {
  display: grid; gap: 30px; align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(74, 17, 36, .55), rgba(28, 6, 12, .7));
  box-shadow: var(--shadow);
}
@media (max-width: 719px) { .facts__grid { width: auto; margin: 0 12px; padding: 18px 14px; } }
@media (min-width: 980px) { .facts__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 38px; gap: 44px; } }
.facts__intro h2 { font-size: clamp(26px, 3.2vw, 36px); }
.deco { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.deco::before, .deco::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--gold-grad); }
.deco span { width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold-grad); }

/* ---------- Layout: content + sidebar ---------- */
.layout { display: grid; gap: 40px; padding-top: 30px; padding-bottom: 70px; }
@media (min-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 48px; } }
.content { min-width: 0; }

.sidebar { display: none; }
@media (min-width: 1100px) {
  .sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 22px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--wine-600) transparent; }
}
.side-card {
  padding: 22px; border-radius: var(--radius-lg); text-align: center;
  background: radial-gradient(120% 80% at 50% 0, rgba(212, 168, 69, .22), transparent 60%), linear-gradient(170deg, var(--wine-600), var(--wine-850));
  border: 1px solid var(--line-strong);
}
.side-card p { margin: 0 0 4px; color: var(--gold-200); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.side-card strong { display: block; margin-bottom: 16px; font: 800 26px/1.2 var(--font-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.toc { padding: 20px 20px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(38, 9, 18, .75); }
.toc h2 { margin-bottom: 12px; color: var(--gold-200); font-size: 18px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-size: 14px; line-height: 1.4; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold-400); font: 700 13px/1.5 var(--font-display); }
.toc a:hover { color: var(--gold-100); }
.toc li:last-child a { border-bottom: 0; }

.toc--mobile { margin-bottom: 30px; padding: 0; }
.toc--mobile summary {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  color: var(--gold-200); font: 700 18px/1.2 var(--font-display); cursor: pointer; list-style: none;
}
.toc--mobile summary::-webkit-details-marker { display: none; }
.toc--mobile summary::after { content: "+"; color: var(--gold-300); font-size: 24px; transition: transform .2s; }
.toc--mobile[open] summary::after { transform: rotate(45deg); }
.toc--mobile ol { padding: 0 20px 14px; }
@media (min-width: 1100px) { .toc--mobile { display: none; } }

/* ---------- Content sections ---------- */
.section { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.section:last-child { border-bottom: 0; margin-bottom: 0; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 3.2vw, 34px); }
.sec-num {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex: none;
}
.sec-num::before {
  content: ""; position: absolute; inset: 5px; transform: rotate(45deg); border-radius: 8px;
  background: linear-gradient(150deg, var(--wine-500), var(--wine-800));
  box-shadow: 0 0 0 1px var(--gold-400), 0 8px 20px -8px rgba(0, 0, 0, .8);
}
.sec-num span { position: relative; color: var(--gold-200); font: 800 16px/1 var(--font-display); }

.prose h3 { margin-top: 1.7em; font-size: clamp(21px, 2.4vw, 25px); color: var(--gold-100); }
.prose h3::before { content: "◆"; margin-right: 10px; color: var(--gold-400); font-size: .55em; vertical-align: middle; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose ul li { position: relative; margin-bottom: .55em; padding-left: 28px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(212, 168, 69, .5);
}
.prose ol { counter-reset: steps; }
.prose ol li { position: relative; counter-increment: steps; margin-bottom: .7em; padding: 2px 0 2px 46px; min-height: 32px; }
.prose ol li::before {
  content: counter(steps); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-grad); color: #2a0710; font: 800 15px/1 var(--font-display);
}

/* 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(28, 6, 12, .6);
  scrollbar-width: thin; scrollbar-color: var(--wine-600) transparent;
}
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table--wrap, .table--kv { min-width: 0; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table thead th {
  background: linear-gradient(180deg, var(--wine-600), var(--wine-700));
  color: var(--gold-100); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.table tbody th { color: var(--text-strong); font-weight: 600; }
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.table tbody tr:hover { background: rgba(212, 168, 69, .06); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table--kv tbody th { width: 42%; color: var(--muted); font-weight: 600; }
.table--kv tbody td { color: var(--text-strong); font-weight: 600; }
.table .stars { color: var(--gold-300); letter-spacing: .1em; }

/* CTA band */
.cta-band {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 28px 0; padding: 22px 24px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: radial-gradient(80% 140% at 0 0, rgba(212, 168, 69, .18), transparent 60%), linear-gradient(110deg, var(--wine-600), var(--wine-800));
}
.cta-band p { margin: 0; color: var(--text-strong); font: 700 21px/1.3 var(--font-display); }
.cta-band small { display: block; margin-top: 4px; color: var(--gold-200); font: 500 14px/1.4 var(--font-text); }
@media (max-width: 599px) { .cta-band .btn { width: 100%; } }

.callout { margin: 0 0 1.3em; padding: 16px 20px; border-left: 3px solid var(--gold-400); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(107, 24, 50, .35); }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(38, 9, 18, .7); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: var(--line-strong); background: linear-gradient(170deg, rgba(107, 24, 50, .45), rgba(38, 9, 18, .8)); }
.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; color: var(--text-strong); font-size: 18px; line-height: 1.35; }
.faq summary h3::before { content: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold-300); font-size: 20px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 6px; }

/* ---------- Legal pages ---------- */
.page-hero { padding: 30px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); }
.page-hero p { max-width: 760px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--gold-400); }
.page-section { padding: 40px 0 70px; }
.legal { max-width: 860px; }
.legal .toc { margin-bottom: 34px; }
.legal h2 { margin-top: 1.6em; font-size: clamp(22px, 2.8vw, 28px); }
.legal ul { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.legal ul li { position: relative; margin-bottom: .5em; padding-left: 26px; }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-400); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--wine-950), #0b0204);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.footer-top { display: grid; gap: 34px; padding-bottom: 36px; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin-top: 16px; color: var(--muted); }
.footer-col h2 { margin-bottom: 14px; color: var(--gold-200); font-size: 18px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--gold-200); }
.footer-col p { color: var(--muted); }
.footer-col .btn-row { margin-top: 14px; }
.footer-col .btn--gold { color: #2a0710; }
.footer-col .btn--outline { color: var(--gold-200); }

.rg { padding: 36px 0; border-bottom: 1px solid var(--line-soft); }
.rg__head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin-bottom: 22px; }
.rg__head h2 { margin: 0; font-size: 22px; }
.rg__head p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); }
.rg__grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .rg__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rg__grid { grid-template-columns: repeat(3, 1fr); } }
.rg-link {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(50, 12, 24, .45);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.rg-link:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
.rg-link__logo {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px;
  background: linear-gradient(150deg, var(--wine-600), var(--wine-800)); border: 1px solid var(--line);
  color: var(--gold-200); font: 800 13px/1 var(--font-text); letter-spacing: .04em;
}
.rg-link__txt { display: flex; flex-direction: column; line-height: 1.35; }
.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: 22px 0 0; color: var(--muted); }
.rg__hotline a { color: var(--gold-200); font: 800 22px/1.2 var(--font-display); text-decoration: none; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 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(--muted); }
.footer-bottom a:hover { color: var(--gold-200); }
.disclaimer { margin: 10px 0 0; color: #8f7579; font-size: 13px; line-height: 1.6; }

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