/* ============================================================
   Casino Match Quiz — v3 (spec-compliant)
   Palette + font strictly from TZ §14. Editorial composition
   (folio numerals, hairlines, air, flat surfaces) to avoid the
   generic look — without breaking the spec colors.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   Tokens — colors from TZ §14
   ============================================================ */
:root {
  --bg:            #0B0D14;   /* фон страницы */
  --bg-2:          #0E1017;
  --surface:       #141824;   /* фон карточек */
  --surface-2:     #1A1F2E;   /* вторичная поверхность */
  --border:        #2A3143;   /* границы */
  --hair:          rgba(255, 255, 255, 0.07);
  --hair-strong:   rgba(124, 92, 255, 0.32);

  --accent:        #7C5CFF;   /* основной акцент */
  --accent-bright: #9E86FF;
  --accent-soft:   rgba(124, 92, 255, 0.10);
  --mint:          #26D0A8;   /* подтверждение / активный статус */
  --mint-soft:     rgba(38, 208, 168, 0.12);

  --text:          #F7F8FB;   /* основной текст */
  --text-dim:      #9DA6B8;   /* вторичный текст */
  --text-mute:     #6B7488;
  --warn:          #F5B942;   /* предупреждение */
  --warn-soft:     rgba(245, 185, 66, 0.12);

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --r-lg: 12px;
  --r-md: 9px;
  --r-sm: 6px;
  --r-xs: 4px;

  --gutter: clamp(20px, 4vw, 52px);
  --maxw: 1180px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -28px rgba(0,0,0,0.7);
  --shadow-pop:  0 24px 60px -24px rgba(0,0,0,0.8);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-med: 280ms;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "ss01";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.tnum { font-variant-numeric: tabular-nums; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.7; }

/* ============================================================
   Atmosphere — cool, static, subtle. No mesh drift, no grid.
   ============================================================ */
.bg-atmos {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(72% 46% at 50% -6%, rgba(124,92,255,0.14), transparent 62%),
    radial-gradient(80% 60% at 50% 120%, rgba(38,208,168,0.05), transparent 60%),
    var(--bg);
}
.bg-grid { /* soft vignette */
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 58%, rgba(0,0,0,0.45) 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Shell / layout
   ============================================================ */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; display: flex; flex-direction: column; padding-block: clamp(24px, 5vh, 60px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px) saturate(130%);
  background: linear-gradient(180deg, rgba(11,13,20,0.9), rgba(11,13,20,0.55));
  border-bottom: 1px solid var(--hair);
}
.site-header .container { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: 0 6px 16px -8px rgba(124,92,255,0.6), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.brand-mark svg { width: 18px; height: 18px; }
.header-right { display: flex; align-items: center; gap: 20px; }
.age-badge {
  font-weight: 600; font-size: 12px; letter-spacing: 0.04em;
  color: var(--warn); background: var(--warn-soft);
  border: 1px solid rgba(245,185,66,0.32); border-radius: 999px; padding: 5px 11px;
}
.header-link { font-size: 13px; letter-spacing: 0.01em; color: var(--text-dim); transition: color var(--t-fast); }
.header-link:hover { color: var(--text); }
.lang-switch {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 7px; padding: 6px 10px; transition: color var(--t-fast), border-color var(--t-fast);
}
.lang-switch:hover { color: var(--text); border-color: var(--hair-strong); }

/* ============================================================
   Screen switching
   ============================================================ */
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn var(--t-med) var(--ease-out) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   Intro
   ============================================================ */
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 84px); align-items: center;
}
.intro-copy { max-width: 580px; }
.intro-copy .kicker { margin-bottom: 24px; }
.h1 {
  font-weight: 700; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.h1 .hl { color: var(--accent); }
.subhead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-dim); max-width: 46ch; margin-bottom: 32px; line-height: 1.6; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); min-height: 46px; padding-inline: 26px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  border-radius: var(--r-md); position: relative; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  color: #fff; font-weight: 600;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 10px 26px -14px rgba(124,92,255,0.7);
}
.btn-primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 16px 34px -14px rgba(124,92,255,0.8); }
.btn-primary:not(:disabled):active { transform: translateY(0); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--hair-strong); background: rgba(124,92,255,0.06); }
.btn-lg { --btn-h: 56px; font-size: 16px; padding-inline: 32px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn .arrow svg { width: 18px; height: 18px; }
.btn:not(:disabled):hover .arrow { transform: translateX(3px); }

.under-cta { margin-top: 18px; font-size: 12.5px; color: var(--text-mute); display: flex; align-items: center; gap: 9px; }
.under-cta svg { width: 15px; height: 15px; opacity: 0.8; flex: none; color: var(--accent); }

.benefits { margin-top: 32px; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hair); }
.benefit { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text); padding: 15px 0; border-bottom: 1px solid var(--hair); }
.benefit .tick { width: 20px; height: 20px; flex: none; display: grid; place-items: center; color: var(--mint); }
.benefit .tick svg { width: 17px; height: 17px; }

