:root {
  --ink: #0b1728;
  --muted: #667085;
  --line: #d8e0ec;
  --soft: #f3f6fa;
  --blue: #1e4485;
  --blue-2: #0d2a59;
  --blue-3: #071a38;
  --green: #ffd829;
  --green-dark: #f3c900;
  --fire: #c9243f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 24, 52, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  background: var(--white);
  line-height: 1.5;
}

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

img,
svg {
  max-width: 100%;
}

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

[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 82px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 226, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 256px;
  max-width: min(256px, 42vw);
  height: auto;
}

.header-nav {
  display: block;
  justify-self: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.phone-link {
  justify-self: end;
  color: var(--blue);
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 74px 0;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 24%, rgba(201, 36, 63, 0.22), transparent 34%),
    linear-gradient(105deg, rgba(7, 26, 56, 0.98), rgba(13, 42, 89, 0.9) 50%, rgba(30, 68, 133, 0.68)),
    url("https://mchs-license.com/images/bg/fire-1.webp") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  color: #cbd8f0;
  text-transform: none;
  background: rgba(30, 68, 133, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
}

.hero-actions,
.section-heading.split,
.footer-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ink);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.section .button-secondary,
.proof-copy .button-secondary {
  color: var(--blue);
  border-color: var(--line);
  background: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-facts li {
  padding: 14px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.lead-card {
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.14;
}

.lead-card p {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.lead-form input:not([type="checkbox"]),
.lead-form select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.policy {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.policy input {
  margin-top: 3px;
}

.policy a {
  color: var(--blue);
  font-weight: 700;
}

.trust {
  background: var(--blue-3);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.trust-grid div {
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.06);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--soft);
}

.section-dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-3), var(--blue-2) 54%, var(--blue));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.split {
  justify-content: space-between;
  max-width: none;
}

.section-heading.split > div {
  max-width: 780px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--fire);
  font-size: 13px;
  font-weight: 900;
}

.card p,
.content-grid p,
.proof-copy p,
.final-grid p,
.faq-list p {
  color: var(--muted);
}

.content-grid,
.proof-grid,
.final-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.included-list div {
  min-height: 150px;
  padding: 22px;
  border-left: 4px solid var(--fire);
  border-radius: 8px;
  background: var(--soft);
}

.included-list strong,
.included-list span {
  display: block;
}

.included-list span {
  margin-top: 8px;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  min-height: 190px;
  padding: 54px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--green);
  font-weight: 900;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.document-preview {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doc-line {
  height: 12px;
  width: 58%;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--line);
}

.doc-line.wide {
  width: 78%;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.doc-row span {
  color: var(--muted);
}

.stamp {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 28px 0 0 auto;
  color: var(--fire);
  font-weight: 900;
  border: 4px solid var(--fire);
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.82;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
}

.final-cta {
  padding: 90px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 36, 63, 0.18), transparent 30%),
    linear-gradient(135deg, var(--blue-3), var(--blue-2) 58%, var(--blue));
}

.final-cta .eyebrow {
  color: var(--green);
}

.quiz-intro {
  max-width: 820px;
  margin-bottom: 32px;
}

.quiz-intro p,
.final-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.quiz-form,
.quiz-summary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quiz-form {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px;
  background: rgba(4, 15, 34, 0.58);
}

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 28px;
}

.quiz-progress span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.quiz-progress .is-active {
  background: var(--white);
}

.quiz-progress .is-complete {
  background: var(--green);
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step-count {
  color: var(--green) !important;
  font-weight: 800;
}

.quiz-step h3 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

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

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

.quiz-option {
  min-height: 126px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 216, 41, 0.8);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option span {
  position: relative;
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.quiz-option span::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.quiz-option input:checked + span::before {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(255, 216, 41, 0.2);
}

.quiz-option:has(input:checked) {
  color: var(--white);
  border-color: var(--green);
  background: rgba(255, 216, 41, 0.14);
}

.quiz-field {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--white);
  font-weight: 800;
}

.quiz-field input,
.quiz-field select {
  min-height: 54px;
  width: 100%;
  padding: 13px 15px;
  color: var(--ink);
  font: inherit;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
}

.quiz-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quiz-gift {
  max-width: 760px;
  padding: 18px 20px;
  color: var(--ink) !important;
  border-radius: 8px;
  background: var(--white);
}

.quiz-policy {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.8) !important;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.quiz-back {
  color: var(--ink);
  background: var(--white);
}

.quiz-submit[hidden],
.quiz-actions [hidden] {
  display: none;
}

.quiz-summary {
  position: relative;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.quiz-summary::before {
  content: "";
  position: absolute;
  top: -32px;
  right: 18px;
  width: 110px;
  height: 150px;
  border: 1px solid rgba(201, 63, 44, 0.28);
  background: linear-gradient(135deg, rgba(201, 63, 44, 0.18), rgba(18, 58, 120, 0.08));
  transform: rotate(10deg);
  opacity: 0.45;
}

.quiz-summary h3 {
  position: relative;
  margin-bottom: 18px;
}

.quiz-summary dl,
.quiz-summary div {
  position: relative;
}

.quiz-summary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.quiz-summary dt {
  color: var(--fire);
  font-weight: 800;
}

.quiz-summary dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-3);
}

.footer-grid {
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.footer-grid a {
  color: var(--white);
  font-weight: 700;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 26, 56, 0.72);
}

.consult-modal[hidden] {
  display: none;
}

.consult-modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.consult-modal__panel h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.consult-modal__panel > p {
  margin-bottom: 20px;
  color: var(--muted);
}

.consult-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
}

.is-modal-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100vw - 48px));
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(7, 27, 60, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner strong {
  color: var(--ink);
}

.cookie-banner a {
  color: var(--blue);
  font-weight: 700;
}

.cookie-banner .button {
  white-space: nowrap;
}

.legal-page {
  background: #f5f8fc;
}

.legal-main {
  padding: 56px 0 72px;
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-document h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.legal-document h2 {
  margin: 30px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.legal-document ul {
  margin: 10px 0 18px;
  padding-left: 20px;
}

@media (max-width: 1040px) {
  .site-header,
  .hero-grid,
  .content-grid,
  .proof-grid,
  .final-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 12px;
  }

  .header-nav {
    display: none;
  }

  .phone-link {
    justify-self: start;
  }

  .lead-card {
    max-width: 620px;
  }

  .hero-facts,
  .trust-grid,
  .cards.four,
  .timeline,
  .quiz-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-shell {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    width: auto;
    max-width: 358px;
  }

  .cookie-banner .button {
    width: 100%;
  }

  .quiz-options,
  .quiz-options.work-grid,
  .quiz-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .brand small,
  .phone-link {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 46px 0;
  }

  h1 {
    max-width: 358px;
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-lead {
    max-width: 358px;
    font-size: 18px;
  }

  .hero-actions,
  .hero-facts,
  .lead-card {
    max-width: 358px;
  }

  .button {
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  .hero-actions,
  .hero-actions .button,
  .section-heading.split .button,
  .quiz-actions .button {
    width: 100%;
  }

  .hero-facts,
  .trust-grid,
  .cards.four,
  .included-list,
  .timeline,
  .quiz-options,
  .quiz-options.compact,
  .quiz-options.work-grid,
  .quiz-contact-grid {
    grid-template-columns: 1fr;
  }

  .quiz-form {
    min-height: auto;
    padding: 20px;
  }

  .quiz-actions {
    flex-direction: column-reverse;
  }

  .section,
  .final-cta {
    padding: 64px 0;
  }

  .lead-card,
  .card,
  .document-preview {
    padding: 20px;
  }
}
