/* ============================================================
   Брейнфренд — styles.css
   LIGHT «bright quiz» system. Per-section hue («стол» = оттенок).
   Accents that are TEXT use darkened *-strong variants (AA on light).
   Animate transform/opacity only. Tokens → §1.
   ============================================================ */

/* ── §1 Tokens ───────────────────────────────────────────── */
:root {
  /* palette — light */
  --bg:            #F3F1FB;   /* soft lavender white */
  --surface:       #FFFFFF;
  --surface-hi:    #ECE7FB;   /* light violet tint (hover / elevated) */
  --border:        rgba(40,28,80,0.12);
  --border-hi:     rgba(40,28,80,0.22);
  --ink:           #221C44;   /* deep indigo text */
  --ink-muted:     #595379;
  --ink-faint:     #5F5985;
  --accent:        #14B8A6;   /* teal — fills / CTA bg / borders */
  --accent-strong: #0B7167;   /* teal as TEXT/links/kickers (AA) */
  --accent-hover:  #0F9688;
  --accent-ink:    #042F2A;   /* dark text on teal fills */
  --accent-2:      #FFC93C;   /* yellow — fills / chips / glow only */
  --accent-2-ink:  #4A3500;   /* dark text on yellow */
  --violet:        #6C2BD9;   /* text AND fill on light */
  --violet-hover:  #5A20BC;
  --violet-ring:   rgba(108,43,217,0.55);
  --success:       #137A38;
  --error:         #DC2626;
  --pink:          #EC4E86;
  --gold-text:     #8A5A00;

  /* type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --text-xs:   0.72rem;
  --text-sm:   0.84rem;
  --text-base: 1rem;
  --text-md:   1.18rem;
  --lh-body:   1.6;
  --lh-head:   1.08;

  /* radius */
  --r-xs: 4px; --r-sm: 7px; --r-md: 11px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* motion */
  --dur-fast: 150ms; --dur: 280ms; --dur-drama: 700ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* shadow / glow — soft, violet-tinted (light theme) */
  --shadow: 0 14px 40px -20px rgba(40,28,80,0.35);
  --shadow-sm: 0 6px 18px -10px rgba(40,28,80,0.3);
  --glow-teal: 0 0 0 1px rgba(20,184,166,0.5), 0 14px 36px -16px rgba(20,184,166,0.55);
  --glow-score: 0 0 16px rgba(245,166,35,0.9);

  --maxw: 1140px;
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);

  /* default section hue (overridden per section in §1b) */
  --sec: var(--violet);
  --sec-strong: var(--violet);
}

/* ── §1b Per-section hue («стол» = свой оттенок) ──────────── */
#hero       { --sec: #6C2BD9; --sec-strong: #6C2BD9; }
#logic      { --sec: #14B8A6; --sec-strong: #0B7167; }
#kviz       { --sec: #F5A623; --sec-strong: #9A4A08; }
#how        { --sec: #EC4E86; --sec-strong: #B12C5F; }
#why        { --sec: #22C55E; --sec-strong: #137A38; }
#game       { --sec: #7C3AED; --sec-strong: #6C2BD9; }
#signup     { --sec: #14B8A6; --sec-strong: #0B7167; }
#franchise  { --sec: #F5A623; --sec-strong: #9A4A08; }
#hunt       { --sec: #EC4E86; --sec-strong: #B12C5F; }
#contact    { --sec: #22C55E; --sec-strong: #137A38; }

