/* ==========================================================================
   Extorimundus — jogos de casino online (pt-PT)
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0a1411;
  --bg-alt: #0d1b17;
  --surface: #12241f;
  --surface-2: #183029;
  --line: rgba(216, 178, 106, .16);
  --line-soft: rgba(239, 233, 220, .08);
  --text: #efe9dc;
  --muted: #a9b6ae;
  --brass: #d8b26a;
  --brass-hi: #f0d395;
  --red: #d9473b;
  --green: #2a9d6c;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brass); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 .97rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  border: 1px solid var(--b); transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #1a1408; box-shadow: 0 8px 24px -10px rgba(216, 178, 106, .7); }
.btn-primary:hover { color: #1a1408; background: linear-gradient(180deg, #f8e2b0, #e2bf7a); box-shadow: 0 10px 30px -10px rgba(216, 178, 106, .9); }
.btn-ghost { --b: rgba(216, 178, 106, .45); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { --b: var(--brass); color: #fff; background: rgba(216, 178, 106, .08); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s;
}
.loader p { margin: 0; font: 600 .8rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.loader-chip {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 46%, transparent 47%),
              repeating-conic-gradient(from 0deg, #f4eee0 0 15deg, var(--red) 15deg 45deg);
  box-shadow: inset 0 0 0 4px var(--red);
  animation: spin 1.1s linear infinite;
}
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- age gate ---------- */
.age { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; background: rgba(4, 10, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.age[hidden] { display: none; }
.age-box {
  width: min(480px, 100%); text-align: center; padding: 40px 32px 30px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  animation: pop .45s var(--ease);
}
.age-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--brass); color: var(--brass-hi); font: 700 1.2rem var(--serif); margin-bottom: 18px; }
.age-box h2 { font-size: 1.8rem; }
.age-box p { color: var(--muted); }
.age-actions { display: grid; gap: 10px; margin: 24px 0 18px; }
.age-help { font-size: .9rem; margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; z-index: 150; left: 20px; right: 20px; bottom: 20px; margin-inline: auto; max-width: 760px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px; background: rgba(18, 36, 31, .96); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: pop .4s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 20, 17, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line-soft); background: rgba(10, 20, 17, .9); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 500 1.3rem var(--serif); letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--brass-hi); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-cta { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(42, 157, 108, .22), transparent 62%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brass-hi); }
.lead { font-size: 1.14rem; color: #d3d8d2; max-width: 34em; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.stats { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 1px solid var(--line-soft); }
.stats b { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--brass-hi); }
.stats span { font-size: .82rem; color: var(--muted); }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); aspect-ratio: 6 / 5; object-fit: cover; }
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(10, 20, 17, .78); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(42, 157, 108, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(42, 157, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(42, 157, 108, 0); } }

