/* ============================================================
   Квиз «AI-мультивселенная TeachMeSkills» — стили
   База: дизайн-токены TMS. Поверх — акцентные «скины» 4 миров.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }

/* ---------- Токены TMS ---------- */
:root {
  --tms-yellow: #FFDA17;
  --tms-coral:  #F95D51;
  --ink:        #0B0B0B;
  --ink-soft:   #3a3a3a;
  --paper:      #FFFFFF;
  --line:       #ECEAE2;

  --radius:  14px;
  --radius-lg: 22px;
  --step: 10px;                 /* базовая сетка */
  --maxw: 700px;

  /* Мировые переменные (меняются классом body.world-*) */
  --u-accent: var(--tms-yellow);
  --u-glow:   #FFC400;
  --u-ink:    var(--ink);
  --atmo-a:   #FFFDF5;
  --atmo-b:   #FFF3C9;

  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Скины миров (акцент + атмосфера квиза, читаемо-светлые) ---------- */
body.world-stranger { --u-accent:#E8232B; --u-glow:#FF2D2D; --atmo-a:#FCEDEF; --atmo-b:#F2D3D8; }
body.world-forsazh  { --u-accent:#FF7A00; --u-glow:#FFB300; --atmo-a:#FFF3E6; --atmo-b:#FFDFC2; }
body.world-marvel   { --u-accent:#FFDA17; --u-glow:#E23636; --atmo-a:#FFFDF0; --atmo-b:#FFF1BE; }
body.world-starwars { --u-accent:#3F7BFF; --u-glow:#4FC3F7; --atmo-a:#EEF3FB; --atmo-b:#D9E5F6; }

/* ---------- Каркас ---------- */
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--atmo-b) 0%, var(--atmo-a) 55%, var(--paper) 100%);
  transition: background 700ms ease;
}
#atmosphere::after { /* лёгкая текстура-точки (халфтон), проявляется в мирах */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--u-glow);
  opacity: .06;
  transition: opacity 700ms ease, color 700ms ease;
}

/* ---------- Хедер / футер ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px; max-width: 1120px; width: 100%; margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand__logo { height: 22px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin: 0 auto; }
.nav a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; opacity: .82; transition: color .15s ease, opacity .15s ease; }
.nav a:hover { opacity: 1; color: var(--tms-coral); }
.header__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.sound-toggle { font-size: 16px; line-height: 1; padding: 7px 9px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; }
.sound-toggle:hover { border-color: var(--ink); }
.header__phone { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.header__phone:hover { color: var(--tms-coral); }

/* ---------- Полоса фактов ---------- */
.trustbar { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); }
.trustbar__inner { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.trustbar__item { display: inline-flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.15; }
.trustbar__item b { font-size: 22px; font-weight: 800; color: var(--ink); }
.trustbar__item small { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; }

.site-footer { margin-top: 0; background: #0f0f14; color: #cfcfd6; padding: 44px 24px 22px; }
.footer__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand { max-width: 340px; }
.footer__logo { height: 22px; width: auto; margin-bottom: 12px; }
.footer__note { font-size: 13px; line-height: 1.55; color: #9a9aa6; }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__h { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .6px; }
.footer__col a { font-size: 14px; color: #cfcfd6; text-decoration: none; }
.footer__col a:hover { color: var(--tms-yellow); }
.footer__bottom { max-width: 1120px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #7a7a86; }

/* ---------- Сцена ---------- */
#app { flex: 1; padding: calc(var(--step)*2); display: flex; flex-direction: column; justify-content: center; align-items: center; }
#stage { width: 100%; max-width: var(--maxw); margin: 0 auto; min-width: 0; }

.screen { animation: rise 420ms cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Кнопки TMS (без теней) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  background: var(--tms-yellow); color: #000; font-weight: 600; font-size: 16px;
  border: 2px solid transparent; transition: transform .12s ease, border-color .15s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); border-color: #000; }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--u-accent); color: #fff; }
.btn--accent:hover { border-color: #000; }
.btn--ghost { background: transparent; border-color: #000; color: var(--ink); font-weight: 600; }
.btn--ghost:hover { background: #000; color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
.link-quiet {
  background: none; border: 0; color: var(--ink-soft); font-size: 13px; text-decoration: underline;
  text-underline-offset: 3px; padding: 6px;
}
.link-quiet:hover { color: var(--ink); }

/* ---------- Маскот-гид + облачко ---------- */
.guide { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 22px; }
.guide--center { margin-bottom: 14px; }
.mascot { width: 150px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.14)); animation: float 4s ease-in-out infinite; }
.mascot--sm { width: 86px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.bubble {
  position: relative; max-width: 22em; text-align: left;
  background: #fff; border: 2px solid var(--ink); border-radius: 16px;
  padding: 14px 16px; font-size: 15px; font-weight: 500;
}

/* ---------- Интро ---------- */
.intro { text-align: center; padding: calc(var(--step)*2) 0; }
.intro__kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: #000; background: var(--tms-yellow); padding: 6px 12px; border-radius: 8px; margin-bottom: 18px;
}
.intro__title { font-size: clamp(30px, 6vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.intro__title em { font-style: normal; color: var(--u-accent); }
.intro__lead { font-size: 17px; color: var(--ink-soft); max-width: 30em; margin: 18px auto 8px; }
.world-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 28px; }
.wtile {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 3px solid #0a0a0a; box-shadow: 3px 3px 0 rgba(10,10,10,.8);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.wtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.74)); }
.wtile__name { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 13px; padding: 10px; line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.intro__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.intro__meta { font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   ОНБОРДИНГ-ФЛИПБУК (перелистываемый комикс + звук)
   ============================================================ */
.ob { text-align: center; padding: 4px 0 8px; }
.ob__book { position: relative; width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 5 / 6; perspective: 2600px; cursor: pointer; }
.obpage {
  position: absolute; inset: 0; transform-origin: left center;
  transition: transform .72s cubic-bezier(.34,.06,.2,1);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 4px solid #0a0a0a; border-radius: 14px; overflow: hidden;
  box-shadow: 8px 8px 0 rgba(10,10,10,.7);
  background-size: cover; background-position: center; background-color: #14141a;
  display: flex; flex-direction: column;
}
.obpage.is-turned { transform: rotateY(-172deg); }
.obpage::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,7,12,.30) 0%, rgba(6,7,12,.64) 58%, rgba(6,7,12,.86) 100%); }
.obpage__c { position: relative; z-index: 1; padding: 22px 20px; display: flex; flex-direction: column; height: 100%; align-items: center; }
.obcap {
  background: var(--tms-yellow); color: #0a0a0a; border: 3px solid #0a0a0a; border-radius: 14px;
  padding: 14px 16px; font-weight: 700; font-size: clamp(16px, 3.6vw, 20px); line-height: 1.22;
  box-shadow: 4px 4px 0 rgba(10,10,10,.8); max-width: 94%; margin-top: 8px;
}
.obpage__num { position: absolute; z-index: 1; right: 12px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.ob-cover-logo { height: 22px; margin: 4px auto 0; }
.ob-title { color: #fff; font-size: clamp(27px, 6.4vw, 42px); font-weight: 800; line-height: 1.04; margin-top: auto; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.ob-title em { font-style: normal; color: var(--tms-yellow); }
.ob-sub { color: #f0f0f0; font-weight: 600; margin-top: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ob-mascot { width: 120px; margin: 16px auto 0; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.ob-swipe { color: #fff; font-weight: 700; margin-top: auto; margin-bottom: 2px; opacity: .92; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.obpage.cta .obcap { margin-top: auto; }
.ob-start { margin: 16px auto 4px; }
.ob__ctrls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.ob__dots { display: flex; gap: 7px; }
.ob__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s ease; }
.ob__dot.on { background: var(--u-accent, var(--tms-yellow)); }
.ob__hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }
.ob__hint button { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.ob__hint button:hover { color: var(--ink); }

/* ---------- Прогресс-стрип (кадры) ---------- */
.progress { margin: 6px 0 22px; }
.progress__frames { display: flex; gap: 5px; }
.frame {
  flex: 1; height: 8px; border-radius: 4px; background: var(--line);
  transition: background .3s ease;
}
.frame.is-done { background: var(--u-accent); }
.frame.is-current { background: var(--u-glow); }
.progress__label { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.progress__teaser { font-weight: 600; color: var(--u-accent); }

/* ============================================================
   КОМИКС-ПАНЕЛЬ ВОПРОСА (сцена + герой вселенной + реплики)
   ============================================================ */
.qc { position: relative; }
.qc__panel {
  position: relative; overflow: hidden;
  border: 4px solid #0a0a0a; border-radius: 20px;
  box-shadow: 8px 8px 0 rgba(10,10,10,.85);
  min-height: 540px; display: flex; flex-direction: column;
  background-color: #14141a;
}
/* Сцена мира на фоне панели */
.qc__scene {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.qc__scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0,0,0,.15), transparent 60%),
    linear-gradient(180deg, rgba(8,8,12,.32) 0%, rgba(8,8,12,.72) 62%, rgba(8,8,12,.92) 100%);
}
/* халфтон поверх сцены — «комикс» */
.qc__scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(0,0,0,.55) 1px, transparent 1.6px);
  background-size: 8px 8px; opacity: .12;
}
.qc__inner { position: relative; z-index: 2; padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

/* Прогресс — комикс-кадры */
.qc .progress__label { color: #e9e9ef; }
.qc .frame { background: rgba(255,255,255,.28); }
.qc .frame.is-done { background: var(--u-accent); }
.qc .frame.is-current { background: #fff; }
.qc .progress__teaser { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* Caption-box: комикс-плашка с вопросом */
.qc__caption {
  align-self: flex-start; max-width: 92%;
  background: var(--tms-yellow); color: #0a0a0a;
  border: 3px solid #0a0a0a; border-radius: 14px;
  padding: 12px 16px; margin: 8px 0 4px;
  box-shadow: 4px 4px 0 rgba(10,10,10,.8);
}
.qc__cine { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; }
.qc__cine::before { content: "🎬"; }
.qc__title { font-size: clamp(20px, 4vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.qc__subtitle { color: rgba(10,10,10,.72); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* Опции — комикс-кнопки (читаемы на любой сцене) */
.qc__options { display: grid; gap: 10px; margin-top: 14px; max-width: 560px; }
.copt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 13px 16px; border-radius: 13px;
  background: #fff; border: 3px solid #0a0a0a; color: #0a0a0a;
  font-weight: 600; font-size: 15px;
  box-shadow: 3px 3px 0 rgba(10,10,10,.8);
  transition: transform .1s ease, background .15s ease, box-shadow .1s ease;
}
.copt:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(10,10,10,.85); background: #FFFDF0; }
.copt:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(10,10,10,.8); }
.copt.is-selected { background: var(--u-accent); color: #fff; }
.copt__tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #0a0a0a;
  display: grid; place-items: center; font-size: 13px; color: transparent; background: #fff; }
.copt.is-selected .copt__tick { color: var(--u-accent); }

/* Герой вселенной + его реплика */
.qc__stage-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; }
.qc__hero { width: 120px; height: auto; flex: 0 0 auto; align-self: flex-end;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); animation: float 4.5s ease-in-out infinite; }
.qc__herobubble {
  position: relative; background: #fff; color: #0a0a0a; border: 3px solid #0a0a0a; border-radius: 14px;
  padding: 10px 13px; font-weight: 600; font-size: 13px; max-width: 60%; align-self: center;
  box-shadow: 3px 3px 0 rgba(10,10,10,.8);
}
.qc__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qc__nav .link-quiet { color: #eaeaf0; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.qc__nav .btn { box-shadow: 3px 3px 0 rgba(10,10,10,.8); }

@media (max-width: 560px) {
  .qc__panel { min-height: 480px; }
  .qc__hero { width: 86px; }
  .qc__herobubble { max-width: 70%; font-size: 12px; }
}

/* ---------- Карточка вопроса (старая, простая) ---------- */
.q { }
.q__cine { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--u-accent); margin-bottom: 10px; }
.q__cine::before { content: "🎬"; }
.q__title { font-size: clamp(23px, 4.5vw, 32px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.q__subtitle { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }

.options { display: grid; gap: 12px; margin-top: 24px; }
.option {
  display: flex; align-items: center; gap: 14px; text-align: left;
  width: 100%; padding: 18px 20px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86); border: 2px solid var(--line);
  transition: border-color .15s ease, transform .12s ease, background .2s ease;
  backdrop-filter: blur(2px);
}
.option:hover { border-color: var(--u-accent); transform: translateY(-2px); }
.option.is-selected { border-color: #000; background: #fff; }
.option__tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  border: 2px solid var(--line); display: grid; place-items: center; font-size: 15px; color: transparent;
}
.option.is-selected .option__tick { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.option__label { font-size: 16px; font-weight: 500; }
.multi-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }

.q__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }

/* ---------- Оверлей «все курсы» ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(10,10,14,.55);
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px);
}
.overlay__panel {
  background: #fff; border-radius: var(--radius-lg); max-width: 760px; width: 100%;
  max-height: 86vh; overflow: auto; padding: 26px;
}
.overlay__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.overlay__title { font-size: 22px; font-weight: 800; }
.course-list { display: grid; gap: 10px; }
.course-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s ease;
}
.course-row:hover { border-color: var(--u-accent); }
.course-row__t { font-weight: 600; }
.course-row__m { font-size: 13px; color: var(--ink-soft); }

/* ---------- «Что мы про тебя поняли» (польза до оффера) ---------- */
.insight {
  text-align: left; background: #fff; border: 3px solid #0a0a0a; border-radius: 20px;
  padding: 22px 22px 18px; margin: 6px 0 22px; box-shadow: 5px 5px 0 rgba(10,10,10,.8);
}
.insight__head { display: flex; align-items: center; gap: 12px; }
.insight__det { width: 92px; height: auto; flex: 0 0 auto; margin: -6px 0 -6px -6px; }
.insight__h { font-size: clamp(19px, 3.4vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.insight__target { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 84px; height: auto; pointer-events: none; mix-blend-mode: multiply; }
.insight__facts { display: grid; gap: 12px; margin: 14px 0 18px; }
.ifact { display: grid; gap: 6px; opacity: 0; animation: riseIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
.ifact__k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-soft); }
.ifact__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipv {
  font-size: 13px; font-weight: 600; line-height: 1.2;
  padding: 7px 12px; border-radius: 999px;
  background: #F6F5F0; border: 1.5px solid var(--line); color: var(--ink);
}
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.insight__list li { opacity: 0; animation: riseIn .5s cubic-bezier(.2,.7,.2,1) forwards; }
.insight__why { position: relative; background: #FFFBEA; border: 2px solid var(--tms-yellow); border-radius: 14px; padding: 14px 100px 14px 16px; }
.insight__wh { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.insight__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.insight__list li { font-size: 14px; line-height: 1.45; }
.insight__bridge { text-align: center; margin-top: 16px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }

/* ---------- Результат: герой-карта ---------- */
.result { text-align: center; }
.result__reveal { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }
.hero-card {
  margin: 16px 0 8px; border-radius: 26px; padding: 34px 28px;
  color: var(--card-ink, #fff);
  background-color: var(--card-bg, #0B0B12);
  background-image:
    radial-gradient(130% 120% at 50% -8%, color-mix(in srgb, var(--card-glow, #FFC400) 38%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(4,5,10,.34) 0%, rgba(4,5,10,.82) 80%),
    var(--card-photo, linear-gradient(0deg, transparent, transparent));
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 2px solid color-mix(in srgb, var(--card-accent, var(--tms-yellow)) 60%, transparent);
  position: relative; overflow: hidden;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card__char { position: absolute; right: -6px; bottom: -6px; width: 130px; height: auto; z-index: 0; opacity: .96; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); pointer-events: none; }
@media (max-width: 560px) { .hero-card__char { width: 92px; right: -4px; bottom: -4px; opacity: .85; } }
/* Marvel — комикс-халфтон вместо фото */
.stage--marvel .hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(currentColor 1.5px, transparent 2px);
  background-size: 14px 14px; color: var(--card-glow); opacity: .16;
}
.hero-card__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: var(--card-accent, var(--tms-yellow)); color: #000;
}
.hero-card__world { margin-top: 14px; font-size: 13px; opacity: .85; }
.hero-card__course { font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.08; margin-top: 6px; letter-spacing: -.01em; }
.hero-card__hero { font-size: 17px; margin: 14px auto 0; max-width: 30em; opacity: .95; }
.hero-card__facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.fact { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--card-ink,#fff) 12%, transparent); }
.hero-card__cta { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
/* Призрачная кнопка внутри тёмной герой-карты — светлая, читаемая */
.hero-card .btn--ghost { color: var(--card-ink, #fff); border-color: color-mix(in srgb, var(--card-ink, #fff) 45%, transparent); background: transparent; }
.hero-card .btn--ghost:hover { background: var(--card-ink, #fff); color: var(--card-bg, #000); border-color: var(--card-ink, #fff); }

/* ---------- Альтернативы ---------- */
.alts { margin-top: 26px; text-align: left; }
.alts__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; text-align: center; color: var(--ink-soft); }
.alt-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.altcard {
  position: relative; overflow: hidden; min-height: 150px;
  border: 3px solid #0a0a0a; border-radius: 16px; box-shadow: 4px 4px 0 rgba(10,10,10,.8);
  background-size: cover; background-position: center; background-color: #14141a;
  display: flex; align-items: flex-end; text-decoration: none; color: #fff;
  opacity: 0; animation: riseIn .5s cubic-bezier(.2,.7,.2,1) forwards;
  transition: transform .12s ease, box-shadow .12s ease;
}
.altcard:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(10,10,10,.85); }
.altcard::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,7,12,.22) 0%, rgba(6,7,12,.86) 78%); }
.altcard__body { position: relative; z-index: 1; padding: 14px 16px; width: 100%; }
.altcard__badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; background: #fff; color: var(--a); padding: 4px 9px; border-radius: 6px; }
.altcard__t { display: block; font-weight: 800; font-size: 16px; margin-top: 9px; line-height: 1.15; }
.altcard__m { display: block; font-size: 12px; opacity: .85; margin-top: 4px; }
.altcard__go { display: inline-block; font-size: 12px; font-weight: 800; color: var(--a); margin-top: 9px; }
@media (max-width: 560px) { .alt-grid { grid-template-columns: 1fr; } }
.alt-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: rgba(255,255,255,.86); text-decoration: none; transition: border-color .15s ease, transform .12s ease;
}
.alt-card:hover { border-color: var(--u-accent); transform: translateY(-2px); }
.alt-card__t { font-weight: 700; }
.alt-card__d { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.alt-card__go { font-size: 13px; font-weight: 700; color: var(--u-accent); white-space: nowrap; }

/* ---------- Форма лида ---------- */
.lead {
  margin-top: 26px; padding: 24px; border-radius: var(--radius-lg);
  background: #fff; border: 2px solid var(--line); text-align: left;
}
.lead__title { font-size: 20px; font-weight: 800; }
.lead__sub { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
  padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line); font: inherit; background: #fff;
}
.field input:focus { outline: none; border-color: var(--u-accent); }
.field select { padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line); font: inherit; background: #fff; }
.field select:focus { outline: none; border-color: var(--u-accent); }
.field__hint { font-size: 12px; color: var(--ink-soft); }
.segmented { display: inline-flex; gap: 6px; padding: 4px; background: #F4F3EE; border-radius: 12px; margin-bottom: 4px; }
.seg { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.seg.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.lead__legal { font-size: 11px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }

/* CTA лид-магнита (гайд твоей вселенной) */
.guidecta {
  margin-top: 26px; text-align: center; background: #fff;
  border: 3px solid #0a0a0a; border-radius: 20px; padding: 22px 20px;
  box-shadow: 5px 5px 0 rgba(10,10,10,.8);
}
.guidecta__badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; background: var(--tms-yellow); color: #0a0a0a; padding: 6px 12px; border-radius: 8px; }
.guidecta__title { font-size: clamp(17px, 3.2vw, 21px); font-weight: 800; margin-top: 12px; line-height: 1.2; }
.guidecta__sub { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.guidecta .btn { margin-top: 16px; }

.hp { position: absolute; left: -9999px; }
.lead__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.thanks { text-align: center; padding: 30px 10px; }
.thanks__emoji { font-size: 40px; }
.field[hidden] { display: none; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.promo-toggle { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.promo-toggle input { width: 18px; height: 18px; accent-color: var(--u-accent); cursor: pointer; }
.form-error { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: #C0392B; background: #FDE9E7; border-radius: 10px; padding: 10px 12px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.thanks__actions .btn { text-decoration: none; }
.thanks__hint { margin-top: 12px; font-size: 13px; opacity: .7; }

.result__all { margin-top: 22px; }

/* ---------- Полный «скин» мира на результате ---------- */
.stage--stranger { --card-bg:#0B0B12; --card-ink:#F3F0EA; --card-accent:#E8232B; --card-glow:#FF2D2D; --card-photo:url('assets/worlds/stranger.jpg'); }
.stage--forsazh  { --card-bg:#12100C; --card-ink:#F5F1E9; --card-accent:#FF7A00; --card-glow:#FFB300; --card-photo:url('assets/worlds/forsazh.jpg'); }
.stage--marvel   { --card-bg:#141416; --card-ink:#FDFBF4; --card-accent:#FFDA17; --card-glow:#E23636; }
.stage--starwars { --card-bg:#05060B; --card-ink:#EDEFF5; --card-accent:#FFE81F; --card-glow:#4FC3F7; --card-photo:url('assets/worlds/starwars.jpg'); }

/* ---------- Адаптив ---------- */
@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .header__tag { display: none; }
  #app { padding: 14px; align-items: stretch; }
  .option { padding: 16px; }
  .hero-card { padding: 26px 18px; }
  .intro__title { font-size: 27px; }
  .intro__lead { font-size: 15px; }
  .insight__det { width: 66px; }
  .insight__why { padding-right: 16px; }
  .insight__target { position: static; transform: none; display: block; width: 60px; margin: 0 0 4px auto; }
  .ifact__k { min-width: 100px; }
  .world-tiles { grid-template-columns: repeat(2, 1fr); }
  .chip { font-size: 12px; padding: 7px 11px; }
  .q__title { font-size: 22px; }
  .hero-card__course { font-size: 25px; }
  .guide { flex-direction: column; gap: 6px; }
  .bubble { max-width: 88vw; }
  .mascot { width: 116px; }
  .bubble { text-align: center; }
}

/* ---------- Адаптив шапки/футера ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
  .header__phone { display: none; }
  .site-header { padding: 12px 16px; }
}

/* ---------- Комикс-всплеск «ХОП!» на действии ---------- */
.pop-burst {
  position: fixed; z-index: 60; transform: translate(-50%, -50%);
  font-family: var(--font); font-weight: 800; font-size: 32px; line-height: 1; white-space: nowrap;
  color: var(--tms-yellow); -webkit-text-stroke: 3px #0a0a0a;
  paint-order: stroke fill; pointer-events: none;
  animation: pop 0.9s cubic-bezier(.2,.8,.2,1) forwards;
  text-shadow: 3px 3px 0 rgba(10,10,10,.35);
}
@keyframes pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-14deg); }
  22%  { opacity: 1; transform: translate(-50%, -62%) scale(1.18) rotate(-8deg); }
  70%  { opacity: 1; transform: translate(-50%, -82%) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(-50%, -112%) scale(.95) rotate(-4deg); }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