/* ── §2 Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-head); font-weight: 700; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: normal; color: var(--ink-faint); }
:focus-visible { outline: 3px solid var(--violet-ring); outline-offset: 2px; border-radius: var(--r-xs); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm); transform: translateY(-150%);
  transition: transform var(--dur) var(--ease);
}
.skip:focus { transform: translateY(0); text-decoration: none; }

.u-accent { color: var(--sec-strong); }
.kicker, .hero__kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--text-xs);
  color: var(--sec-strong); font-weight: 600; margin: 0 0 0.9rem;
}
.section { padding-block: var(--pad-section); position: relative; background: color-mix(in srgb, var(--sec) 7%, var(--bg)); }
.section__head { max-width: 660px; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section__title { font-size: clamp(1.7rem, 4.4vw, 2.7rem); }
.section__sub { color: var(--ink-muted); font-size: var(--text-md); margin-top: 1rem; }

/* ── §3 Buttons ──────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface-hi); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  padding: 0.85em 1.6em; border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-align: center; line-height: 1.15;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); box-shadow: var(--glow-teal); }
.btn--violet { --btn-bg: var(--violet); --btn-fg: #fff; }
.btn--violet:hover { background: var(--violet-hover); box-shadow: 0 14px 36px -16px rgba(108,43,217,0.55); }
.btn--ghost { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--border-hi); }
.btn--ghost:hover { background: var(--surface-hi); border-color: var(--sec); }
.btn--sm { padding: 0.6em 1.1em; font-size: var(--text-sm); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ── §4 Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); position: relative; }
.brand:hover { text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav__link { color: var(--ink-muted); font-weight: 500; font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: 24px; }
.site-nav__link:hover { color: var(--ink); text-decoration: none; }
.site-header__cta { margin-left: 0; }

/* ── §5 Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem) var(--pad-section); overflow: hidden; background: color-mix(in srgb, var(--violet) 5%, var(--bg)); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55; will-change: transform; }
.blob--teal   { width: 380px; height: 380px; background: rgba(20,184,166,0.45);  top: -80px; right: 4%; }
.blob--violet { width: 300px; height: 300px; background: rgba(124,58,237,0.34); bottom: -60px; left: -40px; }
.blob--yellow { width: 200px; height: 200px; background: rgba(245,166,35,0.34); top: 40%; left: 46%; }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem; align-items: center; }
.hero__content { will-change: transform; }
.hero__title { font-size: clamp(2.2rem, 6.4vw, 4.2rem); font-weight: 700; }
.hero__title em { font-weight: 700; color: var(--ink-faint); }
.hero__lead { color: var(--ink-muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin-top: 1.3rem; max-width: 33ch; }

.event-pill { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.8rem 0 0; }
.event-pill li {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 0.5rem 1.1rem; box-shadow: var(--shadow-sm);
}
.event-pill .mono { color: var(--violet); font-size: 1.05rem; font-weight: 600; }
.event-pill span:last-child { font-size: var(--text-xs); color: var(--ink-faint); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__note { margin-top: 1rem; font-size: var(--text-sm); color: var(--ink-faint); }

.hero__art { position: relative; display: grid; place-items: center; will-change: transform; }
.hero__duo { width: min(360px, 90%); height: auto; filter: drop-shadow(0 20px 36px rgba(40,28,80,0.28)); }

/* score-flash */
[data-flash].is-flashing { animation: score-flash var(--dur-drama) var(--ease); }
@keyframes score-flash { 0% { text-shadow: none; } 35% { text-shadow: var(--glow-score); } 100% { text-shadow: none; } }

