@font-face {
  font-family: Inter; src: url("./assets/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: Inter; src: url("./assets/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face { font-family: Moonglade; src: url("./assets/moonglade.woff2") format("woff2"); font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font: 1rem/1.58 Inter, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: var(--theme-blue); }
:focus-visible { outline: 3px solid var(--theme-blue); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.topbar { background: var(--theme-surface); border-bottom: 1px solid var(--theme-border); }
.bar, .footer, .actions, .row, .brand, .tags, .eyebrow { display: flex; align-items: center; }
.bar, .footer, .row { justify-content: space-between; gap: 16px; }
.bar { min-height: 76px; }
.brand { gap: 10px; width: fit-content; color: var(--theme-text); text-decoration: none; }
.brand span { font: 1.6rem/1 Moonglade, Inter, sans-serif; }
.brand img { display: block; }
.nav-link, .text-btn { padding: 10px 0; border: 0; background: transparent; color: var(--theme-blue); font-size: .94rem; font-weight: 550; }
.nav-link { color: var(--theme-muted); }
.nav-link:hover, .text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
main { flex: 1; padding-block: clamp(28px,4.4vw,62px); outline: none; }
.footer { padding-block: 16px max(16px,env(safe-area-inset-bottom)); border-top: 1px solid var(--theme-border); font-size: .875rem; color: var(--theme-muted); }
h1,h2,h3,p,ul,ol,blockquote { margin: 0; }
h1,h2,h3 { line-height: 1.16; text-wrap: pretty; }
h1 { font-weight: 650; letter-spacing: -.043em; }
h2 { font-size: clamp(1.35rem,2.3vw,1.8rem); font-weight: 640; letter-spacing: -.036em; }
h3 { font-size: 1.13rem; letter-spacing: -.022em; }
.hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(22px,3vw,38px) clamp(18px,4vw,56px) clamp(30px,4vw,54px);
  text-align: center;
  border: 1px solid var(--theme-border);
  border-radius: 32px;
  background: radial-gradient(ellipse 370px 200px at 50% 10%,#e8f4fc,transparent), var(--theme-surface);
}
.hero-copy { display: grid; justify-items: center; min-width: 0; }
.eyebrow { gap: 9px; color: var(--theme-blue); font-weight: 630; font-size: .88rem; letter-spacing: .016em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg,#2563eb,#06b6d4); border-radius: 2px; flex: none; }
.hero .eyebrow::after { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,#06b6d4,#2563eb); }
.hero h1 { margin-block: 14px 16px; max-width: 780px; font-size: clamp(2.4rem,4.5vw,4.05rem); line-height: 1.045; text-wrap: balance; }
.hero-copy > p { color: var(--theme-muted); max-width: 64ch; font-size: 1.07rem; text-wrap: pretty; }
.hero-copy .actions { flex-direction: column; gap: 3px; margin-top: 24px; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(128px,15vw,188px);
  aspect-ratio: 1.22;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: auto 15% 1%;
  height: 11%;
  background: radial-gradient(ellipse,rgba(42,103,170,.2),transparent 70%);
}
.hero-art img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: brain-float 4.6s ease-in-out both; }
}
@keyframes brain-float {
  0%,100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-6px) rotate(-2deg); }
  72% { transform: translateY(-2px) rotate(1deg); }
}
.overview { margin-top:32px; display:grid; grid-template-columns:repeat(3,1fr); padding:6px 0; text-align:center; }
.overview > div { padding:7px 30px; border-left:1px solid var(--theme-border); }
.overview > div:first-child { border:0; }
.overview p { margin:6px auto 0; color:var(--theme-muted); max-width:35ch; }
.overview + .small-note { text-align:center; }
.meta, .muted { color:var(--theme-muted); }
.meta { font-size:.9rem; line-height:1.52; }
.small-note { margin-top:24px; color:var(--theme-muted); font-size:.88rem; }
.actions { gap:12px 18px; flex-wrap:wrap; }
.primary { background:linear-gradient(130deg,#2559ca,#087eaa); }
.primary:hover { filter:brightness(1.06); }
.secondary, .pill { border:1px solid var(--theme-border); background:white; padding:10px 18px; border-radius:50px; min-height:44px; font-weight:540; }
.secondary:hover,.pill:hover,.choice:hover { background:#f4f8fd; border-color:#9ab7d4; }
.panel, .subpanel { background:var(--theme-surface); border:1px solid var(--theme-border); border-radius:26px; padding:clamp(22px,4.2vw,48px); }
.flow { width:min(100%,758px); margin-inline:auto; display:grid; gap:18px; }
.flow h1 { font-size:clamp(1.85rem,3.6vw,2.7rem); }
.stack { display:grid; gap:20px; }
.stack-sm { display:grid; gap:10px; }
.panel > .actions:last-child { margin-top:4px; }
.progress { width:100%; height:5px; border:0; border-radius:8px; overflow:hidden; appearance:none; background:var(--theme-raised); }
.progress::-webkit-progress-bar { background:var(--theme-raised); }
.progress::-webkit-progress-value { background:linear-gradient(90deg,#2563eb,#06b6d4); border-radius:8px; }
.progress::-moz-progress-bar { background:#2479cc; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
.choices { display:grid; gap:8px; }
.choice { display:flex; align-items:center; gap:12px; cursor:pointer; padding:12px 16px; min-height:49px; border:1px solid var(--theme-border); border-radius:16px; }
.choice:has(:checked), .pill[aria-pressed="true"] { border-color:#6394cc; color:#164d82; background:#ecf5ff; }
input[type=radio] { width:18px; height:18px; margin:0; accent-color:#2466b5; flex:none; }
label.field { display:grid; gap:7px; font-weight:550; }
textarea { display:block; width:100%; min-height:82px; resize:vertical; color:var(--theme-text); background:#fafbfd; border:1px solid var(--theme-border); border-radius:14px; padding:12px 14px; font-weight:400; }
details { border-block-start:1px solid var(--theme-border); padding:13px 0 0; }
summary { color:var(--theme-text); font-weight:580; padding:4px 0; }
details[open] > summary { margin-bottom:12px; }
.tags { gap:8px; flex-wrap:wrap; }
.tag { padding:4px 12px; border-radius:40px; background:#eaf2fd; color:var(--theme-blue); font-size:.92rem; }
.inset, blockquote { background:#f2f6fb; border-radius:16px; padding:16px 18px; }
blockquote { border-left:3px solid #6caadd; }
.list { list-style:none; margin:0; padding:0; }
.list li + li { margin-top:8px; }
.pick { display:flex; width:100%; gap:14px; align-items:center; justify-content:space-between; text-align:left; border:1px solid var(--theme-border); border-radius:15px; padding:14px 16px; background:white; }
.pick:hover { background:#f4f8fd; }
.pick span { display:block; }
.pick strong { font-weight:600; }
.review { text-align:left; display:grid; gap:4px; width:100%; padding:10px 0; background:none; border:0; color:inherit; }
.privacy-note { font-size:.9rem; color:var(--theme-muted); }
.error { color:var(--theme-red); }
dialog { border:1px solid var(--theme-border); border-radius:24px; padding:clamp(24px,4vw,40px); width:min(94vw,540px); max-height:85dvh; color:var(--theme-text); }
dialog::backdrop { background:rgba(25,34,48,.38); }
dialog .secondary { margin-top:20px; }
.skip { position:fixed; top:-120px; left:16px; z-index:8; padding:10px; background:white; }
.skip:focus { top:8px; }
#notice:not(:empty) { position:fixed; z-index:5; bottom:max(env(safe-area-inset-bottom),16px); left:50%; transform:translateX(-50%); width:max-content; max-width:90vw; padding:10px 17px; border-radius:14px; background:var(--theme-text); color:white; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:780px) {
  .wrap { width:calc(100% - 36px); }
  .hero { border-radius:24px; }
  .overview > div { padding:6px 15px; }
}
@media(max-width:600px) {
  .bar { min-height:60px; }
  main { padding-block:18px 28px; }
  .hero { gap:10px; }
  .hero-art { width:120px; }
  .hero h1 { font-size:clamp(1.95rem,8.4vw,2.85rem); margin:14px 0; }
  .hero-copy > p { font-size:1rem; }
  .hero-copy .actions { margin-top:22px; }
  .overview { margin-top:18px; grid-template-columns:1fr; padding:0 5px; }
  .overview > div,.overview > div:first-child { padding:13px 0; border:0; }
  .overview > div + div { border-top:1px solid var(--theme-border); }
  .overview p { max-width:none; margin-top:4px; }
  .panel,.subpanel { padding:23px 18px; border-radius:22px; }
  .actions { gap:9px 14px; }
  .row { flex-wrap:wrap; gap:5px 12px; }
  .footer { gap:8px; flex-wrap:wrap; }
}
