:root {
  color-scheme: light;
  --ink: #17283b;
  --muted: #526170;
  --navy: #101f30;
  --navy-deep: #0c1928;
  --paper: #fffdfa;
  --canvas: #f5f2ed;
  --line: #dfd9cf;
  --gold: #e8b763;
  --gold-light: #fbf0dc;
  --gold-dark: #72521f;
  --heading: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #886021; outline-offset: 4px; }
[data-focus]:focus { outline: none; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--navy-deep); border-bottom: 1px solid #314052; color: #f9f6f1; }
.top-inner, .brand { display: flex; align-items: center; }
.top-inner { min-height: 74px; justify-content: space-between; gap: 20px; }
.brand { gap: 12px; }
.brand-symbol {
  width: 41px; height: 41px; display: grid; place-items: center; color: var(--gold); border: 1px solid #a0885e;
  border-radius: 9px; font: bold 16px var(--heading); letter-spacing: -.05em;
}
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: #bfcbda; font-size: 10px; letter-spacing: .12em; }
.top-link { color: #e2e8ef; font-size: 13px; font-weight: 650; }
.top-link:focus-visible { outline-color: var(--gold); }

.hero { background: radial-gradient(ellipse at 86% 45%, #25394c 0%, var(--navy) 62%); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 770px) 1fr; align-items: center; gap: 32px; padding-block: 48px 56px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: #f3cb8b; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 750; }
.kicker span { background: currentColor; width: 16px; height: 1px; }
h1, h2 { font-family: var(--heading); margin: 0; font-weight: 500; line-height: 1.1; }
h1 { max-width: 760px; font-size: clamp(40px, 5vw, 65px); letter-spacing: -.042em; margin: 16px 0 17px; }
.hero p { margin: 0; color: #dce5ed; font-size: 17px; max-width: 640px; }
.hero-checklist { display: grid; place-items: center; width: 100%; aspect-ratio: 1.33; max-width: 262px; justify-self: end; border-radius: 16px; border: 1px solid #61768b62; background: repeating-linear-gradient(90deg, transparent 0 23px, #91a1ac12 23px 24px), repeating-linear-gradient(0deg, transparent 0 23px, #91a1ac12 23px 24px); }
.hero-paper { width: 56%; background: #192b3e; border: 1px solid #8d9bac; border-radius: 12px; padding: 14px; box-shadow: 13px 15px 0 #111e2c70; transform: rotate(-7deg); }
.paper-top, .paper-line { display: flex; align-items: center; gap: 9px; }
.paper-top { margin-bottom: 16px; justify-content: space-between; }
.paper-top span { width: 53%; height: 5px; background: var(--gold); border-radius: 8px; }
.paper-top i { width: 6px; height: 6px; border: 1px solid var(--gold); border-radius: 50%; }
.paper-line + .paper-line { margin-top: 8px; }
.paper-line b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 4px; background: #e8b76321; color: #f3cb8b; font-size: 12px; }
.paper-line span { flex: 1; background: #657b8f; border-radius: 4px; height: 3px; }

.body-layout { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 23px; align-items: start; padding-block: 32px 38px; }
.workspace, .guide { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.workspace { scroll-margin-block: 18px; padding: 29px; min-width: 0; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.progress li { font-size: 12px; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.step-number { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #eeeae2; color: var(--muted); font-size: 11px; }
.progress .current { color: var(--ink); }
.current .step-number { background: var(--ink); color: white; }
.done .step-number { background: var(--gold-light); color: var(--gold-dark); }
.panel-top { margin-block: 24px 21px; }
.panel-top h2, .result-top h2 { font-size: clamp(29px, 4vw, 40px); letter-spacing: -.032em; }
.panel-top p { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field + .field { margin-top: 22px; }
legend, .field-label { display: block; padding: 0; font-size: 15px; font-weight: 750; }
.hint { color: var(--muted); margin: 4px 0 10px; font-size: 13px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.option { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; cursor: pointer; }
.option:hover { border-color: #9c8057; }
.option:has(input:checked) { border-color: #a57731; background: #fdf2df; }
.option:has(input:focus-visible) { outline: 2px solid #886021; outline-offset: 2px; }
.option input { flex: 0 0 auto; margin: 3px 0 0; accent-color: #76511d; width: 15px; height: 15px; }
.option strong { display: block; font-size: 13px; line-height: 1.36; }
.option small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
select { width: 100%; border: 1px solid #b5ada1; border-radius: 7px; min-height: 44px; margin-top: 6px; background: white; color: var(--ink); padding: 8px 32px 8px 11px; }
.invalid select, .invalid .option { border-color: #a33535; }
.error { margin: 13px 0 0; color: #922b2b; font-weight: 650; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 18px; margin-top: 21px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 14px; min-height: 43px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 750; color: var(--ink); text-align: center; }
.primary { background: var(--gold); }
.primary:hover { background: #ebc078; }
.secondary { background: var(--paper); border-color: #c8c0b5; }
.secondary:hover { background: #f3efe8; }
.text-button { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: #724e19; }

.guide { padding: 21px; }
.guide h2 { font-size: 24px; }
.guide-list { padding: 0; margin: 17px 0; list-style: none; }
.guide-list li { display: flex; align-items: flex-start; gap: 10px; }
.guide-list li + li { margin-top: 14px; }
.guide-list li > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--gold-light); color: var(--gold-dark); font-weight: 750; }
.guide-list strong { font-size: 13px; }
.guide-list p, .privacy { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.privacy { border-top: 1px solid var(--line); padding-top: 12px; }
.methodology { border-top: 1px solid var(--line); padding-block: 27px 33px; scroll-margin-block: 20px; }
.methodology h2 { font-size: 28px; }
.methodology p { max-width: 740px; color: var(--muted); margin: 10px 0; }
.sources { padding: 0; margin: 14px 0 0; list-style: none; display: flex; gap: 8px 17px; flex-wrap: wrap; font-size: 13px; font-weight: 650; }
.footer { background: var(--navy-deep); color: #dce5ed; padding-block: 17px; font-size: 13px; }
.footer span { color: var(--gold); margin-inline: 5px; }

.kicker.light { color: var(--gold-dark); }
.result-top h2 { margin-top: 5px; }
.result-top ul, .follow-up ul { padding-left: 19px; margin: 12px 0; color: var(--muted); }
.result-top li + li, .follow-up li + li { margin-top: 4px; }
.result-top details { margin-top: 15px; font-size: 13px; }
.result-top summary { cursor: pointer; font-weight: 700; }
.result-top dl { display: grid; gap: 8px; margin: 8px 0 0; }
.result-top dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.result-top dt { color: var(--muted); }
.result-top dd { margin: 0; }
.follow-up { border: 1px solid #e6d3ad; border-radius: 9px; padding: 13px 15px; margin-top: 18px; background: #fdf5e5; }
.follow-up h3 { font-size: 15px; margin: 0; }
.follow-up ul { font-size: 14px; margin: 5px 0 0; }
.switcher { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 24px; }
.switcher button { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; padding: 10px 9px 9px; font-weight: 700; font-size: 13px; }
.switcher button[aria-pressed="true"] { border-color: #ad7d32; color: var(--ink); }
.switcher button:hover { color: var(--ink); }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.output-head p { font-size: 13px; color: var(--muted); margin: 0; }
.compact { min-height: 38px; padding: 7px 10px; flex-shrink: 0; }
.feedback { color: #4a592d; margin: 7px 0 0; font-size: 13px; }
.feedback:empty { margin: 0; }
.recommendations { list-style: none; padding: 0; counter-reset: item; margin: 14px 0 0; }
.recommendations > li { position: relative; counter-increment: item; border-top: 1px solid var(--line); padding: 12px 0 12px 30px; }
.recommendations > li::before { content: counter(item) '.'; position: absolute; left: 0; top: 13px; color: var(--gold-dark); font-weight: 750; font-size: 13px; }
.recommendation-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.recommendations h3 { font-size: 14px; margin: 0; }
.basis { display: inline-block; font-size: 11px; color: var(--gold-dark); }
.recommendations p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.recommendations .row-note { font-size: 12px; font-style: italic; }
.result-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.result-actions { justify-content: flex-start; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 180px; }
  .body-layout { grid-template-columns: minmax(0, 1fr) 215px; gap: 15px; }
  .workspace, .guide { padding: 19px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner, .body-layout { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 32px 37px; }
  .hero-checklist { display: none; }
  .body-layout { padding-block: 18px 26px; }
  .guide { order: 2; }
}
@media (max-width: 420px) {
  .workspace, .guide { padding: 15px; }
  .top-inner { gap: 8px; }
  .top-link { font-size: 11px; }
  .brand { gap: 7px; }
  .brand-symbol { width: 33px; height: 33px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  h1 { font-size: 37px; }
  .progress { gap: 4px; }
  .progress li { flex-direction: column; align-items: center; text-align: center; font-size: 11px; line-height: 1.2; }
  .options { grid-template-columns: 1fr; }
  .output-head { align-items: flex-start; flex-direction: column; }
  .switcher button { padding-inline: 5px; font-size: 12px; }
}
