/* =========================================================
   Мебель·Подбор — Landing styles
   Light, modern, minimal. Mobile-first.
   Design system from Claude Design.
   ========================================================= */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg: #fbfbf9;
  --bg-soft: #f3f3ef;
  --surface: #ffffff;
  --fg: #12151a;
  --fg-2: #3a4048;
  --fg-3: #6a7280;
  --fg-4: #9aa1ab;
  --border: #e7e7e1;
  --border-2: #d9d9d1;
  --accent: #1f5130;
  --accent-hover: #183f25;
  --accent-soft: #e6f0ea;
  --accent-ink: #ffffff;
  --warn: #b4431f;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,20,25,0.04), 0 1px 0 rgba(15,20,25,0.02);
  --shadow-md: 0 2px 8px rgba(15,20,25,0.05), 0 1px 2px rgba(15,20,25,0.04);
  --shadow-lg: 0 20px 50px -20px rgba(15,20,25,0.18), 0 2px 10px rgba(15,20,25,0.05);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

.section {
  padding: 72px 0;
  position: relative;
}

.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg);
}
h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 600;
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-2);
  line-height: 1.55;
}
.section-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--fg-2);
  margin-top: 14px;
  line-height: 1.6;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
  text-align: center;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--fg); }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 54px; }
.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 38px; }
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,249,0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.logo-mark {
  display: inline-block;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 7px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px 5px auto 5px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 5px 0 #fff, 0 10px 0 #fff;
}
.logo-accent { color: var(--accent); margin: 0 2px; }
.nav-desktop { display: none; gap: 28px; }
.nav-desktop a {
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.nav-desktop a:hover { color: var(--fg); }
@media (min-width: 820px) {
  .nav-desktop { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background: radial-gradient(1200px 500px at 80% -10%, #e8f0ea 0%, transparent 60%), var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 80px 0 110px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 28px; max-width: 560px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.cta-note {
  color: var(--fg-3);
  font-size: 14px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 8px;
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 14px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* Hero visual — stylized card stack */
.hero-visual {
  position: relative;
  min-height: 320px;
}
.card-stack {
  position: relative;
  height: 380px;
  max-width: 440px;
  margin: 0 auto;
}
.stack-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.stack-card-1 {
  top: 10px; left: 0; right: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(-1.5deg);
}
.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.stack-row:last-child { border-bottom: none; }
.stack-label { color: var(--fg-3); }
.stack-val { color: var(--fg); font-weight: 600; }
.stack-card-2, .stack-card-3 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 80%;
  padding: 16px 18px;
}
.stack-card-2 { top: 210px; left: -10px; transform: rotate(-3deg); }
.stack-card-3 { top: 280px; right: -10px; transform: rotate(2deg); }
.stack-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #dfe7e0 0%, #c7d4ca 100%);
  flex-shrink: 0;
}
.stack-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.stack-line { height: 8px; background: var(--bg-soft); border-radius: 4px; }
.stack-line.w70 { width: 70%; }
.stack-line.w60 { width: 60%; }
.stack-line.w50 { width: 50%; }
.stack-line.w40 { width: 40%; }
.stack-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-visual { display: none; }
}

/* ---------- WHY ---------- */
.section-why { background: var(--bg); }
.why-grid {
  display: grid;
  gap: 20px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.why-intro {
  color: var(--fg-2);
  font-size: 16px;
  font-weight: 500;
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li {
  padding: 9px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-2);
}

/* ---------- AUDIENCE ---------- */
.section-audience { background: var(--bg-soft); }
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .audience-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 960px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.audience-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.audience-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.audience-card h3 { margin-bottom: 8px; }
.audience-card p { color: var(--fg-3); font-size: 15px; }

/* ---------- BENEFITS ---------- */
.section-benefits { background: var(--bg); }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.benefit-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit h3 { margin-bottom: 6px; }
.benefit p { color: var(--fg-3); font-size: 15px; }

/* ---------- HOW ---------- */
.section-how { background: var(--bg-soft); }
.how-steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--fg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.how-body h3 { margin-bottom: 6px; }
.how-body p { color: var(--fg-3); font-size: 15px; }
.how-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* =========================================================
   QUIZ
   ========================================================= */
.section-quiz {
  background: var(--bg);
  padding: 80px 0 88px;
  scroll-margin-top: 80px;
}
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .quiz-card { padding: 40px; }
}

/* Progress */
.quiz-progress { margin-bottom: 24px; }
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 10%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s var(--ease);
}

