@font-face {
  font-family: "Golos Text Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("./assets/golos-text-cyrillic.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("./assets/golos-text-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #202e56;
  --navy: #202e56;
  --muted: #66728a;
  --blue: #7f9fce;
  --blue-soft: #dbeaf3;
  --blue-mid: #b8cade;
  --cream: #fbf8e9;
  --lavender: #e9e3ee;
  --peach: #f3e3dc;
  --wash: #f3f5f6;
  --surface: #fbfaf7;
  --white: #ffffff;
  --line: #d0d5df;
  --danger: #a84b48;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--wash);
  color: var(--ink);
  font: 16px/1.55 "Golos Text Variable", Arial, Helvetica, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, .96);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  color: var(--surface);
  background: var(--navy);
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .98rem; letter-spacing: -.015em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; letter-spacing: .035em; }
.quiet-button, .primary-button, .secondary-button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  font-weight: 720;
}
.quiet-button { color: var(--navy); background: var(--surface); }
.primary-button { color: var(--white); background: var(--navy); }
.secondary-button { color: var(--navy); background: var(--surface); }
.quiet-button:hover, .secondary-button:hover { background: var(--blue-soft); }
.primary-button:hover { background: #2c4077; }
button:focus-visible, a:focus-visible, label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .4; }

.home-view { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 86px; }
.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(36px, 7vw, 88px);
  align-items: end;
  padding: clamp(58px, 8vw, 100px) 0 clamp(48px, 7vw, 78px);
  border-bottom: 1px solid var(--line);
}
.intro-copy { max-width: 900px; }
.eyebrow, .mini-label, .choose-label {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.intro-copy h1 {
  max-width: 900px;
  font-family: var(--display);
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}
.lead { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.04rem, 1.7vw, 1.28rem); }
.privacy-note {
  display: grid;
  gap: 28px;
  align-content: space-between;
  min-height: 235px;
  padding: 24px;
  color: var(--navy);
  background: var(--blue-soft);
  border: 1px solid var(--blue-mid);
  border-radius: 8px;
}
.privacy-number { font-family: var(--display); font-size: 4.6rem; line-height: .85; }
.privacy-note strong { display: block; font-size: 1rem; }
.privacy-note p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }

.resume-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 24px;
  color: var(--navy);
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.resume-card span:first-child { display: grid; gap: 3px; }
.resume-card small { color: var(--muted); }
.resume-card strong { font-size: 1.05rem; }
.resume-card > span:last-child { font-size: 1.5rem; transition: transform .18s ease; }
.resume-card:hover > span:last-child { transform: translateX(4px); }

