:root {
  --forest-950: #0e2922;
  --forest-900: #14382e;
  --forest-800: #1d493c;
  --forest-700: #2c6654;
  --cream-100: #f8f5ed;
  --cream-200: #eee9dc;
  --paper: #fffdf7;
  --ink: #1c2b27;
  --muted: #66736e;
  --accent: #f2b84b;
  --accent-strong: #e89d2c;
  --accent-soft: #fff0c9;
  --good: #32715e;
  --warn: #bb6c31;
  --line: rgba(28, 43, 39, 0.14);
  --shadow: 0 24px 70px rgba(8, 31, 24, 0.16);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--forest-950);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--forest-950);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  color: var(--cream-100);
  background: var(--forest-950);
}

.header-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 124px;
  padding: 14px 0;
}

.header-brand-area {
  display: grid;
  gap: 10px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--forest-950);
  background: var(--accent);
  border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.header-link {
  margin-top: 12px;
  color: var(--cream-200);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover {
  color: var(--accent);
}

.top-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-social-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px 8px 9px;
  color: var(--cream-100);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.top-social-link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.social-icon {
  display: block;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  flex: 0 0 28px;
  fill: currentColor;
  object-fit: contain;
}

.top-social-max {
  color: #b9a9ff;
}

.top-social-telegram {
  color: #69c6f1;
}

.top-social-youtube {
  color: #ff7d7d;
}

.top-social-rutube {
  color: #6ce5dd;
}

.top-social-dzen {
  color: #f4f1e8;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 84px;
  color: var(--cream-100);
  background:
    radial-gradient(circle at 90% 5%, rgba(242, 184, 75, 0.12), transparent 26rem),
    var(--forest-950);
}

.hero::before {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 120px rgba(255, 255, 255, 0.02);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--forest-700);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.12);
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 9.5vw, 5.3rem);
}

.hero-subtitle {
  margin-bottom: 32px;
  color: #cedbd4;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
}

.hero-scope {
  max-width: 700px;
  margin: -8px 0 14px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.35;
}

.hero-subtitle span {
  margin-inline: 6px;
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

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

.button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: var(--forest-950);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(242, 184, 75, 0.18);
}

.button-primary:hover {
  background: #ffc85e;
}

.button-accent {
  color: var(--forest-950);
  background: var(--accent);
}

.button-accent:hover {
  background: #ffc85e;
}

.button-ghost {
  color: var(--forest-900);
  background: var(--cream-100);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: var(--cream-200);
}

.quiet-note {
  max-width: 520px;
  margin: 18px 0 0;
  color: #91a59d;
  font-size: 13px;
}

.hero-card {
  position: relative;
  max-width: 440px;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  inset: 14px -12px -12px 14px;
  background: var(--accent);
  border-radius: inherit;
  content: "";
  opacity: 0.7;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-badge,
.placeholder-label {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: var(--warn);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-orbit {
  display: grid;
  width: 190px;
  height: 190px;
  margin: 22px auto;
  padding: 14px;
  place-items: center;
  background: conic-gradient(var(--accent) 0 73%, var(--cream-200) 73% 100%);
  border-radius: 50%;
}

.score-center {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  background: var(--paper);
  border-radius: 50%;
}

.score-center strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.score-center strong span {
  color: var(--muted);
  font-size: 1.25rem;
}

.score-center small {
  margin-top: 8px;
  color: var(--muted);
}

.topic-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.topic-preview span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.topic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.topic-dot-good {
  background: var(--good);
}

.topic-dot-warn {
  background: var(--warn);
}

.card-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.section-light {
  background: var(--cream-100);
}

.outcomes {
  padding: 84px 0;
  border-radius: 36px 36px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.about h2,
.faq h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 7vw, 4.2rem);
}

.section-heading > p:last-child,
.faq-grid > div > p:last-child {
  max-width: 620px;
  color: var(--muted);
}

.outcome-grid {
  display: grid;
  gap: 16px;
}

.outcome-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.outcome-card.featured {
  color: var(--cream-100);
  background: var(--forest-900);
  border-color: var(--forest-900);
}

.card-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.featured .card-number,
.featured p {
  color: #b8cac2;
}

.card-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 32px 0 24px;
  place-items: center;
  color: var(--forest-900);
  background: var(--accent-soft);
  border-radius: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.outcome-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.outcome-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.diagnostic-section {
  padding: 82px 0 92px;
  color: var(--cream-100);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--forest-900);
  background-size: 40px 40px;
}