/* ── §6 Logic question cards (interactive: cursor-tilt) ────── */
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; perspective: 1000px; }
.qcard {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.7rem 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.qcard.is-tilting { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sec) 40%, var(--border)); }
.qcard__no { position: absolute; top: 1.1rem; right: 1.3rem; color: var(--ink-faint); font-size: var(--text-sm); }
.qcard__q { font-size: 1.16rem; color: var(--ink); line-height: 1.5; padding-right: 2rem; }
.qcard__reveal { margin-top: 1.2rem; }
.qcard__reveal summary {
  display: inline-flex; align-items: center; gap: 0.45em; cursor: pointer; list-style: none;
  color: var(--sec-strong); font-weight: 600; font-size: var(--text-sm);
  border: 1px solid var(--border-hi); border-radius: var(--r-sm); padding: 0.5em 1em; width: fit-content;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.qcard__reveal summary::-webkit-details-marker { display: none; }
.qcard__reveal summary::before { content: '?'; font-family: var(--font-mono); color: var(--sec); }
.qcard__reveal summary:hover { background: var(--surface-hi); border-color: var(--sec); }
.qcard__reveal[open] summary { color: var(--ink-muted); border-style: dashed; }
.qcard__reveal[open] summary::before { content: '✓'; }
.qcard__a { margin-top: 1rem; color: var(--ink-muted); line-height: 1.55; animation: fade-up var(--dur) var(--ease); }
.qcard__a strong { color: var(--sec-strong); }

/* ── §7 Steps (interactive: hover-lift) ──────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--sec); }
.step__no {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--sec); color: #fff; border-radius: var(--r-sm);
  font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem;
}
.step:hover .step__no { animation: pop 0.4s var(--spring); }
.step__title { font-size: 1.18rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-muted); font-size: var(--text-sm); }

/* ── §8 Pillars (interactive: hover-lift + icon bounce) ───── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sec); }
.pillar__ic { font-size: 1.8rem; display: block; margin-bottom: 0.8rem; transform-origin: 50% 80%; }
.pillar:hover .pillar__ic { animation: icon-bounce 0.7s var(--spring); }
.pillar__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-muted); }
@keyframes icon-bounce { 0%,100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-8px) rotate(-8deg); } 60% { transform: translateY(-2px) rotate(6deg); } }

/* ── §9 Event card (interactive: live countdown) ─────────── */
.event-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border-hi); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow);
}
.event-card__body { padding: clamp(1.8rem, 4vw, 3rem); }
.event-card__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0.4rem 0 1rem; }
.event-card__text { color: var(--ink-muted); margin-bottom: 1.4rem; max-width: 38ch; }
.countdown { display: flex; gap: 0.6rem; margin-bottom: 1.6rem; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 2px; background: color-mix(in srgb, var(--sec) 10%, var(--bg)); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.5rem 0.7rem; min-width: 58px; }
.countdown__num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--violet); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__lbl { font-size: var(--text-xs); color: var(--ink-faint); }
.countdown__done { font-weight: 600; color: var(--sec-strong); }
.event-card__facts { margin: 0; padding: clamp(1.8rem, 4vw, 3rem); background: color-mix(in srgb, var(--sec) 8%, var(--surface)); display: grid; gap: 1rem; align-content: center; }
.event-card__facts > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; }
.event-card__facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.event-card__facts dt { color: var(--ink-faint); font-size: var(--text-sm); }
.event-card__facts dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.event-card__facts dd.mono { color: var(--violet); }

/* ── §10 Forms ───────────────────────────────────────────── */
.signup__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); position: relative; box-shadow: var(--shadow-sm); }
.lead-form--wide { margin-top: 2rem; }
.lead-form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label, .consent { font-size: var(--text-sm); color: var(--ink-muted); }
.input {
  font-family: var(--font-body); font-size: var(--text-base); color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-hi); border-radius: var(--r-xs);
  padding: 0.75em 0.9em; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,184,166,0.22); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,0.18); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235F5985' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; padding-right: 2.4em; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.4rem 0 1.2rem; line-height: 1.4; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex-shrink: 0; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin-top: 0.9rem; font-size: var(--text-sm); min-height: 1.2em; color: var(--ink-faint); }
.form__success { display: none; margin-top: 1rem; padding: 1rem 1.2rem; background: rgba(19,122,56,0.1); border: 1px solid rgba(19,122,56,0.4); border-radius: var(--r-sm); color: var(--ink); }
.form__success strong { color: var(--success); }
.lead-form.is-sent .form__success { display: block; animation: fade-up var(--dur) var(--ease); }
.lead-form.is-sent .field, .lead-form.is-sent .consent, .lead-form.is-sent .form__submit { opacity: 0.45; pointer-events: none; }
.microcopy { font-size: var(--text-sm); color: var(--ink-faint); margin-top: 1rem; }
.microcopy a, .consent a { color: var(--ink-muted); text-decoration: underline; }

