:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #132033;
  --muted: #5f6f82;
  --line: #dce5f0;
  --accent: #0f62fe;
  --accent-hover: #0b4fd1;
  --green: #11845b;
  --green-soft: rgba(17, 132, 91, 0.1);
  --danger: #c62828;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
#startQuizBtn {
  background: var(--accent);
  color: var(--surface);
  font-size: 20px;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(15, 98, 254, 0.05),
      transparent 30%
    ),
    linear-gradient(180deg, #f8fbff 0%, #f1f5fa 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 68px 0;
}

.section--tight {
  padding: 40px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  margin-left: -10px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(17, 132, 91, 0.12);
}

.title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.hero {
  padding: 32px 0 24px;
}

.hero__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f62fe, #5c8dff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(15, 98, 254, 0.22);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.9fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 229, 240, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 20px 105px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 14px 28px rgba(15, 98, 254, 0.18);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:focus-visible,
.answer:focus-visible,
.link-btn:focus-visible,
.footer__nav a:focus-visible,
.offer__cta:focus-visible,
.faq__item summary:focus-visible {
  outline: 3px solid rgba(15, 98, 254, 0.18);
  outline-offset: 2px;
}

.btn--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #2f4054;
  font-size: 14px;
  font-weight: 600;
}

.hero__aside {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f4f8fd);
  border: 1px solid var(--line);
}

.stat-card__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.stat-card__value {
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  margin-bottom: 28px;
}

.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  padding: 24px;
}

.feature__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(15, 98, 254, 0.08);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.step__num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 14px 26px rgba(15, 98, 254, 0.22);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.quiz-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.quiz-card {
  padding: 28px;
}

.quiz-side {
  padding: 24px;
  position: sticky;
  top: 16px;
}

.quiz-side__list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.quiz-side__item {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #2f4054;
  font-size: 15px;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress__bar {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f62fe, #68a0ff);
  transition: width 0.25s ease;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.question-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.question-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.answers {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.answer {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.answer:hover {
  border-color: rgba(15, 98, 254, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 98, 254, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.link-btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.loading {
  text-align: center;
  padding: 26px 8px;
}

.spinner {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 7px solid #e9eef5;
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result-head {
  margin-bottom: 18px;
}

.offers {
  display: grid;
  gap: 16px;
}

.offer {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.offer--top {
  background: linear-gradient(180deg, #f5fbf8 0%, #ffffff 100%);
  border-color: rgba(17, 132, 91, 0.22);
}

.offer__label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.offer__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  align-items: start;
}

.offer__title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.offer__rating {
  white-space: nowrap;
  font-weight: 800;
  color: #d38b09;
}

.offer__desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.offer__features {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.offer__features div {
  color: #2f4054;
}

.offer__features div::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  margin-right: 8px;
}

.offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.offer__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.info-band {
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
  border: 1px solid var(--line);
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--muted);
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__content {
  padding: 0 22px 20px;
  color: var(--muted);
}

.legal {
  display: grid;
  gap: 16px;
}

.legal__card {
  padding: 24px;
}

.legal__card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal__card p,
.legal__card li {
  color: var(--muted);
}

.legal__card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.footer {
  padding: 34px 0 60px;
}

.footer__box {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__meta {
  color: var(--muted);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.quiz-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.58);
  backdrop-filter: blur(6px);
}

.quiz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5fa 100%);
  box-shadow: 0 30px 80px rgba(18, 32, 51, 0.22);
}
.quiz-modal__body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.quiz-modal__body {
  padding: 28px;
  scroll-behavior: smooth;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/old Edge */
}

.quiz-modal__close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 3;
  margin: 16px 16px 0 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 32, 51, 0.12);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero__layout,
  .quiz-shell,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .quiz-side {
    position: static;
  }

  .quiz-modal {
    padding: 12px;
  }

  .quiz-modal__dialog {
    max-height: calc(100vh - 24px);
  }

  .quiz-modal__body {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .hero__content,
  .hero__aside,
  .quiz-card,
  .quiz-side,
  .feature,
  .step,
  .legal__card,
  .footer__box {
    padding: 20px;
  }

  .hero__actions,
  .nav {
    flex-direction: column;
  }

  .btn,
  .btn--secondary,
  .link-btn,
  .offer__cta {
    width: 100%;
  }

  .offer__top,
  .step-meta,
  .hero__topbar,
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-side__list {
    display: none;
  }
  .quiz-side__list.is__open {
    display: flex;
    flex-direction: column;
  }
}
