/* Psyvision — токены: палитра, шрифты, размеры, тени; светлая и тёмная темы.
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css). */

/* Psyvision — макеты v0.3.1. Лёгкая структура и базовые компоненты — как у doula.com.ua
   (плавающая шапка-пилюля, карточка-hero, три шага, сплит-секции, мягкие панели),
   палитра — бирюза старого сайта, hover кнопок — жёлтый #f5b302 оригинального сайта.
   Шрифты — ровно те же стеки, что на doula (см. ниже). Темы: светлая / тёмная / системная (data-theme). */

/* Шрифты — ровно те же стеки, что на doula (без своих @font-face: doula файлов не подключает и
   рендерится системными запасными — Georgia / system-ui на Mac). Настоящие Kyiv Type Serif и e-Ukraine лежат
   в fonts/ и подключаются одной строкой fonts/fonts-optional.css, если решим их включить на живом сайте. */

:root {
  --bg: #f7f9f9;
  --surface: #ffffff;
  --panel: #e9f2f5;
  --panel-2: #f1f6f8;
  --ink: #14262e;
  --ink-2: #2d4049;
  --text: #22353d;
  --muted: #55676f;
  --line: #e3eaed;
  --line-2: #cfdbe0;
  --brand: #207c93;
  --brand-2: #2a93ad;
  --brand-dark: #165b6d;
  --brand-50: #eef6f9;
  --brand-100: #d9ebf1;
  --brand-300: #8ec5d6;
  --gold: #c9a24a;
  --gold-100: #f6eed6;
  --gold-700: #6f5314;
  --gold-300: #e8d9a8;
  --gold-hot: #f5b302;      /* hover кнопок — как на оригинальном сайте */
  --brand-deep: #165b6d;    /* тёмный фон градиентов: одинаков в обеих темах */
  --on-ink: #ffffff;
  --ok: #2ea55f; --ok-100: #e3f6ea; --ok-700: #1d6b3d;
  /* предупреждающая полоса-объявление (стадия 3 панели) */
  --bad: #c0453f; --bad-100: #fdeaea; --bad-300: #f0c2c2; --bad-700: #8d2a2a;
  --surface-glass: rgba(255,255,255,.75);
  --dark: #0f2229;
  --dark-text: #d7e3e8;
  --dark-muted: #8fa7b1;
  --tg: #229ED9; --wa: #25D366; --tg-btn: #16749f; --wa-btn: #0f7a41; --vb: #7360F2; --fb: #0084FF; --ig: #E1306C;
  --ramp: linear-gradient(90deg, var(--brand), var(--gold));
  --ff-display: "Kyiv Type Serif", Literata, "Noto Serif", Georgia, serif;
  --ff-body: "e-Ukraine", Inter, "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --t-xs: 0.8125rem; --t-sm: 0.9375rem; --t-base: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem;
  --t-2xl: 1.75rem; --t-3xl: 2.25rem;
  --h1: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);
  --h3: 1.25rem;
  --r-sm: 14px; --r-md: 20px; --r-lg: 30px; --pill: 9999px;
  --sh-1: 0 2px 6px rgba(20, 38, 46, .05);
  --sh-2: 0 18px 40px -26px rgba(22, 91, 109, .45);
  --sh-3: 0 28px 64px -28px rgba(22, 91, 109, .5);
  --wrap: 1200px; --pad: 22px;
  --sp-section: clamp(3.5rem, 6vw, 6rem);
  --dur: 180ms; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- тёмная тема: явный выбор (data-theme) или системная ---------- */
:root[data-theme="dark"] {
  --bg: #0d181d; --surface: #132129; --panel: #152a33; --panel-2: #182b33;
  --ink: #eaf2f5; --ink-2: #c9d8de; --text: #d5e1e6; --muted: #8ea5ae;
  --line: #233740; --line-2: #314852;
  --brand: #2f97b1; --brand-2: #43adc7; --brand-dark: #9ad4e3; --brand-50: #12303a; --brand-100: #173c48; --brand-300: #2f6b7c;
  --gold: #d4ad55; --gold-100: #2f2914; --gold-700: #e5c574; --gold-300: #4a3f1e;
  --tg-btn: #16749f; --wa-btn: #0f7a41;
  --dark: #0a1418; --on-ink: #0d181d;
  --ok-100: #12301f; --ok-700: #6fd39a;
  --bad: #e0736d; --bad-100: #33191a; --bad-300: #5a2a2a; --bad-700: #f0a5a1;
  --surface-glass: rgba(19,33,41,.75);
  --sh-1: 0 2px 6px rgba(0,0,0,.35); --sh-2: 0 18px 40px -26px rgba(0,0,0,.7); --sh-3: 0 28px 64px -28px rgba(0,0,0,.75);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d181d; --surface: #132129; --panel: #152a33; --panel-2: #182b33;
    --ink: #eaf2f5; --ink-2: #c9d8de; --text: #d5e1e6; --muted: #8ea5ae;
    --line: #233740; --line-2: #314852;
    --brand: #2f97b1; --brand-2: #43adc7; --brand-dark: #9ad4e3; --brand-50: #12303a; --brand-100: #173c48; --brand-300: #2f6b7c;
    --gold: #d4ad55; --gold-100: #2f2914; --gold-700: #e5c574; --gold-300: #4a3f1e;
  --tg-btn: #16749f; --wa-btn: #0f7a41;
    --dark: #0a1418; --on-ink: #0d181d;
    --ok-100: #12301f; --ok-700: #6fd39a;
  --bad: #e0736d; --bad-100: #33191a; --bad-300: #5a2a2a; --bad-700: #f0a5a1;
    --surface-glass: rgba(19,33,41,.75);
    --sh-1: 0 2px 6px rgba(0,0,0,.35); --sh-2: 0 18px 40px -26px rgba(0,0,0,.7); --sh-3: 0 28px 64px -28px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}
/* логотип «чернила» → белый в тёмной теме */

/* Psyvision — базовые стили: сброс, типографика, утилиты.
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: var(--t-base); line-height: 1.58; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; line-height: 1.12; }
h1 { font-size: var(--h1); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--r-sm); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.lead { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--muted); } .small { font-size: var(--t-sm); } .xs { font-size: var(--t-xs); }
.hl { background: linear-gradient(90deg, var(--brand), var(--brand-2) 60%, #4aa9c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: var(--ff-mono); font-size: .85em; background: var(--panel-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- eyebrow с 3-px ramp, как у doula ---------- */
.eyebrow { display: inline-block; font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.eyebrow--ruled::after { content: ""; display: block; height: 3px; margin-top: 8px; border-radius: var(--pill); background: var(--ramp); }
.eyebrow--gold { color: var(--gold-700); }

/* видно только читалкам: заголовок раздела, который в макете не рисуется */
.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; }

/* Psyvision — каркас страницы: шапка, секции и сетки, футер, заголовок страницы.
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css). */

/* ---------- плавающая шапка ---------- */
/* --hb-h — высота закреплённой полосы-объявления над шапкой (site.js), без неё 0 */
.nav { position: sticky; top: var(--hb-h, 0px); z-index: 100; padding: 14px 0 6px; }
.nav__pill { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 8px 12px 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--sh-1); position: relative; }
.nav.is-scrolled .nav__pill { box-shadow: var(--sh-2), var(--sh-1); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 14px; flex: none; }
/* Логотип «меняющейся реальности»: слои обрезаны clip-path по векторному контуру (svg в <body>), цвет — из токена --ink (в тёмной теме сам становится светлым),
   по знаку и слову медленно проходит перелив бренд/золото, а раз в ~9 с — короткое «дрожание» с цветными двойниками. */
