:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202a28;
  background: #f6f5f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202a28;
  --muted: #586461;
  --line: #d9ded8;
  --accent: #236858;
  --accent-soft: #e3f0eb;
  --surface: #fff;
}
* { box-sizing: border-box; }
.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; }
body { margin:0; min-width:320px; min-height:100vh; min-height:var(--telegram-viewport-height,100svh); }
button { font:inherit; cursor:pointer; }
button:focus-visible { outline:3px solid #8bbdaf; outline-offset:3px; }
.topbar { width:min(100% - 32px, 900px); min-height:68px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.brand { border:0; background:transparent; color:var(--ink); padding:12px 0; font-weight:700; text-align:left; }
.topbar-note,.meta,.version-note { color:var(--muted); font-size:.86rem; }
.home { width:min(100% - 32px, 900px); margin:0 auto; }
.hero { padding:clamp(30px,7vw,76px) clamp(22px,6vw,64px); border:1px solid #e7e8e2; border-radius:26px; background:linear-gradient(135deg,#fff 15%,#f1f5f0 100%); }
.eyebrow { color:var(--accent); font-size:.82rem; font-weight:700; letter-spacing:.045em; text-transform:uppercase; }
h1 { max-width:760px; margin:6px 0 18px; font-size:clamp(2rem,7vw,3.6rem); line-height:1.08; letter-spacing:-.04em; }
h2 { margin:0 0 12px; font-size:clamp(1.35rem,4vw,1.85rem); line-height:1.2; letter-spacing:-.02em; }
h3 { margin:8px 0; font-size:1.2rem; line-height:1.3; }
p { line-height:1.6; }
.hero-copy { max-width:620px; margin:0; font-size:clamp(1.05rem,2.5vw,1.25rem); color:#46524e; }
.section { margin:clamp(34px,6vw,58px) 0; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:18px; }
.section-heading .eyebrow { margin:0 0 8px; }
.section-heading h2 { margin-bottom:6px; }
.muted { color:var(--muted); }
.active-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:16px; }
.survey-card,.concept-card,.about-card,.panel { border:1px solid #e3e7e0; border-radius:20px; background:var(--surface); box-shadow:0 10px 32px #243c300b; }
.survey-card { padding:clamp(20px,4vw,30px); }
.survey-card p { color:var(--muted); }
.badge { display:inline-flex; align-items:center; min-height:30px; padding:5px 10px; border-radius:999px; background:#edf3ef; color:#36564d; font-size:.78rem; font-weight:700; }
.primary,.secondary,.text-button { min-height:48px; border-radius:13px; padding:11px 17px; font-weight:700; }
.primary { border:1px solid var(--accent); background:var(--accent); color:white; }
.primary:hover { background:#194f43; }
.primary:disabled { opacity:.5; cursor:not-allowed; }
.secondary { border:1px solid var(--line); background:white; color:var(--ink); }
.text-button { border:0; background:transparent; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.concept-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.concept-card { min-height:150px; padding:17px; box-shadow:none; background:#fbfcfa; }
.concept-card span { color:var(--accent); font-size:.78rem; font-weight:700; }
.concept-card h3 { font-size:1.03rem; }
.concept-card p { margin:12px 0 0; color:var(--muted); font-size:.83rem; line-height:1.4; }
.about-card { display:flex; align-items:center; justify-content:space-between; gap:28px; padding:clamp(20px,4vw,34px); background:#edf3ef; box-shadow:none; }
.about-card h2 { margin-bottom:8px; }
.about-card p:not(.eyebrow) { max-width:650px; margin-bottom:0; }
.about-card .text-button { flex:none; }
.version-note { text-align:center; margin:30px 0 42px; }
.panel { width:min(100% - 32px,760px); margin:24px auto 34px; padding:clamp(24px,6vw,54px); }
.panel h1 { font-size:clamp(1.8rem,6vw,2.6rem); }
.survey-intro .lead { font-size:1.18rem; }
.demo-notice { margin:24px 0; padding:16px 18px; border-left:3px solid #b77c3d; border-radius:0 12px 12px 0; background:#fbf6ee; color:#493d2d; }
.demo-notice p { margin:6px 0 0; }
.survey-intro .text-button { margin-left:8px; }
.progress-label { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.9rem; }
progress { display:block; width:100%; height:8px; margin:10px 0 34px; accent-color:var(--accent); }
.question-panel h1 { margin-bottom:30px; font-size:clamp(1.6rem,5vw,2.35rem); }
.options { display:grid; gap:12px; }
.option { min-height:58px; padding:14px 16px; border:1px solid var(--line); border-radius:15px; background:#fff; color:var(--ink); text-align:left; line-height:1.45; }
.option:hover { border-color:#83aa9b; }
.option.selected { border-color:var(--accent); background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--accent); }
.navigation { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:34px; padding-top:20px; border-top:1px solid #edf0eb; }
.report-visual,.report-copy,.related { margin:22px 0; padding:clamp(18px,4vw,28px); border:1px solid #e5e9e3; border-radius:18px; background:#fbfcfa; }
.score-row { margin:18px 0; }
.score-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.score-bar { width:100%; height:14px; margin:0; accent-color:var(--accent); }
.report-copy .lead { font-size:1.18rem; }
.topic-list { display:flex; flex-wrap:wrap; gap:8px; }
.topic-chip { display:inline-flex; padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:#42514c; background:white; font-size:.9rem; }
.report-panel .primary { margin-top:10px; }
.feedback-field { margin:18px 0; padding:0; border:0; border-bottom:1px solid var(--line); }
.feedback-field legend { margin-bottom:8px; font-weight:650; }
.feedback-field .options { display:flex; flex-wrap:wrap; gap:8px; }
.feedback-field .option { flex:1 1 86px; }
.synthetic-confirm { display:flex; align-items:flex-start; gap:10px; margin:18px 0; line-height:1.45; }
.synthetic-confirm input { flex:0 0 auto; width:20px; height:20px; margin:2px 0 0; accent-color:var(--ink); }
.notice { padding:12px 14px; border-radius:12px; color:#783e24; background:#fff2e8; }
footer { width:min(100% - 40px,760px); margin:0 auto 30px; color:var(--muted); font-size:.82rem; line-height:1.5; text-align:center; }
@media (max-width:700px) {
  .concept-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .about-card { align-items:flex-start; flex-direction:column; gap:8px; }
  .about-card .text-button { align-self:flex-start; }
}
@media (max-width:480px) {
  .topbar { width:min(100% - 24px,900px); min-height:60px; padding-top:max(0px,env(safe-area-inset-top)); }
  .topbar-note { display:none; }
  .home { width:min(100% - 24px,900px); }
  .hero { border-radius:20px; padding:28px 21px 32px; }
  .section { margin:34px 0; }
  .section-heading { align-items:flex-start; }
  .concept-grid { gap:9px; }
  .concept-card { min-height:154px; padding:14px 12px; }
  .panel { width:100%; margin:0 auto 24px; padding:28px 20px max(28px,env(safe-area-inset-bottom)); border-radius:0 0 20px 20px; }
  .survey-intro .text-button { margin:10px 0 0; }
  .navigation { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
  .navigation button { min-height:50px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; } }
