:root {
  --primary: #c8102e;
  --primary-dark: #9c0c23;
  --blue: #003892;
  --dark: #12141d;
  --text: #333;
  --light: #f7f8fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
}

.hidden {
  display: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.92rem;
  margin-left: 22px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1d2440 55%, var(--blue) 100%);
  color: var(--white);
  padding: 90px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero h1 span {
  color: #ffd166;
}

.hero p {
  opacity: 0.88;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 26px;
}

.card-face {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 14px;
}

.quick-facts li {
  list-style: none;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

.quick-facts li:last-child {
  border-bottom: none;
}

.stats {
  background: var(--primary);
  color: var(--white);
  padding: 34px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat h3 {
  font-size: 2.1rem;
  font-weight: 800;
}

.stat p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.section {
  padding: 80px 0;
}

.alt-bg {
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--dark);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: #667;
  margin-bottom: 46px;
  font-size: 0.98rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-6px);
}

.card-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--dark);
  margin-bottom: 6px;
}

.card .small {
  font-size: 0.85rem;
  color: #778;
  margin-top: 8px;
}

.note {
  text-align: center;
  margin-top: 26px;
  font-size: 0.9rem;
  color: #667;
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.t-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.t-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.t-item h3 {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.t-item p {
  font-size: 0.9rem;
}

.req-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.req-box:nth-child(2) {
  border-top-color: var(--blue);
}

.req-box h3 {
  color: var(--dark);
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
}

.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.94rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.sign-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.sign-card p {
  font-size: 0.84rem;
  color: #667;
}

.sign-card h4 {
  color: var(--dark);
  margin: 14px 0 6px;
}

.sign-shape {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  position: relative;
}

.octagon {
  background: #dc2626;
  color: var(--white);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  font-size: 0.85rem;
}

.circle-red {
  background: #dc2626;
  border-radius: 50%;
}

.circle-red .bar {
  position: absolute;
  width: 54%;
  height: 11%;
  background: var(--white);
  transform: rotate(-45deg);
  border-radius: 4px;
}

.triangle-down {
  background: #dc2626;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.triangle-warning {
  background: #fde047;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-size: 1.6rem;
}

.circle-white {
  background: var(--white);
  border: 6px solid #dc2626;
  border-radius: 50%;
  color: var(--dark);
}

.circle-white b {
  font-size: 1.2rem;
}

.line-crossed::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 5px;
  background: #dc2626;
  transform: rotate(-45deg);
}

.circle-blue {
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
}

.rect-green {
  background: #15803d;
  color: var(--white);
  border-radius: 8px;
  font-size: 1.6rem;
}

.rules-strip {
  margin-top: 46px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.rules-strip h3 {
  margin-bottom: 16px;
  color: #ffd166;
}

.rules-strip ul {
  columns: 2;
  column-gap: 40px;
  list-style-position: inside;
  font-size: 0.93rem;
}

.rules-strip li {
  padding: 5px 0;
}

.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

.progress {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #ff6b81);
  transition: width 0.3s;
}

#questionText {
  color: var(--dark);
  font-size: 1.12rem;
  margin-bottom: 22px;
  min-height: 56px;
}

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  margin-bottom: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--blue);
  background: #f0f4ff;
}

.option-btn.selected {
  border-color: var(--blue);
  background: #eef2ff;
}

.option-btn.correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

.option-btn.wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #7f1d1d;
}

#nextBtn {
  display: block;
  margin: 10px 0 0 auto;
}

.result-box {
  text-align: center;
  padding: 20px 0;
}

.score-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), #e5e7eb 0);
  display: grid;
  place-items: center;
}

.score-circle span {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.faq-list details {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--dark);
  list-style: none;
  position: relative;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 22px 18px;
  font-size: 0.92rem;
}

.footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 14px;
}

.footer p {
  font-size: 0.88rem;
  opacity: 0.8;
}

.footer-grid > div > a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer a:hover {
  color: #ffd166;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

#topBtn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4);
}

#topBtn.show {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .rules-strip ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 12px 5%;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .quiz-wrap {
    padding: 22px;
  }

  .t-item {
    flex-direction: column;
    gap: 12px;
  }
}