.brand__mark, .brand__word { position: relative; display: inline-block; flex: none; }
.brand__mark { height: 34px; aspect-ratio: 270 / 320; }
.brand__word { height: 18px; aspect-ratio: 370 / 66; }
.brand__ly { position: absolute; inset: 0; background: var(--ink); will-change: transform, opacity; }
.brand__mark .brand__ly { clip-path: url(#pv-mark); }
.brand__word .brand__ly { clip-path: url(#pv-word); }
.pv-defs { position: absolute; }
/* перелив: полоса бренд → золото проходит по логотипу непрерывно (без паузы), цикл 4,5 с;
   дрожание: короткий тик на ~30 % и заметный сбой с двойниками на ~70 % каждого 5-секундного цикла */
.brand__ly--main { background: linear-gradient(115deg, var(--ink) 0 30%, var(--brand-2) 40%, var(--gold) 50%, var(--brand) 60%, var(--ink) 70% 100%); background-size: 300% 100%; background-position: 100% 0; animation: pv-sheen 4.5s linear infinite, pv-jitter 5s linear infinite; }
.brand__word .brand__ly--main { animation-delay: .3s, 0s; }
.brand__ly--a, .brand__ly--b { opacity: 0; animation: pv-ghost-a 5s linear infinite; }
.brand__ly--a { background: var(--brand-2); }
.brand__ly--b { background: var(--gold); animation-name: pv-ghost-b; }
.brand:hover .brand__ly--main { animation-duration: 1.8s, 2s; }
.brand:hover .brand__ly--a, .brand:hover .brand__ly--b { animation-duration: 2s; }
@keyframes pv-sheen { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes pv-jitter {
  0%, 28%, 31%, 68%, 76%, 100% { transform: none; }
  29% { transform: translate(1px, 0) skewX(4deg); }
  30% { transform: translate(-1px, .5px); }
  69% { transform: translate(-2px, 1px) skewX(-9deg); }
  70.5% { transform: translate(2.5px, -1px) skewX(7deg); }
  72% { transform: translate(-1.5px, 0) scaleX(1.05); }
  73.5% { transform: translate(2px, 1px) skewX(-5deg); }
  75% { transform: translate(-.5px, -.5px); }
}
@keyframes pv-ghost-a {
  0%, 28.3%, 31%, 68.4%, 75.8%, 100% { opacity: 0; transform: none; }
  29.2% { opacity: .5; transform: translate(-2px, .5px); }
  69% { opacity: .9; transform: translate(-4px, 1px) skewX(-11deg); }
  70.8% { opacity: .65; transform: translate(4px, -1.5px); }
  72.5% { opacity: .9; transform: translate(-3px, .5px) skewX(7deg); }
  74.5% { opacity: .45; transform: translate(1.5px, 0); }
}
@keyframes pv-ghost-b {
  0%, 28.6%, 31%, 68.6%, 76%, 100% { opacity: 0; transform: none; }
  29.5% { opacity: .45; transform: translate(2px, -.5px); }
  69.4% { opacity: .85; transform: translate(4px, -1px) skewX(9deg); }
  71.2% { opacity: .6; transform: translate(-4px, 1.5px); }
  72.9% { opacity: .85; transform: translate(3px, -.5px) skewX(-7deg); }
  74.8% { opacity: .4; transform: translate(-1.5px, 0); }
}
@media (prefers-reduced-motion: reduce) { .brand__ly { animation: none !important; } .brand__ly--main { background: var(--ink); } }
.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin-right: auto; }
.nav__menu > li { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: var(--pill); font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background var(--dur), color var(--dur); }
.nav__link:hover, .nav__menu > li.is-open > .nav__link { background: var(--brand-50); color: var(--brand-dark); }
.nav__link.is-active { background: var(--brand); color: #fff; }
.nav__link .chev { width: 12px; height: 12px; opacity: .7; transition: transform var(--dur); }
.nav__menu > li.is-open .chev { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; left: 0; top: calc(100% + 12px); min-width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3), var(--sh-1); z-index: 90; }
.dropdown--wide { min-width: 560px; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Три колонки — там, где третья группа длинная (направления) и переносом на вторую строку
   оставила бы половину выпадашки пустой. Ширина считается от .wrap: 1200 − 2×22 = 1156. */
/* выпадающие списки открываются только по клику (JS ставит .is-open); :hover/:focus-within намеренно не используются */
.nav__menu > li.is-open .dropdown { display: block; }
.nav__menu > li.is-open .dropdown--wide { display: grid; }
.dropdown__group { display: grid; gap: 2px; align-content: start; }
.dropdown__heading { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; padding: 8px 12px 4px; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2); }
.dropdown a:hover { background: var(--brand-50); color: var(--brand-dark); }
.dropdown a small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.nav__tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--panel-2); color: var(--ink-2); transition: background var(--dur); }
.icon-btn:hover { background: var(--brand-100); color: var(--brand-dark); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: var(--pill); background: var(--panel-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.lang__btn svg { width: 14px; height: 14px; }
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--brand-100); color: var(--brand-dark); }
.lang__menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3), var(--sh-1); padding: 6px; z-index: 90; }
.lang.is-open .lang__menu { display: block; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.lang__menu a:hover { background: var(--brand-50); }
.lang__menu a.is-current { font-weight: 700; color: var(--brand-dark); }
.lang__menu small { color: var(--muted); font-size: 11px; }
.lang__head { padding: 10px 12px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lang__soon { padding: 8px 12px 4px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.theme { position: relative; }
.theme__btn svg { display: none; }
:root:not([data-theme]) .theme__btn .ic-auto, :root[data-theme="light"] .theme__btn .ic-sun, :root[data-theme="dark"] .theme__btn .ic-moon { display: block; }
.theme__menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3), var(--sh-1); padding: 6px; z-index: 90; }
.theme.is-open .theme__menu { display: block; }
.theme__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2); text-align: left; }
.theme__menu button svg { width: 16px; height: 16px; color: var(--muted); }
.theme__menu button:hover { background: var(--brand-50); color: var(--brand-dark); }
.theme__menu button.is-current { font-weight: 700; color: var(--brand-dark); }
.theme__menu button.is-current svg { color: var(--brand); }
.burger { display: none; }
.drawer { display: none; }
/* Мобильная шапка: поиск слева, логотип по центру, бургер справа (большим пальцем до него
   ближе); поиск и бургер одного размера, поэтому логотип встаёт по центру сам.
   Остальные системные элементы — иконками внутри меню, первым рядом.
   Пункты с выпадающими списками на десктопе здесь раскрываются аккордеоном по нажатию. */