/* ── §11 Franchise (interactive: count-up numbers) ───────── */
.franchise { background: color-mix(in srgb, var(--sec) 9%, var(--bg)); }
.franchise__hero { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.anchors { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.anchors li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--sec); border-radius: var(--r-sm); padding: 0.9rem 1.2rem; box-shadow: var(--shadow-sm); }
.anchors .mono { font-size: 1.4rem; color: var(--violet); font-weight: 600; }
.anchors span:last-child { color: var(--ink-muted); font-size: var(--text-sm); }
.franchise__sub { font-size: 1.4rem; margin: 2.6rem 0 1.1rem; }
.franchise__sub--form { font-size: 1.2rem; margin-top: 0; margin-bottom: 1.2rem; }
.terms-line { color: var(--ink); font-size: var(--text-md); margin-bottom: 1.3rem; max-width: 64ch; padding: 1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); line-height: 1.55; box-shadow: var(--shadow-sm); }
.terms-line strong { color: var(--violet); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.econ { width: 100%; border-collapse: collapse; min-width: 520px; }
.econ th, .econ td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.econ thead th { background: var(--surface-hi); font-family: var(--font-display); font-size: var(--text-sm); color: var(--ink); font-weight: 600; }
.econ tbody th { font-weight: 500; color: var(--ink-muted); font-family: var(--font-body); }
.econ td.mono { color: var(--violet); }
.econ tbody tr:last-child th, .econ tbody tr:last-child td { border-bottom: 0; }
.econ tbody tr:last-child td { color: var(--success); font-weight: 600; }
.disclaimer { margin-top: 1rem; font-size: var(--text-sm); color: var(--ink-faint); font-style: italic; max-width: 62ch; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pack { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pack:hover { transform: translateY(-4px); border-color: var(--sec); }
.pack h4 { font-size: 1.08rem; margin-bottom: 0.5rem; color: var(--sec-strong); font-family: var(--font-display); }
.pack p { color: var(--ink-muted); font-size: var(--text-sm); }
.fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: center; }
.fit__yes { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.fit__yes li { padding-left: 1.8rem; position: relative; color: var(--ink); }
.fit__yes li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.fit__no { color: var(--ink-muted); background: var(--surface); border: 1px dashed var(--border-hi); border-radius: var(--r-md); padding: 1.2rem; }
.faq { display: grid; gap: 0.7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 1.3rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.8rem 1.1rem 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--sec-strong); font-size: 1.4rem; font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { color: var(--sec-strong); }
.faq details p { color: var(--ink-muted); padding-bottom: 1.2rem; line-height: 1.55; animation: fade-up var(--dur) var(--ease); }

/* ── §12 Hunt / reward ───────────────────────────────────── */
.hunt__inner { max-width: 640px; }
.reward { position: relative; margin-top: 2rem; background: var(--surface); border: 1px solid rgba(245,166,35,0.5); border-radius: var(--r-lg); padding: 2rem 1.8rem; overflow: hidden; box-shadow: var(--shadow); }
.reward h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.reward p { color: var(--ink-muted); }
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.promo__code { font-size: 1.4rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-text); background: color-mix(in srgb, var(--accent-2) 28%, var(--surface)); border: 1px dashed var(--accent-2); border-radius: var(--r-sm); padding: 0.5rem 1.1rem; }
.reward:not([hidden]) { animation: reward-in var(--dur-drama) var(--spring); }
.reward__confetti { position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(circle, var(--accent-2) 38%, transparent 40%),
  radial-gradient(circle, var(--accent) 38%, transparent 40%),
  radial-gradient(circle, var(--pink) 38%, transparent 40%),
  radial-gradient(circle, var(--violet) 38%, transparent 40%);
  background-size: 14px 14px, 11px 11px, 16px 16px, 12px 12px;
  background-position: 10% -10%, 30% -20%, 70% -15%, 90% -10%;
  background-repeat: no-repeat; opacity: 0; }
.reward:not([hidden]) .reward__confetti { animation: confetti-fall 1.1s var(--ease) forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(-20px); } 100% { opacity: 0; transform: translateY(120px); } }
@keyframes reward-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ── §13 Contacts (interactive: magnetic hover) ──────────── */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.channel {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.5rem 1rem; color: var(--ink); font-weight: 600; font-family: inherit; font-size: var(--text-base);
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.channel:hover { transform: translateY(-4px) scale(1.02); border-color: var(--sec); background: var(--surface-hi); text-decoration: none; }
.channel span { overflow-wrap: break-word; max-width: 100%; line-height: 1.3; font-size: var(--text-sm); }
.channel svg { width: 28px; height: 28px; color: var(--sec-strong); flex-shrink: 0; }
.contact__note { margin-top: 1.4rem; color: var(--ink-faint); font-size: var(--text-sm); }

/* ── §14 Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--surface); }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer__nav a { color: var(--ink-muted); font-size: var(--text-sm); display: inline-flex; align-items: center; min-height: 24px; }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: var(--text-xs); }

/* ── §15 Mascots (easter-egg) ────────────────────────────── */
.mascot { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; display: inline-grid; place-items: center; border-radius: var(--r-pill); transition: transform var(--dur-fast) var(--ease); }
.mascot__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mascot--logo { width: 20px; height: 40px; margin-left: 5px; }
.mascot--hero { position: absolute; width: 36px; height: 70px; right: 3%; bottom: 4%; }
.mascot--logic { position: absolute; width: 26px; height: 52px; right: -8px; bottom: -16px; }
.mascot--franchise { position: absolute; width: 30px; height: 58px; right: 0; top: -10px; }
.mascot--footer { width: 20px; height: 40px; }
.mascot:hover, .mascot.is-hovering { transform: rotate(-8deg) scale(1.12); }
.mascot.is-found { transform: scale(1.05); }
.mascot.is-found::after {
  content: '✓'; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  background: var(--success); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; animation: pop 0.4s var(--spring);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── §16 HUD ─────────────────────────────────────────────── */
.hud {
  position: fixed; bottom: 14px; right: 14px; z-index: 150;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--border-hi); border-radius: var(--r-pill);
  padding: 0.45rem 0.9rem; font-size: var(--text-sm); color: var(--ink-muted);
  box-shadow: var(--shadow); animation: fade-up var(--dur) var(--ease);
}
.hud__ic { width: 16px; height: 16px; color: var(--violet); }
.hud .mono { color: var(--violet); font-weight: 600; }
.hud.is-complete { border-color: var(--accent-2); color: var(--ink); }

/* ── §17 Reveal / motion ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── §17b Mini-quiz (interactive: playable MCQ) ──────────── */
.quiz { background: var(--surface); border: 1px solid var(--border-hi); border-radius: var(--r-xl); padding: clamp(1.4rem, 3.5vw, 2.4rem); max-width: 720px; box-shadow: var(--shadow); }
.quiz__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.quiz__progress { color: var(--sec-strong); font-size: var(--text-sm); }
.quiz__score { color: var(--violet); font-size: var(--text-sm); }
.quiz__q { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.28; margin-bottom: 1.3rem; }
.quiz__opts { display: grid; gap: 0.7rem; }
.quiz__opt { text-align: left; font-family: var(--font-body); font-size: var(--text-base); color: var(--ink); background: var(--bg); border: 1px solid var(--border-hi); border-radius: var(--r-sm); padding: 0.85rem 1.1rem; cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.quiz__opt:hover:not(:disabled) { border-color: var(--sec); transform: translateX(3px); }
.quiz__opt:disabled { cursor: default; }
.quiz__opt.is-correct { border-color: var(--success); background: rgba(19,122,56,0.12); }
.quiz__opt.is-correct::after { content: ' ✓'; color: var(--success); font-weight: 700; }
.quiz__opt.is-wrong { border-color: var(--error); background: rgba(220,38,38,0.1); }
.quiz__opt.is-wrong::after { content: ' ✕'; color: var(--error); }
.quiz__fact { margin-top: 1.1rem; padding: 1rem 1.2rem; background: var(--surface-hi); border-radius: var(--r-md); color: var(--ink-muted); line-height: 1.55; animation: fade-up var(--dur) var(--ease); }
.quiz__fact strong { color: var(--sec-strong); }
.quiz__next { margin-top: 1.2rem; }
.quiz__result { text-align: center; padding: 1rem 0; animation: fade-up var(--dur) var(--ease); }
.quiz__result-score { font-size: clamp(2.4rem, 7vw, 3.4rem); color: var(--violet); font-weight: 600; }
.quiz__result-msg { color: var(--ink); font-size: var(--text-md); margin: 0.6rem auto 1.4rem; max-width: 36ch; }
.quiz__result-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.quiz-fallback { color: var(--ink-muted); display: grid; gap: 0.5rem; max-width: 640px; }

/* ── §17c Find-toast + found-pop ──────────────────────────── */
.bf-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 16px); background: var(--surface); color: var(--ink); border: 1px solid var(--sec); border-radius: var(--r-pill); padding: 0.7rem 1.3rem; font-weight: 600; font-size: var(--text-base); box-shadow: var(--shadow); z-index: 200; opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring); }
.bf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bf-toast.is-complete { border-color: var(--accent-2); color: var(--gold-text); }
@keyframes found-pop { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(1.45) rotate(-16deg); } 55% { transform: scale(1.2) rotate(12deg); } 100% { transform: scale(1.05) rotate(0); } }
.mascot.is-just-found { animation: found-pop 0.8s var(--spring); }
.note-link { color: var(--accent-strong); text-decoration: underline; font-weight: 600; }