/* Intro visual — criteria dossier */
.intro-visual { position: relative; }
.quiz-preview {
  position: relative; border-radius: var(--r-lg); padding: clamp(26px, 3vw, 34px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.quiz-preview::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--hair); border-radius: var(--r-md); pointer-events: none; }
.qp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; }
.qp-detected { display: flex; align-items: center; gap: 12px; }
.qp-flag { width: 34px; height: 25px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--hair); display: grid; place-items: center; color: var(--accent); }
.qp-flag svg { width: 16px; height: 16px; }
.qp-detected .lbl { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.qp-detected .val { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.qp-count { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--hair-strong); padding: 5px 11px; border-radius: 999px; }
.qp-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.qp-group { display: flex; align-items: center; gap: 13px; padding: 17px 15px; background: var(--surface); transition: background var(--t-med); }
.qp-group:hover { background: var(--surface-2); }
.qp-ic { width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--hair); }
.qp-ic svg { width: 20px; height: 20px; }
.qp-group.g3 .qp-ic { color: var(--mint); background: var(--mint-soft); border-color: rgba(38,208,168,0.25); }
.qp-group .nm { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.qp-group .sub { font-size: 11.5px; color: var(--text-mute); }

/* ============================================================
   Quiz card
   ============================================================ */
.quiz-wrap { width: 100%; max-width: 720px; margin-inline: auto; }
.quiz-card {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  padding: clamp(26px, 4vw, 48px);
}
.quiz-head { margin-bottom: 28px; }
/* keep the question subtree (incl. country dropdown) above the nav row */
#question-host { position: relative; z-index: 2; }
.quiz-nav { position: relative; z-index: 1; }
.progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.progress-step { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.progress-step b { color: var(--accent); font-weight: 700; }
.progress-track { height: 2px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width 300ms var(--ease-out); }

.question { animation: qIn var(--t-med) var(--ease-out) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes qOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
.question.is-leaving { animation: qOut 170ms var(--ease) both; }

.q-title { font-weight: 700; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 11px; }
.q-sub { font-size: 15.5px; color: var(--text-dim); margin-bottom: 28px; }

.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.options.cols-1 { grid-template-columns: 1fr; }

/* staggered reveal — options slide in one by one (spec: sequential fade+shift) */
.options .option { animation: optIn 300ms var(--ease-out) both; }
.options .option:nth-child(1) { animation-delay: 40ms; }
.options .option:nth-child(2) { animation-delay: 90ms; }
.options .option:nth-child(3) { animation-delay: 140ms; }
.options .option:nth-child(4) { animation-delay: 190ms; }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.option {
  position: relative; text-align: left; width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 17px 19px; min-height: 46px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast);
}
.option:hover { transform: translateY(-1px); border-color: var(--hair-strong); background: var(--surface-2); }
.option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.option .opt-ic {
  width: 46px; height: 46px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--hair);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.option .opt-ic svg { width: 22px; height: 22px; }
.option .opt-body { flex: 1; min-width: 0; }
.option .opt-label { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.option .opt-hint { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.option .opt-check {
  width: 24px; height: 24px; flex: none; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--border); color: transparent; transition: all var(--t-fast) var(--ease); transform: scale(0.9);
}
.option .opt-check svg { width: 13px; height: 13px; }

.option.is-selected {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option.is-selected .opt-ic { color: var(--accent-bright); border-color: var(--hair-strong); background: rgba(124,92,255,0.18); }
.option.is-selected .opt-check {
  border-color: var(--mint); background: var(--mint); color: #06231b; transform: scale(1);
  animation: checkPop 240ms var(--ease-out);
}
@keyframes checkPop { 0% { transform: scale(0.5); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.option.is-disabled { opacity: 0.4; pointer-events: none; }

.max-hint {
  margin-top: 16px; font-size: 13px; color: var(--warn); display: flex; align-items: center; gap: 9px;
  opacity: 0; transform: translateY(-4px); transition: opacity var(--t-med), transform var(--t-med);
}
.max-hint.is-show { opacity: 1; transform: translateY(0); }
.max-hint svg { width: 15px; height: 15px; flex: none; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hair); }
.btn-back { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); font-weight: 600; font-size: 14.5px; padding: 10px 8px; border-radius: 6px; transition: color var(--t-fast); }
.btn-back:hover { color: var(--text); }
.btn-back svg { width: 17px; height: 17px; }

/* country selector */
.country-field { position: relative; }
.country-input {
  width: 100%; height: 58px; padding: 0 46px 0 50px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 500;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.country-input::placeholder { color: var(--text-mute); font-weight: 400; }
.country-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.country-field .field-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-mute); width: 20px; height: 20px; }
.country-field .field-caret { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-mute); width: 18px; height: 18px; pointer-events: none; }
.country-list {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); max-height: 264px; overflow-y: auto; padding: 6px; display: none;
}
.country-list.is-open { display: block; animation: qIn 150ms var(--ease-out); }
.country-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 500; transition: background var(--t-fast); }
.country-opt:hover, .country-opt.is-active { background: var(--surface-2); }
.country-opt .flag { width: 24px; height: 18px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--hair); display: grid; place-items: center; font-size: 12px; flex: none; }
.country-opt .co-check { margin-left: auto; color: var(--accent); width: 16px; height: 16px; opacity: 0; }
.country-opt.is-selected .co-check { opacity: 1; }