@media (max-width: 1199px) {
  .nav__pill { padding: 8px 12px; }
  .nav__menu { display: none; }
  /* Ряд системных значков раскрывается: поиск становится значком самой шапки и уходит
     влево, остальное живёт в меню. */
  .nav__tools { display: contents; }
  .nav__tools > :not(.icon-btn--search) { display: none; }
  .icon-btn--search { order: -1; flex: none; }   /* у левого края, перед логотипом */
  .brand { margin: 0 auto; }
  .burger { display: inline-grid; }
  .nav.is-open .burger { background: var(--brand-100); color: var(--brand-dark); }
  .nav.is-open .drawer { display: block; }
  .drawer { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: calc(100dvh - 110px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3), var(--sh-1); padding: 12px; }
  .drawer__link, .drawer__toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: var(--r-sm); font-size: var(--t-base); font-weight: 500; color: var(--ink-2); text-align: left; }
  .drawer__link:hover, .drawer__toggle:hover { background: var(--brand-50); color: var(--brand-dark); }
  .drawer__link.is-active, .drawer__item.is-active > .drawer__toggle { background: var(--brand); color: #fff; }
  .drawer__toggle .chev { width: 14px; height: 14px; opacity: .7; transition: transform var(--dur); flex: none; }
  .drawer__item.is-open > .drawer__toggle { background: var(--brand-50); color: var(--brand-dark); }
  .drawer__item.is-active.is-open > .drawer__toggle { background: var(--brand); color: #fff; }
  .drawer__item.is-open > .drawer__toggle .chev { transform: rotate(180deg); }
  .drawer__sub { display: none; padding: 4px 0 8px 12px; }
  .drawer__item.is-open > .drawer__sub { display: block; }
  .drawer__group + .drawer__group { margin-top: 6px; }
  .drawer__heading { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; padding: 8px 14px 4px; }
  .drawer__sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2); }
  .drawer__sub a:hover { background: var(--brand-50); color: var(--brand-dark); }
  .drawer__sub a small { color: var(--muted); font-size: 11px; white-space: nowrap; text-align: right; }
  .drawer__top { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 10px; }
  .drawer__sys { display: flex; align-items: center; gap: 8px; padding: 2px 6px 0; }
  .drawer__sys .icon-btn[aria-expanded="true"] { background: var(--brand); color: #fff; }
  .drawer__sys .icon-btn--search { order: 0; margin-left: auto; }   /* у правого края того же ряда */
  .drawer__chip { display: inline-grid; place-items: center; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--panel-2); font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; }
  .drawer__chip.is-current { background: var(--brand); color: #fff; }
  /* Языков сейчас три, и они помещаются в строку. Станет больше — ряд не переносится на второй ряд,
     а листается вбок: два ряда кнопок в раскрытом меню читаются как сбитая вёрстка. */
  .drawer__opts { display: none; flex-wrap: wrap; gap: 8px; padding: 10px 6px 2px; }
  .drawer__opts > * { flex: none; }
  .drawer__opts:has(> :nth-child(4)) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .drawer__opts:has(> :nth-child(4))::-webkit-scrollbar { display: none; }
  .drawer__opts.is-open { display: flex; }
  /* язык и валюта — двумя строками: одна лента из шести пунктов уезжала бы за край */
  .drawer__opts--rows.is-open { flex-direction: column; align-items: flex-start; }
  .drawer__row { display: flex; flex-wrap: wrap; gap: 8px; }
  .drawer__opts a, .drawer__opts button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel-2); border-radius: var(--pill); font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); }
  .drawer__opts small { color: var(--muted); font-size: 11px; font-weight: 500; }
  .drawer__opts svg { width: 14px; height: 14px; }
  .drawer__opts .is-current { background: var(--brand); color: #fff; }
  .drawer__opts .is-current small { color: #fff; }
}

/* ---------- секции и сетки ---------- */
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head > div { display: grid; gap: 14px; }
.grid { display: grid; gap: 24px; }
.grid-1 { grid-template-columns: minmax(0, 1fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 16px; }

/* ---------- футер ---------- */
.footer { margin-top: var(--sp-section); background: var(--dark); color: var(--dark-text); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
/* Логотип в подвале — тот же знак, что и в шапке (слои по контуру), только белый: подвал тёмный
   в любой теме. Слоган рядом — текстом, поэтому он переводится и его читают поисковики и экранный диктор. */
.footer .brand--footer { margin: 0; gap: 12px; }
.footer .brand--footer .brand__mark { height: 46px; }
.footer .brand--footer .brand__word { height: 24px; }
.footer .brand--footer .brand__ly { background: #fff; }
.footer .brand--footer .brand__ly--main { background: linear-gradient(115deg, #fff 0 30%, var(--brand-2) 40%, var(--gold) 50%, var(--brand) 60%, #fff 70% 100%); background-size: 300% 100%; }
.footer__slogan { margin-top: 16px; font-family: var(--ff-display); font-size: var(--t-lg); color: #fff; }
.footer__tag { margin-top: 10px; font-size: var(--t-sm); color: var(--dark-muted); max-width: 36ch; }
.footer h2 { color: #fff; font-family: var(--ff-body); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a, .footer li span { color: var(--dark-text); font-size: var(--t-sm); }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.footer__social a:hover { background: var(--brand); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bar { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: var(--t-xs); color: var(--dark-muted); }
/* ссылки в нижней строке подвала стоят внутри текста, поэтому отличаются не только цветом:
   человеку, который не различает цвета, подчёркивание — единственный признак ссылки */
.footer__bar a { color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; }
.footer__link { color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
/* Список языков: когда их станет больше трёх, строка не переносится, а листается вбок —
   иначе нижняя строка подвала разъезжается на два ряда. */
.footer__langs { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.footer__langs::-webkit-scrollbar { display: none; }
.footer__langs > * { flex: none; }
.footer__langs > * + *::before { content: "\00b7"; margin-right: 8px; color: rgba(255,255,255,.35); }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- заголовок страницы ---------- */
.page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 18px; justify-items: start; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: var(--t-xs); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--brand); }
.head-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.head-card__body { display: grid; gap: 18px; justify-items: start; }
.head-card__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sh-2); background: var(--surface); }
.head-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (max-width: 899px) { .head-card { grid-template-columns: 1fr; } .head-card__img { max-width: 300px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 4px; }
.fact span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fact b { font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.panel .fact { background: var(--surface-glass); border-color: transparent; }

/* Psyvision — компоненты: кнопки, бейджи, карточки, панели, виджет «Связаться», тост.
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css). */

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--pill); background: var(--brand); color: #fff; font-weight: 700; font-size: var(--t-sm); border: 1px solid transparent; transition: background var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); white-space: nowrap; }
.btn:hover { background: var(--gold-hot); color: #fff; border-color: transparent; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(245,179,2,.7); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--gold-hot); color: #fff; border-color: transparent; }
.btn--soft { background: var(--brand-100); color: var(--brand-dark); }
.btn--soft:hover { background: var(--gold-hot); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hot); color: #fff; }
/* Кнопка-значок (ластик у формы входа): квадрат той же высоты, слово — в aria-label. */
.btn--icon { width: 48px; padding: 0; }
.btn--icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-actions { display: inline-flex; gap: 8px; align-items: center; }
.btn--tg { background: var(--tg-btn); } .btn--tg:hover { background: var(--gold-hot); }
.btn--wa { background: var(--wa-btn); } .btn--wa:hover { background: var(--gold-hot); }
.btn--vb { background: var(--vb); } .btn--vb:hover { background: var(--gold-hot); }
.btn--fb { background: var(--fb); } .btn--fb:hover { background: var(--gold-hot); }
/* Кнопка-значок: мессенджеры стоят без подписей, поэтому у кнопки квадрат, а не пилюля с текстом. */
.btn--ic { width: 48px; min-width: 48px; padding: 0; gap: 0; }
.btn--ic svg { width: 22px; height: 22px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--t-xs); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: var(--t-base); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.text-link { color: var(--brand); font-weight: 700; font-size: var(--t-sm); display: inline-flex; align-items: center; gap: 4px; }
.text-link:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- бейджи, чипсы, вкладки, поиск ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--brand-50); color: var(--brand-dark); white-space: nowrap; }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.badge--live { background: var(--ok-100); color: var(--ok-700); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.badge--muted { background: var(--panel-2); color: var(--muted); }
.badge--white { background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1); }
.badge--outline { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); transition: all var(--dur); }
.chip:hover { border-color: var(--brand-300); color: var(--brand-dark); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip .n { font-size: 12px; color: var(--muted); font-weight: 500; }
.chip.is-active .n { color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: var(--pill); font-weight: 500; font-size: var(--t-sm); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; transition: all var(--dur); }
.tab:hover { background: var(--brand-50); color: var(--brand-dark); }
.tab.is-active { background: var(--brand); color: #fff; }
.tab .n { font-size: 12px; opacity: .7; }
/* На активной вкладке счётчик непрозрачный: белый под opacity .7 на фирменной заливке даёт
   контраст 3,2:1 при размере 12px — ниже порога WCAG AA (4,5:1). Так же, как у .chip.is-active. */
.tab.is-active .n { opacity: 1; }
.toolbar { display: grid; gap: 16px; margin: 36px 0 24px; }
.toolbar > * { min-width: 0; }
.search { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 8px 6px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); box-shadow: var(--sh-1); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; width: 0; border: 0; background: none; font: inherit; color: var(--ink); min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.search .count { font-size: var(--t-sm); color: var(--muted); padding: 0 14px; white-space: nowrap; }
.search .count b { color: var(--ink); }

/* ---------- панель и hero-карточка ---------- */
.panel { background: var(--panel); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.panel--white { background: var(--surface); border: 1px solid var(--line); }
.panel--dots::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(32,124,147,.14) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); pointer-events: none; }
/* полноэкранная шапка главной: карусель групповых фото центра под плавающим меню */
.hero-full { position: relative; isolation: isolate; margin-top: -88px; padding-top: 88px; min-height: 700px; display: grid; align-items: end; color: #fff; background: var(--brand-deep); overflow: hidden; }
.hero-full__slides { position: absolute; inset: 0; z-index: 0; }
.hero-full__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-full__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); transition: transform 9s linear; }
.hero-full__slide.is-on { opacity: 1; }
/* видео кадра (план 29.15) поверх своего постера-картинки; без «меньше движения» его запускает site.js */
.hero-full__video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (prefers-reduced-motion: reduce) { .hero-full__video { display: none; } }
.hero-full__slide.is-on img { transform: scale(1); }
.hero-full__shade { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(8,22,28,.88) 0%, rgba(8,22,28,.72) 40%, rgba(8,22,28,.28) 75%, rgba(8,22,28,.15) 100%),
  linear-gradient(180deg, rgba(8,22,28,.45) 0%, rgba(8,22,28,0) 35%, rgba(8,22,28,.6) 100%); }
.hero-full__inner { position: relative; z-index: 2; width: 100%; display: grid; gap: 40px; padding-top: 64px; padding-bottom: 28px; }
.hero-full__body { display: grid; gap: 22px; justify-items: start; max-width: 680px; }
.hero-full h1 { color: #fff; max-width: 14ch; }
.hero-full .hl { background: none; -webkit-text-fill-color: currentColor; color: #efd27a; }
.hero-full .eyebrow { color: rgba(255,255,255,.78); }
.hero-full .lead { color: rgba(255,255,255,.84); max-width: 52ch; }
.hero-full .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.hero-full .chips { margin-top: 6px; }
.hero-full .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px); }
.hero-full .chip:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); color: #fff; }
.hero-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: var(--t-xs); color: rgba(255,255,255,.72); }
.hero-full__caption { display: inline-flex; align-items: center; gap: 10px; }
.hero-full__caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hot); box-shadow: 0 0 0 3px rgba(245,179,2,.25); }
.hero-full__dots { display: flex; gap: 6px; }
.hero-full__dots button { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.32); transition: background var(--dur), width var(--dur); }
.hero-full__dots button:hover { background: rgba(255,255,255,.6); }
.hero-full__dots button.is-on { width: 44px; background: var(--gold-hot); }
@media (prefers-reduced-motion: reduce) { .hero-full__slide, .hero-full__slide img { transition: none; } }
@media (max-width: 639px) { .hero-full { min-height: 600px; } .hero-full__inner { padding-top: 40px; gap: 28px; } .hero-full h1 { max-width: none; } .hero-full__foot { justify-content: flex-start; } }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 28px 30px; display: grid; gap: 12px; align-content: start; }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--brand-dark); background: var(--brand-100); }
.step__n svg { width: 22px; height: 22px; }
.step h3 { font-size: var(--t-xl); }
.step p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* ---------- сплит-секция ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sh-2); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img--portrait { aspect-ratio: 4 / 5; max-width: 440px; }
.split__img--portrait img { object-position: 50% 0; }
.split__body { display: grid; gap: 20px; justify-items: start; }
.dashes { list-style: none; display: grid; gap: 12px; }
.dashes li { position: relative; padding-left: 32px; color: var(--ink-2); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 3px; border-radius: var(--pill); background: var(--brand); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2), var(--sh-1); }
.card__media { aspect-ratio: 16 / 9; background: var(--brand-50); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .badge { position: absolute; left: 14px; top: 14px; }
.card__media .badge + .badge { left: auto; right: 14px; }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand-300); font-family: var(--ff-display); font-size: 40px; background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__date { font-size: var(--t-xs); color: var(--muted); }
.card__title { font-size: var(--t-xl); line-height: 1.25; }
.card__title a:hover { color: var(--brand); }
.card__text { color: var(--muted); font-size: var(--t-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: var(--t-sm); color: var(--muted); }
.card__foot b { color: var(--ink); font-weight: 700; }
/* Рамка плитки — 16:9, как обложки Анны (план 18.9): раньше 16:10 срезала по 5% с боков.
   Картинка не своей пропорции (снимки старого сайта — от квадрата до афиш 4:1) вписывается
   целиком, а поля заполняет та же картинка, размытая: второй <img> того же файла, лишних байтов
   нет. Какая картинка «не своя», решает сборка измерением файла (tile_fit в build.py). */
.card__media--fit img { object-fit: contain; position: relative; }
.card__media--fit .card__bg { position: absolute; inset: 0; object-fit: cover; filter: blur(18px) brightness(.72); transform: scale(1.2); }
/* Одна карточка в ряду (клуб, единственный товар): на весь ряд, две колонки — слева картинка на
   половину плитки в своих 16:9, справа текст. Раньше картинка брала высоту у текста и от неё
   оставалась середина. Карточек больше одной — обычные плитки, картинка сверху. На телефоне и
   у одиночной — картинка сверху. */
.grid > .card--row:only-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.grid > .card--row:only-child .card__media { width: 50%; flex: none; align-self: center; }
@media (max-width: 767px) {
  .grid > .card--row:only-child { flex-direction: column; align-items: stretch; }
  .grid > .card--row:only-child .card__media { width: 100%; }
}
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--gold { background: var(--gold-100); color: var(--gold-700); }
.card--tool .card__body { padding-top: 26px; gap: 14px; }
.card--tool .card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
/* Действие и «подробнее» стоят рядом слева, а не разъезжаются по краям карточки:
   вторая ссылка читается как продолжение первой кнопки, а не как отдельный угол. */
.card__foot--act { justify-content: flex-start; gap: 10px 16px; }
.channels { display: flex; flex-wrap: wrap; gap: 6px; }
.ch { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: var(--pill); background: var(--panel-2); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ch svg { width: 16px; height: 16px; }
.ch--tg svg { color: var(--tg); } .ch--wa svg { color: var(--wa); } .ch--vb svg { color: var(--vb); } .ch--web svg { color: var(--brand); }
.ch--soon { opacity: .55; }

/* ---------- цитата на сцене ---------- */
.quote-stage { text-align: center; max-width: 820px; margin-inline: auto; display: grid; gap: 22px; justify-items: center; }
.quote-stage blockquote { margin: 0; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.quote-stage .who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--t-sm); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-100); color: var(--brand-dark); font-weight: 700; font-size: 13px; flex: none; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; display: grid; gap: 14px; align-content: start; }
.review p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); }
.review .who b { display: block; }
.review .who span { color: var(--muted); font-size: var(--t-xs); }