.shelf { margin-top: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { font-family: var(--display); font-size: clamp(2.15rem, 4vw, 3.4rem); font-weight: 400; }
.section-heading span { color: var(--muted); font-size: .86rem; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.test-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  min-height: 310px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.test-card:nth-child(3n + 2) { background: var(--cream); }
.test-card:nth-child(3n + 3) { background: #f8f6fa; }
.test-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 34px rgba(32, 46, 86, .08); }
.card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-number { color: var(--navy); font-size: .78rem; font-weight: 760; letter-spacing: .08em; }
.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 720;
}
.test-card h3 { margin-top: 32px; font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 620; }
.test-card p { margin: 14px 0 0; color: var(--muted); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.card-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  color: var(--white);
  font-weight: 720;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
}
.method-note {
  display: grid;
  grid-template-columns: .6fr 1fr;
  gap: 54px;
  margin-top: 72px;
  padding: clamp(30px, 5vw, 52px);
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}
.method-note h2 { font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 400; }
.method-note p { margin: 0; color: #dbe3f0; font-size: 1.04rem; }

.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 680; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link.light { color: #e4edf5; }
.test-shell, .history-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.intro-screen { padding: 34px 0 82px; }
.test-intro-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  max-width: 1080px;
  min-height: 570px;
  margin: 18px auto 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.test-intro-aside { display: flex; flex-direction: column; padding: 38px 30px; background: var(--blue-soft); border-right: 1px solid var(--line); }
.test-intro-aside .topic-pill { align-self: flex-start; background: var(--surface); }
.test-facts { display: grid; gap: 14px; margin-top: 42px; }
.test-facts span { padding-top: 14px; color: var(--muted); border-top: 1px solid rgba(32, 46, 86, .16); font-size: .86rem; }
.test-facts strong { display: block; color: var(--navy); font-size: 1.28rem; }
.local-note { margin: auto 0 0; color: var(--muted); font-size: .82rem; }
.test-intro-main { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 78px); }
.test-intro-main h1 { max-width: 700px; font-family: var(--display); font-size: clamp(3.15rem, 6vw, 5.4rem); font-weight: 400; line-height: .95; }
.test-summary { margin: 28px 0 0; color: var(--muted); font-size: 1.12rem; }
.gentle-note { display: grid; grid-template-columns: 72px 1fr; gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.gentle-note strong { color: var(--navy); }
.gentle-note p { margin: 0; color: var(--muted); font-size: .9rem; }
.wide-button { width: 100%; margin-top: 34px; min-height: 56px; }
.completion-count { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: .82rem; }

.runner { width: 100%; min-height: calc(100vh - 70px); margin: 0 auto; }
.runner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 8px max(24px, calc((100vw - 1380px) / 2));
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.runner-workspace { display: grid; grid-template-columns: minmax(280px, 31%) minmax(0, 1fr); min-height: calc(100vh - 132px); }
.runner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 38px;
  min-width: 0;
  padding: clamp(34px, 5vw, 62px) clamp(26px, 4vw, 52px);
  background: var(--blue-soft);
  border-right: 1px solid var(--line);
}
.runner-sidebar h2 { max-width: 430px; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 520; line-height: 1; }
.runner-sidebar > div > p:last-child { max-width: 430px; margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.sidebar-progress { margin-top: 4px; }
.sidebar-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-progress .progress-track { margin: 10px 0 5px; }
.sidebar-progress small { display: block; color: var(--muted); text-align: right; }
.progress-track { width: 100%; height: 7px; overflow: hidden; background: rgba(32, 46, 86, .12); border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .2s ease; }
.question-map { display: grid; grid-template-columns: repeat(7, minmax(30px, 1fr)); gap: 7px; }
.question-dot {
  aspect-ratio: 1;
  min-width: 30px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(32, 46, 86, .18);
  border-radius: 6px;
  font-size: .72rem;
}
.question-dot.current { color: var(--navy); background: var(--surface); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.question-dot.answered:not(.current) { color: var(--navy); background: rgba(255,255,255,.42); }
.question-dot:disabled { opacity: .55; }
.runner-hint { margin: auto 0 0; padding-top: 22px; color: var(--muted); border-top: 1px solid rgba(32, 46, 86, .14); font-size: .8rem; }
.runner-main { min-width: 0; padding: clamp(34px, 5vw, 64px) clamp(28px, 6vw, 76px) 54px; background: var(--surface); }
.question-counter { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; color: var(--muted); font-size: .74rem; font-weight: 720; letter-spacing: .045em; text-transform: uppercase; }
.question-card { max-width: 960px; }
.question-card fieldset { padding: 0; border: 0; }
.question-card legend {
  max-width: 900px;
  margin-bottom: 34px;
  font-size: clamp(2.15rem, 4.15vw, 3.7rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.choose-label { margin-bottom: 10px; color: var(--muted); font-size: .68rem; }
.option-list { display: grid; gap: 9px; }
.option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.option:hover { border-color: var(--blue); transform: translateX(2px); }
.option.selected { background: var(--blue-soft); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); background: var(--wash); border-radius: 6px; font-size: .75rem; font-weight: 760; }
.option.selected .option-letter { color: var(--white); background: var(--navy); }
.runner-actions { display: grid; grid-template-columns: 150px minmax(200px, 1fr); gap: 10px; margin-top: 24px; }

.result-page { width: 100%; }
.result-hero {
  color: var(--white);
  background: var(--navy);
  border-bottom: 12px solid var(--blue);
}
.result-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; align-items: end; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 68px; }
.result-hero h1 { max-width: 800px; margin-top: 20px; font-family: var(--display); font-size: clamp(3.2rem, 6vw, 5.7rem); font-weight: 400; line-height: .93; }
.result-hero-copy > p:not(.eyebrow):not(.secondary-hypothesis) { max-width: 740px; margin: 26px 0 0; color: #dbe3f0; font-size: 1.1rem; }
.eyebrow.pale { margin-top: 34px; color: #c9dcef; }
.secondary-hypothesis { max-width: 740px; margin: 18px 0 0; padding-top: 16px; color: #dbe3f0; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; }
.hero-measure { padding: 24px; color: var(--navy); background: var(--blue-soft); border-radius: 8px; }
.pale-label { color: var(--navy); }
.measure-number { display: flex; gap: 10px; align-items: end; margin: 18px 0; }
.measure-number strong { font-family: var(--display); font-size: 4.7rem; font-weight: 480; line-height: .72; }
.measure-number span { max-width: 100px; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.hero-measure > p { margin: 18px 0 0; font-size: .84rem; font-weight: 690; }
.gauge { position: relative; height: 12px; margin-top: 24px; }
.gauge-zones { display: grid; grid-template-columns: 9fr 9fr 9fr 10fr; gap: 3px; height: 100%; overflow: hidden; border-radius: 99px; }
.gauge-zones span:nth-child(1) { background: #95b6c9; }
.gauge-zones span:nth-child(2) { background: #7f9fce; }
.gauge-zones span:nth-child(3) { background: #d09a79; }
.gauge-zones span:nth-child(4) { background: #bd6c69; }
.gauge > i { position: absolute; top: -5px; width: 3px; height: 22px; background: var(--navy); border: 2px solid var(--white); border-radius: 99px; transform: translateX(-50%); }
.gauge-labels { display: grid; grid-template-columns: 9fr 9fr 9fr 10fr; margin-top: 5px; color: var(--muted); font-size: .61rem; }
.gauge-labels span { text-align: center; }
.hero-axis { margin-top: 18px; }
.hero-axis > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.hero-axis-track { height: 8px; margin-top: 7px; overflow: hidden; background: rgba(32,46,86,.13); border-radius: 99px; }
.hero-axis-track span { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.balance-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 210px; margin-top: 16px; overflow: hidden; border: 1px solid rgba(32,46,86,.18); border-radius: 7px; }
.balance-map::before, .balance-map::after { content: ""; position: absolute; z-index: 1; background: rgba(32,46,86,.2); }
.balance-map::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.balance-map::after { left: 0; right: 0; top: 50%; height: 1px; }
.balance-map .zone { display: flex; align-items: center; padding: 10px; color: rgba(32,46,86,.72); font-size: .68rem; font-weight: 700; line-height: 1.2; }
.balance-map .rest { align-items: end; background: #e8e2d6; }
.balance-map .endurance { align-items: end; justify-content: end; text-align: right; background: #ccdbe1; }
.balance-map .alive { background: #efe3d5; }
.balance-map .focus { justify-content: end; text-align: right; background: #b9cee1; }
.balance-map > i { position: absolute; z-index: 3; width: 20px; height: 20px; background: var(--navy); border: 4px solid var(--white); border-radius: 50%; box-shadow: 0 3px 12px rgba(32,46,86,.35); transform: translate(-50%, -50%); }
.balance-axes { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: .67rem; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0; }
.result-main { display: grid; gap: 40px; }
.result-main h2, .result-side h2 { font-size: 1.4rem; font-weight: 650; }
.result-main p, .result-side p { margin: 10px 0 0; color: var(--muted); }
.interpretation { padding: 24px 26px; background: var(--cream); border: 1px solid #ded9be; border-radius: 8px; }
.interpretation h2 { font-size: 1.65rem; }
.context-list { display: grid; gap: 12px; padding: 24px 26px; background: var(--blue-soft); border: 1px solid var(--blue-mid); border-radius: 8px; }
.context-list .mini-label { margin-bottom: 2px; }
.context-list p { margin: 0; padding-top: 12px; color: var(--navy); border-top: 1px solid rgba(32,46,86,.12); font-weight: 560; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.insight-grid section { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.style-recipe { padding: 30px; color: var(--white); background: var(--navy); border-radius: 8px; }
.style-recipe .mini-label { color: #b9d2e6; }
.style-recipe h2 { font-family: var(--display); font-size: 2.7rem; font-weight: 440; }
.style-recipe .recipe-heading > p { color: #dbe3f0; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.recipe-grid > div { padding: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; }
.recipe-grid span { display: block; margin-bottom: 8px; color: #b9d2e6; font-size: .7rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.recipe-grid strong { display: block; font-size: .88rem; line-height: 1.45; }
.recipe-priority { margin-top: 18px !important; padding-top: 16px; color: var(--white) !important; border-top: 1px solid rgba(255,255,255,.16); font-weight: 650; }
.practice-panel { padding-top: 34px; border-top: 1px solid var(--line); }
.practice-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.practice-heading h2 { font-family: var(--display); font-size: 2.45rem; font-weight: 440; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.practice-grid > div { min-height: 180px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.practice-grid span { color: var(--navy); font-size: .72rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.practice-grid p { color: var(--ink); }
.support-cue { padding: 24px 26px; background: var(--lavender); border: 1px solid #d5cbdc; border-radius: 8px; }
.consultation-card { padding: 28px; color: var(--white); background: var(--navy); border-radius: 8px; }
.consultation-card .mini-label { color: #b9d2e6; }
.consultation-card p { color: #dbe3f0; }
.consultation-card a { display: inline-flex; margin-top: 18px; color: var(--white); font-weight: 750; text-underline-offset: 4px; }
.safety-note { padding: 24px 26px; background: #fff5f3; border: 2px solid var(--danger); border-radius: 8px; }
.result-side { display: grid; align-content: start; gap: 14px; }
.score-card, .compare-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.score-heading { margin-bottom: 22px; }
.score-heading span { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.score-row { margin-top: 16px; }
.score-row > div:first-child { display: flex; gap: 10px; justify-content: space-between; align-items: start; font-size: .8rem; }
.score-row strong { color: var(--navy); }
.score-bar { position: relative; height: 9px; margin-top: 7px; background: var(--blue-soft); border-radius: 99px; }
.score-bar span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.score-bar i { position: absolute; top: -4px; width: 2px; height: 17px; background: var(--navy); box-shadow: 0 0 0 2px var(--surface); }
.score-legend { display: flex; gap: 8px; align-items: center; margin-top: 20px !important; font-size: .7rem; }
.score-legend i { width: 2px; height: 12px; background: var(--navy); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 28px; }

.history-page { padding: 46px 0 82px; }
.history-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-top: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.history-heading h1 { font-family: var(--display); font-size: clamp(3.1rem, 6vw, 5.5rem); font-weight: 400; }
.history-heading p:last-child { max-width: 700px; color: var(--muted); }
.danger-link { padding: 10px 0; color: var(--danger); background: none; border: 0; font-weight: 680; text-decoration: underline; text-underline-offset: 4px; }
.history-group { margin-top: 50px; }
.history-group .section-heading a { color: var(--navy); font-weight: 680; }
.history-list { display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 76px; padding: 15px 20px; color: var(--navy); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.history-item span:first-child { display: grid; gap: 4px; }
.history-item small { color: var(--muted); }
.history-item em { color: var(--muted); font-size: .76rem; font-style: normal; }
.history-arrow { font-size: 1.35rem; }
.empty-state { display: grid; place-items: center; max-width: 650px; margin: 64px auto; padding: 54px 26px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.empty-state > span { color: var(--blue); font-family: var(--display); font-size: 4rem; }
.empty-state h2 { margin-top: 10px; font-size: 1.65rem; }
.empty-state p { color: var(--muted); }
.inline-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; text-decoration: none; }

.featured-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-top: 48px; padding: 40px; color: var(--white); background: var(--navy); border-radius: 8px; }
.featured-card h2 { max-width: 700px; margin-top: 18px; font-size: clamp(1.85rem, 4vw, 3.4rem); }
.featured-card p { margin: 14px 0 0; color: #dbe3f0; }

.matrix-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 220px; margin-top: 16px; overflow: hidden; border: 1px solid rgba(32,46,86,.2); border-radius: 8px; }
.matrix-map::before, .matrix-map::after { content: ""; position: absolute; z-index: 2; background: rgba(32,46,86,.22); }
.matrix-map::before { inset-block: 0; left: 50%; width: 1px; }
.matrix-map::after { inset-inline: 0; top: 50%; height: 1px; }
.matrix-zone { display: flex; padding: 11px; color: rgba(32,46,86,.74); font-size: .66rem; font-weight: 750; line-height: 1.25; }
.matrix-zone.z1, .matrix-zone.z2 { align-items: end; }
.matrix-zone.z2, .matrix-zone.z4 { justify-content: end; text-align: right; }
.matrix-zone.z1 { background: #e7e4dc; }
.matrix-zone.z2 { background: #d7e2e2; }
.matrix-zone.z3 { background: #eee3d4; }
.matrix-zone.z4 { background: #bdd1de; }
.matrix-map > i { position: absolute; z-index: 4; width: 22px; height: 22px; background: var(--navy); border: 4px solid white; border-radius: 50%; box-shadow: 0 4px 15px rgba(32,46,86,.38); transform: translate(-50%, -50%); }
.matrix-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--navy); font-size: .72rem; font-weight: 750; }
.condition-meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 14px; font-size: .72rem; }
.condition-meter > b { color: var(--navy); }
.condition-meter > i { grid-column: 1 / -1; height: 8px; overflow: hidden; background: rgba(255,255,255,.7); border-radius: 99px; }
.condition-meter em { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-chips span { padding: 7px 10px; background: rgba(255,255,255,.6); border-radius: 99px; font-size: .7rem; }
.mini-cycle { display: grid; gap: 5px; margin-top: 16px; }
.mini-cycle div { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; min-height: 38px; padding: 6px 9px; background: rgba(255,255,255,.55); border-radius: 6px; }
.mini-cycle b { display: grid; place-items: center; width: 26px; height: 26px; color: white; background: var(--navy); border-radius: 50%; font-size: .62rem; }
.mini-cycle span { font-size: .68rem; line-height: 1.25; }
.runway-stage { display: grid; gap: 5px; margin-top: 14px; }
.runway-stage strong { font-family: var(--display); font-size: 1.75rem; font-weight: 500; }
.runway-stage small { color: rgba(32,46,86,.75); line-height: 1.4; }
.runway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 150px; margin-top: 14px; }
.runway > div { position: relative; display: flex; align-items: end; justify-content: center; overflow: hidden; background: rgba(255,255,255,.65); border: 1px solid rgba(32,46,86,.12); border-radius: 6px; }
.runway > div > i { position: absolute; inset-inline: 0; bottom: 0; background: #c6d3db; }
.runway > div.ready > i { background: #93b6c9; }
.runway > div > span { position: absolute; z-index: 2; top: 8px; font-size: .65rem; font-weight: 800; }
.runway > div > small { position: relative; z-index: 2; padding: 8px 3px; font-size: .61rem; font-weight: 760; text-align: center; }
.city-stack { display: grid; gap: 15px; margin-top: 20px; }
.city-stack > div { display: grid; grid-template-columns: 1fr 42px; gap: 7px 12px; align-items: center; }
.city-stack span { font-size: .75rem; font-weight: 740; }
.city-stack b { text-align: right; font-size: .72rem; }
.city-stack i { grid-column: 1 / -1; height: 11px; overflow: hidden; background: rgba(255,255,255,.68); border-radius: 99px; }
.city-stack em { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.decision-measure { --signal: #718ca7; }
.decision-measure.green { --signal: #5e927d; }
.decision-measure.amber { --signal: #b7834c; }
.decision-measure.red { --signal: #b85f59; }
.decision-measure.blue { --signal: #718ca7; }
.decision-verdict { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.decision-verdict i { width: 18px; height: 18px; background: var(--signal); border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 2px var(--signal); }
.decision-verdict strong { font-family: var(--display); font-size: 2rem; font-weight: 500; }
.decision-indicators { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 18px; }
.decision-indicators div { display: grid; gap: 3px; padding: 9px; background: rgba(255,255,255,.62); border-radius: 6px; }
.decision-indicators span { font-size: .62rem; line-height: 1.2; }
.decision-indicators b { font-size: .72rem; }
.diagnostic-tool { padding: 30px; background: #f0ebe4; border: 1px solid #d8cec1; border-radius: 8px; }
.diagnostic-tool h2 { margin-top: 7px; font-family: var(--display); font-size: 2.35rem; font-weight: 450; }
.cycle-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
.cycle-steps > div { min-height: 150px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.cycle-steps b { color: var(--blue); font-size: .72rem; }
.cycle-steps p { margin-top: 15px; font-size: .82rem; line-height: 1.45; }
.tool-note { margin-top: 16px; padding: 15px 17px; color: var(--navy); background: #dce8ed; border-radius: 6px; font-weight: 680; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.reason-grid > div { display: grid; gap: 5px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.reason-grid span, .message-template > span { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.reason-grid strong { font-size: .86rem; }
.message-template { margin-top: 12px; padding: 20px; color: white; background: var(--navy); border-radius: 7px; }
.message-template p { margin-top: 12px; color: #edf2f7; line-height: 1.8; }

@media (max-width: 720px) {
  .cycle-steps { grid-template-columns: 1fr; }
  .cycle-steps > div { min-height: 0; }
  .reason-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .intro-layout, .result-layout, .result-hero-inner { grid-template-columns: 1fr; }
  .privacy-note { grid-template-columns: 90px 1fr; align-items: center; min-height: 0; }
  .privacy-number { font-size: 3.8rem; }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-measure { max-width: 560px; }
  .result-side { grid-template-columns: 1fr 1fr; }
  .score-card { grid-row: span 2; }
}

@media (max-width: 820px) {
  .topbar { min-height: 64px; padding-inline: 16px; }
  .brand-copy small { display: none; }
  .topbar .quiet-button { min-height: 40px; padding-inline: 12px; font-size: .8rem; }
  .home-view, .test-shell, .history-page { width: min(100% - 28px, 700px); }
  .intro-layout { gap: 28px; padding-top: 50px; }
  .intro-copy h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .privacy-note { grid-template-columns: 72px 1fr; padding: 20px; }
  .test-grid { grid-template-columns: 1fr; }
  .test-card { min-height: 270px; }
  .method-note { grid-template-columns: 1fr; gap: 18px; }
  .test-intro-card { grid-template-columns: 1fr; }
  .test-intro-aside { padding: 26px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .test-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
  .test-facts span { font-size: .75rem; }
  .local-note { margin-top: 24px; }
  .test-intro-main { padding: 34px 22px; }
  .test-intro-main h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .gentle-note { grid-template-columns: 1fr; gap: 6px; }
  .runner-top { padding-inline: 14px; }
  .runner-top > span { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .runner-workspace { grid-template-columns: 1fr; }
  .runner-sidebar { gap: 22px; padding: 26px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .runner-sidebar h2 { font-size: 2rem; }
  .runner-sidebar > div:first-child > p:last-child { display: none; }
  .sidebar-progress { margin: 0; }
  .question-map { grid-template-columns: repeat(7, minmax(30px, 1fr)); }
  .runner-hint { display: none; }
  .runner-main { padding: 30px 18px 42px; }
  .question-counter { margin-bottom: 28px; }
  .question-card legend { margin-bottom: 26px; font-size: clamp(2rem, 8.5vw, 3rem); }
  .option { grid-template-columns: 32px 1fr; padding: 12px; }
  .runner-actions { grid-template-columns: 1fr 1.45fr; }
  .result-hero { padding: 0; }
  .result-hero-inner { width: min(100% - 28px, 700px); gap: 30px; padding: 30px 0 46px; }
  .result-hero h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .hero-measure { max-width: none; }
  .result-layout { width: min(100% - 28px, 700px); gap: 36px; padding-block: 42px; }
  .insight-grid, .result-side, .practice-grid, .recipe-grid { grid-template-columns: 1fr; }
  .score-card { grid-row: auto; }
  .result-actions { width: min(100% - 28px, 700px); display: grid; }
  .history-heading { align-items: start; flex-direction: column; }
  .section-heading { width: 100%; }
  .featured-card { grid-template-columns: 1fr; padding: 28px 22px; }
}

@media (max-width: 430px) {
  .brand-mark { width: 38px; }
  .brand-copy strong { font-size: .88rem; }
  .home-view { width: min(100% - 24px, 680px); }
  .privacy-note { grid-template-columns: 58px 1fr; }
  .privacy-number { font-size: 3rem; }
  .test-facts { grid-template-columns: 1fr 1fr; }
  .test-facts span:last-child { grid-column: 1 / -1; }
  .question-map { grid-template-columns: repeat(7, 1fr); gap: 5px; }
  .question-dot { min-width: 0; }
  .option { min-height: 64px; }
  .runner-actions { grid-template-columns: 1fr; }
  .runner-actions .primary-button { grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { margin: 15mm; }
  body { background: white; color: #111; }
  .topbar, .no-print, .back-link { display: none !important; }
  .result-hero { padding: 0 0 18px; color: #111; background: white; border-bottom: 2px solid #202e56; }
  .result-hero-inner { width: 100%; grid-template-columns: 1fr 220px; gap: 18px; padding: 0; }
  .result-hero h1 { font-size: 30pt; }
  .result-hero-copy > p:not(.eyebrow), .secondary-hypothesis, .eyebrow.pale { color: #333; }
  .hero-measure { color: #111; background: white; border: 1px solid #777; }
  .result-layout { width: 100%; grid-template-columns: 1fr; gap: 20px; padding: 22px 0; }
  .result-main { gap: 22px; }
  .result-side { grid-template-columns: 1fr 1fr; }
  .score-card { grid-row: span 2; }
  .style-recipe, .consultation-card { color: #111; background: white; border: 1px solid #777; }
  .style-recipe p, .consultation-card p, .style-recipe .mini-label, .consultation-card .mini-label { color: #333; }
  section, .score-card, .compare-card, .practice-grid > div { break-inside: avoid; }
}
