:root {
  --navy: #10233f;
  --navy-2: #18385f;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --gold: #c59b45;
  --gold-2: #e3c779;
  --ink: #162033;
  --muted: #657084;
  --line: #eadfcb;
  --danger: #a33a35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(135deg, var(--cream), #fffaf0); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.panel a, .legal-document a, footer a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
button, input { font: inherit; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(18px, 4vw, 56px); background: rgba(255,253,248,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font-size: 13px; letter-spacing: .08em; }
nav { display: flex; gap: 22px; color: var(--navy); font-weight: 650; align-items: center; }
.lang-switcher { display: inline-flex; align-items: center; gap: 8px; }
.lang-switcher .lang-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lang-switcher select { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: white; color: var(--navy); font-weight: 700; cursor: pointer; }
.legal-note { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }

.section { display: none; max-width: 1180px; margin: 0 auto; padding: clamp(36px, 7vw, 86px) clamp(18px, 4vw, 34px); }
.section.active { display: block; }
.hero.active { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(24px, 5vw, 64px); align-items: center; min-height: calc(100vh - 76px); }
.hero h1, .panel h1 { margin: 0 0 18px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 7vw, 78px); line-height: .96; letter-spacing: -.04em; }
.panel h1 { font-size: clamp(30px, 4vw, 54px); }
.lead { max-width: 740px; color: #3f4b60; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.operator-badge { display: inline-flex; margin: 4px 0 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.68); color: var(--navy); font-weight: 650; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.fineprint { color: var(--muted); font-size: 14px; max-width: 680px; }
.hero-actions, .form-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

.primary, .secondary, .danger, .as-link { border: 0; border-radius: 999px; padding: 14px 22px; cursor: pointer; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--navy); color: white; box-shadow: 0 14px 30px rgba(16,35,63,.22); }
.secondary { background: white; color: var(--navy); border: 1px solid var(--line); }
.danger { background: #fff; color: var(--danger); border: 1px solid #efc9c5; }
.primary:hover, .secondary:hover, .danger:hover { transform: translateY(-1px); }

.hero-card, .panel { background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 24px 70px rgba(16,35,63,.11); }
.hero-card { padding: clamp(24px, 4vw, 38px); }
.hero-card h2, .panel h2 { color: var(--navy); margin-top: 0; }
.hero-card li { margin: 14px 0; line-height: 1.45; }
.panel { padding: clamp(22px, 4vw, 46px); margin-top: clamp(24px, 5vw, 54px); }
.section-heading p { color: var(--muted); max-width: 760px; line-height: 1.55; }

.progress { height: 10px; background: #efe5d4; border-radius: 999px; overflow: hidden; margin: 24px 0; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--navy)); transition: width .25s ease; }
.quiz-form { display: grid; gap: 18px; }
.question-card { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: white; }
.question-card legend { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); font-weight: 800; line-height: 1.4; }
.question-card legend span { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--gold); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; }
.scale label { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.scale label:has(input:checked) { background: var(--navy); color: white; border-color: var(--navy); }
.scale input { accent-color: var(--gold); }
.scale small { font-size: 11px; line-height: 1.2; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.result-grid article { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.result-grid .wide { grid-column: 1 / -1; }
.result-consultation-cta { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--gold-2); border-radius: 24px; background: linear-gradient(135deg, #fff8e8, #fffdf8); color: var(--navy); box-shadow: 0 16px 36px rgba(197,155,69,.12); }
.result-consultation-cta strong { display: block; font-size: clamp(18px, 2vw, 24px); line-height: 1.35; }
.result-consultation-cta p { margin: 10px 0 0; color: #3f4b60; line-height: 1.55; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 32px; gap: 12px; align-items: center; }
meter { width: 100%; height: 16px; accent-color: var(--gold); }

.lead-form { display: grid; gap: 16px; max-width: 720px; }
.lead-form label:not(.checkbox), .upsell label:not(.checkbox) { display: grid; gap: 8px; color: var(--navy); font-weight: 750; }
input { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: white; color: var(--ink); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; color: #3f4b60; }
.checkbox input { width: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--navy); }
.upsell .prize-card { margin: 24px 0 14px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; font-weight: 900; font-size: clamp(20px, 3vw, 34px); }
.bonus-card, .referral-box, .admin-lock { margin: 18px 0; padding: 22px; border-radius: 24px; background: #fff8ea; border: 1px solid var(--line); }
.copy-row, .referral-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 12px 0; }
.referral-form { display: grid; gap: 10px; margin: 16px 0; }
.hidden { display: none !important; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.stats article { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.stats strong { display: block; color: var(--navy); font-size: 34px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--navy); background: #fbf5eb; }

footer { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 30px; color: var(--muted); border-top: 1px solid var(--line); }

.legal-page { max-width: 980px; margin: 0 auto; padding: clamp(30px, 6vw, 72px) clamp(18px, 4vw, 34px); }
.legal-document { background: rgba(255,253,248,.94); border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 24px 70px rgba(16,35,63,.11); padding: clamp(24px, 5vw, 54px); line-height: 1.7; }
.legal-document h1 { margin: 0 0 18px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; }
.legal-document h2 { margin-top: 34px; color: var(--navy); }
.legal-document li { margin: 8px 0; }
.legal-back { margin-top: 16px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-nav a { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: white; }

@media (max-width: 820px) {
  .hero.active { grid-template-columns: 1fr; min-height: auto; }
  nav { gap: 12px; }
  .scale { grid-template-columns: 1fr; }
  .copy-row, .referral-row { grid-template-columns: 1fr; }
  .scale label { grid-template-columns: auto 38px 1fr; justify-items: start; text-align: left; }
  .result-grid, .stats { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Consent banner (cookie/marketing) */
.consent-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;background:var(--card,#10233f);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:16px 20px;box-shadow:0 18px 50px rgba(0,0,0,.3);max-width:920px;margin:0 auto}
.consent-banner[hidden]{display:none}
.consent-copy{display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.45;max-width:620px}
.consent-copy strong{font-size:15px}
.consent-copy a{color:#c59b45;text-decoration:underline}
.consent-actions{display:flex;gap:10px;flex-shrink:0}
.consent-actions .primary,.consent-actions .secondary{padding:10px 18px;border-radius:999px;font-weight:700;cursor:pointer;border:0}
.consent-actions .secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.consent-actions .primary{background:#c59b45;color:#10233f}
@media(max-width:640px){.consent-banner{flex-direction:column;align-items:stretch}.consent-actions{justify-content:stretch}.consent-actions .primary,.consent-actions .secondary{flex:1}}