.diagnostic-shell {
  max-width: 860px;
}

.diagnostic-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.diagnostic-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 7vw, 4rem);
}

.diagnostic-intro > p:last-child {
  color: #b9cbc3;
}

.notice-banner {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 18px;
  color: #d7e2dd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  align-items: flex-start;
  font-size: 12px;
}

.notice-banner > span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--forest-950);
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice-banner p {
  margin: 0;
}

.test-card,
.result-card {
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.test-start-copy {
  max-width: 610px;
}

.test-kicker {
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.test-start-copy h3,
.question-stem,
.result-copy h3 {
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5.5vw, 2.8rem);
}

.test-start-copy p {
  color: var(--muted);
}

.start-checklist {
  display: grid;
  gap: 8px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.start-checklist span {
  display: flex;
  gap: 9px;
  align-items: center;
}

.start-checklist i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--forest-900);
  background: #dcebe5;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.diagnostic-picker {
  margin-top: 28px;
}

.diagnostic-select-label {
  display: block;
  margin: 0 0 10px;
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.diagnostic-select {
  width: 100%;
  min-height: 58px;
  padding: 0 48px 0 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--cream-200);
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.diagnostic-select:focus-visible {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 4px rgba(20, 56, 46, 0.12);
  outline: none;
}

.diagnostic-select:disabled {
  cursor: wait;
  opacity: 0.7;
}

.selected-diagnostic-summary {
  min-height: 44px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.diagnostic-start-button {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #9a442f;
  font-size: 13px;
  font-weight: 700;
}

.progress-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#question-category {
  color: var(--forest-700);
  text-align: right;
}

.progress-track {
  height: 6px;
  margin: 13px 0 28px;
  overflow: hidden;
  background: var(--cream-200);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 6.6667%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 240ms ease;
}

.progress-step-1 { width: 6.6667% !important; }
.progress-step-2 { width: 13.3333% !important; }
.progress-step-3 { width: 20% !important; }
.progress-step-4 { width: 26.6667% !important; }
.progress-step-5 { width: 33.3333% !important; }
.progress-step-6 { width: 40% !important; }
.progress-step-7 { width: 46.6667% !important; }
.progress-step-8 { width: 53.3333% !important; }
.progress-step-9 { width: 60% !important; }
.progress-step-10 { width: 66.6667% !important; }
.progress-step-11 { width: 73.3333% !important; }
.progress-step-12 { width: 80% !important; }
.progress-step-13 { width: 86.6667% !important; }
.progress-step-14 { width: 93.3333% !important; }
.progress-step-15 { width: 100% !important; }

.difficulty {
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 4px;
}

.question-stem {
  min-height: 84px;
  margin: 18px 0 26px;
  letter-spacing: -0.025em;
}

.answer-label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.answer-input {
  width: 100%;
  height: 64px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #d9d8cf;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
}

.answer-input:hover {
  border-color: #adaeaa;
}

.answer-input:focus {
  border-color: var(--forest-700);
  outline: 3px solid rgba(242, 184, 75, 0.42);
  outline-offset: 2px;
}

.answer-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.choice-group {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.choice-option {
  display: flex;
  min-height: 58px;
  padding: 10px 14px;
  border: 2px solid #dfded5;
  border-radius: 14px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease;
}

.choice-option:hover {
  border-color: #b4b7b1;
}

.choice-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}

.choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.choice-marker {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest-800);
  background: var(--cream-200);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
}