.marquee { margin-top: 64px; border-block: 1px solid var(--line-soft); overflow: hidden; background: rgba(255, 255, 255, .015); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { padding: 16px 28px; white-space: nowrap; font: 500 1.05rem var(--serif); font-style: italic; color: var(--muted); display: inline-flex; align-items: center; gap: 28px; }
.marquee span::after { content: "◆"; font-size: .55rem; color: var(--brass); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.note { margin: 28px 0 0; font-size: .86rem; color: var(--muted); max-width: 820px; }

/* ---------- toolbar / chips ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 28px; }
.search { position: relative; display: block; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; height: 50px; padding: 0 18px 0 46px; border-radius: 999px; font: 500 1rem var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: #7c8a82; }
.search input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(216, 178, 106, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sort { padding-top: 4px; }
.chips-sort::before { content: "Ordenar:"; align-self: center; font-size: .85rem; color: var(--muted); margin-right: 4px; }
.chip {
  min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 .9rem var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line-soft);
  transition: color .2s, background .2s, border-color .2s, transform .15s;
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip:active { transform: scale(.97); }
.chip.is-active { color: #1a1408; background: var(--brass); border-color: var(--brass); }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.game {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.game:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.game[hidden] { display: none; }
.game-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #0b1714; }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.game:hover .game-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; right: 12px; padding: 6px 11px; border-radius: 999px;
  font: 700 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #1a1408; background: var(--brass-hi);
}
.game-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.game-type { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.game h3 { margin-bottom: 8px; font-size: 1.32rem; }
.game-desc { font-size: .93rem; color: var(--muted); margin-bottom: 14px; }
.game-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.game-meta div { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); }
.game-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.game-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }
.game-rules { margin: 0 0 16px; font-size: .9rem; margin-top: auto; }
.game-rules summary { cursor: pointer; list-style: none; padding: 8px 0; font-weight: 700; color: var(--brass-hi); display: flex; align-items: center; gap: 8px; }
.game-rules summary::-webkit-details-marker { display: none; }
.game-rules summary::after { content: "+"; font-size: 1.1rem; line-height: 1; transition: transform .25s var(--ease); }
.game-rules[open] summary::after { transform: rotate(45deg); }
.game-rules p { color: var(--muted); margin: 4px 0 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.more-row { display: flex; justify-content: center; margin-top: 32px; }
.more-row[hidden] { display: none; }

/* ---------- promotions ---------- */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo { padding: 26px 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .3s, transform .3s var(--ease); }
.promo:hover { border-color: var(--line); transform: translateY(-3px); }
.promo-ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  font: 600 1.3rem var(--serif); color: var(--brass-hi); background: rgba(216, 178, 106, .1); border: 1px dashed rgba(216, 178, 106, .5);
}
.promo p { color: var(--muted); font-size: .95rem; }
.promo ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); font-size: .88rem; display: grid; gap: 6px; }
.promo li::before { content: "Verificar · "; color: var(--brass); font-weight: 700; }