/* ---------- контакт-секция ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { display: grid; gap: 22px; }
.contact__list { list-style: none; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list b { display: block; font-size: var(--t-sm); }
.contact__list a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-300); }
.contact__list span { color: var(--ink-2); font-size: var(--t-sm); }
.ic { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); color: var(--brand); flex: none; box-shadow: var(--sh-1); }
.ic svg { width: 18px; height: 18px; }
.ic--tg { color: var(--tg); } .ic--wa { color: var(--wa); } .ic--vb { color: var(--vb); } .ic--fb { color: var(--fb); } .ic--ig { color: var(--ig); }
/* Значок приложения в строке списка: рядом с ним остаётся сам адрес или номер, название не нужно. */
.mi { display: inline-grid; place-items: center; vertical-align: -4px; margin-right: 7px; color: var(--ink-2); }
.mi svg { width: 17px; height: 17px; }
.mi--tg { color: var(--tg); } .mi--wa { color: var(--wa); } .mi--vb { color: var(--vb); } .mi--fb { color: var(--fb); } .mi--ig { color: var(--ig); }
.form-card { background: var(--surface); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--sh-2), var(--sh-1); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.field label i { color: #c0392b; font-style: normal; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); }
.form-foot a { color: var(--brand-dark); text-decoration: underline; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .form-row { grid-template-columns: 1fr; } .search .count { display: none; } }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.messengers .btn { min-height: 42px; padding: 0 16px; font-size: var(--t-xs); }
.messengers .btn--ic { width: 42px; min-width: 42px; padding: 0; }

/* ---------- виджет «Связаться» ---------- */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cw__btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--pill); background: var(--brand); color: #fff; font-weight: 700; font-size: var(--t-sm); box-shadow: 0 10px 30px rgba(32,124,147,.40); transition: transform var(--dur) var(--ease), background var(--dur); }
.cw__btn:hover { transform: translateY(-2px); background: var(--gold-hot); }
.cw__btn-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; position: relative; }
.cw__btn-ic svg { width: 22px; height: 22px; }
.cw__btn-ic .cw__x { display: none; }
.cw.is-open .cw__btn-ic .cw__chat { display: none; }
.cw.is-open .cw__btn-ic .cw__x { display: block; }
.cw__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); animation: cwPulse 2.2s var(--ease) infinite; }
.cw.is-open .cw__pulse, .cw.is-touched .cw__pulse { animation: none; opacity: 0; }
@keyframes cwPulse { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.cw__panel { display: none; width: min(360px, calc(100vw - 40px)); max-height: calc(100dvh - 100px); overflow-y: auto; background: var(--surface); border-radius: 24px; box-shadow: 0 24px 64px rgba(20,38,46,.28); border: 1px solid var(--line); overflow: hidden; transform-origin: bottom right; }
.cw.is-open .cw__panel { display: block; animation: cwIn 320ms var(--ease); }
@keyframes cwIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.cw__head { padding: 22px 22px 16px; background: linear-gradient(160deg, var(--brand-deep), var(--brand)); color: #fff; }
.cw__head h2 { color: #fff; font-size: var(--t-xl); line-height: 1.2; }
.cw__head p { margin-top: 6px; font-size: var(--t-sm); color: rgba(255,255,255,.8); }
.cw__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .1em; }
.cw__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.cw__list { list-style: none; padding: 10px; display: grid; gap: 2px; }
.cw__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background var(--dur); }
.cw__item:hover { background: var(--panel-2); }
.cw__item .ic { box-shadow: none; background: var(--panel-2); }
.cw__item strong { display: block; font-size: var(--t-sm); color: var(--ink); }
.cw__item span { font-size: var(--t-xs); color: var(--muted); }
.cw__item .go { margin-left: auto; color: var(--line-2); width: 16px; height: 16px; }
.cw__form { display: none; padding: 6px 14px 14px; border-top: 1px solid var(--line); }
.cw.is-form .cw__form { display: grid; gap: 10px; }
.cw.is-form .cw__list { display: none; }
.cw__back { justify-self: start; font-size: var(--t-sm); color: var(--brand-dark); font-weight: 700; padding: 8px 0; }
.cw__about { margin: -4px 0 0; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
@media (max-width: 480px) { .cw { right: 12px; bottom: 12px; } }

/* ---------- тост ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 10px 18px; border-radius: var(--pill); font-size: var(--t-sm); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200; white-space: nowrap; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; }

/* отступ перед второй сеткой на странице направления (был style= в разметке — мешал строгой CSP) */
.section-head--gap { margin-top: 56px; }

/* ---------- окно про cookie (правки Пола после этапа 10) ----------
   Панель слева внизу — справа внизу стоит виджет «Связаться». Это не модальное окно:
   страницу оно не перекрывает, фокус не держит, читать сайт можно не отвечая. */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 130; width: min(26rem, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3), var(--sh-1); padding: 16px 18px 14px; }
.consent[hidden], .consent-chip[hidden] { display: none; }
.consent__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.consent__head h2 { font-family: var(--ff-display); font-size: var(--t-xl); }
.consent__fold { flex: none; }
.consent__fold svg { width: 17px; height: 17px; }
.consent__intro { margin: 8px 0 12px; color: var(--muted); font-size: var(--t-xs); }
.consent__cats { display: grid; gap: 10px; padding: 12px 0; margin-bottom: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: 42vh; overflow-y: auto; }
.consent__cats .check { max-width: none; }
.consent__cats b { display: block; color: var(--ink); font-size: var(--t-sm); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent__actions .btn { flex: 1 1 8rem; }
.consent__more { margin-top: 12px; font-size: var(--t-xs); }
.consent__more a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent-chip { position: fixed; left: 20px; bottom: 20px; z-index: 130; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); box-shadow: var(--sh-2), var(--sh-1); transition: color var(--dur); }
.consent-chip:hover { color: var(--ink); }
.consent-chip svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .consent-chip { left: 12px; bottom: 12px; }
  /* на узком экране панель и кнопка «Связаться» стоят на одном месте: пока вопрос открыт, кнопку прячем */
  .cw:has(~ .consent:not([hidden])) { display: none; }
}

/* ---------- полоса-объявление (стадия 3 панели) ----------
   Вставляется middleware'ом из KV, поэтому её разметки нет ни в одном шаблоне. Стили лежат
   здесь, а не в самой полосе: строгая CSP (style-src 'self') встроенные стили не пускает. */
.hellobar { --hb-bg: var(--brand-50); --hb-glow: var(--brand-100); border-bottom: 1px solid var(--line);
  background: var(--hb-bg); color: var(--ink); }
.hellobar__in { max-width: var(--wrap); margin-inline: auto; padding: 10px var(--pad);
  display: flex; align-items: center; gap: 12px; }
.hellobar__text { margin: 0; font-size: var(--t-sm); line-height: 1.45; }
.hellobar__go { margin-left: 6px; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hellobar__x { margin-left: auto; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1;
  cursor: pointer; transition: color var(--dur), background var(--dur); }
.hellobar__x:hover { color: var(--ink); background: rgb(0 0 0 / 6%); }
.hellobar--notice { --hb-bg: var(--gold-100); --hb-glow: var(--gold-300); border-bottom-color: var(--gold-300); }
.hellobar--notice .hellobar__go { color: var(--gold-700); }
.hellobar--warning { --hb-bg: var(--bad-100); --hb-glow: var(--bad-300); border-bottom-color: var(--bad-300); }
.hellobar--warning .hellobar__go { color: var(--bad-700); }
/* Ссылки внутри текста полосы (markdown, 10.10.2026): цвет как у ссылки-кнопки рядом. */
.hellobar__text a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.hellobar--notice .hellobar__text a { color: var(--gold-700); }
.hellobar--warning .hellobar__text a { color: var(--bad-700); }
/* Закреплённая полоса остаётся наверху при прокрутке; плавающая шапка (.nav) встаёт под неё —
   высоту полосы в --hb-h кладёт site.js (layout.css, content.css). Без скрипта шапка заходит
   под полосу, и только. */
.hellobar--sticky { position: sticky; top: 0; z-index: 101; }
/* Акция (план 33): знак скидки «−17%» перед старой ценой, отсчёт до конца показа, короткий текст
   на телефоне. Цвета — переменными: свой вид сайта (site.yaml → hellobar.kinds, theme.css)
   переопределяет их, не трогая правил. */
.hellobar__off { display: inline-block; margin-right: 2px; padding: 0 8px; border-radius: 999px;
  background: var(--hb-badge-bg, var(--gold-hot)); color: var(--hb-badge-ink, #2a1d00);
  font-weight: 700; font-size: .9em; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.hellobar__text s { opacity: .7; }
.hellobar__left { white-space: nowrap; opacity: .85; font-variant-numeric: tabular-nums; }
.hellobar__short { display: none; }
@media (max-width: 639px) {
  .hellobar--short .hellobar__long { display: none; }
  .hellobar--short .hellobar__short { display: inline; }
}
/* Эффект полосы — выбор в панели (план 33 §3а). Только CSS; «уменьшить движение» — без эффекта.
   Блик: три прохода по 1,3 с с паузой 3 с между ними (цикл 4,3 с), потом тишина; при наведении — ещё один, отдельным ::before, чтобы
   уход мыши не запускал три прохода заново. */
.hellobar--fx-shine { overflow: hidden; isolation: isolate; }
.hellobar--fx-shine:not(.hellobar--sticky) { position: relative; }
.hellobar--fx-shine::before, .hellobar--fx-shine::after { content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, var(--hb-shine, rgb(255 255 255 / 55%)) 50%, transparent 65%); }
.hellobar--fx-shine::after { animation: hb-shine 4.3s ease-in-out 1s 3; }
.hellobar--fx-shine:hover::before { animation: hb-shine 4.3s ease-in-out 1; }
@keyframes hb-shine { 0% { transform: translateX(-110%); } 30%, 100% { transform: translateX(110%); } }
/* Перелив: фон медленно ходит между цветом полосы и его вторым оттенком (--hb-glow). */
.hellobar.hellobar--fx-flow { background: linear-gradient(100deg, var(--hb-bg), var(--hb-glow), var(--hb-bg), var(--hb-glow)) 0 0 / 300% 100%;
  animation: hb-flow 9s ease-in-out infinite alternate; }
@keyframes hb-flow { to { background-position: 100% 0; } }
/* Искра: ✦ за последней ценой мерцает. */
.hellobar__spark { display: inline-block; margin-left: 4px; color: var(--hb-spark, var(--gold));
  animation: hb-twinkle 2.4s ease-in-out infinite; }
@keyframes hb-twinkle { 0%, 100% { opacity: .25; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .hellobar--fx-shine::before, .hellobar--fx-shine::after, .hellobar__spark { display: none; }
  .hellobar.hellobar--fx-flow { animation: none; background: var(--hb-bg); }
}
/* ---------- «курс временно недоступен» (план 15, §2а) ----------
   Ставит middleware (functions/fx.js) в начало <main> страницы с ценой, когда посетитель
   выбрал не евро, а курса нет: цены на ней остались в евро, и человек должен знать почему. */
.fx-note { max-width: var(--wrap); margin: 12px auto 0; padding: 0 var(--pad);
  font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 560px) {
  .hellobar__in { align-items: flex-start; gap: 8px; }
  .hellobar__go { display: inline-block; margin-left: 0; }
}
/* ---------- события (план 29.23, модуль events) ----------
   Строка — одно занятие: дата слева, название и подпись справа; на узком экране — столбиком. */
.ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ev-row { display: grid; grid-template-columns: minmax(12em, 16em) 1fr; gap: 4px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev-row__when { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ev-row__title { font-weight: 600; }
.ev-row__meta { grid-column: 2; }
.ev-row.is-past { color: var(--muted); }
.ev-past { margin-top: 32px; }
.ev-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.ev-facts dt { color: var(--muted); }
.ev-facts dd { margin: 0; }
.ev-cover { display: block; width: 100%; max-height: 60vh; object-fit: cover; border-radius: var(--radius, 8px); margin: 0 0 16px; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 12px 0 24px; }
.ev-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius, 8px); }
.ev-quote { margin: 12px 0; padding: 0 0 0 16px; border-left: 3px solid var(--line); }
.ev-quote footer { color: var(--muted); font-size: .9em; }
@media (max-width: 560px) {
  .ev-row { grid-template-columns: 1fr; }
  .ev-row__meta { grid-column: 1; }
}

/* Psyvision — типографика статьи и текстовых страниц.
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css). */

/* ---------- контент ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.two-col--narrow { grid-template-columns: minmax(0, 1fr) 300px; }
.two-col--chat { grid-template-columns: 420px minmax(0, 1fr); }
.sticky { position: sticky; top: calc(100px + var(--hb-h, 0px)); }
@media (max-width: 899px) { .two-col, .two-col--narrow, .two-col--chat { grid-template-columns: 1fr; } .sticky { position: static; } }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--t-2xl); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-xl); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 3px solid var(--brand); background: var(--panel-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--ff-display); font-size: 1.2em; line-height: 1.4; color: var(--ink); }
/* Теги, которые разрешил markdown (стадия 11.9). Оформление приходит вместе с разрешением:
   тег, который можно написать, но который выглядит никак, — это половина возможности. */
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: var(--t-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel-2); font-weight: 700; color: var(--ink); }
/* Таблица шире экрана не ломает страницу, а прокручивается — своей полосой. Обёртку ставит
   сборка (fix_html), и она же ставит tabindex: до прокрутки, которой нельзя коснуться, с
   клавиатуры иначе не добраться — этому научила проверка доступности на стадии 11.7. */
.prose .table-scroll { overflow-x: auto; max-width: 100%; }
.prose code { font-family: var(--ff-mono); font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; }
.prose pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; overflow-x: auto; margin: 1.6em 0; }
.prose pre code { background: none; border: none; padding: 0; font-size: .875rem; line-height: 1.5; }
.prose s { color: var(--muted); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: 8px; }
/* Ссылка и подчёркнутое не похожи (фаза 6 редактора, docs/14 §1а). Ссылка — цвета бренда со
   сплошной линией, при наведении линия толще; подчёркнутое — цвета текста, тонкий пунктир
   приглушённым цветом, и у курсора не меняется ничего: нажимать там нечего. Цвет ссылки
   отличается от текста и без наведения — на телефоне наведения нет. */
.prose a { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose u { color: inherit; text-decoration: underline dotted var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a u { text-decoration: none; }
/* Маркер — один цвет, светлый фон из палитры сайта; текст остаётся цвета текста. */
.prose mark { background: var(--gold-300); color: inherit; padding: 0 .12em; border-radius: 2px; }
/* x² и H₂O не раздвигают строки абзаца: высоту строки у них отнимаем, место — сдвигом. */
.prose sup, .prose sub { font-size: .75em; line-height: 0; position: relative; vertical-align: baseline; }
.prose sup { top: -.5em; }
.prose sub { bottom: -.25em; }
.cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--sh-2); margin-top: 32px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* Заглушка вместо картинки у записи в архиве (фаза 7 редактора, docs/14 §5а): блок той же
   пропорции — её держит пустой <svg viewBox> внутри, — мягкий градиент палитры, знак центра
   бледным водяным знаком, по центру название страницы (до трёх строк), внизу «Архив». */
.cover { position: relative; }
.ph { display: block; position: relative; overflow: hidden; margin: 1.4em 0; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-50), var(--gold-100)); }
.ph::before { content: ""; position: absolute; inset: 0; background: url(brand/mark-brand.png) no-repeat center / auto 55%; opacity: .08; }
.ph__box { display: block; width: 100%; height: auto; }
.ph--fill { position: absolute; inset: 0; margin: 0; border-radius: 0; }
.ph__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6em; padding: 1.2em 1.5em; text-align: center; }
.ph__t { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); line-height: 1.25; color: var(--ink);
  max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph__a { font-size: var(--t-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-sm); color: var(--muted); }
