/* Страница PHQ-9 и GAD-7. Стили перенесены из прототипа владельца (prototype.html, артефакт XBfF5Nw4C8UapTSujg3CWt)
   один к одному; ниже прототипа — только шрифт цифр с сайта, меню разделов сайта, подвал сайта и печать. */
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/montserrat-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/montserrat-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/montserrat-900-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/montserrat-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* ── Прототип ── */
/* Layout: one working column. Entry pairs the copy with the choice card; each questionnaire is a 720px form
   of full-size radio groups; the result is a 1000px column of paired cards; reference sections follow below. */
:root {
  --bg-warm: #F5F1EC; --bg-cream: #FAF6F0; --surface: #FFFFFF; --bg-dark: #2A2520; --bg-dark-deep: #1F1B17;
  --accent: #C8792A; --accent-dark: #A66220; --accent-soft: rgba(200,121,42,0.08); --accent-on-dark: #F5B36A;
  --text-dark: #2C2C2A; --muted: #6E6B64; --text-light: #F5F1EC; --text-muted-dark: #B4B2A9;
  --border: #E8E4DF; --border-strong: #CFC9C0; --danger: #8B2E1F; --line-on-dark: rgba(245,241,236,0.16);
  --font-serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Fira Sans Compressed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-number: 'Montserrat', 'Arial Black', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-warm); color: var(--text-dark); font: 400 17px/1.6 var(--font-body); }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
