:root {
  --red-950: #5e0712;
  --red-900: #7c0b19;
  --red-800: #991126;
  --red-700: #b5152b;
  --red-600: #d31f36;
  --red-500: #eb3349;
  --red-100: #ffe9ed;
  --red-50: #fff5f7;
  --ink: #191b22;
  --muted: #6d7280;
  --line: #e8e8ed;
  --surface: #ffffff;
  --soft: #f7f7f9;
  --green: #188755;
  --green-soft: #eaf8f1;
  --shadow: 0 24px 70px rgba(68, 10, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: var(--container); margin: 0 auto; }

.emergency-bar {
  background: linear-gradient(90deg, var(--red-950), var(--red-700));
  color: #fff;
  font-size: 13px;
}
.emergency-inner { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; text-align: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.14); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230,230,235,.8);
}
.nav-wrap { height: 74px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.brand > span:last-child > span { color: var(--red-600); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--red-700), var(--red-500)); position: relative; box-shadow: 0 8px 18px rgba(205, 27, 49, .22); }
.cross-v, .cross-h { position: absolute; background: #fff; border-radius: 3px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cross-v { width: 8px; height: 22px; }
.cross-h { width: 22px; height: 8px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; color: #4f5360; transition: .2s ease; }
.main-nav a:hover { color: var(--red-700); }
.nav-cta { border: 0; color: white; font-weight: 700; padding: 12px 18px; border-radius: 999px; background: linear-gradient(135deg, var(--red-700), var(--red-500)); cursor: pointer; box-shadow: 0 8px 24px rgba(211,31,54,.2); }

.hero { position: relative; overflow: hidden; padding: 92px 0 88px; background: linear-gradient(180deg, #fff 0%, #fff8f9 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(193,31,53,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.8) 30%, transparent 100%); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; pointer-events: none; }
.hero-orb-one { width: 480px; height: 480px; background: radial-gradient(circle, rgba(237,62,83,.18), rgba(237,62,83,0)); right: -70px; top: -140px; }
.hero-orb-two { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,175,64,.12), rgba(255,175,64,0)); left: 18%; bottom: -170px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .72fr; align-items: center; gap: 72px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red-700); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { padding: 8px 12px; border-radius: 999px; background: var(--red-100); border: 1px solid #ffd5dc; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -0.055em; max-width: 760px; }
.hero h1 span { background: linear-gradient(135deg, var(--red-800), var(--red-500)); -webkit-background-clip: text; color: transparent; }
.hero-text { max-width: 680px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 20px; }
.btn { border: 0; border-radius: 14px; padding: 14px 19px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--red-800), var(--red-500)); box-shadow: 0 12px 28px rgba(202,24,47,.2); }
.btn-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(20,22,28,.05); }
.hero-note { display: flex; gap: 8px; align-items: flex-start; color: #7b6570; font-size: 13px; max-width: 610px; }

.hero-card { position: relative; background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.95); border-radius: 32px; padding: 30px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(211,31,54,.28), transparent 45%, rgba(211,31,54,.09)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; }
.mini-badge { font-size: 12px; font-weight: 800; color: var(--red-700); background: var(--red-50); padding: 7px 10px; border-radius: 999px; }
.status-pill { font-size: 12px; color: #53605a; display: inline-flex; gap: 6px; align-items: center; }
.status-pill span { width: 7px; height: 7px; background: #1ea567; border-radius: 50%; box-shadow: 0 0 0 4px rgba(30,165,103,.1); }
.big-score { font-weight: 800; font-size: 82px; line-height: 1; letter-spacing: -.06em; margin-top: 34px; color: var(--red-800); }
.hero-card > p { margin: 4px 0 28px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats-grid div { background: var(--soft); border-radius: 16px; padding: 14px 12px; }
.stats-grid strong { display: block; font-size: 20px; }
.stats-grid span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.mini-progress-block { margin-top: 24px; }
.mini-progress-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.mini-progress-head span { color: var(--muted); }
.mini-progress { height: 8px; border-radius: 999px; background: #f0e7e9; overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-800), var(--red-500)); transition: width .3s ease; }

.section { padding: 92px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 4vw, 50px); margin: 5px 0 8px; letter-spacing: -.045em; line-height: 1.05; }
.section-head p { color: var(--muted); margin: 0; max-width: 660px; }
.section-head.centered { display: block; text-align: center; max-width: 760px; margin: 0 auto 45px; }
.text-button { background: none; border: 0; color: var(--red-700); font-weight: 700; cursor: pointer; padding: 6px; }

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.theme-card { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.theme-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(230,45,67,.1), transparent 66%); }
.theme-card:hover { transform: translateY(-3px); border-color: #f1bbc4; box-shadow: 0 16px 42px rgba(89,21,32,.09); }
.theme-icon { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 25px; background: linear-gradient(145deg, #fff0f3, #ffe3e8); border: 1px solid #ffd9df; }
.theme-copy h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.02em; }
.theme-copy p { color: var(--muted); font-size: 13px; margin: 0; }
.theme-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.question-pill { font-size: 11px; font-weight: 800; color: var(--red-700); background: var(--red-50); padding: 6px 8px; border-radius: 999px; }
.best-pill { font-size: 11px; font-weight: 700; color: #52605b; }
.theme-arrow { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); font-size: 18px; transition: .2s ease; }
.theme-card:hover .theme-arrow { color: #fff; background: var(--red-700); transform: translateX(2px); }

.method-section { background: #fafafa; border-top: 1px solid #f0f0f2; border-bottom: 1px solid #f0f0f2; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.method-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; min-height: 240px; position: relative; overflow: hidden; }
.step-number { position: absolute; right: 18px; top: 10px; font-weight: 800; font-size: 52px; color: #f4ecee; letter-spacing: -.06em; }
.method-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); display: grid; place-items: center; font-size: 25px; margin-bottom: 34px; }
.method-card h3 { font-size: 20px; margin: 0 0 8px; }
.method-card p { color: var(--muted); margin: 0; font-size: 14px; }

.sources-section { padding-top: 88px; }
.sources-card { background: linear-gradient(135deg, #640914 0%, #a31125 56%, #d62b42 100%); border-radius: 32px; color: white; padding: 48px 54px; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; overflow: hidden; position: relative; box-shadow: 0 28px 80px rgba(99,9,20,.2); }
.sources-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -100px; top: -190px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); }
.section-kicker.light { color: #ffd6dc; }
.sources-copy h2 { margin: 8px 0 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -.045em; max-width: 720px; }
.sources-copy p { color: rgba(255,255,255,.8); max-width: 780px; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.source-links a { padding: 10px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 12px; font-weight: 700; }
.source-badge { width: 150px; height: 150px; border-radius: 34px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; transform: rotate(4deg); }
.source-badge span { font-size: 13px; letter-spacing: .2em; font-weight: 800; }
.source-badge strong { font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.source-badge small { opacity: .75; }

.footer { padding: 44px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-brand { margin-bottom: 10px; }
.footer p { color: var(--muted); margin: 0; font-size: 13px; }
.footer-disclaimer { max-width: 560px; text-align: right; }

.quiz-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(28,13,17,.56); backdrop-filter: blur(11px); display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.quiz-overlay.open { opacity: 1; pointer-events: auto; }
.quiz-shell { width: min(890px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 30px; box-shadow: 0 34px 100px rgba(35,10,16,.34); transform: translateY(14px) scale(.985); transition: transform .2s ease; }
.quiz-overlay.open .quiz-shell { transform: translateY(0) scale(1); }
.quiz-topbar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); z-index: 4; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 25px; color: #686b74; }
.quiz-title-wrap { display: flex; align-items: center; gap: 11px; }
.quiz-title-wrap > span { width: 38px; height: 38px; border-radius: 12px; background: var(--red-50); display: grid; place-items: center; }
.quiz-title-wrap strong, .quiz-title-wrap small { display: block; }
.quiz-title-wrap small { color: var(--muted); font-size: 11px; margin-top: 1px; }
.quiz-score-live { font-size: 12px; color: var(--muted); }
.quiz-score-live strong { color: var(--red-700); font-size: 16px; margin-left: 4px; }
.quiz-progress-row { padding: 16px 28px 0; }
.quiz-progress-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.quiz-progress-track { height: 7px; border-radius: 999px; background: #f0e7e9; overflow: hidden; }
.quiz-progress-track span { display: block; width: 5%; height: 100%; background: linear-gradient(90deg, var(--red-800), var(--red-500)); transition: width .25s ease; }
.quiz-content { padding: 24px 28px 30px; }
.question-card h2 { font-size: clamp(25px, 3.5vw, 34px); line-height: 1.18; letter-spacing: -.035em; margin: 8px 0 24px; }
.answers { display: grid; gap: 11px; }
.answer-btn { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; cursor: pointer; transition: .16s ease; }
.answer-btn:hover:not(:disabled) { border-color: #e4aeb7; background: #fffafa; transform: translateX(2px); }
.answer-btn:disabled { cursor: default; }
.answer-letter { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); font-weight: 800; font-size: 12px; color: #656a74; }
.answer-btn.correct { border-color: #8fd2b0; background: var(--green-soft); }
.answer-btn.correct .answer-letter { background: var(--green); color: #fff; }
.answer-btn.wrong { border-color: #ef9baa; background: #fff0f3; }
.answer-btn.wrong .answer-letter { background: var(--red-600); color: #fff; }
.answer-marker { font-size: 17px; font-weight: 800; }
.feedback { display: none; margin-top: 17px; padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fafafa; font-size: 14px; }
.feedback.show { display: block; }
.feedback strong { display: block; margin-bottom: 4px; }
.feedback.correct strong { color: var(--green); }
.feedback.wrong strong { color: var(--red-700); }
.quiz-actions-row { margin-top: 20px; display: flex; justify-content: flex-end; }
.next-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.result-view { padding: 58px 30px 64px; text-align: center; }
.result-icon { width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; font-size: 38px; background: linear-gradient(145deg, #fff0f3, #ffe3e8); }
.result-view h2 { margin: 8px 0; font-size: 42px; letter-spacing: -.04em; }
.result-view > p { color: var(--muted); max-width: 570px; margin: 0 auto; }
.result-score { margin: 28px auto; display: inline-flex; align-items: baseline; gap: 13px; padding: 16px 22px; border-radius: 18px; background: var(--soft); }
.result-score strong { font-size: 31px; }
.result-score span { color: var(--red-700); font-weight: 800; }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: #1c1e24; color: white; border-radius: 999px; padding: 11px 16px; font-size: 12px; font-weight: 700; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

:focus-visible { outline: 3px solid rgba(211,31,54,.28); outline-offset: 3px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-wrap { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 620px; }
  .theme-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .sources-card { grid-template-columns: 1fr; }
  .source-badge { display: none; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 28px, 1180px); }
  .emergency-inner { padding: 8px 0; line-height: 1.35; }
  .nav-wrap { height: 66px; }
  .nav-cta { padding: 10px 13px; font-size: 12px; }
  .hero { padding: 54px 0 64px; }
  .hero h1 { font-size: 48px; }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .theme-card { grid-template-columns: auto 1fr; }
  .theme-arrow { display: none; }
  .sources-card { padding: 34px 24px; border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
  .quiz-overlay { padding: 0; align-items: end; }
  .quiz-shell { max-height: 94vh; border-radius: 26px 26px 0 0; }
  .quiz-progress-row, .quiz-content { padding-left: 18px; padding-right: 18px; }
  .quiz-topbar { padding: 14px 16px; }
  .quiz-score-live { display: none; }
  .quiz-topbar { grid-template-columns: auto 1fr; }
  .question-card h2 { font-size: 25px; }
  .answer-btn { padding: 13px; }
}

@supports (content-visibility:auto){.themes-section,.method-section,.sources-section{content-visibility:auto;contain-intrinsic-size:1px 800px}}
