:root {
  --bg: #f7f2ee;
  --surface: #fbf8f5;
  --surface-strong: #ffffff;
  --ink: #201915;
  --muted: #71665f;
  --soft: #eee2d8;
  --line: #e7d9cf;
  --primary: #8f5a45;
  --primary-dark: #5e392d;
  --accent: #9b7a5f;
  --focus: #315fc7;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(54, 38, 30, 0.13);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.95), transparent 32%), linear-gradient(135deg, #f7f2ee 0%, #efe2d7 52%, #f5efe9 100%);
  color: var(--ink);
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 99; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; padding: 72px 0 44px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 18% 18%, rgba(255,255,255,.95) 0 12%, transparent 28%),
  radial-gradient(circle at 82% 12%, rgba(143,90,69,.16), transparent 32%),
  radial-gradient(circle at 64% 88%, rgba(155,122,95,.22), transparent 34%),
  linear-gradient(140deg, #fbf8f5 0%, #efe1d6 54%, #f8f3ef 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 48px; align-items: center; }
.eyebrow, .section-kicker { color: var(--primary-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; font-weight: 700; margin: 0 0 16px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-size: clamp(3.1rem, 8vw, 6.4rem); font-family: "Playfair Display", Georgia, serif; letter-spacing: -.06em; max-width: 820px; }
h2 { font-size: clamp(1.95rem, 4.6vw, 3.55rem); letter-spacing: -.055em; font-family: "Playfair Display", Georgia, serif; }
h3 { font-size: 1.35rem; letter-spacing: -.03em; }
.subtitle { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--muted); max-width: 700px; margin: 22px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 34px; }
.btn { min-height: 52px; border: 0; border-radius: 999px; padding: 14px 24px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--ink), var(--primary-dark)); color: #fff; box-shadow: 0 12px 32px rgba(45,31,24,.24); }
.btn--primary:hover { background: #1f1510; }
.btn--secondary { background: var(--surface-strong); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn[disabled] { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.microcopy { color: var(--muted); font-size: .95rem; max-width: 310px; }
.preview-card { background: rgba(255,255,255,.68); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow); }
.preview-card__topline { display: inline-block; background: var(--soft); color: var(--primary-dark); border-radius: 999px; padding: 7px 12px; font-weight: 800; margin-bottom: 18px; }
.preview-card h2 { font-size: 2.2rem; }
.preview-card ul { padding: 0; list-style: none; margin: 24px 0 0; display: grid; gap: 12px; }
.preview-card li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 600; }
.preview-card li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 4px #fff1e5; }
.intro-section { padding: 76px 0; background: rgba(255,255,255,.35); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.bullets { display: grid; gap: 14px; }
.bullets p { margin: 0; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--muted); font-weight: 600; }
.test-shell, .result-shell { min-height: 100dvh; padding: 48px 0 80px; display: grid; align-items: center; }
.test-layout { max-width: 820px; }
.test-card, .result-card, .telegram-card { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.progress-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-weight: 800; font-size: .92rem; margin-bottom: 10px; }
.progress { height: 10px; background: #f2e3d6; border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .25s ease; }
.question-title { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin-bottom: 10px; }
.question-help { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.options { display: grid; gap: 12px; }
.option { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fffaf6; cursor: pointer; transition: border .18s ease, background .18s ease, transform .18s ease; }
.option:hover { border-color: var(--primary); background: #fff7ed; transform: translateY(-1px); }
.option input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); }
.text-field { display: grid; gap: 8px; margin-top: 18px; }
.text-field label { font-weight: 800; }
.text-field input, .text-field textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fffaf6; color: var(--ink); }
.text-field textarea { min-height: 136px; resize: vertical; }
.helper { color: var(--muted); font-size: .94rem; margin: 0; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 28px; }
.form-error { min-height: 24px; color: var(--danger); font-weight: 800; margin-top: 12px; }
.gate-box { background: linear-gradient(145deg, #fff7ed, #f5e9ff); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 20px 0; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.result-grid--public { grid-template-columns: minmax(0, 820px); justify-content: center; }
.result-summary { color: var(--muted); font-size: 1.15rem; }
.result-block { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.result-block ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.whatsapp-note { background: #f6efe7; border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-top: 24px; }
.telegram-card { position: sticky; top: 20px; background: #2d1f18; color: #fff7ed; }
.telegram-card .section-kicker, .telegram-card p { color: #f0d8c8; }
pre { white-space: pre-wrap; word-break: break-word; background: rgba(255,255,255,.08); border-radius: 16px; padding: 16px; font-size: .88rem; overflow: auto; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 46px; }
  .hero__grid, .split, .result-grid { grid-template-columns: 1fr; }
  .preview-card { padding: 24px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .btn { width: 100%; }
  .telegram-card { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

body.quiz-active [data-screen="landing"] { display: none !important; }
body.result-active [data-screen="landing"], body.result-active #test { display: none !important; }
body.quiz-active, body.result-active { min-height: 100dvh; }
