:root {
  color-scheme: light; --forest:#16372a; --deep:#102b22; --paper:#f7f4eb;
  --ink:#15251e; --line:#d8ddca; --gold:#f3cb75; --coral:#a64535;
  font-family: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
#consent-document-text { white-space:pre-wrap; overflow-wrap:anywhere; max-height:50vh; overflow:auto; }
body { margin:0; color:var(--ink); background:var(--paper); }
a { color:inherit; }
button,input { font:inherit; }
button, .primary, summary { cursor:pointer; }
button:disabled { cursor:default; opacity:.48; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid #FF411B; outline-offset:3px; }
.site-header { min-height:76px; padding:14px clamp(16px,5vw,72px); display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; flex-shrink:0; width:145px; text-decoration:none; color:#FF411B; }
.brand img { display:block; width:100%; height:auto; }
main { max-width:1230px; margin:auto; padding:24px clamp(16px,4vw,48px) 46px; }
.demo { margin-bottom:12px; padding:9px 12px; background:#fbebc7; border-radius:8px; font-size:.87rem; }
.hero { min-height:400px; display:grid; place-items:center; text-align:center; border-radius:20px; background:linear-gradient(125deg,var(--deep),var(--forest)); color:#fff8e9; padding:clamp(24px,4vw,55px); }
.eyebrow { font-size:.8rem; font-weight:760; letter-spacing:.115em; text-transform:uppercase; }
.hero .eyebrow { color:var(--gold); }
h1,h2,p { margin-top:0; }
h1,h2 { font-family:Georgia, 'Times New Roman', serif; }
.hero h1 { margin:0; font-size:clamp(2.9rem,6.5vw,6.2rem); line-height:.96; font-weight:normal; letter-spacing:-.045em; }
.hero p:not(.eyebrow) { margin:23px auto 26px; max-width:31ch; line-height:1.55; }
.primary,.outline,.back { display:inline-flex; gap:.35rem; align-items:center; justify-content:center; min-height:44px; border-radius:9px; padding:.65rem 1rem; font-weight:700; text-decoration:none; }
.primary { background:var(--forest); color:white; border:1px solid var(--forest); }
.hero .primary { color:var(--deep); background:var(--gold); border-color:var(--gold); }
.outline { color:var(--forest); background:transparent; border:1px solid #748477; }
.back { color:var(--forest); background:none; border:0; padding-inline:.25rem; }
#activities,.faq { margin-top:36px; scroll-margin:20px; }
h2 { font-size:clamp(2rem,4vw,3rem); font-weight:normal; margin-bottom:16px; }
.activity-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.activity-list li { padding:20px; border:1px solid var(--line); border-radius:12px; min-height:207px; background:#fffdf7; display:flex; flex-direction:column; align-items:flex-start; }
.activity-list h3 { margin:8px 0; font-size:1.1rem; }
.activity-list p { margin:0 0 12px; color:#43564c; line-height:1.45; }
.activity-list small { font-weight:650; color:var(--forest); margin-top:auto; }
.activity-list button { margin-top:9px; }
.icon { color:var(--coral); font-size:1.5rem; line-height:1; }
.activity-label { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.activity-dates { display:inline-block; padding:4px 9px; border-radius:20px; background:#f8e3d8; color:#75231a; font-size:.79rem; font-weight:760; }
.faq { max-width:800px; }
details { padding:14px 0; border-bottom:1px solid var(--line); }
details p { margin:10px 0 0; line-height:1.5; }
summary { font-weight:650; }
.quiz { max-width:700px; margin:0 auto; padding-top:14px; }
.quiz h1 { font-size:clamp(2.5rem,6vw,4.1rem); font-weight:normal; }
.quiz .eyebrow { margin-top:18px; }
progress { width:100%; height:9px; accent-color:var(--forest); margin-bottom:16px; }
.options { display:grid; gap:8px; }
.options button { text-align:left; padding:13px 16px; min-height:49px; color:var(--ink); border:1px solid var(--line); background:#fffdf7; border-radius:9px; }
.options button[aria-pressed=true] { border-color:var(--forest); background:#dce9d8; font-weight:700; }
.quiz-actions { display:flex; justify-content:space-between; gap:8px; margin-top:22px; }
.result-card { background:var(--forest); color:#fff8e9; padding:clamp(24px,5vw,60px); border-radius:16px; margin:18px 0; }
.result-card img { width:100%; max-height:260px; object-fit:contain; }
.result-card.full-card { max-width:550px; margin-inline:auto; padding:0; overflow:hidden; }
.result-card.full-card img { display:block; max-height:none; }
.result-card.full-card #result-profile { padding:0 16px; }
.result-card.full-card :is(.eyebrow, #result-title, #result-description) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
dialog { width:min(480px,calc(100% - 32px)); border:1px solid var(--line); border-radius:16px; padding:24px; color:var(--ink); background:var(--paper); }
dialog::backdrop { background:#102b228a; }
dialog #close { position:absolute; right:12px; top:10px; min-width:44px; }
dialog form { display:grid; gap:12px; }
dialog input:not([type=checkbox]) { display:block; width:100%; margin-top:4px; padding:10px; min-height:44px; background:white; border:1px solid #748477; border-radius:8px; }
.checkbox { display:flex; align-items:start; gap:8px; }
.checkbox input { margin-top:4px; accent-color:var(--forest); }
.error { color:#a2372e; margin:8px 0 0; }
footer { padding:24px clamp(16px,5vw,72px); border-top:1px solid var(--line); color:#43564c; font-size:.88rem; }
@media(max-width:780px) { .activity-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:510px) { .activity-list { grid-template-columns:1fr; } .activity-list li { min-height:170px; } }

#hero-title { white-space:pre-line; }
.express-image, .organizer img { display: block; max-width: 100%; max-height: 24rem; object-fit: contain; }
.express-emoji { font-size: clamp(2rem, 8vw, 5rem); margin: 0.3em 0; }
.organizer { max-width: 64rem; margin: 0 auto; padding: 1.25rem; }
.organizer form, .organizer li { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-block: 1rem; }
.organizer h3, .organizer li p { flex: 0 0 100%; margin: 0; }
.organizer input, .organizer select { max-width: 100%; }

/* D-006: цветовая адаптация по визуальному референсу Figma, без подмены иллюстраций. */
:root {
  --forest:#FF411B; --deep:#6c2119; --paper:#fff;
  --ink:#2a201b; --line:#e4cfc2; --gold:#fff5e5; --coral:var(--forest);
}
.hero .primary { color:#6c2119; }
.options button[aria-pressed=true] { background:#f9e2d5; }