.side { display: grid; gap: 20px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; display: grid; gap: 12px; }
.side-box--tint { background: var(--panel); border-color: transparent; }
.side-box h2 { font-family: var(--ff-body); font-size: var(--t-sm); font-weight: 700; }
.side-box .price { font-family: var(--ff-display); font-size: var(--t-3xl); font-weight: 700; color: var(--ink); line-height: 1; }
.side-box .price small { font-family: var(--ff-body); font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
.toc { display: grid; gap: 4px; }
.toc a { padding: 6px 10px; border-left: 2px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.toc a.is-active, .toc a:hover { color: var(--brand-dark); border-color: var(--brand); }
.list-links { list-style: none; display: grid; gap: 8px; }
.list-links a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-300); font-size: var(--t-sm); }
.author { display: flex; gap: 16px; align-items: center; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 0; flex: none; }
.author b { display: block; }
.author span { font-size: var(--t-sm); color: var(--muted); }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-weight: 700; font-size: var(--t-lg); font-family: var(--ff-display); color: var(--ink); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-dark); font-weight: 400; font-family: var(--ff-body); flex: none; }
details.acc[open] summary::after { content: "−"; }
details.acc .acc__body { padding: 0 4px 20px; color: var(--muted); font-size: var(--t-sm); max-width: 66ch; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: var(--t-sm); }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.pager a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.notice { background: var(--gold-100); color: var(--gold-700); border-bottom: 1px solid var(--gold-300); }
.notice__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 12px 0; font-size: var(--t-sm); }
.notice__flag { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: var(--gold-700); color: #fff; font-size: 11px; font-weight: 700; margin-right: 8px; }
.mock-note { background: var(--gold-100); border: 1px dashed var(--gold); color: var(--gold-700); border-radius: var(--r-sm); padding: 12px 16px; font-size: var(--t-xs); }

/* ---------- надпись на обложке (план 20, 05.10.2026) ----------
   Текст, который раньше рисовали на картинке, рисует сайт из полей записи (partials/cover-text.html).
   Раскладка и цвета — как у двенадцати обложек 2400×1350 нового образца, буквы — сайта.
   Слой надписи — кадр картинки 16:9 по ширине обложки, по центру по высоте: ровно так её
   кладёт object-fit: cover, поэтому надпись стоит на той же доле кадра и на странице (рамка 21:9
   срезает по 12% сверху и снизу), и в плитке 16:9. Слой — контейнер: все размеры в cqw, то есть
   в долях ширины картинки, а ступени — по ширине обложки (@container), а не экрана.
   Этот же файл подключает редактор панели (план 20.6) — один CSS на сайт и миниатюру.
   Знака с названием, линии и адреса в слое нет (план 27): они остаются на самих картинках. */
.ctext { --ct-gold: #d6b685; --ct-teal: #2b93ad; --ct-plate: #1d7891;
  position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 16 / 9; transform: translateY(-50%);
  container-type: inline-size; pointer-events: none; color: #fff; text-align: left;
  background: linear-gradient(90deg, rgba(5, 11, 15, .66) 0, rgba(5, 11, 15, .46) 38%, rgba(5, 11, 15, 0) 74%); }
/* картинка не своей пропорции вписана целиком (cover_fit/tile_fit) — слой занимает рамку */
.cover--whole .ctext, .cover--fit .ctext, .card__media--fit .ctext { top: 0; bottom: 0; aspect-ratio: auto; transform: none; }
.ctext p { margin: 0; max-width: none; }
.ctext__body { position: absolute; left: 9cqw; right: 4cqw; top: 30.5%; display: flex; flex-direction: column; align-items: flex-start; }
/* без надзаголовка (консультации) заголовок на образцах стоит ниже */
.ctext__body:not(:has(> .ctext__kicker)) { top: 36%; }
.ctext__kicker { margin-bottom: 1.7cqw !important; font: 700 3.1cqw/1.1 var(--ff-body); letter-spacing: .5em; text-transform: uppercase; color: #fff; }
.ctext__title { max-width: 86cqw !important; font: 700 4.15cqw/1.12 var(--ff-body); letter-spacing: -.02em; text-transform: uppercase; color: var(--ct-gold); text-wrap: balance; text-shadow: 0 .1cqw .6cqw rgba(0, 0, 0, .35); }
.ctext__row { display: grid; grid-template-columns: 31.5cqw minmax(0, 49cqw); align-items: end; margin-top: 5.2cqw; }
.ctext__chip { grid-column: 1; justify-self: start; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: space-between; gap: 3cqw;
  min-width: 15.8cqw; height: 4.05cqw; padding: 0 1.4cqw 0 2.3cqw; border: max(1px, .13cqw) solid #fff;
  font: 700 1.45cqw/1 var(--ff-body); color: #fff; text-decoration: none; white-space: nowrap; pointer-events: auto; }
a.ctext__chip:hover, a.ctext__chip:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.ctext__arrow { display: grid; place-items: center; width: 1.9cqw; height: 1.9cqw; border: max(1px, .15cqw) solid var(--ct-teal); border-radius: 50%; }
.ctext__arrow::before { content: "→"; font: 700 1.1cqw/1 var(--ff-body); color: var(--ct-teal); }
.ctext__note { grid-column: 2; padding: .45cqw .6cqw; background: var(--ct-plate); font: 400 1.5cqw/1.4 var(--ff-body); color: #fff; }
/* Узкая обложка (плитка, телефон): мелкое не читается — абзац уходит,
   остальное крупнее и на плотнее затемнённом фоне. */
@container (max-width: 480px) {
  .ctext__note { display: none; }
  .ctext__body { top: 23%; right: 6cqw; }
  .ctext__body:not(:has(> .ctext__kicker)) { top: 30%; }
  .ctext__kicker { font-size: 3.6cqw; letter-spacing: .35em; margin-bottom: 1.6cqw !important; }
  .ctext__title { font-size: 5cqw; max-width: 88cqw !important; }
  .ctext__row { grid-template-columns: auto; margin-top: 4cqw; }
  .ctext__chip { height: 7.6cqw; gap: 2.4cqw; padding: 0 2cqw 0 3cqw; font-size: 3cqw; }
  .ctext__arrow { width: 3.6cqw; height: 3.6cqw; }
  .ctext__arrow::before { font-size: 2.2cqw; }
}
.card__media .ctext { background: linear-gradient(90deg, rgba(5, 11, 15, .74) 0, rgba(5, 11, 15, .5) 45%, rgba(5, 11, 15, .08) 85%); }
/* Совсем узкая — остаются надзаголовок и заголовок. */
@container (max-width: 300px) { .ctext__row { display: none; } }

/* Psyvision — страницы инструментов: окно мессенджера у бота, уровни доступа, блок «что дальше».
   Перенесено из макетов v0.3.2 (docs/mockups/assets/site.css); чат-мок и демо-набор карт убраны
   18.09.2026 вместе с демо-инструментами, которые их показывали. */

/* ---------- окно Telegram у бота, который живёт только там ----------
   Свои переменные, а не палитра сайта: узнаваемость даёт именно телеграмный цвет.
   Тёмная тема — те же три правила, что и у остальных блоков (явный выбор и системная). */
.tg { --tg-bg: #cfd9e3; --tg-in: #ffffff; --tg-out: #eeffde; --tg-head: #ffffff;
      --tg-ink: #0f1419; --tg-sub: #707579; --tg-line: #e4e9ec; --tg-accent: #3390ec;
      position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
      box-shadow: var(--sh-2), var(--sh-1); font-size: var(--t-sm); }
.tg__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--tg-head); border-bottom: 1px solid var(--tg-line); }
.tg__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #6ec8f5, var(--tg-accent)); color: #fff; }
.tg__avatar svg { width: 20px; height: 20px; }
.tg__who b { display: block; color: var(--tg-ink); font-size: var(--t-sm); line-height: 1.25; }
.tg__who small { color: var(--tg-sub); font-size: var(--t-xs); }
/* обои чата — еле заметная косая штриховка: узор мессенджера читается, но не спорит с текстом */
.tg__body { padding: 16px; display: grid; gap: 8px; background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px), var(--tg-bg); }
.tg__msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; line-height: 1.45; color: var(--tg-ink); box-shadow: 0 1px 1px rgba(16,35,47,.12); }
.tg__msg--bot { background: var(--tg-in); justify-self: start; border-bottom-left-radius: 5px; }
.tg__msg--me { background: var(--tg-out); justify-self: end; border-bottom-right-radius: 5px; }
.tg__btns { display: flex; flex-wrap: wrap; gap: 5px; justify-self: stretch; }
.tg__btns span { flex: 1 1 30%; text-align: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.75); color: #2b5f86; font-size: 12px; font-weight: 500; }
.tg__lock { justify-self: start; max-width: 82%; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.62); border: 1px dashed #a9b7c2; color: #4a5a66; font-size: 12px; }
.tg__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--tg-head); border-top: 1px solid var(--tg-line); text-decoration: none; cursor: text; }
.tg__ph { flex: 1; color: var(--tg-sub); }
.tg__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tg-accent); color: #fff; }
.tg__send svg { width: 17px; height: 17px; }
.tg__bar:hover .tg__send { background: #1f7ad4; }
.tg__ask { position: absolute; inset: auto 12px 12px; padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-3); color: var(--text); }
.tg__ask b { display: block; color: var(--ink); }
/* пока висит вопрос, плавающая кнопка «Связаться» прячется: на узком экране она садится
   ровно на кнопку «Не сейчас», а два всплывающих слоя одновременно — это всегда чей-то
   промах по кнопке */
