/* ПроПапу — публичная часть. Журнальная вёрстка, mobile-first. */
:root {
  --paper: #F8F5F0;
  --paper-2: #F1EBE2;
  --card: #FFFDF9;
  --ink: #1F1D1A;
  --ink-2: #47423C;
  --muted: #7A736A;
  --line: #E5DDD1;
  --accent: #B85D3B;
  --accent-deep: #9E472A;
  --accent-soft: #F3E3DA;
  --sage: #6F8274;
  --sage-soft: #E5EAE3;
  --slate: #61707D;
  --slate-soft: #E3E8EC;
  --night: #24211D;
  /* Заголовки - современный гротеск (с 01.11.2026 вместо Playfair: сайт не должен выглядеть как газетная вёрстка). */
  --serif: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --quote: Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 12px 32px -18px rgba(31, 29, 26, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head p { margin: 10px 0 0; max-width: 620px; color: var(--ink-2); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin: 0; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
h1 { font-size: clamp(38px, 8vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(30px, 5vw, 46px); }
h3 { font-size: 22px; line-height: 1.25; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.6; color: var(--ink-2); }

/* ── Кнопки ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-note { font-weight: 500; opacity: .85; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Теги ролей и рубрик ────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; background: var(--slate-soft); color: var(--slate); text-decoration: none; white-space: nowrap; }
.tag-papa { background: var(--accent-soft); color: var(--accent-deep); }
.tag-syn { background: var(--slate-soft); color: var(--slate); }
.tag-doch { background: #F2E4E4; color: #94545A; }
.tag-mama { background: var(--sage-soft); color: var(--sage); }
.tag-adult { background: #ECE6DA; color: #7B6A4F; }
.tag-rubric { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

/* ── Шапка ──────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(248, 245, 240, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.hd-nav { display: none; gap: 26px; }
.hd-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.hd-cta { display: none; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-right: -8px; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.burger svg { width: 26px; height: 26px; }

.mnav { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; padding: 0 20px 28px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: 68px; flex: none; }
.mnav nav { display: flex; flex-direction: column; margin: 12px 0 28px; }
.mnav nav a { font-family: var(--serif); font-size: 26px; font-weight: 700; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mnav nav a svg { width: 22px; height: 22px; color: var(--accent); }
.mnav .btn { margin-top: 10px; }
.mnav-contacts { margin-top: auto; padding-top: 24px; font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; }
.mnav-contacts a { text-decoration: none; }

@media (min-width: 1040px) {
  .hd-inner { height: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 21px; }
  .hd-nav { display: flex; }
  .hd-cta { display: inline-flex; }
  .burger { display: none; }
}

/* ── Герой ──────────────────────────────────────── */
.hero { padding: 28px 0 44px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(30px, 7.6vw, 54px); line-height: 1.15; }
.hero .eyebrow { margin-bottom: 14px; }
.hero .lead { margin: 16px 0 20px; max-width: 590px; font-size: clamp(17px, 2.2vw, 20px); }
.hero-authors { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; }
.hero-authors b { display: block; color: var(--ink); font-weight: 600; }
.hero-authors .avatar-sm { width: 44px; height: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-card { background: var(--night); color: #EFE7DC; border-radius: 20px; padding: 22px 20px; position: relative; overflow: hidden; }
.hero-card::after { content: "“"; position: absolute; right: 18px; top: -26px; font-family: var(--quote); font-size: 180px; line-height: 1; color: var(--accent); opacity: .35; }
.hero-card blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; position: relative; z-index: 1; }
.hero-card .sign { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #BFB5A8; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 26px; color: #fff; }
.hero-stats span { font-size: 12.5px; color: #BFB5A8; line-height: 1.3; display: block; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero-card { padding: 30px 28px; }
  .hero-card blockquote { font-size: 22px; }
  .hero-grid { grid-template-columns: 1.35fr .9fr; gap: 64px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ── Навигатор «С чего начать» ──────────────────── */
.entry-grid { display: grid; gap: 12px; }
.entry-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.entry-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.entry-num { font-family: var(--serif); font-size: 15px; color: var(--accent); width: 34px; height: 34px; border: 1px solid var(--accent-soft); border-radius: 50%; display: grid; place-items: center; }
.entry-card h3 { font-size: 21px; margin-bottom: 4px; }
.entry-card p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.entry-card > svg { width: 22px; height: 22px; color: var(--accent); }
@media (min-width: 720px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .entry-grid { grid-template-columns: repeat(5, 1fr); }
  .entry-card { grid-template-columns: 1fr; align-content: start; padding: 24px 22px; min-height: 230px; }
  .entry-card > svg { margin-top: auto; }
}

/* ── Истории ────────────────────────────────────── */
.cards-3 { display: grid; gap: 18px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.story-card { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-card blockquote { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.4; }
.story-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.story-card .story-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.story-card .story-foot svg { width: 18px; height: 18px; color: var(--accent); }

/* ── Баннер теста ───────────────────────────────── */
.quiz-banner { display: grid; gap: 28px; background: var(--night); color: #EFE7DC; border-radius: 28px; padding: 36px 26px; position: relative; overflow: hidden; }
.quiz-banner h2 { color: #fff; }
.quiz-banner p { color: #CFC5B8; margin: 14px 0 0; max-width: 560px; }
.quiz-banner .eyebrow { color: #E7A487; }
.quiz-rings { position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; opacity: .5; pointer-events: none; }
.quiz-banner-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; position: relative; z-index: 1; }
.quiz-banner-actions span { font-size: 14px; color: #BFB5A8; display: inline-flex; gap: 8px; align-items: center; }
.quiz-banner-actions svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .quiz-banner { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 56px; } }

/* ── Статьи ─────────────────────────────────────── */
.a-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.a-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.a-cover { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.a-cover-blank { display: grid; place-items: center; font-family: var(--serif); font-size: 64px; font-weight: 800; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--paper-2)); }
.a-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.a-body h3 { font-size: 23px; }
.a-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; color: var(--muted); }
.a-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.a-body .a-meta:last-child { margin-top: auto; padding-top: 6px; }
.a-card-wide { }
@media (min-width: 1040px) {
  .a-card-wide { grid-column: span 2; flex-direction: row; }
  .a-card-wide .a-cover { aspect-ratio: auto; flex: 1 1 52%; }
  .a-card-wide .a-body { flex: 1 1 48%; padding: 32px; }
  .a-card-wide h3 { font-size: 32px; }
}

/* ── Фильтры ────────────────────────────────────── */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 10px; margin: 0 -20px 26px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { position: relative; margin-bottom: 18px; max-width: 520px; }
.search input { width: 100%; height: 50px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 20px 0 48px; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: 18px; top: 15px; width: 20px; height: 20px; color: var(--muted); }
.empty { padding: 40px 0; color: var(--muted); }

/* ── Авторы ─────────────────────────────────────── */
.authors { display: grid; gap: 18px; }
@media (min-width: 860px) { .authors { grid-template-columns: 1fr 1fr; } }
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 32px; font-weight: 600; color: #fff; background: var(--accent); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-e { background: var(--sage); }
.avatar-both { background: var(--night); font-size: 22px; }
.avatar-sm { width: 40px; height: 40px; font-size: 17px; }
.author-card h3 { font-size: 24px; }
.author-card .role { color: var(--accent-deep); font-size: 14.5px; font-weight: 600; margin: 4px 0 12px; }
.author-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.manifesto { margin-top: 18px; padding: 34px 26px; border-radius: var(--radius); background: var(--accent-soft); }
.manifesto blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; color: var(--ink); }
.manifesto cite { display: block; margin-top: 16px; font-style: normal; font-size: 14.5px; color: var(--accent-deep); font-weight: 600; }

/* ── Программы ──────────────────────────────────── */
.p-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.p-card h3 { font-size: 26px; }
.p-card .tagline { margin: 0; color: var(--ink-2); }
.p-meta { display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-meta div { display: flex; gap: 10px; }
.p-meta svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--sage); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--sage-soft); }
.status-request { color: var(--slate); }
.status-request::before { box-shadow: 0 0 0 4px var(--slate-soft); }
.p-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.p-points li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.p-points li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 1.5px; background: var(--accent); }
.p-card .btn { margin-top: auto; }

/* ── Блок «Написать авторам» ────────────────────── */
.write { display: grid; gap: 26px; padding: 36px 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.write h2 { font-size: clamp(28px, 4.4vw, 42px); }
.write p { color: var(--ink-2); margin: 14px 0 0; }
.write-actions { display: grid; gap: 10px; }
@media (min-width: 900px) { .write { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 52px; } }

/* ── Шапки внутренних страниц ───────────────────── */
.page-head { padding: 44px 0 30px; }
.page-head h1 { font-size: clamp(36px, 7vw, 64px); }
.page-head .lead { margin: 18px 0 0; max-width: 700px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ── Статья ─────────────────────────────────────── */
.article-head { padding: 36px 0 28px; }
.article-head h1 { font-size: clamp(34px, 6.4vw, 60px); line-height: 1.08; margin: 16px 0 0; }
.article-head .lead { margin: 22px 0 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.byline .who { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.byline .who b { display: block; font-weight: 600; }
.byline .who span { display: block; font-size: 13px; color: var(--muted); }
.byline svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--paper); }
.article-cover { margin: 0 0 36px; border-radius: 22px; overflow: hidden; }

.prose { font-size: 19px; line-height: 1.75; color: #2A2723; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 4vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose a { color: var(--accent-deep); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--serif); font-weight: 600; font-size: 1.22em; line-height: 1.45; color: var(--ink); }
.prose blockquote p { margin: 0; }
.dropcap > p:first-child { font-size: 1.12em; color: var(--ink); }
.dropcap > p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 3.6em; line-height: .88; padding: .08em .1em 0 0; color: var(--accent); }
.prose img { border-radius: 14px; }
.prose strong { color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 44px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { font-size: 14px; color: var(--muted); margin-right: 6px; }
.share .btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.subscribe { display: grid; gap: 18px; margin-top: 44px; padding: 28px 24px; border-radius: var(--radius); background: var(--night); color: #EFE7DC; }
.subscribe h3 { color: #fff; font-size: 24px; }
.subscribe p { margin: 6px 0 0; color: #CFC5B8; font-size: 15.5px; }
@media (min-width: 760px) { .subscribe { grid-template-columns: 1fr auto; align-items: center; padding: 32px; } }

/* ── История ────────────────────────────────────── */
.story-quote { margin: 26px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4.4vw, 40px); line-height: 1.3; color: var(--ink-2); }
.story-who { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.psy { margin: 48px 0 0; padding: 30px 24px; border-radius: 22px; background: var(--sage-soft); position: relative; }
.psy-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.psy-head .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.psy-head b { display: block; font-size: 17px; }
.psy-head div > span { display: block; font-size: 13.5px; color: var(--ink-2); }
.psy .prose { font-size: 18px; }
@media (min-width: 760px) { .psy { padding: 40px; } }
.story-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

.next-card { display: grid; gap: 8px; margin-top: 44px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s; }
.next-card:hover { border-color: var(--accent); }
.next-card small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.next-card b { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; }

/* ── Тест ───────────────────────────────────────── */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 28px 22px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .quiz-card { padding: 44px; } }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.quiz-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.quiz-q { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); line-height: 1.25; margin: 0 0 24px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: var(--accent); background: #fff; }
.quiz-opt.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); margin-top: 1px; transition: border .15s; }
.quiz-opt.is-picked i { border: 7px solid var(--accent); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.quiz-back { background: none; border: 0; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 8px 0; font-size: 15px; }
.quiz-back svg { width: 16px; height: 16px; }
.quiz-step { animation: quizIn .35s ease both; }
@keyframes quizIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.quiz-result h2 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 18px; }
.quiz-result .prose { font-size: 18px; }
.quiz-mix { display: grid; gap: 8px; margin: 26px 0; }
.quiz-mix div { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.quiz-mix span.bar { height: 6px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.quiz-mix span.bar i { display: block; height: 100%; background: var(--accent); }
.quiz-recs { display: grid; gap: 10px; margin-top: 12px; }
.quiz-recs a { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--paper); font-weight: 500; }
.quiz-recs a:hover { border-color: var(--accent); }
.quiz-recs svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.quiz-disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 26px; }
.quiz-intro-list { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.quiz-intro-list li { display: flex; gap: 12px; color: var(--ink-2); }
.quiz-intro-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ── Формы и окна ───────────────────────────────── */
.modal { width: min(620px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 26px 26px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(31, 29, 26, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: sheetUp .3s ease both; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal { margin: auto; border-radius: 26px; max-height: calc(100% - 48px); } }
.modal-inner { padding: 24px 20px 28px; }
@media (min-width: 700px) { .modal-inner { padding: 36px 40px 40px; } }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-top h2 { font-size: clamp(26px, 4vw, 34px); }
.modal-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; display: grid; place-items: center; margin: -4px -6px 0 0; }
.modal-close svg { width: 20px; height: 20px; }
.modal-lead { margin: 6px 0 22px; color: var(--ink-2); font-size: 15.5px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237A736A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; height: 100%; }
.seg span small { font-weight: 400; color: var(--muted); font-size: 13px; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: #FBE6E1; color: #8F3A22; font-size: 14.5px; }
.form-error.is-shown { display: block; }
.form-done { text-align: center; padding: 20px 0 6px; }
.form-done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); display: grid; place-items: center; margin: 0 auto 18px; }
.form-done .ok svg { width: 30px; height: 30px; }
.form-done h3 { font-size: 26px; margin-bottom: 10px; }
.form-done p { color: var(--ink-2); margin: 0 0 22px; }
.af-website { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--sage-soft); color: #3F5446; margin-bottom: 20px; }

/* ── Контакты ───────────────────────────────────── */
.contact-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; }
@media (min-width: 760px) { .panel { padding: 36px; } }
.contact-list { display: grid; gap: 4px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-list a:last-child { border-bottom: 0; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.contact-list b { font-weight: 600; word-break: break-word; }

/* ── Подвал ─────────────────────────────────────── */
.ft { background: var(--night); color: #CFC5B8; padding: 56px 0 30px; margin-top: 40px; }
.ft-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.ft .brand-name { color: #fff; }
.ft .brand-tag { color: #A2988B; }
.ft p { font-size: 15px; margin: 16px 0 0; max-width: 380px; }
.ft h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8E8478; font-weight: 600; }
.ft-links { display: grid; gap: 9px; }
.ft-links a, .ft-links button { text-decoration: none; color: #E9E1D6; font-size: 15.5px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.ft-links a:hover, .ft-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8E8478; }
.ft-bottom a { color: inherit; }

/* ── Кнопка чата ────────────────────────────────── */
.float-chat { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--accent); color: #fff; border: 0; box-shadow: 0 10px 30px -8px rgba(158, 71, 42, .6); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.float-chat svg { width: 22px; height: 22px; }
.float-chat:hover { background: var(--accent-deep); }
@media (max-width: 639px) {
  .float-chat { width: 50px; height: 50px; padding: 0; justify-content: center; right: 14px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .float-chat span { display: none; }
  body { padding-bottom: 76px; } /* кнопка чата не закрывает конец страницы и отправку форм */
}
.pchat-unread .float-chat::after { content: ""; position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--accent); }
.pchat.is-open ~ .float-chat, html.pchat-open .float-chat { display: none; }

.pchat-panel { display: none; position: fixed; z-index: 70; inset: auto 0 0 0; height: 88vh; max-height: 88vh; flex-direction: column; background: var(--card); border-radius: 22px 22px 0 0; overflow: hidden; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); }
@media (min-width: 640px) { .pchat-panel { inset: auto 20px 20px auto; width: 390px; height: auto; max-height: min(620px, calc(100vh - 40px)); border-radius: 22px; } }
.pchat.is-open .pchat-panel { display: flex; }
.pchat-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--night); color: #fff; }
.pchat-head b { display: block; font-family: var(--serif); font-size: 19px; }
.pchat-head span { font-size: 13px; color: #BFB5A8; }
.pchat-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.pchat-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.pchat-list > :first-child { margin-top: auto; }
.pchat-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.pchat-them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); }
.pchat-me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.pchat-sys { align-self: center; max-width: 95%; background: var(--sage-soft); color: #3F5446; font-size: 13px; text-align: center; }
.pchat-who { font-size: 12px; font-weight: 700; color: var(--accent-deep); margin-bottom: 2px; }
.pchat-time { font-size: 11px; opacity: .55; margin-top: 3px; text-align: right; }
.pchat-contact { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--accent-soft); }
.pchat-contact[hidden] { display: none; }
.pchat-hint { width: 100%; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.pchat-contact input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; }
.pchat-contact button, .pchat-form button { border: 0; border-radius: 12px; background: var(--accent); color: #fff; padding: 0 14px; cursor: pointer; font-weight: 600; }
.pchat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.pchat-form textarea { flex: 1; resize: none; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; max-height: 120px; background: var(--paper); }
.pchat-form button { font-size: 18px; min-width: 48px; }
.pchat-form button:disabled { opacity: .5; }
.pchat-err { padding: 8px 12px; background: #FBE6E1; color: #8F3A22; font-size: 13px; }
.pchat-err[hidden] { display: none; }

/* ── Мелочи ─────────────────────────────────────── */
.legal { font-size: 16px; }
.legal h2 { font-size: 24px; margin-top: 1.6em; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.stack-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Онлайн-запись в окне «Записаться» ── */
.bk-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 10px 0 4px; background: var(--paper-2); border-radius: 16px; }
.bk-tabs[hidden] { display: none; }
.bk-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.bk-tab svg { width: 18px; height: 18px; }
.bk-tab.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(31, 29, 26, .12); }
.bk-step { display: grid; gap: 12px; margin-bottom: 22px; }
.bk-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bk-tz { font-weight: 400; color: var(--muted); }
.bk-muted { color: var(--muted); font-size: 14.5px; margin: 0; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.bk-day { flex: none; width: 62px; display: grid; justify-items: center; gap: 1px; padding: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; scroll-snap-align: start; }
.bk-day span, .bk-day small { font-size: 12px; color: var(--muted); }
.bk-day b { font-size: 20px; font-family: var(--serif); }
.bk-day.is-on { border-color: var(--accent); background: var(--accent-soft); }
.bk-day:disabled { opacity: .35; cursor: default; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-time { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: grid; place-items: center; line-height: 1.2; padding: 6px 4px; }
.bk-time small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.bk-time:hover, .bk-day:not(:disabled):hover { border-color: var(--accent); }
.bk-time.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-time.is-on small { color: rgba(255, 255, 255, .8); }
.bk-place { margin-top: 2px; }

/* 27.10: фото и квалификация авторов, ко-терапия, условия сессий */
.avatar-lg { width: 112px; height: 112px; }
.author-qual { margin-top: 12px !important; font-size: 14.5px !important; color: var(--ink-2); }
.author-qual a, .bk-couple a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.author-more { margin: 18px 0 0; }
.p-card-wide { margin-top: 18px; background: var(--accent-soft); }
@media (min-width: 760px) { .p-card-wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; } .p-card-wide .btn { margin-top: 0; flex: none; } }
.p-card-wide .status { margin-bottom: 10px; }
.p-card-wide h3 { margin-bottom: 8px; }
.bk-couple { margin: 4px 0 14px; font-size: 14.5px; }
.p-terms { margin: 0 0 32px; padding: 24px 22px; border-radius: var(--radius); background: var(--accent-soft); }
.p-terms h2 { font-size: 24px; margin: 0 0 8px; }
.p-terms p { margin: 0 0 16px; color: var(--ink-2); }
.p-prices { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.p-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 14px; border-radius: 12px; background: var(--card); }
.p-prices b { font-weight: 600; }
.p-prices span { color: var(--ink-2); }
.p-terms .p-pay { font-size: 15px; }
.cot-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cot-actions .btn { justify-content: center; text-align: center; white-space: normal; height: auto; min-height: 48px; line-height: 1.3; }
.cot-tg { text-align: center; font-size: 15px; color: var(--ink-2); }
.author-card > div { min-width: 0; }
.author-card .tag { white-space: normal; max-width: 100%; }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; } }