/* ============================================================
   Loading
   ============================================================ */
.loading-head { text-align: center; margin-bottom: 36px; }
.loading-head .spinner {
  width: 44px; height: 44px; margin: 0 auto 22px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 850ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skel-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); padding: 22px; height: 340px; overflow: hidden; position: relative; }
.skel-line { border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.skel-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(124,92,255,0.07), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-logo { width: 52px; height: 52px; border-radius: 10px; margin-bottom: 20px; }
.skel-line.w70 { width: 70%; height: 16px; margin-bottom: 10px; }
.skel-line.w40 { width: 40%; height: 12px; margin-bottom: 24px; }
.skel-line.full { width: 100%; height: 46px; margin-top: 20px; }
.slow-note { text-align: center; margin-top: 26px; display: none; }
.slow-note.is-show { display: block; animation: qIn var(--t-med); }
.slow-note p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }

/* ============================================================
   Results
   ============================================================ */
.results-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hair); }
.results-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.results-title { font-weight: 700; font-size: clamp(29px, 3.8vw, 44px); letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 8px; }
.results-sub { font-size: 15.5px; color: var(--text-dim); max-width: 62ch; }
.summary-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.summary-chip {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.summary-chip .sk { color: var(--accent); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.state-notice {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: var(--r-sm);
  background: var(--warn-soft); border: 1px solid rgba(245,185,66,0.3); color: #f0cd8f; font-size: 14px; margin-bottom: 24px;
}
.state-notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; }

.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 23px;
  opacity: 0; transform: translateY(14px); animation: cardReveal 460ms var(--ease-out) forwards;
}
@keyframes cardReveal { to { opacity: 1; transform: translateY(0); } }
.offer-card.is-top { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--hair-strong), 0 24px 60px -30px rgba(124,92,255,0.45); }
.offer-card.is-top::before {
  content: ""; position: absolute; left: 23px; right: 23px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.oc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.oc-logo { width: 52px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.oc-brand { flex: 1; min-width: 0; }
.oc-name { font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.oc-license { font-size: 12px; color: var(--text-mute); }
.match-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.match-badge.top { color: #fff; background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }
.match-badge.strong { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--hair-strong); }
.match-badge.also { color: var(--text-mute); background: var(--surface-2); border: 1px solid var(--border); }
.oc-sponsored { align-self: flex-start; font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); border: 1px dashed var(--border); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }

.oc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.oc-tag { font-size: 12px; font-weight: 500; color: var(--mint); background: var(--mint-soft); border: 1px solid rgba(38,208,168,0.28); padding: 4px 9px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.oc-tag svg { width: 11px; height: 11px; }

.oc-bonus { font-size: 19px; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 18px; }
.oc-bonus .lbl { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px; }

.oc-meta { display: flex; flex-direction: column; gap: 0; padding: 4px 0; border-top: 1px solid var(--hair); margin-bottom: 18px; }
.oc-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.oc-meta-row:last-child { border-bottom: none; }
.oc-meta-row .k { color: var(--text-dim); display: flex; align-items: center; gap: 9px; }
.oc-meta-row .k svg { width: 15px; height: 15px; opacity: 0.75; color: var(--accent); }
.oc-meta-row .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.oc-details { display: none; padding: 15px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--hair); font-size: 13px; color: var(--text-dim); }
.oc-details.is-open { display: block; animation: qIn 170ms var(--ease-out); }
.oc-details .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.oc-details .row .v { color: var(--text); font-weight: 500; }

.oc-foot { margin-top: auto; }
.oc-actions { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 14px; }
.link-details { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; transition: gap var(--t-fast); }
.link-details:hover { gap: 10px; }
.link-details svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.link-details.is-open svg { transform: rotate(180deg); }
.oc-legal { font-size: 11px; color: var(--text-mute); line-height: 1.45; margin-top: 12px; }
.oc-verified { font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.02em; margin-top: 6px; opacity: 0.8; }

.results-foot { display: flex; justify-content: center; margin-top: 32px; }

/* empty / error states */
.state-block { max-width: 520px; margin-inline: auto; text-align: center; padding-block: 44px; }
.state-icon { width: 68px; height: 68px; border-radius: var(--r-md); margin: 0 auto 26px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-mute); }
.state-icon svg { width: 32px; height: 32px; }
.state-icon.warn { color: var(--warn); border-color: rgba(245,185,66,0.3); background: var(--warn-soft); }
.state-block h2 { font-weight: 700; font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -0.03em; margin-bottom: 13px; }
.state-block p { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }
.state-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--hair); margin-top: 62px; }
.site-footer .container { padding-block: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 22px; }
.footer-links a { font-size: 13px; color: var(--text-dim); transition: color var(--t-fast); }
.footer-links a:hover { color: var(--text); }
.footer-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.footer-disclaimer { font-size: 12px; color: var(--text-mute); line-height: 1.65; max-width: 82ch; margin-top: 18px; }
.footer-copy { margin-top: 16px; font-size: 12.5px; color: var(--text-mute); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .intro-visual { max-width: 560px; }
}
@media (max-width: 900px) {
  .offers-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-card:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .site-header .container { height: 62px; }
  .header-link.hide-sm { display: none; }
  .options.cols-2 { grid-template-columns: 1fr; }
  .offers-grid, .skeleton-grid { grid-template-columns: 1fr; }
  .offer-card:nth-child(3) { grid-column: auto; }
  .results-top { flex-direction: column; }
  .quiz-card { padding: 24px; }
  .quiz-nav.is-sticky {
    position: sticky; bottom: 0; margin-inline: -24px; margin-bottom: -24px;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--surface) 40%); backdrop-filter: blur(6px);
    border-top: 1px solid var(--hair);
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .offer-card { opacity: 1; transform: none; }
}