body.is-asking .cw { display: none; }
.tg__ask p { margin: 6px 0 12px; font-size: var(--t-xs); color: var(--muted); }
:root[data-theme="dark"] .tg { --tg-bg: #0e1621; --tg-in: #182533; --tg-out: #2b5278; --tg-head: #17212b;
  --tg-ink: #e9eef2; --tg-sub: #7d8b97; --tg-line: #101921; --tg-accent: #4aa1e8; }
:root[data-theme="dark"] .tg__btns span { background: rgba(43,82,120,.55); color: #cfe3f5; }
:root[data-theme="dark"] .tg__lock { background: rgba(24,37,51,.8); border-color: #34495d; color: #9fb2c2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tg { --tg-bg: #0e1621; --tg-in: #182533; --tg-out: #2b5278; --tg-head: #17212b;
    --tg-ink: #e9eef2; --tg-sub: #7d8b97; --tg-line: #101921; --tg-accent: #4aa1e8; }
  :root:not([data-theme="light"]) .tg__btns span { background: rgba(43,82,120,.55); color: #cfe3f5; }
  :root:not([data-theme="light"]) .tg__lock { background: rgba(24,37,51,.8); border-color: #34495d; color: #9fb2c2; }
}

/* ---------- уровни доступа в боковой колонке инструмента ---------- */
.levels { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.levels li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.levels li:last-child { border-bottom: 0; }
.levels__name { color: var(--ink-2); font-size: var(--t-sm); }
.levels__price { color: var(--brand-dark); white-space: nowrap; }
.levels__note { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-xs); }


/* Psyvision — элементы, которых не было в макетах: ссылка «к содержанию», заглушки разделов,
   ряд чипсов, страница выбора языка, заглушка полноэкранного режима. */

/* ---------- доступность ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; }

/* ---------- заглушка раздела ---------- */
.stub { display: grid; gap: 14px; justify-items: start; }
.stub .lead { max-width: 62ch; }
.stub__stage { letter-spacing: .04em; }
.stub__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ряд чипсов (ссылки внутри раздела) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- вход в шапке ---------- */
/* круглая иконка размером с остальные (.icon-btn), но фирменного цвета — заметна и без подписи */
/* Кнопка входа — обычная серая иконка, как поиск и тема: вход пока заглушка, выделять его нечем. */
.auth { flex: none; }
.auth svg { width: 19px; height: 19px; }

/* ---------- выбор языка на корне ---------- */
body.is-langpick { display: grid; place-items: center; min-height: 100dvh; }
.langpick { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); justify-items: center; text-align: center; padding-block: clamp(2rem, 6vw, 4rem); }
.langpick .brand--lg { margin: 0; }
.langpick .brand--lg .brand__mark { height: 56px; }
.langpick .brand--lg .brand__word { height: 26px; }
.langpick__row { display: grid; gap: 12px; justify-items: center; max-width: 48ch; }
.langpick__row h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.langpick__row + .langpick__row { padding-top: clamp(1rem, 3vw, 1.75rem); border-top: 1px solid var(--line); }

/* ---------- черновые страницы импорта (этап 2) ---------- */
/* Текст перенесён со старого сайта как есть; своё оформление разделы получают на этапах 3–5. */
.draft-note { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--gold-100); color: var(--gold-700); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-sm); }
/* Черновой машинный перевод (стадия 5): страница читаема и в поиске, просто ещё не вычитана — тон спокойнее, чем у «перевод готовится». */
.draft-note--machine { border-left-color: var(--line); background: var(--bg); color: var(--muted); }
.prose img { border-radius: var(--r-md); margin: 1.2em 0; }
.prose p > img { display: inline-block; }
.prose .cover { margin: 0 0 1.4em; }
.page-head .meta { margin-top: 14px; }

/* ---------- статьи и новости (этап 3) ---------- */
.toolbar--links { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; }
@media (max-width: 767px) { .toolbar--links { grid-template-columns: 1fr; } }
.meta__ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 0; }
.feed-line { margin-top: 28px; }
.pager a[rel] { font-size: 20px; line-height: 1; }
/* видео с YouTube грузится только по клику: до этого внешних запросов нет */
.embed { display: grid; gap: 8px; justify-items: start; }
.embed__btn { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-md); background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); display: grid; place-content: center; gap: 8px; justify-items: center; cursor: pointer; color: var(--ink-2); }
.embed__play { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px; }
.embed__label { font-weight: 700; }
.embed__note { font-size: var(--t-xs); color: var(--muted); }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-md); }
.prose .badges { margin-top: 2em; }
.prose h3 { color: var(--ink); }
/* абзац, который в старом тексте был оформлен заголовком: выделяем, но не делаем названием */
.prose .lead-in { font-size: 1.1em; color: var(--ink); }
.toc a { display: block; }
.meta--dot > span + span::before { content: "·"; margin-right: 8px; color: var(--line-2); }
.meta__by { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- программы (этап 4) ---------- */
.chips--dirs { margin-top: 12px; }
.page-head .badges { margin-bottom: 4px; }
.page-head .btn-row { margin-top: 6px; }
.page-head .facts { margin-top: 10px; }
/* плашка над текстом программы, набор в которую закрыт */
.arch-note { padding: 12px 16px; margin: 0 0 22px; border-left: 3px solid var(--line-2); background: var(--panel-2); color: var(--muted); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-sm); }
.side-box .price + .btn { margin-top: 4px; }
.side-box .list-links a { overflow-wrap: anywhere; }
/* афишу с надписью во всю ширину нельзя обрезать по рамке — показываем целиком (решение сборки по пропорциям файла) */
.cover--whole { aspect-ratio: auto; }
.cover--whole img { height: auto; }
/* квадратную картинку (логотип клуба, портрет) рамка 21:9 режет — вписываем целиком на светлом фоне */
.cover--fit { background: var(--panel-2); }
.cover--fit img { object-fit: contain; padding: 18px; }

/* ---------- плашка закрытого превью (снять на этапе 6 вместе с паролем) ---------- */
.footer__preview { margin: 10px 0 0; font-size: var(--t-xs); color: var(--dark-muted); opacity: .8; }