.calc {
  margin-top: 56px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 40px; border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(42, 157, 108, .18), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.calc h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.calc-copy p:not(.eyebrow) { color: var(--muted); }
.calc-small { font-size: .84rem; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.calc-form label:last-of-type { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; font: 500 1rem var(--sans); color: var(--text);
  background: #0b1814; border: 1px solid var(--line-soft); transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(-45deg, transparent 50%, var(--brass) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 4px rgba(216, 178, 106, .12); }
.calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.calc-out div { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-soft); }
.calc-out span { display: block; font-size: .78rem; color: var(--muted); }
.calc-out b { font: 600 1.45rem/1.2 var(--serif); color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.calc-out b.is-neg { color: #ff8c7f; }
.calc-out b.is-pos { color: #7fe0a8; }
.calc-verdict { grid-column: 1 / -1; margin: 0; font-size: .92rem; color: var(--text); }

.promo-cta { margin-top: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.check { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 12px; }
.check li { counter-increment: c; position: relative; padding-left: 44px; color: #d3d8d2; }
.check li::before { content: counter(c); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 600 .9rem var(--serif); color: var(--brass-hi); border: 1px solid var(--line); }
.promo-cta-box { padding: 34px; border-radius: 24px; text-align: center; background: linear-gradient(160deg, #1b3a30, #10231d); border: 1px solid var(--line); box-shadow: var(--shadow); }
.promo-cta-box .eyebrow::before { display: none; }
.promo-cta-text { font: 500 1.25rem/1.45 var(--serif); }
.promo-cta-small { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.step-n { display: block; font: 600 2.6rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--brass); margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative; display: block; padding: 30px 28px 28px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.cat::after { content: "→"; position: absolute; right: 26px; top: 26px; font-size: 1.2rem; color: var(--brass); transition: transform .3s var(--ease); }
.cat:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line); }
.cat:hover::after { transform: translateX(4px); }
.cat-rtp { display: inline-block; margin-bottom: 16px; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--brass-hi); background: rgba(216, 178, 106, .1); }
.cat h3 { font-size: 1.5rem; }
.cat p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.glossary div { padding: 22px 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.glossary dt { font: 600 1.15rem var(--serif); color: var(--brass-hi); }
.glossary dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-art { margin: 0; }
.split-art img { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: #d3d8d2; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(42, 157, 108, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237fe0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { color: var(--text); }

/* ---------- tabs ---------- */
.tabs { max-width: 820px; }
.tab-list { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font: 700 .95rem var(--sans); color: var(--muted); background: transparent; transition: color .2s, background .25s; }
.tab.is-active { color: #1a1408; background: var(--brass); }
.tab-panel { padding: 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); animation: pop .35s var(--ease); }

/* ---------- responsible ---------- */
.section-rg { background: linear-gradient(180deg, #0b1a1d, #0a1411); border-block: 1px solid var(--line-soft); }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.rg-grid > div > p { color: var(--muted); }
.badges { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; font-weight: 700; color: var(--text); }
.badges a { color: inherit; text-decoration: none; }
.badges a:hover { color: var(--brass-hi); }
.badges-sm li { padding: 5px 10px; font-size: .76rem; }
.rg-img { margin-top: 26px; border-radius: 22px; border: 1px solid var(--line-soft); }
.quiz { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.quiz-note { font-size: .86rem; color: var(--muted); }
.quiz fieldset { border: 0; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line-soft); }
.quiz legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.quiz fieldset label { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 8px 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-soft); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text); transition: border-color .2s, background .2s; }
.quiz fieldset label:has(input:checked) { border-color: var(--brass); background: rgba(216, 178, 106, .12); }
.quiz input[type="radio"] { accent-color: var(--brass); margin: 0; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-result { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.quiz-result h4 { font-size: 1.15rem; margin-bottom: 6px; }
.quiz-result p { margin: 0; color: var(--muted); font-size: .95rem; }
.quiz-result.lvl-0 h4 { color: #7fe0a8; }
.quiz-result.lvl-1 h4 { color: var(--brass-hi); }
.quiz-result.lvl-2 h4 { color: #ff8c7f; }

/* ---------- newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px; border-radius: 28px; background: radial-gradient(100% 120% at 100% 0%, rgba(216, 178, 106, .12), transparent 55%), var(--surface); border: 1px solid var(--line); }
.news > div > p:not(.eyebrow) { color: var(--muted); }
.mail-box { display: grid; gap: 12px; }
.mail-box .contact-card { background: rgba(0, 0, 0, .2); }
.mail-box .contact-card a { font-weight: 700; word-break: break-all; }
.mail-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 600 1.12rem/1.4 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-right: 44px; margin: -6px 0 22px; }

/* ---------- prose ---------- */
.prose { max-width: 820px; }
.prose h3 { margin-top: 1.6em; font-size: 1.45rem; }
.prose p { color: #cfd6d0; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 32px; background: #070f0d; border-top: 1px solid var(--line-soft); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin: 16px 0; max-width: 34ch; }
.foot-brand .foot-loc { color: var(--text); font-size: .9rem; }
.site-footer h4 { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.site-footer ul:not(.badges) { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul:not(.badges) a { color: var(--muted); text-decoration: none; }
.site-footer ul:not(.badges) a:hover { color: var(--text); }
.disclaimer { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line-soft); color: #8a978f; font-size: .84rem; }
.disclaimer strong { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: #8a978f; font-size: .84rem; }
.foot-bottom p { margin: 0; }

/* ---------- inner pages ---------- */
.page-header { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.page-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.back { font-weight: 700; text-decoration: none; font-size: .93rem; }
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: #cfd6d0; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal th { color: var(--brass); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.contact-card { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.contact-form .full { grid-column: 1 / -1; }
textarea { min-height: 150px; resize: vertical; }
.page-footer { padding: 28px 0; border-top: 1px solid var(--line-soft); font-size: .86rem; color: #8a978f; }
.page-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.page-footer a { color: var(--muted); text-decoration: none; }
.page-footer a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 8px; font-size: .88rem; }
  .promos, .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .glossary { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 24px; background: rgba(10, 20, 17, .98); border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 8px; font-size: 1.02rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; }
  .hero-grid, .split, .rg-grid, .news, .calc, .promo-cta, .faq-wrap { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-art { max-width: 620px; }
  .section { padding: 80px 0; }
  .faq-wrap { gap: 0; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1200px, 100% - 32px); }
  .hero { padding-top: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .promos, .cats, .steps, .contact-cards { grid-template-columns: 1fr; }
  .calc, .news, .quiz { padding: 24px 20px; }
  .calc-form, .contact-form { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .glossary div { grid-template-columns: 1fr; gap: 6px; }
  .tab-panel { padding: 22px 20px; }
  .contact-form { padding: 24px 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
