:root {
  --navy: #0b2a50;
  --navy-dark: #081f3c;
  --text: #102846;
  --muted: #667b96;
  --line: #e4eaf1;
  --soft-line: #edf1f5;
  --surface: #ffffff;
  --page: #f5f8fb;
  --soft: #f3f6f9;
  --shadow: 0 2px 4px rgba(7, 31, 60, .05), 0 8px 24px rgba(7, 31, 60, .035);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  height: 66px;
  border-bottom: 1px solid #dfe6ee;
  background: rgba(255, 255, 255, .98);
}

.header-inner {
  width: min(100% - 40px, 690px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--navy);
  font-size: 19px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.1;
}

.brand small {
  color: #607793;
  font-size: 10px;
  line-height: 1.25;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #61758d;
  font-size: 11px;
  font-weight: 500;
}

.page-shell {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 58px 0 48px;
}

.hero {
  margin-bottom: 42px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--navy-dark);
  font-size: clamp(30px, 4vw, 39px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 800;
}

.hero p {
  margin: 0;
  color: #536983;
  font-size: 15px;
  line-height: 1.55;
}

.quiz-card {
  width: min(100%, 730px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dde5ee;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quiz-progress {
  padding: 20px 32px 0;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #5e7693;
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}

.progress-fill {
  width: 17%;
  height: 100%;
  border-radius: inherit;
  background: var(--navy);
  transition: width .28s ease;
}

.quiz-content {
  min-height: 498px;
  padding: 49px 32px 31px;
}

.question-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.question-heading h2 {
  margin: 0;
  color: #0b274a;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.question-icon,
.trust-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--soft);
  border-radius: 9px;
}

.question-icon {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-button {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: white;
  color: #17304f;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.answer-button:hover {
  transform: translateY(-1px);
  border-color: #9fb1c6;
  box-shadow: 0 8px 20px rgba(10, 42, 80, .06);
}

.answer-button:focus-visible,
.back-button:focus-visible,
.submit-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(11, 42, 80, .16);
  outline-offset: 2px;
}

.answer-button.is-selected {
  border-color: var(--navy);
  background: #f6f9fc;
}

.answer-arrow {
  color: #7b94af;
  font-size: 23px;
  line-height: 1;
}

.quiz-footer {
  min-height: 57px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--soft-line);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #304c6c;
  font-size: 12px;
  cursor: pointer;
}

.back-button:disabled {
  opacity: .38;
  cursor: default;
}

.back-button span:first-child {
  font-size: 22px;
  line-height: .7;
}

.private-data {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8da0b6;
  font-size: 11px;
}

.trust-grid {
  width: min(100%, 730px);
  margin: 31px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  min-height: 128px;
  padding: 19px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
}

.trust-icon {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.trust-card h3 {
  margin: 0 0 6px;
  color: #15304f;
  font-size: 12px;
  line-height: 1.4;
}

.trust-card p {
  margin: 0;
  color: #61768f;
  font-size: 10.5px;
  line-height: 1.55;
}

.lead-form {
  animation: fadeIn .25s ease;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  color: #23415f;
  font-size: 12px;
  font-weight: 600;
}

.field-full {
  grid-column: 1 / -1;
}

.field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: white;
  color: #17304f;
}

.field input::placeholder {
  color: #9aacbf;
}

.consent {
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #61768f;
  font-size: 11px;
  line-height: 1.5;
}

.consent input {
  margin-top: 2px;
}

.submit-button {
  width: 100%;
  height: 55px;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: #123861;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #336b52;
  text-align: center;
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    width: min(100% - 24px, 690px);
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .privacy-note {
    display: none;
  }

  .page-shell {
    width: min(100% - 20px, 820px);
    padding: 38px 0 28px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .desktop-only {
    display: none;
  }

  .hero p {
    font-size: 13px;
  }

  .quiz-progress,
  .quiz-content,
  .quiz-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quiz-content {
    min-height: 0;
    padding-top: 34px;
  }

  .question-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .question-heading h2 {
    padding-top: 5px;
    font-size: 20px;
  }

  .answer-button {
    min-height: 56px;
    font-size: 14px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .trust-card {
    min-height: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }
}