em { font-style: italic; font-weight: 500; color: var(--accent); }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-dark); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.form { max-width: 760px; }
.wrap.res { max-width: 1040px; }
.wrap.narrow { max-width: 820px; }
@media (min-width: 768px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.screen { padding-block: clamp(28px, 6vw, 72px); }
.band { padding-block: clamp(44px, 7vw, 88px); }
.band.cream { background: var(--bg-cream); border-block: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.stack.tight { gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.row > * { flex: 1 1 320px; min-width: 0; }
.row.wide { gap: clamp(28px, 5vw, 64px); align-items: flex-start; }

.eyebrow { display: block; font: 500 13px/1.3 var(--font-body); letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-dark); }
.eyebrow.quiet { color: var(--muted); }
.hero-title { font: 500 clamp(38px, 5.4vw, 72px)/1.02 var(--font-serif); letter-spacing: -1.2px; }
.page-title { font: 500 clamp(32px, 4.4vw, 52px)/1.08 var(--font-serif); letter-spacing: -0.6px; }
.sec-title { font: 500 clamp(30px, 4vw, 46px)/1.1 var(--font-serif); letter-spacing: -0.5px; }
.card-title { font: 500 clamp(23px, 2.5vw, 28px)/1.2 var(--font-serif); }
.lead { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; max-width: 600px; }
.quiet { color: var(--muted); }
.fine { font-size: 15px; line-height: 1.5; color: var(--muted); }
.sep { padding-top: 16px; border-top: 1px dashed var(--border); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.cream { background: var(--bg-cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 12px 26px; border-radius: 4px; border: 1px solid var(--text-dark); background: transparent; color: var(--text-dark); font: 500 17px/1.25 var(--font-body); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn.text { border-color: transparent; padding-inline: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong); font-weight: 400; }
@media (hover: hover) {
  .btn:hover { border-color: var(--accent); color: var(--accent-dark); }
  .btn.text:hover { border-color: transparent; }
  .btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
  .choice:hover { border-color: var(--accent); }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

.site-head { border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 12px; }
.logo { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text-dark); }
.logo b { font: 500 22px/1.1 var(--font-serif); }
.logo span { font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }

.hero-copy { display: flex; flex-direction: column; gap: 20px; flex: 1 1 460px; }
.pick { flex: 1 1 380px; gap: 20px; }
.pick-alt { display: flex; flex-direction: column; gap: 12px; }
.pick-alt div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 14px; border-top: 1px dashed var(--border); }
.peer { padding: 18px 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-cream); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 600px; }
.proto { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }

.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--text-light); padding-block: clamp(40px, 7vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 82% 28%, rgba(245,179,106,0.18), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-h { display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero .hero-title { color: var(--text-light); font-size: clamp(44px, 6.4vw, 88px); }
.hero-q { font: 500 italic clamp(22px, 2.4vw, 28px)/1.35 var(--font-serif); color: var(--text-light); max-width: 560px; }
.hero .lead { color: var(--text-muted-dark); }
.hero .fine { color: var(--text-muted-dark); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.btn.big { min-height: 60px; padding: 16px 34px; font-size: 19px; }
.hero .btn.text { color: var(--text-light); text-decoration-color: rgba(245,241,236,0.4); }
.trust { list-style: none; margin: 8px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; color: var(--text-light); }
.trust li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (min-width: 560px) { .trust { flex-wrap: nowrap; gap: 8px 24px; } }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.preview { flex: 1 1 340px; max-width: 460px; color: var(--text-dark); gap: 18px; box-shadow: 0 40px 80px rgba(0,0,0,0.35); }
.hero .preview .eyebrow { color: var(--accent-dark); }
.hero .preview .eyebrow.quiet, .hero .preview .fine { color: var(--muted); }
.preview .score-num b { font-size: clamp(56px, 6vw, 76px); }
.more { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.4; }
.more li { display: flex; gap: 10px; align-items: baseline; }
.more li::before { content: "+"; font: 700 15px/1 var(--font-number); color: var(--accent); flex-shrink: 0; }
@media (hover: hover) { .hero .btn.text:hover { color: var(--accent-on-dark); } }
.author { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1040px; }
@media (min-width: 768px) { .author { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.author-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; object-position: 72% 30%; border-radius: 8px; box-shadow: var(--shadow-photo, 0 20px 60px rgba(42,37,32,0.15)); filter: saturate(0.92) contrast(1.02); }
@media (max-width: 767px) { .author-photo { aspect-ratio: 4 / 3; object-position: 72% 20%; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.facts div { display: flex; flex-direction: column; gap: 8px; }
.facts b { font: 900 clamp(36px, 4vw, 48px)/1 var(--font-number); color: var(--accent); }
.facts span { font-size: 16px; line-height: 1.45; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px 24px; font: 500 italic 22px/1.3 var(--font-serif); }
.steps3 { display: flex; flex-direction: column; gap: 22px; }
.steps3 div { display: flex; gap: 20px; align-items: baseline; }
.steps3 b { font: 900 28px/1 var(--font-number); color: var(--accent); flex: 0 0 28px; }
.steps3 strong { font-weight: 500; display: block; }
.aud-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.gets { display: flex; flex-direction: column; gap: 14px; }
.gets > p { padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.gets strong { font-weight: 500; }
.col { display: flex; flex-direction: column; gap: 20px; flex: 1 1 380px; min-width: 0; }
.center { align-items: center; text-align: center; }

.notice { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; }
.q { border: 0; margin: 0; padding: 22px 0 0; min-width: 0; border-top: 1px solid var(--border); }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; font: 500 clamp(21px, 2.4vw, 25px)/1.3 var(--font-serif); }
.q legend + * { clear: both; }
.q legend b { font: 900 14px/1 var(--font-number); color: var(--accent-dark); flex: 0 0 22px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 680px) { .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; font-size: 17px; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s; }
.choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.q.bad .choice { border-color: var(--danger); }
.err { color: var(--danger); font-size: 15px; margin-top: 8px; }
.form-error { color: var(--danger); font-weight: 500; }
.q-extra { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.meter { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 3px; background: var(--accent); transition: width .3s; }
.form-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--border); }

.gauge { display: block; width: 100%; max-width: 320px; height: auto; margin-inline: auto; }
.gauge .n { font: 900 58px/1 var(--font-number); fill: var(--accent); }
.gauge .m { font: 400 17px/1 var(--font-body); fill: var(--muted); }
.gauge .t { font: 700 11px/1 var(--font-number); fill: var(--muted); }
.gcard { align-items: stretch; }
.gcard .level { text-align: center; }
.ranges { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; color: var(--muted); }
.ranges div { display: flex; gap: 14px; padding: 6px 10px; border-radius: 4px; }
.ranges b { flex: 0 0 52px; font: 700 13px/1.6 var(--font-number); }
.ranges .on { background: var(--accent-soft); color: var(--text-dark); font-weight: 500; }
.ranges .on b { color: var(--accent-dark); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 132px; gap: 6px 16px; align-items: center; padding: 11px 0; border-top: 1px dashed var(--border); }
.prow .pl { line-height: 1.3; }
.prow .pv { font-size: 14px; color: var(--muted); text-align: right; }
@media (max-width: 560px) { .prow { grid-template-columns: 90px minmax(0, 1fr); } .prow .pl { grid-column: 1 / -1; } .prow .pv { text-align: left; } }
.track { display: flex; gap: 3px; }
.track i { flex: 1; height: 10px; border-radius: 2px; background: var(--border); }
.track i.on { background: var(--accent); }
.track.na i { background: transparent; border: 1px dashed var(--border-strong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .track { width: 54px; }
.share { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.opt-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.opt-card h3 { font: 500 22px/1.25 var(--font-serif); }
.opt-card .btn { margin-top: auto; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--text-dark); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 44px; padding: 8px 18px; border: 0; background: transparent; color: var(--text-dark); font: 500 16px/1.2 var(--font-body); }
.seg button[aria-pressed="true"] { background: var(--text-dark); color: #FFFFFF; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--text-dark); }
.sheet-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sheet-score b { font: 900 40px/1 var(--font-number); color: var(--accent); }
.sheet h3 { font: 500 22px/1.25 var(--font-serif); }
.sheet-block { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.helpbox { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--danger); border-radius: 8px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.helpbox h2, .helpbox h3 { font: 500 clamp(22px, 2.4vw, 26px)/1.25 var(--font-serif); }
.helpbox h2 { color: var(--danger); }
.phones { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.phone { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.phone b { font: 900 28px/1.2 var(--font-number); }
.phone span { font-size: 14px; color: var(--muted); }

.score-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.score-num b { font: 900 clamp(56px, 7vw, 84px)/0.9 var(--font-number); color: var(--accent); font-variant-numeric: tabular-nums; }
.score-num span { font-size: 18px; color: var(--muted); }
.level { font: 500 italic clamp(24px, 2.6vw, 30px)/1.2 var(--font-serif); }
.bar { display: flex; flex-direction: column; gap: 8px; }
.segs { position: relative; display: flex; gap: 3px; height: 10px; }
.segs span { border-radius: 2px; background: var(--border); }
.segs span.on { background: var(--accent); }
.segs i { position: absolute; top: -5px; width: 2px; height: 20px; background: var(--text-dark); }
.ticks { display: flex; gap: 3px; font: 700 12px/1 var(--font-number); color: var(--muted); }
.list > * { padding: 12px 0; border-top: 1px dashed var(--border); }
.ans { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }
.ans span:first-child { flex: 1 1 300px; }
.ans span:last-child { color: var(--muted); font-size: 15px; }
.topics { display: flex; flex-direction: column; gap: 14px; }
.topics div { display: flex; gap: 14px; align-items: baseline; }
.topics b { font: 900 14px/1 var(--font-number); color: var(--accent-dark); flex-shrink: 0; }
.confirm { border: 1px solid var(--border-strong); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.copybox { width: 100%; white-space: pre-wrap; font: 400 15px/1.5 var(--font-body); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 14px 16px; user-select: all; }
.sheet { background: #FFFFFF; border: 1px solid var(--border-strong); border-radius: 4px; padding: clamp(22px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }

details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font: 500 clamp(21px, 2.3vw, 25px)/1.3 var(--font-serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--accent-dark); flex-shrink: 0; }
details[open] > summary::after { content: "–"; }
.dbody { padding: 0 0 22px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.trow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px dashed var(--border); align-items: baseline; }
.trow b { font: 900 15px/1.4 var(--font-number); color: var(--accent-dark); }
.say { font: 500 italic 21px/1.4 var(--font-serif); border-left: 3px solid var(--accent); padding-left: 20px; }

.help { background: var(--bg-dark); color: var(--text-light); padding-block: clamp(44px, 7vw, 72px); }
.help .eyebrow, .help em { color: var(--accent-on-dark); }
.help .sec-title { color: var(--text-light); }
.help p { color: var(--text-muted-dark); }
.help p.strong { color: var(--text-light); }
.help .phone { color: var(--text-light); }
.help .phone span { color: var(--text-muted-dark); }
.refs p { padding: 10px 0; border-top: 1px dashed var(--border); font-size: 15px; line-height: 1.5; color: var(--muted); }
.site-foot { background: var(--bg-dark-deep); color: var(--text-muted-dark); padding-block: 28px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100% - 32px)); background: var(--bg-dark); color: var(--text-light); padding: 14px 20px; border-radius: 6px; font-size: 16px; line-height: 1.45; z-index: 50; }
/* Light opener and scale tones, after the "Профессиональные субличности" landing */
:root { --c-phq: #C8792A; --c-phq-ink: #A66220; --c-gad: #9C5560; --c-gad-ink: #84434E; --c-life: #8A7445; --c-life-ink: #6B5932; --c-talk: #BE6E4E; --c-talk-ink: #9A5236; }
.t-phq { --tone: var(--c-phq); --tone-ink: var(--c-phq-ink); }
.t-gad { --tone: var(--c-gad); --tone-ink: var(--c-gad-ink); }
.t-life { --tone: var(--c-life); --tone-ink: var(--c-life-ink); }
.t-talk { --tone: var(--c-talk); --tone-ink: var(--c-talk-ink); }
.hero { background: var(--bg-warm); color: var(--text-dark); border-bottom: 1px solid var(--border); }
.hero::before { inset: auto; top: -180px; right: -140px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(245,179,106,0.30) 0%, transparent 70%); }
.hero .eyebrow { color: var(--accent-dark); }
.hero .hero-title, .hero-q { color: var(--text-dark); }
.hero .lead, .hero .fine { color: var(--muted); }
.hero .btn.text { color: var(--text-dark); text-decoration-color: var(--border-strong); }
.trust { border-top-color: var(--border); color: var(--text-dark); }
.preview { box-shadow: 0 20px 60px rgba(42,37,32,0.15), 0 8px 24px rgba(42,37,32,0.08); }
@media (hover: hover) { .hero .btn.text:hover { color: var(--accent-dark); } .tile:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(42,37,32,0.06); } }
.byline { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.35; color: var(--muted); }
.byline { gap: 18px; }
.byline img { width: 92px; height: 92px; box-shadow: 0 6px 20px rgba(42,37,32,0.12); border-radius: 999px; object-fit: cover; object-position: center top; flex-shrink: 0; }
.byline strong { font: 500 22px/1.15 var(--font-serif); color: var(--text-dark); }
.by-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.by-text .eyebrow { font-size: 11px; letter-spacing: 2px; }
.hero .by-text .eyebrow.quiet { color: var(--muted); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .eyebrow:not(.quiet) { color: var(--tone-ink); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .score-num b { color: var(--tone); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .segs span.on, :is(.t-phq, .t-gad, .t-life, .t-talk) .track i.on, :is(.t-phq, .t-gad, .t-life, .t-talk) .meter i { background: var(--tone); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .gauge .n { fill: var(--tone); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .ranges .on { background: color-mix(in srgb, var(--tone) 12%, transparent); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .ranges .on b, :is(.t-phq, .t-gad, .t-life, .t-talk) .q legend b, :is(.t-phq, .t-gad, .t-life, .t-talk) .topics b { color: var(--tone-ink); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .choice input { accent-color: var(--tone); }
:is(.t-phq, .t-gad, .t-life, .t-talk) .choice:has(input:checked) { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 9%, #FFFFFF); }
.card.toned { border-top: 4px solid var(--tone); }
.tint { background: color-mix(in srgb, var(--tone) 9%, var(--bg-warm)); border: 1px solid color-mix(in srgb, var(--tone) 24%, var(--border)); border-radius: 8px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.tint .meter { background: color-mix(in srgb, var(--tone) 18%, #FFFFFF); }
.band.dark { background: var(--bg-dark); }
.band.dark .facts b { color: var(--accent-on-dark); }
.band.dark .facts span { color: var(--text-muted-dark); }
#landing .stack > .eyebrow::before, #landing .col > .eyebrow::before, #ref .stack > .eyebrow::before { content: "— "; }
.tile { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--tone, var(--border)); transition: transform .2s, box-shadow .2s; }
.tile .eyebrow { font-style: normal; }
.cta-note { font-size: 15px; line-height: 1.45; color: var(--muted); }
.cta-note b { font-weight: 500; color: var(--text-dark); }
.hero .lead .hl { font-weight: 500; color: var(--text-dark); }
.tiles { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }
.tile-key span { display: inline-flex; align-items: center; gap: 8px; }
.tile-key i { width: 18px; height: 4px; border-radius: 2px; background: var(--tone); }
.author-photo { object-position: 52% 30%; }
@media (max-width: 767px) { .author-photo { object-position: 52% 20%; } }
.card.olt { border-left: 4px solid var(--accent); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.card.olt > .stack { flex: 1 1 300px; min-width: 0; }
.card.olt .olt-photo { width: 200px; height: 250px; object-fit: cover; object-position: 52% 25%; border-radius: 8px; flex-shrink: 0; box-shadow: 0 12px 32px rgba(42,37,32,0.14); filter: saturate(0.92) contrast(1.02); }
.card.olt > .actions { flex-basis: 100%; }
.card.svc { border-left: 4px solid var(--accent); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.card.svc img { width: 132px; height: 164px; object-fit: cover; object-position: center top; border-radius: 8px; flex-shrink: 0; filter: saturate(0.92) contrast(1.02); }
.card.svc > .stack { flex: 1 1 320px; min-width: 0; }
.pagenav { display: none; gap: 4px 18px; align-items: center; }
@media (min-width: 1024px) { .pagenav { display: flex; } }
.head-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-dark); }
@media (hover: hover) { .icon-btn:hover { border-color: var(--accent); color: var(--accent-dark); } }
.stickybar .head-right { flex: 1 1 auto; }
.stickybar .head-right .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .stickybar .head-right { flex: 0 0 auto; } }
#what, #spec, #faq, #help { scroll-margin-top: 84px; }
.sharebox { background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.linkrow .copybox { flex: 1 1 260px; width: auto; display: flex; align-items: center; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; visibility: hidden; transform: translateY(100%); transition: transform .32s cubic-bezier(0.22, 1, 0.36, 1), visibility .32s; background: rgba(245,241,236,0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom, 0px); }
.stickybar.on { visibility: visible; transform: none; }
.stickybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.stickybar .who { display: none; flex-direction: column; gap: 2px; min-width: 0; }
.stickybar .who b { font: 500 21px/1.15 var(--font-serif); }
.stickybar .who span { font-size: 14px; color: var(--muted); }
.stickybar .btn { flex: 1 1 auto; }
.stickybar.on ~ .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) {
  .stickybar { top: 0; bottom: auto; transform: translateY(-100%); border-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 0; padding-top: env(safe-area-inset-top, 0px); }
  .stickybar .who { display: flex; }
  .stickybar .btn { flex: 0 0 auto; }
  .stickybar.on ~ .toast { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
/* First screen fits one viewport: hero sizes follow the viewport height on laptops; compact header and hero on phones */
.hero { padding-block: clamp(24px, 5vh, 64px); }
.hero > .wrap { gap: clamp(28px, 4vw, 64px); }
.hero-copy { gap: clamp(12px, 2vh, 20px); }
.hero-h { gap: clamp(10px, 1.6vh, 18px); }
.hero .hero-title { font-size: clamp(38px, min(5.4vw, 8.6vh), 84px); line-height: 1; }
.hero-q { font-size: clamp(19px, min(2vw, 3.1vh), 26px); }
.hero .lead { font-size: clamp(16px, min(1.45vw, 2.35vh), 19px); line-height: 1.5; }
.hero-cta { margin-top: 2px; }
.hero .btn.big { min-height: 56px; padding-block: 12px; }
.hero .actions { row-gap: 4px; }
.hero .actions .btn.text.small { min-height: 36px; }
.trust { margin-top: 0; padding-top: clamp(10px, 1.6vh, 16px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.preview { gap: clamp(10px, 1.6vh, 16px); padding: clamp(18px, 2.2vw, 28px); }
.preview .stack.tight { gap: 8px; }
.preview .score-num b { font-size: clamp(44px, 6.4vh, 68px); }
.preview .level { font-size: clamp(20px, 2.8vh, 26px); }
.preview .sep { padding-top: clamp(10px, 1.4vh, 14px); }
.more { gap: 4px; font-size: 15px; }
.h-short { display: none; }
.hero .lead { max-width: 680px; }
@media (min-width: 768px) and (max-height: 860px) { .hero { padding-block: 20px 28px; } .byline img { width: 76px; height: 76px; } .hero-q { max-width: 640px; } }
@media (max-width: 767px) {
  .site-head .wrap { flex-wrap: nowrap; padding-block: 8px; }
  .logo b { font-size: 19px; }
  .logo span { font-size: 10px; letter-spacing: 2px; }
  .head-right { gap: 6px; }
  .site-head .head-right .btn.text { font-size: 15px; padding-inline: 2px; white-space: nowrap; }
  .h-long { display: none; } .h-short { display: inline; }
  .hero { padding-block: 22px 32px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 1.6px; }
  .hero .hero-title { font-size: clamp(34px, 10.4vw, 46px); letter-spacing: -0.8px; }
  .hero-q { font-size: 19px; }
  .hero .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta .btn.big { width: 100%; }
  .preview { max-width: none; }
  .byline img { width: 64px; height: 64px; }
  .trust { gap: 6px 20px; font-size: 15px; }
  .trust-dup { display: none !important; }
  .card.olt .olt-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 340px; object-position: 52% 22%; }
  .card.olt .btn { width: 100%; }
  .logo b { white-space: nowrap; }
}
@media (max-width: 360px) { .site-head .wrap { gap: 8px; } .logo b { font-size: 16px; } .logo span { letter-spacing: 1.5px; } .site-head .head-right .btn.text { font-size: 14px; } .site-head .icon-btn { width: 40px; height: 40px; flex-basis: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ── Сайт (не из прототипа) ── */
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 60; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }
/* Меню «Другие разделы сайта»: кнопка в размер иконки прототипа */
.site-head .topnav-switch__btn, .stickybar .topnav-switch__btn { width: 44px; height: 44px; border-radius: 4px; border-color: var(--border-strong); color: var(--text-dark); background: transparent; }
@media (max-width: 360px) { .site-head .topnav-switch__btn { width: 40px; height: 40px; } }
/* Из нижней закреплённой полосы (телефон) панель раскрывается вверх, над полосой. Полоса с размытием фона
   задаёт рамку и для закреплённых элементов, поэтому панель ставится относительно самой полосы. */
@media (max-width: 767px) {
  .stickybar .head-right, .stickybar .topnav-switch { position: static; }
  .stickybar .topnav-switch__pop { position: absolute; top: auto; bottom: calc(100% + 12px); left: auto; right: max(16px, env(safe-area-inset-right, 0px)); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
}
@media (max-width: 480px) { .stickybar .topnav-switch__pop { left: 16px; right: 16px; } }
/* Телефон: подпись автора — после карточки «Пример результата» (решение владельца 01.12.2026).
   Колонка текста раскрывается в общий поток, порядок задаётся order; на компьютере всё как в прототипе. */
@media (max-width: 767px) {
  /* !important: у ряда в разметке inline align-items:center (для компьютера) */
  .hero > .wrap.row { flex-direction: column; flex-wrap: nowrap; align-items: stretch !important; gap: clamp(12px, 2vh, 20px); }
  .hero-copy { display: contents; }
  .hero .preview { order: 1; flex: none; margin-top: 8px; }
  .hero .byline { order: 2; margin-top: 8px; }
}
/* Пример результата: метку шкалы PHQ-9 можно двигать (01.12.2026) */
.bar-live { position: relative; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; padding-block: 10px; margin-block: -10px; }
.bar-live .segs { cursor: grab; border-radius: 2px; }
.bar-live.dragging, .bar-live.dragging .segs { cursor: grabbing; }
.bar-live .segs:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 8px; }
.bar-live .segs span { transition: background-color 0.15s ease; }
.bar-live .segs i { top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text-dark); box-shadow: 0 2px 8px rgba(42,37,32,0.25); transform: translate(-50%, -50%); transition: left 0.12s ease; }
.bar-live .segs i::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; background: var(--text-dark); }
.bar-live.dragging .segs i { transition: none; }
.bar-hint { margin: 2px 0 0; font-size: 14px; line-height: 1.35; }
@media (max-width: 767px) { .bar-live .segs i { width: 26px; height: 26px; } }
/* Подсказка «метку можно двигать»: мягкое кольцо вокруг метки, пока она покачивается */
.bar-live.hinting .segs i { transition: left 0.16s ease-in-out; animation: pv-ring 0.9s ease-out 2; }
@keyframes pv-ring {
  0% { box-shadow: 0 2px 8px rgba(42,37,32,0.25), 0 0 0 0 rgba(166,98,32,0.45); }
  100% { box-shadow: 0 2px 8px rgba(42,37,32,0.25), 0 0 0 12px rgba(166,98,32,0); }
}
@media (prefers-reduced-motion: reduce) { .bar-live.hinting .segs i { animation: none; } }
@media print { .bar-hint { display: none; } }
/* Без JavaScript */
.noscript { padding-block: 24px; }
.noscript .items-static { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--border); }
.noscript h4 { margin: 0; font: 500 22px/1.25 var(--font-serif); }

/* Печать: в файл попадает только отчёт */
@media print {
  @page { margin: 14mm 12mm; }
  body { background: #FFFFFF; font-size: 13px; }
  body > *:not(main), main > *:not(#app), #app > .screen > .wrap > *:not(.sheet) { display: none !important; }
  body.ptmp #app > *:not(#print-tmp) { display: none !important; }
  .screen { padding: 0; }
  .wrap.form { max-width: none; padding: 0; }
  .sheet { border: 0; padding: 0; }
  .prow, .sheet-block, .helpbox { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