/* Quiz body */
.quiz-body { min-height: 260px; }
.quiz-step {
  animation: stepIn .35s var(--ease) both;
}
.quiz-step.leaving {
  animation: stepOut .25s var(--ease) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
.quiz-question {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}
.quiz-hint {
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 20px;
}

/* Option tiles (single / multi) */
.options {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 640px) {
  .options.cols-2 { grid-template-columns: 1fr 1fr; }
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
  font-size: 15px;
  color: var(--fg);
  user-select: none;
  min-height: 56px;
}
.option:hover { border-color: var(--border-2); background: #fafaf7; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s var(--ease);
}
.option.multi .check { border-radius: 6px; }
.option .check::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .15s var(--ease);
}
.option.multi .check::after {
  content: '';
  width: 12px; height: 8px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  position: relative;
  top: -1px;
}
.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(31,81,48,0.08);
}
.option.selected .check {
  background: var(--accent);
  border-color: var(--accent);
}
.option.selected .check::after { transform: scale(1); }
.option.multi.selected .check::after { transform: rotate(-45deg) scale(1); }

/* Text inputs inside quiz */
.field {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}
.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,81,48,0.1);
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.conditional-field {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  animation: stepIn .3s var(--ease) both;
}

/* Contact step */
.contact-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.contact-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.seg-option {
  padding: 12px 8px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s var(--ease);
  user-select: none;
}
.seg-option:hover { border-color: var(--border-2); }
.seg-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.seg-option input { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
  user-select: none;
}
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .check-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-2);
  border-radius: 5px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s var(--ease);
}
.consent .check-box::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  position: relative;
  top: -1px;
  transition: transform .15s var(--ease);
}
.consent input:checked ~ .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.consent input:checked ~ .check-box::after { transform: rotate(-45deg) scale(1); }

/* Error */
.quiz-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fcefe9;
  color: var(--warn);
  border: 1px solid #f0d4c6;
  border-radius: var(--radius-sm);
  font-size: 14px;
  animation: stepIn .2s var(--ease) both;
}

/* Nav */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.quiz-nav .btn { min-width: 120px; }
@media (max-width: 520px) {
  .quiz-nav .btn { flex: 1; min-width: 0; }
}
.btn-back-hidden { visibility: hidden; }

/* Submit loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank-you screen */
.thank-you {
  text-align: center;
  padding: 16px 0 8px;
  animation: stepIn .4s var(--ease) both;
}
.thank-you .success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thank-you h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.thank-you p {
  color: var(--fg-2);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.thank-you-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   SECTIONS AFTER QUIZ
   ========================================================= */
.section-params { background: var(--bg-soft); }
.params-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) { .params-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (min-width: 960px) { .params-grid { grid-template-columns: repeat(4, 1fr); } }
.params-grid li {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-2);
  font-size: 15px;
  position: relative;
  padding-left: 44px;
}
.params-grid li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Info block */
.section-info { background: var(--bg); }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .info-card { padding: 28px 24px; } }
.info-card h2 { margin-bottom: 18px; }
.info-lead { color: var(--fg-2); margin-bottom: 18px; }
.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 24px;
  margin-bottom: 22px;
}
@media (min-width: 640px) { .info-list { grid-template-columns: 1fr 1fr; } }
.info-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  color: var(--fg-2);
  border-bottom: 1px solid var(--border);
}
.info-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 2px;
  background: var(--accent);
}
.info-outro { color: var(--fg-2); font-size: 16px; }

/* FAQ */
.section-faq { background: var(--bg-soft); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--fg-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .2s var(--ease);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* Final CTA */
.section-final-cta { background: var(--bg); padding: 64px 0 96px; }
.final-cta-card {
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  background-image: radial-gradient(600px 260px at 80% 120%, rgba(31,81,48,0.55) 0%, transparent 60%),
                    radial-gradient(500px 200px at 20% -20%, rgba(31,81,48,0.35) 0%, transparent 60%);
}
@media (max-width: 640px) { .final-cta-card { padding: 40px 24px; } }
.final-cta-card h2 { color: #fff; margin-bottom: 14px; }
.final-cta-card p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 28px; font-size: 16px; }
.final-cta-card .btn-primary {
  background: #fff;
  color: var(--fg);
  border-color: #fff;
}
.final-cta-card .btn-primary:hover { background: #f1f1eb; border-color: #f1f1eb; }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-note {
  color: var(--fg-3);
  font-size: 13px;
  max-width: 640px;
  line-height: 1.55;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 520px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .quiz-card { padding: 24px 20px; }
  .info-card { padding: 28px 22px; }
  .btn-lg { padding: 15px 22px; font-size: 15px; min-height: 52px; }
  .chip-list li { padding: 8px 14px; font-size: 13px; }
  .section-head { margin-bottom: 28px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