/* ── §17d Deer scenes (big emblems per section) ───────────── */
.section__head--scene { max-width: none; display: grid; grid-template-columns: 1.5fr 0.82fr; gap: 2rem; align-items: center; }
.section__head--scene-left { grid-template-columns: 0.82fr 1.5fr; }
.deer-scene { position: relative; justify-self: center; width: min(260px, 72%); animation: deer-bob 5.5s var(--ease) infinite; }
.deer-scene__img { width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 16px 28px rgba(40,28,80,0.22)); }
.deer-scene__img--flip { transform: scaleX(-1); }
.deer-scene__glow { position: absolute; inset: 12%; border-radius: 50%; filter: blur(38px); z-index: 0; background: color-mix(in srgb, var(--sec) 34%, transparent); }
.deer-scene--teal { --sec: #14B8A6; }
.deer-scene--violet { --sec: #6C2BD9; }
.deer-scene--yellow { --sec: #F5A623; }
.deer-scene--center { justify-self: center; margin: 0 auto 2.4rem; }
.deer-bubble { position: absolute; top: -6%; right: -4%; z-index: 2; background: var(--surface); color: var(--ink); border: 1px solid var(--border-hi); border-radius: 14px 14px 14px 3px; padding: 0.5rem 0.85rem; font-size: var(--text-sm); font-weight: 600; line-height: 1.2; box-shadow: var(--shadow); }
.deer-bubble--right { left: -4%; right: auto; border-radius: 14px 14px 3px 14px; }
@keyframes deer-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── §17e Section FX canvas + find-pop + reward-pop ──────── */
.sec-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.section > .container { position: relative; z-index: 1; }

.find-pop {
  position: fixed; z-index: 250; transform: translate(-50%, -120%) scale(0.8);
  background: var(--ink); color: #fff; font-weight: 600; font-size: var(--text-sm);
  padding: 0.35rem 0.7rem; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease), transform 260ms var(--spring);
}
.find-pop.is-on { opacity: 1; transform: translate(-50%, -135%) scale(1); }

.reward-pop {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%) translateY(-14px) scale(0.96);
  z-index: 250; width: min(430px, calc(100vw - 28px));
  background: var(--surface); border: 2px solid var(--accent-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 1.1rem 2.2rem 1.1rem 1.3rem; display: grid; gap: 0.35rem;
  opacity: 0; overflow: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur-drama) var(--spring),
              left var(--dur-drama) var(--ease), top var(--dur-drama) var(--ease),
              width var(--dur-drama) var(--ease), padding var(--dur-drama) var(--ease);
}
.reward-pop.is-on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.reward-pop strong { font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; }
.reward-pop span { color: var(--ink-muted); font-size: var(--text-sm); }
.reward-pop code { color: var(--gold-text); font-weight: 700; letter-spacing: 0.04em; }
.reward-pop b { color: var(--violet); }
.reward-pop__x { position: absolute; top: 3px; right: 9px; background: none; border: 0; font-size: 1.35rem; line-height: 1; color: var(--ink-faint); cursor: pointer; }
.reward-pop.is-parked { left: 14px; top: calc(100vh - 58px); transform: none; width: auto; max-width: 240px; padding: 0.55rem 0.95rem; border-width: 1px; cursor: pointer; box-shadow: var(--shadow-sm); }
.reward-pop.is-parked > span, .reward-pop.is-parked .reward-pop__x { display: none; }
.reward-pop.is-parked strong { font-size: var(--text-sm); }
.reward-pop.is-parked strong::before { content: '🎁 '; }

/* ── §17f Venue (Draft) + map ────────────────────────────── */
.venue { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); margin-top: 1.4rem; align-items: stretch; }
.venue__info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.venue__name { font-size: clamp(1.4rem, 3vw, 1.9rem); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.venue__badge { font-size: var(--text-sm); font-weight: 600; color: var(--gold-text); background: color-mix(in srgb, var(--accent-2) 28%, var(--surface)); border: 1px solid var(--accent-2); border-radius: var(--r-pill); padding: 0.2rem 0.7rem; }
.venue__addr { color: var(--ink); font-weight: 600; margin-top: 0.5rem; }
.venue__desc { color: var(--ink-muted); margin-top: 0.6rem; }
.venue__hours { margin: 1rem 0 0; display: grid; gap: 0.4rem; }
.venue__hours > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; max-width: 320px; }
.venue__hours dt { color: var(--ink-faint); font-size: var(--text-sm); }
.venue__hours dd { margin: 0; color: var(--ink); font-weight: 600; font-size: var(--text-sm); }
.venue__links { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: auto; padding-top: 1.3rem; }
.venue__social { color: var(--sec-strong); font-weight: 600; font-size: var(--text-sm); border: 1px solid var(--border-hi); border-radius: var(--r-pill); padding: 0.45rem 0.9rem; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.venue__social:hover { border-color: var(--sec); background: var(--surface-hi); text-decoration: none; transform: translateY(-2px); }
.venue__map { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-hi); box-shadow: var(--shadow-sm); min-height: 330px; background: var(--surface-hi); }
.venue__map .ymap-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ymap-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-strong); font-weight: 600; }

/* ── §18 Responsive ──────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__duo { width: min(280px, 70%); }
  .mascot--hero { position: static; margin: 0.5rem auto 0; }
  .event-card { grid-template-columns: 1fr; }
  .signup__grid { grid-template-columns: 1fr; }
  .franchise__hero { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .lead-form__cols { grid-template-columns: 1fr; }
  .section__head--scene, .section__head--scene-left { grid-template-columns: 1fr; }
  .section__head--scene-left .deer-scene { order: 2; }
  .deer-scene { width: min(200px, 60%); margin-top: 0.5rem; }
  .venue { grid-template-columns: 1fr; }
  .venue__map { min-height: 260px; }
}
@media (max-width: 460px) {
  .site-header__cta { display: none; }
  .hero__cta .btn { width: 100%; }
}

/* ── §19 Reduced motion (automatic — follows the OS setting) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .blob { display: none; }
}

/* no-JS: ensure reveal content is visible */
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .hud { display: none; }