/* ---------- формы, отзывы, вход (этап 5) ---------- */
/* поле-ловушка: человек его не видит и не попадает в него табом, робот — заполняет */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-xs); color: var(--muted); max-width: 44ch; }
.check input { width: 18px; height: 18px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--brand); }
.form-alt { margin: 0; }
.form-alt a { text-decoration: underline;  color: var(--brand-dark); }
.form-card .form-alt + .form-alt { margin-top: 2px; }
/* «спасибо» после отправки: форма заменяется этой плашкой */
.form-done { display: grid; gap: 10px; justify-items: start; padding: 22px 0; }
.form-done b { font-family: var(--ff-display); font-size: var(--t-xl); color: var(--ink); }
.form-note { color: var(--gold-700); background: var(--gold-100); border-radius: var(--r-sm); padding: 10px 14px; font-size: var(--t-sm); }
.two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 899px) { .two-col--even { grid-template-columns: 1fr; } }
.facts--2 { grid-template-columns: 1fr 1fr; }
.side-box .form-card { box-shadow: none; padding: 0; background: none; }
.review p { white-space: pre-line; }
/* подписка на новости в подвале */
.footer__sub-text { color: var(--dark-muted); font-size: var(--t-xs); margin: 18px 0 8px; }
.sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.sub__field { display: grid; gap: 6px; font-size: var(--t-xs); color: var(--dark-muted); flex: 1 1 180px; }
.sub input { width: 100%; font: inherit; font-size: var(--t-sm); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); padding: 10px 12px; }
.sub input::placeholder { color: rgba(255,255,255,.45); }
.sub input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.sub .form-done { padding: 6px 0; color: var(--dark-muted); font-size: var(--t-sm); }
/* форма в виджете «Связаться» — в узкой колонке поля идут в один столбец */
.cw__form .form-card { box-shadow: none; padding: 0; background: none; gap: 12px; }
.cw__form .form-row { grid-template-columns: 1fr; }
.cw__form .form-foot { justify-content: flex-start; }
/* отзыв: длинный текст свёрнут, разворачивается подписью (без JavaScript) */
.review__text { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.review__text p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.review__text p + p { margin-top: .6em; }
.rv-more { align-self: start; font-size: var(--t-sm); font-weight: 700; color: var(--brand-dark); cursor: pointer; }
.rv-more:hover { color: var(--gold-hot); }
.rv-more__off { display: none; }
.rv-toggle:checked ~ .review__text { display: block; }
.rv-toggle:checked ~ .rv-more .rv-more__on { display: none; }
.rv-toggle:checked ~ .rv-more .rv-more__off { display: inline; }
/* фото автора отзыва (07.10.2026): кружок вместо буквы; снимок любой пропорции срезается по центру */
img.avatar { object-fit: cover; padding: 0; }
/* свой отзыв, пока он ждёт проверки: копия из браузера автора, видна только ему */
.review--mine { border-style: dashed; border-color: var(--brand); }
.review__mine { font-size: var(--t-xs); font-weight: 700; color: var(--brand-dark); }
.rv-photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rv-photo-pick input[type="file"] { flex: 1 1 200px; min-width: 0; font-size: var(--t-sm); }
.rv-photo-preview { overflow: hidden; }
.rv-photo-preview[hidden], .rv-photo-pick [hidden], .rv-more[hidden] { display: none; }
.rv-photo-preview img, .rv-photo-preview canvas { width: 100%; height: 100%; object-fit: cover; }
.rv-crop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; margin-top: 12px; }
.rv-crop[hidden] { display: none; }
/* окно кадра: снимок тянут пальцем — странице прокручиваться под ним нельзя */
.rv-crop__view { width: min(100%, 260px); aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #1b2328; cursor: grab; touch-action: none; user-select: none; }
.rv-crop__view:active { cursor: grabbing; }
.rv-crop__view:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.rv-crop__view canvas { display: block; width: 100%; height: 100%; }
.rv-crop__side { flex: 1 1 180px; display: grid; gap: 6px; align-content: start; }
.field .rv-crop__zoom { font-weight: 700; }
.field .rv-crop__side input[type="range"] { width: 100%; min-height: 0; padding: 0; border: 0; background: none; accent-color: var(--brand); }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* оценка в форме отзыва (стадия 10): пять радиокнопок, подсветка — одним правилом CSS.
   Звёзды стоят в разметке задом наперёд (5…1), поэтому «соседи справа» (~) — это оценки
   ниже выбранной, и подсветить их можно без JavaScript и без единого :has(). */
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.rating legend { font-size: var(--t-sm); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.rating legend i { color: #c0392b; font-style: normal; }
/* Форма из панели (план 30.3): блоки анкеты и поля с вариантами. Переключатель выбора из двух форм — 30.4. */
.form-place { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.form-any { display: grid; gap: 16px; }
.form-any__title { margin: 0; }
.form-any__intro { margin: 0; color: var(--muted); }
.form-any__block { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.form-any__block > * { margin: 0; }
.form-any .hint { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.form-any__status:empty { display: none; }
.choice, .form-choice { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend, .form-choice legend { font-size: var(--t-sm); font-weight: 500; color: var(--ink); margin-bottom: 6px; padding: 0; }
.choice legend i { color: #c0392b; font-style: normal; }
.choice .check { max-width: none; font-size: var(--t-sm); color: var(--ink); }
.choice__other { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; }
.choice__other:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
/* План 30.4. Переключатель из двух форм — две «таблетки»; видна форма выбранной. Работает на CSS
   (:has), без скрипта; где :has нет, то же делает forms.js атрибутом hidden. Блоки «спасибо» и «не ушло»
   для пути без скрипта видны по :target — приём возвращает на страницу с их якорем. Строка своего
   ответа «Другое» появляется, когда отмечен вариант «Другое». */
.form-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.form-choice legend { flex-basis: 100%; }
.form-choice[hidden] { display: none; }
.form-choice .check { max-width: none; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; }
.form-choice .check:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-dark); }
.form-choice .check:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.form-any__note { display: none; }
.form-any__note:target { display: grid; }
.form-any__item[hidden] { display: none; }
.form-any [aria-invalid="true"] { border-color: #c0392b; }
.form-any fieldset[aria-invalid="true"] legend { color: #c0392b; }
@supports selector(:has(*)) {
  .form-any--choice .form-any__item { display: none; }
  .form-any.form-any--choice:has(:where(.form-choice .check:nth-of-type(1)) input:checked) .form-any__item:nth-of-type(1),
  .form-any.form-any--choice:has(:where(.form-choice .check:nth-of-type(2)) input:checked) .form-any__item:nth-of-type(2) { display: block; }
  .form-any.form-any--choice:has(.form-any__note:target) .form-choice,
  .form-any.form-any--choice:has(.form-any__note:target) .form-any__item { display: none; }
  .form-any.form-any--choice .form-any__item:has(.form-any__note:target) { display: block; }
  .form-any__item:has(.form-done:target) > form { display: none; }
  .choice:has(input[value="other"]) .choice__other { display: none; }
  .choice:has(input[value="other"]:checked) .choice__other { display: block; }
}
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color var(--dur) var(--ease); }
.rating label:hover, .rating label:hover ~ label,
.rating input:checked, .rating input:checked ~ label { color: var(--gold-hot); }
.rating input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- поиск в шапке (этап 6) ---------- */
.nav__search { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 30; display: grid; gap: 6px;
  padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-2); }
.nav__search[hidden] { display: none; }
.nav__search form { min-width: 0; }
.nav__search form { display: flex; align-items: center; gap: 8px; }
.nav__search-ic { display: grid; place-items: center; color: var(--muted); flex: none; }
.nav__search-ic svg { width: 20px; height: 20px; }
.nav__search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: var(--t-sm); color: var(--ink);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.nav__search input:focus { outline: 2px solid var(--brand-300); outline-offset: 1px; }
.nav__sugg { display: grid; min-width: 0; }
.nav__sugg a { padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* длинное название не растягивает панель */
.nav__sugg a:hover { background: var(--panel-2); color: var(--brand-dark); }

/* ---------- страница поиска (этап 6) ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; width: min(100%, 640px); }
.search-form input { flex: 1 1 240px; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.search-form input:focus { outline: 2px solid var(--brand-300); outline-offset: 1px; }
.results { display: grid; gap: 10px; }
.res { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.res:hover { border-color: var(--brand-300); box-shadow: var(--sh-1); }
.res__kind { font-size: var(--t-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.res__title { font-weight: 700; color: var(--ink); }
.res__text { font-size: var(--t-sm); color: var(--ink-2); }
/* найденное слово внутри куска статьи: цветом фона, а не жирным — жирный тут уже у заголовка.
   --brand-100 у тёмной темы свой, отдельного правила не нужно */
.res__text mark { background: var(--brand-100); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- главная (этап 6) ---------- */
.quote-stage--sm blockquote { font-size: clamp(1.15rem, .95rem + .7vw, 1.6rem); line-height: 1.35; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.teaser > div { display: grid; gap: 10px; max-width: 72ch; }

/* ---------- галерея снимков (страница товара) ---------- */
/* Мокапы вытянуты по горизонтали, а в сетке они стоят рядом с карточками программ,
   поэтому рамка одна на все — 3:2, подпись под ней и служит альтернативным текстом. */
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-1); background: var(--panel-2); }
.shot figcaption { font-size: var(--t-xs); color: var(--muted); }

/* ---------- магазин и товар (этап 11) ----------
   Шапка товара устроена как в магазине: слева снимок, справа панель заказа. Панель — та же
   идея, что и .side-box у клуба (цена, кнопка, мелкий шрифт про оплату), только шире и в шапке,
   потому что на странице товара покупка и есть главное действие. */
.shop-hero { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.shop-hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel-2); box-shadow: var(--sh-2); }
.shop-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.shop-hero__media .badge { position: absolute; left: 16px; top: 16px; }
.shop-hero__body { display: grid; gap: 18px; justify-items: start; }
.shop-hero__body h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.shop-hero__body .lead { max-width: 52ch; }
.buy { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; display: grid; gap: 12px; box-shadow: var(--sh-1); }
.buy__price { font-family: var(--ff-display); font-size: var(--t-3xl); font-weight: 700; line-height: 1.05; color: var(--ink); }
/* пока цены нет, в строке цены стоит «стоимость уточняется» — фразу не набираем крупным
   шрифтом цены: она сообщает об отсутствии числа, а не о числе */
.buy__price--tbd { font-family: var(--ff-body); font-size: var(--t-lg); font-weight: 700; color: var(--ink-2); }
.buy__price small { display: block; margin-top: 6px; font-family: var(--ff-body); font-size: var(--t-xs); font-weight: 400; color: var(--muted); }
.buy .btn + .btn { margin-top: -4px; }
.specs { list-style: none; display: grid; gap: 8px; margin: 4px 0 0; padding: 0; }
.specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.specs li:last-child { padding-bottom: 0; border-bottom: 0; }
.specs span { color: var(--muted); }
.specs b { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
@media (max-width: 899px) { .shop-hero { grid-template-columns: 1fr; } .shop-hero__media { max-width: 560px; } }

/* мелкая строка под кнопками (условия продажи, оферта): без подчёркивания ссылка
   в приглушённом тексте неотличима от самого текста */
.buy p a, .side-box p.xs a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* строка над витриной: сколько товаров и где условия продажи */
.shop-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.shop-top p { margin: 0; }
/* в карточке товара цена и кнопка стоят в одной строке подвала */
.card__foot--buy { align-items: center; }
.grid > .card--row:only-child .card__body { padding: 26px 28px 28px; gap: 12px; }
.grid > .card--row:only-child .card__text { -webkit-line-clamp: 4; }

/* материалы к товару: ссылки-карточки вместо списка — их читают до покупки, а не после */
.mat { display: grid; gap: 6px; align-content: start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease); }
.mat:hover { border-color: var(--brand-300); box-shadow: var(--sh-1); transform: translateY(-2px); }
.mat b { font-family: var(--ff-display); font-size: var(--t-lg); color: var(--ink); }
.mat span { color: var(--muted); font-size: var(--t-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mat:hover b { color: var(--brand-dark); }

/* ---------- главная, 25.09.2026: «Новое на сайте» в шапке и мини-игры инструментов ---------- */
/* «Новое на сайте» (план 20, до того «Новости») стоит над заголовком: узкая строка со светлым фоном, чтобы читалась поверх фото. */
.hero-news { display: grid; gap: 6px 14px; grid-template-columns: auto 1fr; align-items: baseline; padding: 12px 16px; border-radius: var(--r-md); background: rgba(8,22,28,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: var(--t-sm); max-width: 100%; }
.hero-news__tag { align-self: start; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hot); }
.hero-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero-news li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.hero-news a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.hero-news a:hover { text-decoration-color: var(--gold-hot); }
.hero-news small { color: rgba(255,255,255,.66); font-size: var(--t-xs); }
@media (max-width: 639px) { .hero-news { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* хаб направления: кнопка под списком группы */
.side-box__cta { justify-self: start; margin-top: 4px; }
/* ссылка на инструменты в шапке главной — третьим, тише двух кнопок */
.hero-tools-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.hero-tools-link:hover { text-decoration-color: var(--gold-hot); color: #efd27a; }
.hero-tools-link svg { width: 18px; height: 18px; }

/* Кабинет (стадия 7 админки): списки «доступы» и «устройства». Строка — название и
   пояснение под ним; на узком экране пояснение переносится, а не режется. */
.cab-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cab-row { display: grid; gap: 2px; }
.cab-row b { font-weight: 600; }
.cab-warn { color: var(--brand); font-size: var(--t-xs); }
.stub__actions form { display: inline-block; margin: 0; }

/* Блок раскрытия продавца перед кнопкой оплаты (стадия 8, docs/active/05-legal.md §3.1). Читается
   тише кнопки, но целиком: это не мелкий шрифт под сгибом, а то, что человек обязан увидеть
   до нажатия. Поэтому обычный размер текста, а не «мелочь внизу». */
.checkout { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px;
            padding: 12px 14px; margin: 0 0 12px; background: var(--paper); font-size: var(--t-sm); }
.checkout p { margin: 0 0 6px; }
.checkout p:last-child { margin-bottom: 0; }
/* Кнопка у тарифа: третьей строкой, во всю ширину карточки уровня — рядом с ценой она
   спорила бы с ней за внимание. */
.levels__buy { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* Карточка заведения «Как нас найти» (план 29.14): адрес и часы слева, карта справа. */
.venue { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .venue:has(.venue__map) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.venue__addr { display: flex; gap: .5rem; align-items: flex-start; }
.venue__addr .ic { flex: none; width: 1.25rem; height: 1.25rem; }
.venue__sub { font-size: 1rem; margin-top: 1rem; }
.venue__hours { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 1rem; font-variant-numeric: tabular-nums; }
.venue__hours dd { margin: 0; }
.venue__map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-md); background: var(--panel); }

/* Альбом (план 29.15): квадратная сетка, большой снимок — в лайтбоксе (<dialog>). */
.album { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.album__item { margin: 0; }
.album__item a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.album__item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.album__item a:hover img, .album__item a:focus-visible img { transform: scale(1.03); }
.album__item figcaption { font-size: .875rem; color: var(--muted); margin-top: .35rem; }
.album__more { display: block; margin: 1.5rem auto 0; }
.lightbox { max-width: min(96vw, 1600px); max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox__fig { margin: 0; display: grid; gap: .5rem; justify-items: center; }
.lightbox__fig img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__fig figcaption { color: #fff; text-align: center; }
.lightbox__btn { position: fixed; width: 3rem; height: 3rem; border: 0; border-radius: var(--pill); font-size: 2rem; line-height: 1;
  background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { .album__item img { transition: none; } }

/* Расписание (план 29.15): дни списком, время — моноширинными цифрами. */
.schedule { display: grid; gap: 1.25rem; }
.schedule__day h3 { font-size: 1rem; margin: 0 0 .5rem; text-transform: capitalize; }
.schedule__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.schedule__item { display: flex; gap: .75rem; padding: .5rem .75rem; border-radius: var(--r-sm); background: var(--panel); }
.schedule__time { flex: none; min-width: 7.5rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.schedule__item--closed { opacity: .75; }
.schedule__item--closed .schedule__label { font-weight: 600; }
.schedule__fallback, .schedule__empty { color: var(--muted); }

/* Каталог-макет (план 29.15): карточки сеткой, фильтр вкладками, корзина-подсказка внизу. */
.catalog { display: grid; gap: 1.25rem; }
.catalog__note { color: var(--muted); }
.catalog__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.catalog__item { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border-radius: var(--r-md); background: var(--panel); }
.catalog__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.catalog__item h3 { font-size: 1rem; margin: 0; }
.catalog__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.catalog__note--test, .paylink__test { padding: .5rem .75rem; border-radius: var(--r-sm); background: var(--panel); }
.catalog__status { margin: 0; font-weight: 600; }
.catalog__cart { position: sticky; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); padding: 1rem; border-radius: var(--r-md); background: var(--surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }

/* Платёжная ссылка / пожертвование (план 29.22). */
.paylink { display: grid; gap: .75rem; max-width: 46rem; }
.paylink h2 { margin: 0; }

/* ---------- приложения (план 29.20): каталог и страница приложения ---------- */
.card--app .card__body { gap: 10px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-50); object-fit: cover; }

/* Тема psyvision: стили блока мини-игр главной (home-play.html, play.js); ложится последним в site.css. */
/* Мини-игры: две панели одной высоты; результат появляется под формой и не двигает кнопку «дальше». */
.play__box { display: grid; gap: 14px; align-content: start; padding: clamp(1.4rem, 3vw, 2.2rem); }
.play__box h3 { font-size: var(--t-xl); }
.play__box > p { color: var(--muted); margin: 0; }
.play__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.play__form input[type="date"] { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm); }
.play__out { margin: 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--panel); color: var(--ink); font-weight: 600; }
.play__out--deck { display: grid; gap: 6px; }
.play__out--deck b { font-family: var(--ff-display); font-size: var(--t-lg); }
.play__out--deck span { font-weight: 400; color: var(--text); }
.play__more { justify-self: start; }
.play .btn-row { gap: 10px 16px; align-items: center; }
/* Значок «Луна»: та же светлая плитка 52 px, что у соседних значков; Луна и знак рисуются
   фирменным цветом (site.js: particleMoon). Пока скрипта нет — обычный значок луны. */
.play__moon { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.play__moon canvas { display: none; }
.has-canvas .play__moon canvas { display: block; position: absolute; inset: 0; width: 52px; height: 52px; }
.has-canvas .play__moon-ic { display: none; }
.play__out small { font-size: var(--t-xs); }
.play__out[hidden] { display: none; }

/* Полоса-объявление вида «акция» (sale в site.yaml, план 33). Цвета фона и текста ставит сборка из
   site.yaml; здесь — то, чего там не задать: кнопка «Подробнее» золотом (как hover кнопок сайта),
   второй оттенок перелива и золотая искра. Двойной класс — сильнее правил сборки, идущих после темы. */
.hellobar.hellobar--sale { --hb-glow: #2a7f96; --hb-spark: var(--gold-hot); }
.hellobar.hellobar--sale .hellobar__go { margin-left: 10px; padding: 3px 14px; border-radius: 999px;
  background: var(--gold-hot); color: #2a1d00; font-weight: 600; text-decoration: none; }
.hellobar.hellobar--sale .hellobar__go:hover { background: #ffc933; }
.hellobar.hellobar--sale .hellobar__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 404 (план 39, М7): расклад таро — тот же вид, что у маски панели (admin/src/site/mask.ts: ночь, Georgia,
   карты до 220 px, рамка и тень, рубашка). Шапка и подвал — сайта, ночь — полосой между ними.
   Четыре общие строки на все три места (subgrid): номер, подпись, карта, имя — номера, начала подписей
   и верх карт стоят на одном уровне при любом языке и ширине; под имя место оставлено заранее. */
.tarot { display: flex; flex-direction: column; align-items: center; padding: 32px 16px 40px;
  background: radial-gradient(ellipse at top, #2a2140 0%, #14111f 55%, #0b0a12 100%); color: #e9e3f5;
  font: 16px/1.5 Georgia, 'Times New Roman', serif; color-scheme: dark; }
.tarot__code { font-size: 13px; letter-spacing: .3em; color: #9d93b8; margin: 0; }
.tarot .tarot__title { font: normal 28px/1.25 Georgia, 'Times New Roman', serif; color: #e9e3f5; margin: 6px 0 4px; text-align: center; letter-spacing: normal; }
.tarot__lead { max-width: 34em; font-size: 16px; line-height: 1.5; text-align: center; color: #c9c0dd; margin: 0 0 28px; min-height: 3em; }
.tarot__spread { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); grid-template-rows: auto auto auto auto;
  column-gap: clamp(10px, 3vw, 32px); row-gap: 8px; width: 100%; justify-content: center; }
.tarot__place { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; text-align: center; }
.tarot__n { font-size: 13px; line-height: 20px; height: 20px; color: #8e84aa; letter-spacing: .1em; }
.tarot__q { font-size: clamp(12px, 2.6vw, 15px); line-height: 1.35; color: #d8cdf0; align-self: start; margin-bottom: 4px; }
.tarot__card { all: unset; cursor: pointer; display: block; width: 100%; border-radius: 10px; perspective: 900px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(233,227,245,.12); }
.tarot__card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.6), 0 0 0 1px rgba(233,227,245,.3); }
.tarot__card:focus-visible { outline: 2px solid #c8b6ff; outline-offset: 4px; }
.tarot__card:active { transform: translateY(-1px) scale(.99); }
.is-open .tarot__card { cursor: default; }
.tarot__card img { display: block; width: 100%; height: auto; aspect-ratio: 440/758; border-radius: 10px; background: #211b33; }
.tarot .turned img { animation: tarot-turn .55s ease-out both; }
@keyframes tarot-turn { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .tarot .turned img { animation: none; } }
.tarot__name { font-size: clamp(13px, 2.8vw, 17px); line-height: 1.3; color: #f3eefc; min-height: 2.6em; padding-top: 4px; }
.tarot__home { margin: 28px 0 0; font-size: 14px; }
.tarot__home a { color: #b8a8e6; }

.hellobar--sale { --hb-bg: #165b6d; --hb-glow: color-mix(in oklab, #165b6d 72%, #ffffff); --hb-shine: color-mix(in srgb, #ffffff 28%, transparent); background: var(--hb-bg); border-bottom-color: #165b6d; color: #ffffff; }
.hellobar--sale .hellobar__go, .hellobar--sale .hellobar__text a, .hellobar--sale .hellobar__x { color: inherit; }