.choice-option:has(input:checked) .choice-marker {
  color: var(--paper);
  background: var(--forest-800);
}

.question-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.question-actions .button {
  flex: 1;
}

.result-card {
  display: grid;
  gap: 24px;
}

.result-score {
  display: grid;
  min-height: 180px;
  padding: 22px;
  color: var(--cream-100);
  background: var(--forest-900);
  border-radius: 22px;
  align-content: space-between;
}

.result-score > span {
  color: #b9cbc3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-score strong {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.9;
}

.result-score small {
  color: var(--accent);
  font-size: 1.75rem;
}

.result-copy p:last-child {
  color: var(--muted);
}

.result-topics {
  display: grid;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.result-topics h4 {
  margin: 0 0 10px;
  font-size: 13px;
}

.topic-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.topic-chip-good {
  color: #245947;
  background: #dcebe5;
}

.topic-chip-warn {
  color: #954a26;
  background: #f8dfcf;
}

.result-disclaimer {
  padding: 13px 15px;
  margin: 0;
  color: #6f5a30;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 12px;
}

.result-buttons {
  display: grid;
  gap: 10px;
}

.button-telegram {
  color: #fff;
  background: #2aabee;
}

.button-telegram:hover {
  background: #159bdc;
}

.button-max {
  color: #fff;
  background: #6a5bed;
}

.button-max:hover {
  background: #5748da;
}

.text-button {
  width: fit-content;
  padding: 6px 0;
  color: var(--forest-700);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  cursor: pointer;
}

.about {
  padding: 92px 0 50px;
}

.about-grid {
  display: grid;
  gap: 38px;
  align-items: center;
}

.formula-portrait {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 640px;
  min-height: 500px;
  overflow: hidden;
  align-content: space-between;
  padding: clamp(26px, 5vw, 42px);
  color: var(--forest-900);
  background:
    linear-gradient(rgba(20, 56, 46, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 56, 46, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 20%, rgba(242, 184, 75, 0.72) 0 13%, transparent 13.5%),
    linear-gradient(135deg, #d9e7df, #b9cec3);
  background-size:
    30px 30px,
    30px 30px,
    auto,
    auto;
  border: 1px solid rgba(20, 56, 46, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 60px rgba(20, 56, 46, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  isolation: isolate;
}

.formula-portrait::before,
.formula-portrait::after {
  position: absolute;
  border: 1px solid rgba(20, 56, 46, 0.15);
  border-radius: 50%;
  content: "";
  z-index: -1;
}

.formula-portrait::before {
  top: -105px;
  left: -95px;
  width: 260px;
  height: 260px;
}

.formula-portrait::after {
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
}

.formula-portrait-heading {
  max-width: 280px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.formula-portrait-heading span {
  color: var(--accent-strong);
  font-size: 1.15em;
}

.formula-notes {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.formula-group {
  display: grid;
  gap: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 56, 46, 0.12);
  border-left: 5px solid var(--forest-700);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(20, 56, 46, 0.1);
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  line-height: 1.6;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.formula-group strong {
  margin-bottom: 8px;
  color: var(--forest-700);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formula-line {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 7px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.formula-line + .formula-line {
  border-top: 1px solid rgba(20, 56, 46, 0.1);
}

.formula-group-accent {
  background: rgba(255, 244, 216, 0.84);
  border-left-color: var(--accent-strong);
}

.formula-line .katex {
  font-size: 1.16em;
  line-height: 1.6;
}

.formula-portrait small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy {
  max-width: 650px;
}

.about-lead {
  color: var(--forest-800);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.4;
}

.about-copy > p:not(.eyebrow, .about-lead) {
  color: var(--muted);
}

.reviews {
  padding: 50px 0 82px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.review-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.review-card-accent {
  background: #e4eee8;
}

.review-card blockquote {
  margin: 28px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.45;
}

.review-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.faq {
  padding: 82px 0 100px;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  gap: 36px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 68px;
  padding: 18px 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary span {
  color: var(--forest-700);
  font-size: 24px;
  transition: transform 160ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 38px 20px 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  padding: 64px 0;
  color: var(--cream-100);
  background: var(--forest-800);
}

.final-cta-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0;
}

.site-footer {
  padding: 40px 0;
  color: #aabdb5;
  background: var(--forest-950);
}

.footer-inner {
  display: grid;
  gap: 18px;
  align-items: center;
  font-size: 12px;
}

.footer-about {
  display: grid;
  gap: 10px;
}

.footer-about p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  padding: 7px 10px;
  color: var(--cream-200);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.social-links a:hover {
  color: var(--forest-950);
  background: var(--accent);
  border-color: var(--accent);
}

.footer-privacy {
  width: fit-content;
  color: var(--cream-200);
}

.submit-dialog {
  width: min(calc(100% - 28px), 540px);
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.submit-dialog::backdrop {
  background: rgba(7, 29, 23, 0.76);
  backdrop-filter: blur(4px);
}

.dialog-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--forest-900);
  background: var(--accent);
  border-radius: 14px;
  font-weight: 900;
}

.submit-dialog h2 {
  margin: 22px 0 10px;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.submit-dialog p {
  color: var(--muted);
}

.dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.privacy-page {
  min-height: 100vh;
  color: var(--cream-100);
  background: var(--forest-950);
}

.privacy-main {
  padding: 58px 0 92px;
}

.prose {
  max-width: 780px;
}

.prose h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 9vw, 5rem);
}

.prose-lead {
  color: #c4d3cd;
  font-size: 1.2rem;
}

.prose h2 {
  margin: 42px 0 12px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.prose p {
  color: #b2c3bc;
}

.prose .button {
  margin-top: 26px;
}

@media (max-width: 699px) {
  .header-inner {
    gap: 12px;
  }

  .header-brand-area {
    min-width: 0;
  }

  .top-social-links {
    gap: 6px;
  }

  .top-social-link {
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 7px;
  }

  .top-social-link span {
    display: none;
  }

  .formula-portrait {
    min-height: auto;
  }

  .formula-group {
    padding: 16px 15px;
    font-size: clamp(0.96rem, 4.2vw, 1.12rem);
  }
}

@media (min-width: 700px) {
  .shell {
    width: min(100% - 56px, var(--shell));
  }

  .hero {
    padding: 80px 0 110px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
    align-items: center;
  }

  .hero-card {
    justify-self: end;
  }

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

  .test-card,
  .result-card {
    padding: 36px;
  }

  .start-checklist {
    grid-template-columns: repeat(3, 1fr);
  }

  .result-card {
    grid-template-columns: 220px 1fr;
  }

  .result-topics,
  .result-disclaimer,
  .result-buttons,
  .text-button {
    grid-column: 1 / -1;
  }

  .result-topics {
    grid-template-columns: 1fr 1fr;
  }

  .result-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 70px;
  }

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

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner {
    grid-template-columns: minmax(210px, auto) 1fr auto;
  }

  .dialog-actions {
    grid-template-columns: 1fr 1.4fr;
  }
}

@media (min-width: 1000px) {
  .header-inner {
    min-height: 82px;
  }

  .outcomes,
  .diagnostic-section,
  .about,
  .reviews,
  .faq {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .outcome-card {
    min-height: 310px;
    padding: 30px;
  }

  .hero-card {
    padding: 28px;
  }
}

@media (max-width: 420px) {
  .header-link {
    font-size: 0;
  }

  .header-link span {
    font-size: 22px;
  }

  .button {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

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

  .progress-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.question-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto 22px;
  border-radius: 14px;
}

.matching-group {
  display: grid;
  gap: 12px;
}

.matching-group .answer-label {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(180px, 2fr);
  gap: 12px;
  align-items: center;
}
