:root {
  --navy: #16294C;
  --navy2: #1E3A66;
  --pink: #E64A77;
  --pink-d: #C8385F;
  --pink-bg: #FCE9EF;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e2e7ef;
  --soft: #f5f7fa;
  --ok: #1f9d6b;
  --ok-bg: #e4f6ee;
  --err: #d6435c;
  --err-bg: #fde7eb;
  --font: 'Helvetica Neue', Arial, 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--pink-d); }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
}
.brand {
  font-weight: 800;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-bg);
}
.nav .spacer { flex: 1; }
.nav a.link {
  color: var(--navy2);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 9px;
}
.nav a.link:hover { background: var(--soft); }
.nav a.btn-nav {
  background: var(--pink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
}
.nav a.btn-nav:hover { background: var(--pink-d); }
@media (max-width: 680px) {
  .nav a.link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(230, 74, 119, 0.5), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.1px, transparent 1.2px);
  background-size: 18px 18px;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 84px 0 92px;
}
.hero .kicker {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: #ff9bbb; }
.hero .sub {
  font-size: clamp(18px, 2.4vw, 24px);
  color: #d9e0ee;
  font-weight: 600;
  margin: 0 0 18px;
}
.hero .lead {
  font-size: 17px;
  color: #e7ebf4;
  max-width: 60ch;
  margin: 0 0 34px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: 0;
  font-family: inherit;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-d); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 40px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}
.stat.pink .num { color: var(--pink-d); }
.stat .lab { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.35; }
@media (max-width: 820px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 70ch; margin-bottom: 40px; }
.section-head .eyebrow {
  color: var(--pink-d); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.6px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20, 30, 60, 0.12); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--pink-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: var(--ink); font-size: 15.5px; }

/* ---------- Warnsignale ---------- */
.warn { background: var(--navy); color: #fff; }
.warn .section-head h2 { color: #fff; }
.warn .section-head .eyebrow { color: #ff9bbb; }
.warn .section-head p { color: #c9d2e4; }
.warn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .warn-grid { grid-template-columns: 1fr; } }
.warn-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 22px 20px;
}
.warn-item .lab {
  display: inline-block;
  background: var(--pink);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.warn-item p { margin: 0; color: #e7ebf4; font-size: 15px; }

/* ---------- Quiz ---------- */
.quiz { background: var(--pink-bg); }
.quiz .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 560px) { .quiz .panel { padding: 24px; } }
.quiz .progress-wrap { margin-bottom: 26px; }
.quiz .progress-meta {
  display: flex; justify-content: space-between;
  font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px;
}
.quiz .bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.quiz .bar > span { display: block; height: 100%; background: var(--pink); border-radius: 999px; transition: width 0.3s ease; }
.quiz .q-text { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 22px; line-height: 1.3; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16px; font-family: inherit; color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option:hover:not(:disabled) { border-color: var(--pink); background: #fff8fa; }
.option:disabled { cursor: default; }
.option .marker {
  width: 28px; height: 28px; flex: 0 0 auto;
  border-radius: 50%; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--muted);
}
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.correct .marker { border-color: var(--ok); background: var(--ok); color: #fff; }
.option.wrong { border-color: var(--err); background: var(--err-bg); }
.option.wrong .marker { border-color: var(--err); background: var(--err); color: #fff; }
.option.dim { opacity: 0.55; }

.explain {
  margin-top: 18px;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  background: var(--soft);
  border-left: 4px solid var(--pink);
  color: var(--navy2);
  display: none;
}
.explain.show { display: block; }
.explain .verdict { font-weight: 800; display: block; margin-bottom: 4px; }
.explain.is-correct { border-left-color: var(--ok); }
.explain.is-correct .verdict { color: var(--ok); }
.explain.is-wrong { border-left-color: var(--err); }
.explain.is-wrong .verdict { color: var(--err); }

.quiz-foot { margin-top: 26px; display: flex; justify-content: flex-end; }
.quiz-foot .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Quiz result */
.result { text-align: center; }
.result .score-ring {
  width: 150px; height: 150px; margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--pink) var(--p, 0%), var(--soft) 0);
}
.result .score-ring .inner {
  width: 120px; height: 120px; border-radius: 50%;
  background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.result .score-ring .big { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.result .score-ring .small { font-size: 13px; color: var(--muted); }
.result h3 { font-size: 26px; color: var(--navy); margin: 4px 0 8px; }
.result p { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 0 auto 26px; }

.intro-quiz { text-align: center; }
.intro-quiz .ic { font-size: 46px; margin-bottom: 12px; }
.intro-quiz h3 { font-size: 26px; color: var(--navy); margin: 0 0 10px; }
.intro-quiz p { color: var(--muted); font-size: 16.5px; max-width: 50ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: #c9d2e4;
  padding: 50px 0 40px;
}
footer .wrap { display: grid; gap: 18px; }
footer .src { font-size: 14.5px; color: #e7ebf4; max-width: 80ch; }
footer .disc {
  font-size: 13px; color: #9fabc6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 14px 16px; max-width: 90ch;
}
footer .meta { font-size: 12.5px; color: #7e8bab; margin-top: 6px; }
footer a { color: #ff9bbb; }

.fade-in { animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
