/* ============================================================
   Сайт аналитического психолога — базовые стили
   Палитра: тёплый песочный фон, глубокий зелёный, глина
   ============================================================ */

/* ============================================================
   ШРИФТЫ — локально, без Google Fonts (06.10.2026)
   Inter 400–600, subset cyrillic + latin (Manrope убран 18.10.2026: не используется с 08.10),
   файлы @fontsource 5.3.0, лицензия SIL OFL 1.1 — assets/fonts/OFL.txt
   ============================================================ */
/* Cormorant Garamond 500–600 (заголовки с 08.10.2026, выбор владельца), Google Fonts v21, лицензия SIL OFL 1.1 */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Caveat 500 (18.10.2026), Google Fonts v23, SIL OFL 1.1 — рукописные номера «Как можно работать» на главной, только цифры (латиница) */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/caveat-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
/* Marck Script (16.10.2026), Google Fonts v22, SIL OFL 1.1 — рукописная подпись под фото Ольги */
@font-face { font-family: "Marck Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marck-script-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Marck Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marck-script-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Настоящий курсив Cormorant Garamond 500–600 (14.10.2026), Google Fonts v21, SIL OFL 1.1 — без него браузер наклонял прямое начертание */
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* плашка «как маркером от руки» (18.10.2026): неровный мазок, растягивается на весь блок (у многострочного заголовка — на каждую строку) */
:root { --marker: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 60" preserveAspectRatio="none"%3E%3Cpath fill="%23EBDCC7" d="M6 9 C40 4 90 7 140 5 C200 3 260 8 320 4 C350 3 380 6 393 5 L398 14 L392 22 L399 31 L394 41 L397 52 C360 56 300 53 250 56 C190 58 130 54 80 57 C50 58 25 55 4 56 L9 46 L2 36 L8 27 L3 18 Z"/%3E%3Cpath fill="%23E3D0B6" fill-opacity=".45" d="M14 14 C80 10 160 13 240 10 C300 9 350 12 386 11 L384 20 C320 22 250 19 180 22 C110 24 60 21 16 23 Z"/%3E%3Cpath fill="%23E3D0B6" fill-opacity=".35" d="M12 40 C90 37 170 41 250 38 C310 36 355 40 388 39 L386 47 C320 49 240 46 160 49 C100 50 50 47 13 49 Z"/%3E%3C/svg%3E') center / 100% 100% no-repeat; }
:root {
  --bg:          #FCFAF7;
  --bg-alt:      #F4EFE8;
  --bg-deep:     #223029;
  --ink:         #23282B;
  --ink-soft:    #5E666B;
  --ink-faint:   #666C6F;  /* ≥4.5:1 на всех светлых фонах */
  --accent:      #3D6A5C;
  --accent-dark: #2C5046;
  --accent-soft: #E7EFEB;
  --clay:        #B07A5E;  /* только декор: точки, линии */
  --clay-text:   #8C614B;  /* глиняный для текста, ≥4.5:1 */
  --sand:        #EFE3D3;
  --sky:         #DCE7EA;
  --moss:        #DDE7DE;
  --blush:       #F0E0DA;
  --line:        #E5DED4;
  --white:       #FFFFFF;

  /* заголовки — Cormorant Garamond (08.10.2026 владелец выбрал его из шести вариантов; с 05.10 был Manrope). */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --header-h: 75px;   /* высота липкой шапки: 74px + линия снизу */
  --gutter: 24px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --shadow: 0 2px 4px rgba(60, 50, 40, .04), 0 16px 40px rgba(60, 50, 40, .07);
  --shadow-sm: 0 2px 3px rgba(60, 50, 40, .05), 0 8px 20px rgba(60, 50, 40, .06);
  --t: .26s cubic-bezier(.33, 1, .68, 1);
  --t-slow: .55s cubic-bezier(.33, 1, .68, 1);
  --ease: cubic-bezier(.33, 1, .68, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top — отступ под липкую шапку: браузер учитывает его, когда сам
   докручивает к элементу в фокусе (Tab / Shift+Tab) и к #якорю при загрузке,
   иначе кнопка или ссылка в фокусе оказывается под шапкой */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }
/* ссылка в тексте статьи — не только цветом (WCAG 1.4.1): контраст с текстом 2,42:1 */
.article-body a[href^="privacy.html"]:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }   /* остальные ссылки статьи — без подчёркивания (18.10.2026) */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.16;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
/* заголовки без «лесенки», последнее слово абзаца не одно на строке (14.10.2026); старые браузеры правило пропустят */
h1, h2, h3 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
::selection { background: var(--accent-soft); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #E8EDEA; }
.section--deep h2, .section--deep h3 { color: #FFFFFF; }
.section--deep p { color: #C6D0CB; }

/* ширина в em, а не в ch: ch зависит от шрифта и до загрузки Inter был уже — абзац перестраивался.
   39.12em = те же 62ch в Inter (как у .center .lede ниже) */
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 39.12em; }
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-text);
  font-weight: 600;
  margin-bottom: .9rem;
  /* на узком экране — ровные строки, без одного висящего слова («…очно и / онлайн» на телефоне) */
  text-wrap: balance;
}
.section--deep .eyebrow { color: #C79C7E; }
.center { text-align: center; }
/* По центру ширина в em, а не в ch: ch зависит от шрифта, и при подмене
   запасного шрифта на Inter центрированный абзац сдвигался (CLS).
   39.12em = те же 62ch в Inter. */
.center .lede { margin-left: auto; margin-right: auto; max-width: 39.12em; }

.grid { display: grid; gap: 28px; }
.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)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-sans);
  font-size: .97rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--bg-deep); }
.btn--light:hover { background: #F1EDE6; color: var(--bg-deep); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 250, 247, .95);   /* плотнее: подпись «аналитический психолог» над тёмно-зелёной главой — не ниже 4,5:1 */
  -webkit-backdrop-filter: saturate(180%) blur(12px);   /* Safari iOS 17 и раньше */
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; min-height: 44px; }
.logo__name { font-family: var(--font-serif); font-size: 1.32rem; color: var(--ink); }
.logo__role { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.logo:hover .logo__name { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  font-size: .92rem; color: var(--ink-soft); position: relative; padding: 4px 0;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a.is-room-pending { color: var(--accent); }
.nav a[aria-current]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--clay);
}
.header-stickers { display: flex; align-items: center; flex: none; gap: 5px; }
.header-stickers a {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
}
.header-stickers svg { display: block; width: 40px; height: 40px; pointer-events: none; }
.header-stickers a[href="booking.html"] svg { transform: scale(.765); }
.header-stickers a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.header-stickers a[aria-current]::before {
  content: ""; position: absolute; bottom: 0; width: 12px; height: 2px;
  border-radius: 60% 40% 55% 35%; background: var(--clay-text); transform: rotate(-5deg);
}
.header-stickers a::after {
  content: attr(aria-label); position: absolute; z-index: 1; top: 100%; right: 0;
  padding: 5px 9px; border-radius: 6px; background: var(--bg-deep); color: #fff;
  font: 500 .78rem/1.4 var(--font-sans); white-space: nowrap; pointer-events: none; visibility: hidden;
}
.header-stickers a:focus-visible::after { visibility: visible; }
@media (hover: hover) {
  .header-stickers a:hover { background: var(--bg-alt); }
  .header-stickers a:hover::after { visibility: visible; }
}

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative;
  transition: background var(--t);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink);
  top: 0; transition: transform var(--t);
}
.burger span::before { transform: translateY(-7px); }
.burger span::after  { transform: translateY(7px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(0) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero__meta-item { font-size: .9rem; color: var(--ink-soft); }
.hero__meta-item b { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--accent); font-weight: 500; }
.portrait {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform 1.1s var(--ease);
}
.portrait-frame:hover .portrait img { transform: scale(1.025); }
.portrait--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: .85rem; text-align: center; padding: 24px;
  border: 1px dashed var(--line);
}

/* ---------- cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  display: flex; flex-direction: column;
}
.card:hover { border-color: #D6CCC0; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: .87rem; color: var(--ink-faint); margin-top: auto; padding-top: 18px; }
.card--link { cursor: pointer; color: inherit; }
.card--link:hover { color: inherit; }
.card--link:hover h3 { color: var(--accent-dark); }
.card--link .card__meta { color: var(--accent); }
.card--flat { background: transparent; border-color: transparent; padding: 0; }

.card__num {
  font-family: var(--font-serif); font-size: 2rem; color: var(--clay);
  line-height: 1; margin-bottom: .5rem; display: block;
}

/* topic pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li {
  margin: 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); font-size: .93rem; color: var(--ink-soft);
  transition: border-color var(--t), color var(--t);
}
.pills li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- quote / trust ---------- */
.quote {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.4; color: var(--ink); max-width: 24ch;
}
/* врезка: рисованный значок слева и текст, без подложки и зелёной полосы (вариант C, 18.10.2026) */
.callout { display: flex; gap: 22px; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.callout__ico { flex: 0 0 52px; }
.callout__ico svg { width: 52px; height: 52px; display: block; }
.callout__body { min-width: 0; }
.callout strong { color: var(--ink); }
/* «Три вопроса» на главной: вопрос крупно и отчёркнут тонкой глиняной линией, ответ спокойнее (вариант D, 18.10.2026) */
.questions .card h3 { font-size: 1.75rem; line-height: 1.2; color: var(--ink); margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--clay); }
.questions .card p { color: var(--ink-soft); font-size: .98rem; }
/* «Статьи»: названия статей на песочной плашке (18.10.2026) */
.art-list .card h3, .article-more .card h3, .page-head--article h1 {
  /* название статьи — на песочной плашке по длине текста, как методы на «Обо мне»; та же плашка у заголовка самой статьи (вариант D, 18.10.2026) */
  display: inline-block; width: fit-content; max-width: 100%; padding: .1em .5em .16em;
  background: var(--marker); border-radius: 0; color: var(--ink);
}
.art-list .card h3, .article-more .card h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.2; margin-bottom: .55em; align-self: flex-start; }
/* заголовок статьи многострочный и крупный: плашка — по каждой строке (как маркер), а не прямоугольником во всю ширину */
.page-head--article h1 { display: inline; padding: .04em .3em .1em; line-height: 1.32; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.page-head--article .article-meta { margin-top: 20px; }
/* «Обо мне», «Как я работаю»: названия методов крупнее и на плашке (18.10.2026) */
.methods .card h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem); line-height: 1.15; margin-bottom: .55em;
  /* название метода — на песочной плашке ровно по длине слова (вариант D, 18.10.2026) */
  display: inline-block; width: fit-content; max-width: 100%; align-self: flex-start;
  padding: .12em .55em .18em; background: var(--marker); border-radius: 0; color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }

.note {
  font-size: .87rem; color: var(--ink-faint); line-height: 1.55;
}

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 34px 62px; margin: 0; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem;
}
.steps li::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 8px; width: 1px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: .25em; }
.steps p { margin-bottom: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- price table ---------- */
.price {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; height: 100%;
}
.price--featured { border-color: var(--accent); box-shadow: var(--shadow); }
/* плашка («Основной формат») — на верхней рамке, вне потока: заголовки и цены
   соседних карточек ряда остаются на одной линии */
.price__tag {
  position: absolute; top: 0; left: 32px; transform: translateY(-50%); z-index: 1;
  display: inline-block; font-size: .75rem; letter-spacing: .12em; white-space: nowrap;
  text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 100px; margin: 0; font-weight: 600;
}
.price__value {
  font-family: var(--font-serif); font-size: 1.55rem; color: var(--accent); margin: 6px 0 16px;
}
.price ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price ul li {
  padding-left: 26px; position: relative; font-size: .95rem; color: var(--ink-soft);
}
.price ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 5px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }

/* ---------- ответы на частые вопросы ---------- */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq__item { padding-block: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.23; }
.faq__item p { max-width: 66ch; margin: 0; color: var(--ink-soft); }

/* ---------- reviews ---------- */
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.review__text { font-size: 1rem; color: var(--ink-soft); margin-bottom: 20px; }
.review__author { font-size: .88rem; color: var(--ink-faint); margin-top: auto; }
.review__author b { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field__label { font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #948D85; border-radius: var(--radius-sm);   /* рамка поля 3,3:1 к белому — поле видно, но спокойно */
  padding: 13px 15px; transition: border-color var(--t), box-shadow var(--t); width: 100%;
}
/* выпадающий список: своя стрелка с отступом от края (системная прижималась к рамке) */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%235E666B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent; outline-offset: 2px;   /* прозрачная рамка: в режиме высокой контрастности Windows становится видимой */ border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft);
}
/* подсказки в полях: свой цвет 4,7:1 вместо бледного браузерного (в подвале «ваш e-mail» — единственная видимая подпись) */
input::placeholder, textarea::placeholder { color: #6F7579; opacity: 1; }
.field textarea { resize: vertical; min-height: 110px; }
/* счётчик знаков под длинным полем (main.js → bindCount): виден, только когда предел близко */
.field__count { font-size: .82rem; color: var(--ink-faint); text-align: right; margin-top: -2px; }
.field__count:empty { display: none; }
.field__count.is-full { color: #97402A; }
.field--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-soft); }
.check { cursor: pointer; padding: 4px 0; position: relative; }
.check input { margin-top: 1px; flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.form__status { font-size: .93rem; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form__status.is-ok    { display: block; background: var(--accent-soft); color: var(--accent-dark); }
.form__status.is-error { display: block; background: #FBEDE8; color: #97402A; }
/* незаполненные поля после попытки отправки (класс ставит main.js, снимает при вводе) */
.field.is-invalid > input, .field.is-invalid > textarea, .field.is-invalid > select,
.choice.is-invalid .choice__item > span { border-color: #C0563A; }
.check.is-invalid { color: #97402A; }
.check.is-invalid input { outline: 2px solid #C0563A; outline-offset: 1px; }

/* ---------- booking calendar ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.cal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__title { font-family: var(--font-serif); font-size: 1.25rem; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav button {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white);
  border-radius: 50%; cursor: pointer; color: var(--ink-soft); font-size: 1.1rem; line-height: 1;
  transition: border-color var(--t), color var(--t);
}
.cal__nav button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.cal__nav button[disabled] { opacity: .35; cursor: default; }
.cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow {
  text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); padding-bottom: 8px;
}
.cal__day {
  aspect-ratio: 1; border: 1px solid transparent; background: transparent; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .95rem; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.cal__day[disabled] { color: var(--ink-faint); opacity: .4; cursor: default; }
.cal__day:hover:not([disabled]):not(.is-selected) { background: var(--bg-alt); }
.cal__day::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: transparent; }   /* место точки у всех дней — числа в строке на одной высоте */
.cal__day.has-slots::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }
.cal__day.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal__day.is-selected::after { background: #fff; }

.slots { margin-top: 24px; }
.slots__title { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.slots__list { display: flex; flex-wrap: wrap; gap: 9px; }
.slot {
  padding: 10px 18px; border: 1px solid var(--line); background: var(--white);
  border-radius: 100px; font-family: var(--font-sans); font-size: .93rem; color: var(--ink);
  cursor: pointer; transition: border-color var(--t), background var(--t), color var(--t);
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.slots__empty { font-size: .93rem; color: var(--ink-faint); }

.booking__summary {
  background: var(--bg-alt); border-radius: var(--radius); padding: 18px 20px;
  font-size: .95rem; color: var(--ink-soft); margin-bottom: 20px;
}
.booking__summary b { color: var(--ink); }

/* ---------- article ---------- */
.article-body { font-size: 1.06rem; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
/* статья может начинаться и с абзаца, и с подзаголовка — зазор под шапкой у всех одинаковый */
.article-body > :first-child { margin-top: 0; }
.article-body blockquote {
  margin: 2em 0; padding-left: 24px; border-left: 3px solid var(--clay);
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; color: var(--ink);
}
.article-meta { font-size: .87rem; color: var(--ink-faint); margin-bottom: 1.5rem; }
/* после текста статьи: «← Все статьи» и «Читать также» (2 близкие по теме) */
.article-more { padding-top: 0; }
.article-more__back { font-size: .95rem; margin-bottom: 2.2rem; }
.article-more h2 { margin-bottom: 1.2rem; }

/* ---------- page head ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.breadcrumbs { font-size: .84rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); color: #E8EDEA; border-radius: var(--radius); padding: clamp(36px, 5vw, 60px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C6D0CB; max-width: 52ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { font-size: .94rem; color: var(--ink-soft); }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: .84rem; color: var(--ink-faint);
}
.footer__bottom a { color: var(--ink-faint); }
/* «Правила работы» не рвётся посередине (было на 405–455px) — уходит на строку целиком;
   длинная первая ссылка переносится как обычно: на ≤335px она не влезает в одну строку */
.footer__bottom a ~ a { white-space: nowrap; }
.footer__bottom a:hover { color: var(--accent); }

/* messenger buttons */
.msg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.msg-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white);
  font-size: .93rem; color: var(--ink); transition: border-color var(--t), color var(--t);
}
.msg-btn:hover { border-color: var(--accent); color: var(--accent); }
.msg-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* страховка: если main.js не загрузился или упал, через 3 с блоки проявляются сами.
   Рабочий main.js ставит на <html> класс reveal-on — и страховка снимается */
html:not(.reveal-on) .reveal { animation: reveal-fallback .75s var(--ease) 3s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { gap: 17px; }
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; aspect-ratio: 4 / 4.4; }
  .booking { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 1040px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); visibility: hidden;
    transition: transform var(--t), visibility 0s linear .3s;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 74px); overflow-y: auto;
    max-height: calc(100dvh - 74px); overscroll-behavior: contain;   /* видимая высота с учётом панелей Safari, нижний пункт не уходит под панель */
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform var(--t), visibility 0s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current]::after { display: none; }
  /* текущий раздел в меню-«бургере» — чуть жирнее */
  .nav a[aria-current] { font-weight: 500; }   /* открытая страница — только жирным, без плашки слева (Роберт, 19.10) */
  .burger { display: flex; }
  .site-header__inner { gap: 14px; }
  .header-stickers { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  /* в одну колонку действие «сейчас» (напр. запись на супервизию) — раньше длинной формы */
  .grid > .cta-first { order: -1; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .card, .price, .review, .cal { padding: 22px; }
  .price__tag { left: 22px; }
  .hero__meta { gap: 18px 24px; }
}

/* ============================================================
   Иллюстративный слой: мягкие формы, рисованные акценты
   Сдержанно — приглушённые тона, без резких контрастов
   ============================================================ */

/* фоновые пятна-кляксы */
.blob-host { position: relative; overflow: hidden; overflow: clip; } /* clip не мешает position: sticky */
.blob-host > .wrap { position: relative; z-index: 2; }
.blob {
  position: absolute; z-index: 1; pointer-events: none;
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  filter: blur(0.5px); opacity: .55;
}
.blob--sand  { background: var(--sand); }
.blob--moss  { background: var(--moss); }
.blob--sky   { background: var(--sky); }
.blob--blush { background: var(--blush); }
.blob--a { width: 420px; height: 380px; top: -120px; right: -140px; }
.blob--b { width: 320px; height: 300px; bottom: -130px; left: -110px; border-radius: 58% 42% 38% 62% / 45% 58% 42% 55%; }
.blob--c { width: 240px; height: 220px; top: 40%; left: -90px; border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; }

/* рисованное подчёркивание */
.squiggle { position: relative; display: inline-block; }
.squiggle::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.14em; height: .32em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C28 3.5 52 3 76 6.5s46 6 70 2.5 46-5 52-3.5' stroke='%23B07A5E' stroke-width='3.2' fill='none' stroke-linecap='round' opacity='.65'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* иконки-кружки с мягкой заливкой */
.ico {
  width: 56px; height: 56px; border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--moss); color: var(--accent-dark); flex-shrink: 0;
}
.ico svg { width: 28px; height: 28px; stroke-width: 1.6; }
.ico--sand  { background: var(--sand);  color: #8A6045; }
.ico--sky   { background: var(--sky);   color: #3C5C66; }
.ico--blush { background: var(--blush); color: #9B6154; }
/* рисованные значки Streamline Freehand Color (17.10.2026, CC BY 4.0 — ссылка в подвале страниц с ними):
   без кружка-подложки, чуть крупнее, цвета перекрашены в графит и глину сайта */
.ico.ico--hand { width: 60px; height: 60px; background: none; border-radius: 0; justify-content: flex-start; }
.ico.ico--hand { position: relative; }
.ico.ico--hand svg { width: 52px; height: 52px; position: relative; z-index: 1; }
/* значки статичные: без движения при наведении (просьба Роберта 18.10.2026) */
.ico.ico--hand, .card:hover .ico.ico--hand, .card--link:hover .ico.ico--hand { transform: none; transition: none; border-radius: 0; background: none; box-shadow: none; }

/* карточки чуть «нарисованнее» */
.card { border-radius: var(--radius); }
.card:nth-child(2n)   { border-radius: 24px 22px 26px 22px; }
.card:nth-child(3n)   { border-radius: 22px 26px 22px 24px; }
.card:hover { transform: translateY(-2px); }

.pills li { border-radius: 100px; background: var(--white); }
.pills li:nth-child(3n)   { background: var(--moss); border-color: transparent; }
.pills li:nth-child(3n+1) { background: var(--sand); border-color: transparent; }
.pills li:nth-child(3n+2) { background: var(--sky);  border-color: transparent; }
.pills li:hover { border-color: transparent; color: var(--ink); transform: translateY(-1px); }

/* портрет в мягкой раме */
.portrait { border-radius: 46% 46% 40% 40% / 16% 16% 8% 8%; }
.portrait--soft { border-radius: var(--radius-lg); }
.portrait-frame { position: relative; }
.portrait-frame::before {
  content: ""; position: absolute; inset: -18px -18px 24px -18px; z-index: 0;
  background: var(--moss); opacity: .6;
  border-radius: 48% 52% 44% 56% / 20% 20% 12% 12%;
}
.portrait-frame .portrait { position: relative; z-index: 1; }

/* сцена-иллюстрация */
.scene { width: 100%; height: auto; display: block; }
.scene--sm { max-width: 260px; }

/* мягкий разделитель-волна */
.wave { display: block; width: 100%; height: 44px; }
.wave path { fill: var(--bg-alt); }
.wave--up path { fill: var(--bg); }

.section--alt { border-radius: var(--radius-lg); }
@media (max-width: 620px) {
  .section--alt { border-radius: 0; }
  .blob--a { width: 260px; height: 240px; top: -90px; right: -100px; }
  .blob--b { width: 220px; height: 200px; }
  .blob--c { display: none; }
}

/* ============================================================
   Интерактивный слой
   ============================================================ */

/* ---------- переключаемые плашки выбора ---------- */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice__item { position: relative; display: block; margin: 0; }
.choice__item input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.choice__item > span {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border: 1px solid #BDB3A7; border-radius: var(--radius-sm);   /* край заметнее (19.10.2026), было --line ≈1,35:1 */
  background: var(--white); cursor: pointer; height: 100%;
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.choice__item > span b { font-weight: 500; font-size: .96rem; color: var(--ink); line-height: 1.25; }
.choice__item > span i { font-style: normal; font-size: .82rem; color: var(--ink-faint); }
.choice__item > span:hover { border-color: #948D85; transform: translateY(-1px); }
.choice__item input:checked + span {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.choice__item input:checked + span b { color: var(--accent-dark); }
.choice__item input:checked + span i { color: var(--accent); }
/* сам input скрыт — кольцо фокуса рисуем на плашке, как у кнопок (бледная тень почти не видна) */
.choice__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- карточка услуги как ссылка ---------- */
.price { transition: border-color var(--t), box-shadow var(--t), transform var(--t); }
.price--clickable { cursor: pointer; }
.price--clickable:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.price--clickable:hover .price__value { color: var(--accent-dark); }

/* ---------- переход между страницами ----------
   Содержимое <main> подменяется без перезагрузки,
   прозрачностью управляет main.js. Никаких анимаций
   при первой загрузке — страница просто отрисовывается. */

/* ---------- полоса прогресса чтения ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--clay); z-index: 80; pointer-events: none;
  transition: transform .12s linear, opacity var(--t);
}

/* ---------- плавающая кнопка записи на телефоне ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55;
  display: none; justify-content: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  /* скрытая кнопка не должна ловить фокус с клавиатуры (Tab), поэтому ещё и visibility;
     переход visibility держит её видимой, пока она гаснет, и показывает сразу при появлении */
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.fab.is-in { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.fab .btn { box-shadow: 0 6px 24px rgba(35, 40, 43, .18); width: 100%; }
@media (max-width: 760px) { .fab { display: flex; } }
/* место под плавающую кнопку снизу (48px кнопка + 16px отступ + запас): когда браузер
   докручивает к элементу в фокусе (Tab), тот не встаёт под кнопку у нижнего края */
@media (max-width: 760px) { html { scroll-padding-bottom: 88px; } }

/* ---------- параллакс пятен ---------- */
.blob { will-change: transform; }

/* ---------- счётчики в шапке ---------- */
.hero__meta-item b { font-variant-numeric: tabular-nums; }

/* ---------- аккуратный фокус по всему сайту ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
/* кольцо фокуса идёт по скруглению самого элемента (кнопки-таблетки, круглые стрелки);
   своё скругление 4 px — только у ссылок в тексте */
a:not([class]):focus-visible { border-radius: 4px; }
/* на тёмной CTA-полосе зелёное кольцо почти сливается с фоном (2.24:1) — там оно белое */
.cta-band :focus-visible { outline-color: #fff; }
/* то же на тёмно-зелёной «Как проходит сессия»: зелёное кольцо там 2:1, светлое — заметно */
.path :focus-visible, .section--deep :focus-visible { outline-color: #FCFAF7; }

/* ссылки внутри текста отличаются не только цветом (WCAG 1.4.1): тонкое подчёркивание, как в статьях.
   Только ссылки в строке текста и в галочке согласия — не кнопки, не навигация, не шапки страниц */
/* 18.10.2026 по просьбе Роберта: ссылки в тексте — только зелёным, без подчёркивания; подчёркнута лишь ссылка
   на политику обработки персональных данных (в тексте и в галочке согласия) */
main p a[href^="privacy.html"]:not([class]), .check a[href^="privacy.html"] {
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(61, 106, 92, .5);
}

/* касание на телефоне: без серо-синей подсветки браузера, отклик — мягким затуханием */
/* везде: без тёмного прямоугольника iOS Safari при касании любой кнопки и ссылки (свойство наследуется от html);
   рамка фокуса — только для клавиатуры (:focus-visible), не после касания (Роберт, 19.10) */
html { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
.menu__row, .card--link, .price--clickable, .choice__item, .btn { -webkit-tap-highlight-color: transparent; }
/* комната: без серо-синего прямоугольника браузера при касании — у предметов свой отклик (.is-pressed) */
.sobj__hit, .scene-tag, .scene__motion { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .scene-tag:active { opacity: .78; } }
@media (hover: none) {
  .menu__row:active, .card--link:active, .price--clickable:active { opacity: .72; transition: opacity .1s; }
}

@media (prefers-reduced-motion: reduce) {
  main { opacity: 1 !important; transition: none !important; }
  .portrait-frame:hover .portrait img { transform: none; }
  .blob { transform: none !important; }
}

@media (max-width: 520px) {
  .choice { grid-template-columns: 1fr; }
  .choice--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   СЛОЙ ДВИЖЕНИЯ
   Дорогая, медленная анимация: слои, реакция на курсор,
   оживающие линии. Всё на transform/opacity, всё отключается
   системной настройкой «уменьшить движение».
   ============================================================ */

/* ---------- живой фон первого экрана ---------- */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__layer {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora__layer:nth-child(1) { width: 46vw; height: 46vw; left: 52%; top: -6%;  background: #CFE0D6; animation-duration: 24s; }
.aurora__layer:nth-child(2) { width: 38vw; height: 38vw; left: -6%; top: 22%;  background: #F0DFCB; animation-duration: 31s; animation-delay: -8s; }
.aurora__layer:nth-child(3) { width: 30vw; height: 30vw; left: 28%; top: 54%;  background: #DCE7EA; animation-duration: 28s; animation-delay: -15s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -4%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) scale(.96); }
}

/* ---------- появление заголовков по словам ---------- */
.split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.split .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(115%); opacity: 0;
  transition: transform .85s cubic-bezier(.2, .8, .25, 1), opacity .7s ease;
}
.split.is-in .w > i { transform: none; opacity: 1; }

/* линия под словом дорисовывается */
.squiggle::after {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.33, 1, .68, 1) .45s;
}
.split.is-in .squiggle::after, .squiggle.is-drawn::after { transform: scaleX(1); }

/* ---------- кнопки, которые тянутся к курсору ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%);
  width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: currentColor; opacity: .12;
  transition: width .5s var(--ease), height .5s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.btn:hover::before { width: 280px; height: 280px; }
.btn--primary::before { background: #fff; opacity: .16; }
.btn--primary:hover { box-shadow: 0 8px 28px rgba(61, 106, 92, .28); }
.btn--ghost:hover { box-shadow: 0 6px 20px rgba(35, 40, 43, .08); }

/* ---------- лёгкий наклон карточек ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(0); }

/* ---------- бегущая строка с регалиями ---------- */
.ribbon {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--white);
}
.ribbon__track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink-soft); white-space: nowrap;
}
.ribbon__item::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); flex-shrink: 0;
}
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- подсветка запросов ---------- */
.pills li {
  transition: transform .4s var(--ease), background .4s var(--ease),
              color .4s var(--ease), opacity .4s var(--ease);
}
.pills:hover li { opacity: .45; }
.pills li:hover { opacity: 1; transform: translateY(-3px) scale(1.04); }

/* ---------- линия шагов дорисовывается ---------- */
.steps li::after { transform-origin: top; transform: scaleY(0); transition: transform .7s var(--ease); }
.steps li.is-in::after { transform: scaleY(1); }
.steps li::before { transition: transform .5s cubic-bezier(.2,.9,.3,1.3), background .4s var(--ease); }
.steps li.is-in::before { animation: pop .6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- фото проявляется из-под маски ---------- */
.portrait { position: relative; overflow: hidden; }
.portrait::after {
  content: ""; position: absolute; inset: 0; background: var(--bg-alt); z-index: 2;
  transform: translateY(0); transition: transform 1.15s cubic-bezier(.65, 0, .35, 1);
}
.portrait.is-shown::after { transform: translateY(-101%); }
.portrait img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.33,1,.68,1); }
.portrait.is-shown img { transform: scale(1); }
.portrait-frame:hover .portrait img { transform: scale(1.04); }

/* ---------- мягкий курсор ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
  transition: opacity .3s var(--ease), width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.cursor.is-on { opacity: .4; }
.cursor.is-hot {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: rgba(61, 106, 92, .1); opacity: .6;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- секции въезжают из-под маски ---------- */
.mask-in { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.65, 0, .35, 1); }
.mask-in.is-in { clip-path: inset(0 0 0 0); }

/* ---------- числа и акценты ---------- */
/* display: block обязателен — иначе подпись слипается с числом */
.hero__meta-item b { display: block; transition: transform .4s var(--ease); }
.hero__meta-item:hover b { transform: translateY(-2px); }

/* ---------- иконки оживают ---------- */
.ico { transition: transform .5s cubic-bezier(.2,.9,.3,1.3), border-radius .6s var(--ease); }
.card:hover .ico, .card--link:hover .ico {
  transform: rotate(-6deg) scale(1.08);
  border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%;
}

@media (prefers-reduced-motion: reduce) {
  .aurora__layer { animation: none; }
  .split .w > i { transform: none; opacity: 1; transition: none; }
  .squiggle::after { transform: scaleX(1); transition: none; }
  .ribbon__track { animation: none; }
  .steps li::after { transform: scaleY(1); }
  .steps li.is-in::before { animation: none; }
  .portrait::after { display: none; }
  .portrait img, .portrait.is-shown img { transform: none; }
  .cursor { display: none; }
  .mask-in { clip-path: none; transition: none; }
  .pills:hover li { opacity: 1; }
}

/* ============================================================
   ИСПРАВЛЕНИЯ ПО QA-ПРОГОНУ
   ============================================================ */

/* ---------- ссылка «к содержимому» для клавиатуры ---------- */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 12px 20px; border-radius: 100px;
  background: var(--accent); color: #fff; font-size: .95rem; font-weight: 500;
  transform: translateY(-160%); transition: transform var(--t);
}
.skip:focus { transform: none; color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* после мягкой навигации фокус ставится на h1, после якоря — на h2 раздела; рамка там не нужна */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ---------- мобильное меню: прокрутка страницы блокируется ---------- */
/* только на html: overflow:hidden ещё и на body делает body отдельным контейнером
   прокрутки — прилипающая шапка (а с ней и меню) уезжает вверх за экран */
html.nav-open { overflow: hidden; }
.nav-backdrop {
  position: fixed; inset: 74px 0 0 0; z-index: 50;
  background: rgba(35, 40, 43, .18); opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
html.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
/* при открытом меню плавающая кнопка записи уходит: иначе она лежит над затемнением
   (z-index 55 > 50) и касание у нижнего края уводит на запись вместо закрытия меню */
html.nav-open .fab { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }
@media (min-width: 1041px) { .nav-backdrop { display: none; } }

/* ---------- календарь на узких телефонах ---------- */
@media (max-width: 420px) {
  .cal { padding: 16px 12px; }
  .cal__days { gap: 3px; }
  .cal__day { font-size: .92rem; }
  .cal__nav { gap: 6px; }
}

/* ---------- на тач-экранах hover «залипает» после тапа ---------- */
@media (hover: none) {
  .pills:hover li { opacity: 1; }
  .pills li:hover, .card:hover, .price--clickable:hover,
  .choice__item > span:hover, .hero__meta-item:hover b { transform: none; }
  .card:hover .ico, .card--link:hover .ico { transform: none; border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%; }
  .btn:hover::before { width: 0; height: 0; }
  .portrait-frame:hover .portrait img { transform: scale(1); }
}

/* ---------- цели для пальца не меньше ~44px (сенсорные экраны) ----------
   вид и раскладка не меняются: у строчных ссылок растёт только поле касания (вертикальный
   padding у inline-элемента не двигает строки), у плашек — невидимая зона ::before */
@media (hover: none), (pointer: coarse) {
  .breadcrumbs a, .card__meta a { padding-block: 14px; }
  .article-more__back a { padding-block: 12px; }
  .footer__list a { padding-block: 8px; }            /* шаг строк 36px: 8px — без наложения соседних */
  /* нижняя строка подвала («Политика…» · «Правила работы»): на телефоне ссылки стоят столбиком
     в 22px друг от друга — строки по 36px, а отрицательные поля возвращают высоту одной строки
     к прежним 22px (в одну строку раскладка не меняется) */
  .footer__bottom > span:last-child { line-height: 36px; margin-block: -7px; }
  .footer__bottom a { padding-block: 9px; }           /* 16 + 18 = 34px при шаге 36px — без наложения */
  .contact-direct { line-height: 44px; }              /* «Контакты»: телефон и почта — строки по 44px */
  .contact-direct a { padding-block: 12px; }
  [data-qb-calendar] { padding-block: 14px; }         /* главная, быстрая запись: «Другая дата…» (16px; слоты в 16px выше) */
  .interests .check::before,                          /* «Коллегам»: однострочные флажки интересов (32px) */
  .scene-tag::before, .hero__down::before, .link-more::before { content: ""; position: absolute; }
  .interests .check::before { inset: -6px 0; }
  .scene-tag::before { inset: -3px 0; }
  .hero__down::before { inset: -1px -9px; }           /* «мышка» 30×46 на вертикальном планшете */
  .link-more { position: relative; }                  /* главная: «Подробнее обо мне…» (28px на планшете) */
  .link-more::before { inset: -8px 0; }
  /* галочка согласия в формах: в одну строку — 32px («Коллегам» на горизонтальном планшете);
     у неё внутри ссылка «политикой…», поэтому не ::before (лёг бы поверх ссылки), а поля
     самой подписи — отрицательные поля гасят прибавку, раскладка формы та же */
  .form > .check { padding-block: 10px; margin-block: -6px; }
  /* запись: слоты календаря (40px) сами вырастают до 44px, как «Записаться»; «изменить» в сводке
     шага 3 и «Нет удобного?…» (37px) — тоже, но строки вокруг них прежней высоты */
  .slot, .link-btn { min-height: 44px; }
  .wizard__summary .link-btn { margin-block: -3.75px; } /* (44 − 36.5) / 2: строки сводки прежней высоты */
  /* «Другая дата…» 37 → 45px, текст на месте (.wizard впереди — правило .wizard__cal summary ниже по файлу) */
  .wizard .wizard__cal summary { padding-block: 10px; margin-block: -4px; }
}

/* ---------- обязательное поле ---------- */
.req { color: var(--clay-text); }

/* ---------- параллакс портрета — на контейнере, а не на фото ---------- */
.portrait { will-change: transform; }

/* ---------- живой фон на паузе, когда первый экран ушёл из вида ---------- */
.hero.is-away .aurora__layer { animation-play-state: paused; }

/* телефоны (320–430): календарь занимает поля страницы,
   чтобы дни были 38–48px, а не 33–36px (под палец) */
@media (max-width: 430px) {
  .cal { padding: 14px 6px; margin-left: -12px; margin-right: -12px; }
  .cal__days { gap: 2px; }
}

/* заголовок блока едет рядом с длинной колонкой карточек */
@media (min-width: 961px) {
  .sticky-col { position: sticky; top: 110px; }
}
/* В «Честно говоря» две колонки начинаются с 761px: заголовок остаётся
   рядом с ответами до конца раздела и в узком окне предпросмотра. */
@media (min-width: 761px) {
  #honest .sticky-col {
    position: sticky;
    top: calc(var(--header-h) + 35px);
    align-self: start;
  }
}

/* ============================================================
   ЗАЯВКИ ЧЕРЕЗ СЕРВЕР
   ============================================================ */

/* поле-ловушка для спам-ботов: человеку не видно и не достижимо */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* после отправки форма уступает место панели результата */
form.is-done > :not(.form__done) { display: none !important; }
.form__done {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  animation: done-in .6s var(--ease) both;
}
.form__done:focus { outline: none; }
.form__done h3 { margin: 10px 0 4px; }
.form__done p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 12px; }
.form__done .btn-row { justify-content: center; margin-top: 6px; }
.form__done-mark {
  width: 64px; height: 64px; border-radius: 42% 58% 55% 45% / 55% 45% 55% 45%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.form__done-mark svg { width: 32px; height: 32px; }
.form__done-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .25s var(--ease) forwards; }
.form__done--warn .form__done-mark { background: var(--sand); color: #8A6045; }
.form__done--warn .form__done-mark path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.form__again {
  margin-top: 14px; background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font: inherit; font-size: .92rem; color: var(--accent); text-decoration: none;
}
@keyframes done-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.btn[disabled] { opacity: 1; cursor: progress; }   /* «Отправляем…» читается полностью, а не блёкло */

@media (prefers-reduced-motion: reduce) {
  .form__done { animation: none; }
  .form__done-mark path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   «МИНУТА ТИШИНЫ»
   ============================================================ */
.breath { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 36px; }
.breath__stage { position: relative; width: min(300px, 72vw); aspect-ratio: 1; display: grid; place-items: center; }
.breath__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(61, 106, 92, .28);
}
.breath__circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #EAF1EC 0%, var(--moss) 42%, #BFD2C6 100%);
  box-shadow: 0 20px 60px rgba(61, 106, 92, .18), inset 0 -10px 30px rgba(61, 106, 92, .12);
  transform: scale(.55);
  transition-property: transform; transition-timing-function: cubic-bezier(.45, 0, .55, 1);
  will-change: transform;
}
.breath.is-running .breath__circle { animation: breath-glow 3s ease-in-out infinite alternate; }
@keyframes breath-glow { to { box-shadow: 0 24px 80px rgba(61, 106, 92, .28), inset 0 -10px 30px rgba(61, 106, 92, .16); } }
.breath__text { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.breath__label { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--accent-dark); line-height: 1.1; }
.breath__count { display: block; min-height: 1.4em; margin-top: 4px; font-size: .95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.breath__progress { width: min(300px, 72vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.breath__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.breath__after { max-width: 44ch; margin: 0; color: var(--ink-soft); font-size: .97rem; animation: done-in .6s var(--ease) both; }
.breath-section .breath { margin-bottom: 0; }
.breath--inline { margin: 2.2em 0; padding: 32px 20px; border-radius: var(--radius); background: var(--bg-alt); }
.breath--inline .breath__label { font-size: 1.6rem; }

/* ============================================================
   ГРУППЫ И МЕСТА
   ============================================================ */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Карточки строит features.js (initGroups) уже после загрузки скриптов, а браузер успевает нарисовать
   страницу раньше: блок был пустым, и «Что даёт групповая работа» сначала вставал под шапку, а потом его
   сталкивало вниз (CLS 0,04–0,12 на компьютере, до 0,55 на планшете). Пока карточек нет — держим их место.
   Высоты — по нынешним текстам config.js → groups: в ряд 481 px (от 1100 px), 504 px (961–1099),
   в колонку 1177 px (768–960; на телефоне карточки выше, но блок и так уходит за первый экран).
   Тексты групп сильно поменяются — сверить. data-ready ставит initGroups; без JS сброс в <noscript> group.html */
.groups[data-groups]:not([data-ready]) { min-height: 481px; }
@media (max-width: 1099px) { .groups[data-groups]:not([data-ready]) { min-height: 504px; } }
.group-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  scroll-margin-top: 13px;   /* + scroll-padding-top у html (87px) = 100px от верха окна */
}
.group-card--open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.group-card__head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }  /* метка всегда сверху */
.group-card__head .eyebrow { margin: 0; }
.group-card h3 { margin: 4px 0 0; }
.group-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.group-card__meta { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 6px; }
.group-card__meta li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--ink); margin: 0; }
.group-card__meta li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.group-card .btn { margin-top: auto; }
.group-badge {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; background: var(--bg-alt); color: var(--ink-soft);
}
.group-card--open .group-badge { background: var(--accent-soft); color: var(--accent-dark); }
.group-card--open .group-badge::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px;
  background: var(--accent); vertical-align: 1px; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.seats { margin: 6px 0 8px; }
.seats__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.seats__dots span {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.seats__dots span.is-taken { background: var(--accent); border-color: var(--accent); }
.seats--few .seats__dots span:not(.is-taken) { border-color: var(--clay); animation: pulse 2.4s ease-in-out infinite; }
.seats__text { margin: 10px 0 0 !important; font-size: .9rem !important; color: var(--ink) !important; font-weight: 500; }
.seats--few .seats__text { color: var(--clay-text) !important; }

@media (max-width: 960px) {
  .groups { grid-template-columns: minmax(0, 1fr); }
  .groups[data-groups]:not([data-ready]) { min-height: 1177px; }
}

/* ============================================================
   ВИДЕО-ЗНАКОМСТВО
   ============================================================ */
.video { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-deep); box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video__poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: brightness(.82); transition: transform 1s var(--ease), filter .4s var(--ease); }
.video__poster:hover img { transform: scale(1.03); filter: brightness(.72); }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.3);
}
.video__play::after {
  content: ""; position: absolute; left: 34px; top: 27px;
  border-left: 22px solid var(--accent); border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.video__poster:hover .video__play { transform: scale(1.08); }
.video__label {
  position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: .95rem; font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.video__player { width: 100%; height: 100%; display: block; background: #000; }
.video-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: .95rem; color: var(--ink-soft);
}
.video-link::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 7.5v9l7-4.5z' fill='%233D6A5C'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
  transition: transform .4s var(--ease);
}
.video-link:hover { color: var(--accent); }
.video-link:hover::before { transform: scale(1.1); }

/* ============================================================
   ЛИСТ ОЖИДАНИЯ
   ============================================================ */
.interests { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.interests legend { font-size: .88rem; color: var(--ink-soft); font-weight: 500; margin-bottom: 8px; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .breath__circle, .breath.is-running .breath__circle { transition: none; animation: none; }
  .group-card--open .group-badge::before, .seats--few .seats__dots span:not(.is-taken) { animation: none; }
}

/* крупная цитата с рисованной кавычкой */
.pull-quote {
  position: relative; margin: 0; padding: clamp(32px, 5vw, 52px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pull-quote::before {
  content: "«"; position: absolute; top: -34px; left: 26px;
  font-family: var(--font-serif); font-size: 7rem; line-height: 1; color: var(--clay); opacity: .55;
}
.pull-quote blockquote {
  margin: 0; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.38; color: var(--ink);
}

/* карточка во всю ширину сетки — для нечётного числа карточек */
.card--wide { grid-column: 1 / -1; }

/* первый экран: комната на весь экран, текст на светлой панели */
.hero--room {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 110px 0 90px;
  overflow: hidden;
}
.hero--room .hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__panel {
  max-width: 600px; padding: clamp(26px, 4vw, 44px);
  background: rgba(252, 250, 247, .86);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(60, 50, 40, .12);
  animation: panel-in 1s .35s var(--ease) both;
}
.hero__panel h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.hero__panel .hero__sub { margin-bottom: 1.6rem; }
.hero__panel .hero__meta { margin-top: 1.8rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__down {
  position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 30px; height: 46px; margin-left: -15px;
  border: 1.5px solid rgba(35, 40, 43, .35); border-radius: 20px; background: rgba(252, 250, 247, .6);
}
.hero__down span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--ink-soft); animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 760px) {
  .hero--room { align-items: flex-end; padding: 42vh 0 76px; }
  .hero__panel { padding: 24px 20px; }
  .hero__down { display: none; }
}

/* ---------- приветствие: журнальный разворот (09.10.2026) ---------- */
.greeting__title { font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 clamp(32px, 4vw, 56px); }
/* «Здравствуйте» проявляется цветом при прокрутке: из бледно-песочного в глубокий зелёный, чуть поднимаясь (--t из main.js, 0…1) */
.greeting__title .w {
  color: color-mix(in oklab, var(--accent-dark) calc(var(--t, 1) * 100%), #E8DFD2);
  opacity: calc(.35 + .65 * var(--t, 1));
  transform: translateY(calc((1 - var(--t, 1)) * .12em));
  transition: color .2s linear, opacity .2s linear, transform .2s linear;
}
.greeting__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.greeting__photo { margin: 0; }
.greeting__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 4px; }
.greeting__photo figcaption { margin-top: 10px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
/* подпись под фото — как фирменный знак Ольги (16.10.2026): курсив Cormorant, тонкая линия, мелкая строка капителью */
.greeting__photo .greeting__brand { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-transform: none; letter-spacing: 0; }
.greeting__brand-role {
  font-family: "Marck Script", var(--font-serif); font-weight: 400; font-size: clamp(1.9rem, 2.9vw, 2.45rem); line-height: 1.1;
  color: var(--ink-soft); padding: 0 .1em;   /* спокойный графитовый, как подпись чернилами */
  letter-spacing: -.08em; word-spacing: .02em;   /* у Marck Script буквы иначе не смыкаются в прописи */
}
.greeting__brand-role::after { content: ""; display: block; width: 46px; height: 1px; margin: 10px auto 0; background: var(--line); }
.greeting__brand-meta { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.greeting__lead { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.3; color: var(--ink); margin: 0 0 24px; }
.greeting__two { color: var(--ink-soft); }   /* одной колонкой (19.10.2026): две по 17–22 знака в строке читались тяжело */
.greeting__two p { break-inside: avoid; }
.greeting__sig { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
.greeting__sign { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--ink); margin: 0 0 4px; }
.greeting__role { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 860px) {
  .greeting__cols { grid-template-columns: minmax(0, 1fr); }
  .greeting__photo { max-width: 420px; }
  .greeting__two { columns: 1; }
}

/* ---------- быстрая запись ---------- */
.quickbook__card {
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.qb-steps { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 8px 0 30px; }
.qb-steps li {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 6px; border-radius: 100px;
  font-size: .9rem; color: var(--ink-faint); background: var(--bg-alt); transition: background var(--t), color var(--t);
}
.qb-steps b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; background: var(--white); color: var(--ink-faint); transition: background var(--t), color var(--t);
}
.qb-steps li.is-active { background: var(--accent-soft); color: var(--accent-dark); }
.qb-steps li.is-active b, .qb-steps li.is-done b { background: var(--accent); color: #fff; }
.qb-steps li.is-done { color: var(--accent-dark); }
.qb-label { font-weight: 500; margin: 0 0 12px; }
.qb-label span { font-weight: 400; color: var(--ink-faint); }
.qb-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qb-format {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.qb-format b { font-weight: 500; font-size: .98rem; }
.qb-format i { font-style: normal; font-size: .84rem; color: var(--ink-faint); }
.qb-format:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.qb-format.is-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.qb-format.is-active b { color: var(--accent-dark); }
.qb-time { margin-top: 26px; animation: done-in .45s var(--ease) both; }
.qb-slots { display: flex; flex-wrap: wrap; gap: 10px; min-height: 48px; }
.qb-slot {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .93rem;
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t);
}
.qb-slot b { font-weight: 600; color: var(--accent-dark); }
.qb-slot:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); transform: translateY(-1px); }
.qb-time .note { margin: 14px 0 0; }
.qb-after { margin: 24px 0 0; }
@media (max-width: 620px) {
  .qb-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb-steps li { padding-right: 10px; font-size: .84rem; }
  /* в узкой плитке «Индивидуально» не помещается: отступ и кегль чуть меньше,
     а на самых узких экранах слово переносится по слогам (html lang="ru");
     то же для подписи — «группанализ» на 320px иначе ложится на рамку */
  .qb-format { padding: 12px; }
  .qb-format b { font-size: .9rem; }
  .qb-format b, .qb-format i { max-width: 100%; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 440px) {
  /* три подписи шагов в ряд шире карточки: подпись остаётся только у текущего шага, у остальных — цифра */
  .qb-steps { gap: 6px; }
  .qb-steps li:not(.is-active) { gap: 0; padding-right: 6px; font-size: 0; }
}

/* ---------- навигация точками по разделам ---------- */
.scene-nav {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 4px;
}
.scene-nav a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 26px; }
.scene-nav span {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(35, 40, 43, .22);
  transition: background var(--t), transform var(--t);
}
.scene-nav a:hover span, .scene-nav a:focus-visible span { background: var(--ink-soft); transform: scale(1.25); }
.scene-nav a.is-active span { background: var(--accent); transform: scale(1.45); }
.scene-nav em {
  position: absolute; right: 30px; white-space: nowrap; font-style: normal; font-size: .82rem; color: var(--ink);
  background: rgba(255, 255, 255, .94); padding: 5px 11px; border-radius: 100px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity var(--t), transform var(--t);
}
.scene-nav a:hover em, .scene-nav a:focus-visible em { opacity: 1; transform: none; }
@media (max-width: 1099px) { .scene-nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__panel { animation: none; }
  .hero__down span { animation: none; opacity: 1; }
}

/* ============================================================
   ПОШАГОВАЯ ЗАПИСЬ
   ============================================================ */
.wizard { padding: clamp(22px, 4vw, 40px); gap: 0; }
.wizard__progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 28px; counter-reset: none; }
.wizard__progress li { flex: 1; margin: 0; }
.wizard__progress button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; cursor: pointer;
  background: var(--bg-alt); border-radius: var(--radius-sm); font: inherit; font-size: .92rem; color: var(--ink-faint);
  transition: background var(--t), color var(--t);
}
.wizard__progress button:disabled { cursor: default; }
.wizard__progress b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--white); font-size: .85rem; transition: background var(--t), color var(--t);
}
.wizard__progress li.is-active button { background: var(--accent-soft); color: var(--accent-dark); font-weight: 500; }
.wizard__progress li.is-active b, .wizard__progress li.is-done b { background: var(--accent); color: #fff; }
.wizard__progress li.is-done button { color: var(--accent-dark); }
.wizard__progress li.is-done button:hover { background: var(--accent-soft); }
.wizard__step { animation: step-in .4s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wizard__title { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 18px; }
.wizard__title:focus { outline: none; }
.wizard__hint { font-weight: 500; margin: 0 0 12px; }
.wizard__hint span { font-weight: 400; color: var(--ink-faint); }
/* ошибка выбранного времени («уже заняли») — над слотами шага 2: booking.js переносит сюда строку статуса */
.wizard__step > .form__status { margin-bottom: 14px; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.wizard__cal { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.wizard__cal summary {
  cursor: pointer; list-style: none; color: var(--accent); font-size: .95rem; padding: 6px 0;
}
.wizard__cal summary::-webkit-details-marker { display: none; }
.wizard__cal:not([open]) .wizard__cal-hide, .wizard__cal[open] .wizard__cal-show { display: none; }
.wizard__cal .cal { margin-top: 14px; }
.wizard__summary {
  display: grid; gap: 8px; margin-bottom: 22px; padding: 16px 18px;
  background: var(--bg-alt); border-radius: var(--radius-sm);
}
.wizard__summary div { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.wizard__summary span { font-size: .85rem; color: var(--ink-faint); }
.wizard__summary b { font-weight: 500; }
.wizard__foot { margin: 14px 0 0; text-align: center; }
.link-btn {
  background: none; border: 0; padding: 6px 2px; cursor: pointer; font: inherit; font-size: .93rem;
  color: var(--accent); text-decoration: none;
}
.link-btn:hover { color: var(--accent-dark); }
.qb-slot { cursor: pointer; font: inherit; }
.qb-slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.qb-slot.is-selected b { color: #fff; }
@media (max-width: 620px) {
  /* название шага прячем только визуально: экранный диктор читает «1 Формат», а не просто «1» */
  .wizard__progress span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .wizard__progress button { justify-content: center; }
  /* сводка — flex с переносом: «изменить» стоит справа от названия, а если рядом не влезает
     самое длинное слово («Индивидуальная» на 320 px), уходит на свою строку, а не наезжает на текст */
  .wizard__summary div { display: flex; flex-wrap: wrap; }
  .wizard__summary span { flex-basis: 100%; }
  .wizard__summary b { flex: 1 1 0; }
  .wizard__nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .wizard__step, .qb-time { animation: none; } }


/* атрибут hidden всегда прячет — даже если у элемента свой display */
[hidden] { display: none !important; }



/* ============================================================
   ИНТЕРАКТИВНАЯ СЦЕНА ПЕРВОГО ЭКРАНА (assets/js/hero-scene*.js)
   Предметы на фото — входы в разделы. Скорость, масштаб и сила
   подсветки задаются в hero-scene.config.js (переменные --hl-*, --drift*).
   ============================================================ */
.hero--scene { isolation: isolate; }
.hero--scene .hero__inner { pointer-events: none; }          /* пустые поля обёртки не перехватывают наведение */
.hero--scene .hero__panel, .hero--scene .hero__down { pointer-events: auto; }
.scene, .scene__nav { position: absolute; inset: 0; }
.scene { z-index: 0; overflow: hidden; background: #EFE8DE; }
.scene__nav { z-index: 2; pointer-events: none; }
.scene__frame, .scene__tags {
  position: absolute; inset: 0; margin: 0; padding: 0; list-style: none;
  translate: var(--px, 0) var(--py, 0);
  transition: translate .9s cubic-bezier(.2, .7, .2, 1);
  animation: scene-drift var(--drift-s, 40s) ease-in-out infinite alternate;
}
@keyframes scene-drift { from { scale: 1; } to { scale: var(--drift, 1.025); } }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__dim {
  position: absolute; inset: 0; background: #2A2018; opacity: 0;
  transition: opacity var(--hl-ms, 280ms) ease; pointer-events: none;
}
.scene-is-active .scene__dim { opacity: var(--hl-dim, .12); }
.scene__svg { position: absolute; overflow: visible; }
.scene__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(252, 250, 247, .42), rgba(252, 250, 247, 0) 52%);
}
.scene__light { mix-blend-mode: screen; pointer-events: none; animation: scene-breathe 8s ease-in-out infinite alternate; }
@keyframes scene-breathe { from { opacity: .45; } to { opacity: 1; } }

/* предмет */
.sobj__hit { fill: transparent; pointer-events: all; cursor: pointer; }
.scene__skel { display: none; }   /* скелет фото — только на телефоне (mobile-app.css) */
.sobj__lift {
  opacity: 0; pointer-events: none;
  transition: opacity var(--hl-ms, 280ms) ease, transform var(--hl-ms, 280ms) cubic-bezier(.2, .7, .2, 1);
}
.sobj.is-active .sobj__lift { opacity: 1; transform: scale(var(--hl-scale, 1.035)); }
.sobj.is-pressed .sobj__lift { transform: scale(calc(var(--hl-scale, 1.035) - .02)); transition-duration: 90ms; }
.sobj__ring {
  fill: none; stroke: #FFFDF8; stroke-width: 3; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.hero--scene:has(.scene-tag:focus-visible) .sobj.is-active .sobj__ring { opacity: .95; }
.sobj__dot { pointer-events: none; transition: opacity .25s ease; }
.sobj__dot circle { fill: rgba(255, 253, 248, .92); }
.sobj__dot .sobj__dot-ring {
  fill: none; stroke: rgba(255, 253, 248, .85); stroke-width: 2; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center; animation: dot-pulse 3.2s ease-out infinite;
}
@keyframes dot-pulse { 0% { opacity: .9; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.sobj.is-active .sobj__dot { opacity: 0; }

/* подпись: что это → куда ведёт */
.scene-tag {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 1px;
  padding: 9px 15px 10px; border-radius: 14px; white-space: nowrap; text-decoration: none; color: var(--ink);
  background: rgba(252, 250, 247, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(40, 30, 20, .16); border: 1px solid rgba(255, 255, 255, .8);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .22s ease, transform var(--hl-ms, 280ms) cubic-bezier(.2, .7, .2, 1);
}
.scene-tag.is-active, .scene-tag:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.scene-tag:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scene-tag__name { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.2; }
.scene-tag__act { font-size: .84rem; font-weight: 500; color: var(--accent); }
.scene-tag__act::after, .scene-tag__short::after { content: " →"; }
.scene-tag__short { display: none; font-size: .8rem; font-weight: 500; color: var(--accent); }
.scene-tag:hover .scene-tag__act { text-decoration: none; }

/* остановить движение. Плашка плотная (.92, была .82): на главной она над тёмным полом фото,
   и при .82 подпись --ink-soft давала 4.0–4.4:1 — ниже AA; теперь не ниже 4.8:1 */
.scene__motion {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 100px; cursor: pointer;
  background: rgba(252, 250, 247, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: inherit; font-size: .8rem; color: var(--ink-soft); transition: background var(--t), color var(--t);
}
.scene__motion:hover { background: #fff; color: var(--ink); }
.scene__motion:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.scene__motion i { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-paused .scene__motion i {   /* на паузе — значок «играть» */
  width: 0; border: 0; border-left: 9px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

/* движение на паузе (кнопка) и вне экрана */
.motion-paused .scene__frame, .motion-paused .scene__tags, .motion-paused .scene__light,
.motion-paused .sobj__dot-ring, .motion-paused .breath__circle,
.motion-paused .ribbon__track,
.scene-offscreen .scene__frame, .scene-offscreen .scene__tags, .scene-offscreen .scene__light,
.scene-offscreen .sobj__dot-ring { animation-play-state: paused !important; }
.motion-paused .scene__frame, .motion-paused .scene__tags { translate: none; }
/* кнопка «Остановить движение» действует на всём сайте так же, как системное «уменьшить движение»
   (повторяет правила из блоков @media (prefers-reduced-motion: reduce); видеопереход при паузе не играет) */
html.motion-paused { scroll-behavior: auto; }
.motion-paused .reveal { opacity: 1; transform: none; transition: none; }
.motion-paused main { opacity: 1 !important; transition: none !important; }
.motion-paused .blob { transform: none !important; }
.motion-paused .aurora__layer, .motion-paused .ribbon__track, .motion-paused .steps li.is-in::before { animation: none; }
.motion-paused .steps li::after { transform: scaleY(1); transition: none; }
.motion-paused .mask-in { clip-path: none; transition: none; }
.motion-paused .hero__panel { animation: none; }
.motion-paused .hero__down span { animation: none; opacity: 1; }
.motion-paused .group-card--open .group-badge::before,
.motion-paused .seats--few .seats__dots span:not(.is-taken) { animation: none; }
.motion-paused .breath__circle, .motion-paused .breath.is-running .breath__circle { transition: none; animation: none; }
.motion-paused .form__done { animation: none; }
.motion-paused .form__done-mark path { animation: none; stroke-dashoffset: 0; }
.motion-paused .wizard__step, .motion-paused .qb-time, .motion-paused .is-arrived h2:first-of-type { animation: none; }
.motion-paused .hero--scene .scene, .motion-paused .hero--scene .scene__nav { transform: none; }
.motion-paused .scene__cursor { display: none; }

/* сенсорные экраны: подписи видны сразу, одно касание — переход */
@media (hover: none), (pointer: coarse) {
  .scene-tag { opacity: 1; transform: none; pointer-events: auto; padding: 7px 12px 8px; border-radius: 12px; }
  .scene-tag__name { font-size: .95rem; }
  .scene-tag__act { font-size: .78rem; }
  .sobj__dot { display: none; }
  /* цель для пальца — 44px и на горизонтальном планшете (у телефона и вертикального ниже — 44×44) */
  .scene__motion { min-height: 44px; }
}

/* телефон и вертикальный планшет: сцена сверху, карточка под ней — не уменьшенная копия десктопа */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  /* текст — под фото, а не на его нижнем крае (iPhone 08.10.2026: при 58svh строка «Аналитический психолог · очно
     и онлайн» ложилась на край кадра). Фото растворяется в фон до конца (.scene__shade ниже) — стыка нет */
  .hero--scene { padding-top: 60svh; align-items: flex-end; }
  .hero--scene .scene, .hero--scene .scene__nav { bottom: auto; height: 60svh; }
  .scene__shade { background: linear-gradient(180deg, rgba(252, 250, 247, 0) 70%, rgba(252, 250, 247, .85)); }
  .scene__motion { top: 12px; bottom: auto; right: 12px; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .scene__motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* одна строка: «Кресло · Запись →» */
  .scene-tag { flex-direction: row; align-items: baseline; gap: 6px; padding: 7px 12px; }
  .scene-tag__name::after { content: " ·"; color: var(--ink-soft); }
  .scene-tag__act { display: none; }
  .scene-tag__short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  /* .sobj__dot .sobj__dot-ring — та же специфичность, что у правила с dot-pulse, иначе пульсация не гасится */
  .scene__frame, .scene__tags, .scene__light, .sobj__dot .sobj__dot-ring { animation: none; translate: none; }
  .scene-tag { transform: none; }
}

/* ============================================================
   ЕДИНАЯ СИСТЕМА (04.10.2026) — «тихий светлый кабинет»
   Один фон бумаги, один акцент (шалфей), один тон у вспомогательных
   плашек, одинаковые радиусы. Выразительность — за счёт типографики
   и воздуха, а не эффектов. Эти правила перекрывают старые варианты выше.
   ============================================================ */
/* подчёркивание в заголовке первого экрана — подпись сайта, нарисовано сразу */
.squiggle::after { transform: none !important; }

/* иконки: одна форма и один тон */
.ico, .ico--sand, .ico--sky, .ico--blush {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--moss); color: var(--accent-dark);
}
.ico svg { width: 24px; height: 24px; }
.card:hover .ico, .card--link:hover .ico { transform: none; border-radius: 50%; }

/* карточки: одинаковые углы, спокойное наведение без прыжков */
.card, .card:nth-child(2n), .card:nth-child(3n) { border-radius: var(--radius); }
.card:hover { transform: none; }
.card--link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* теги запросов: один нейтральный тон, без подпрыгивания */
.pills li, .pills li:nth-child(3n), .pills li:nth-child(3n+1), .pills li:nth-child(3n+2) {
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.pills li:hover { transform: none; border-color: var(--line); color: var(--ink); opacity: 1; }

/* шапки внутренних страниц: без фото — заголовок, короткий абзац, тонкая линия */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
/* 18ch ломал заголовки статей на 3–4 строки с висячими словами; 32ch — длинные названия статей в 2 строки
   (короткие заголовки разделов не меняются), balance выравнивает длину строк.
   Ширина в em, а не в ch: пока на медленном интернете не догрузилась латиница Manrope, ch считался
   по запасному шрифту (уже) — заголовок стоял в 3 строки, потом перескакивал в 2 и сдвигал статью (CLS).
   19.01em = те же 32ch в Manrope 300. */
.page-head h1 { max-width: 19.01em; text-wrap: balance; }
/* «Запись»: шапка ниже, чтобы шаг 1 (карточки форматов и «Дальше») был виден на ноутбуке */
.page-head--compact { padding: clamp(28px, 3.5vw, 44px) 0 clamp(20px, 2.5vw, 28px); }
.page-head--compact + .section { padding-top: clamp(24px, 3vw, 36px); }
/* невысокий экран ноутбука (1280×720 и ниже 820 px): ещё плотнее шапка и отступы внутри формы записи */
@media (min-width: 761px) and (max-height: 820px) {
  .page-head--compact { padding: 20px 0 16px; }
  .page-head--compact .breadcrumbs { margin-bottom: .6rem; }
  .page-head--compact + .section { padding-top: 16px; }
  .wizard { padding-top: 24px; }
  .wizard__progress { margin-bottom: 18px; }
  .wizard__title { margin-bottom: 12px; }
  .wizard .choice__item > span { padding-top: 10px; padding-bottom: 10px; }
  .wizard__nav { margin-top: 18px; }
}
/* узкие телефоны (320–420 px): длинные слова в заголовке («консультированием», «Нейропсихология:») не влезали в строку
   и давали горизонтальную прокрутку — переносим по слогам (lang="ru"), в крайнем случае рвём слово;
   короткие слова («занимаюсь», «ребёнку») не дробим — только длинные, от 12 букв */
@media (max-width: 420px) { .page-head h1 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word; } }
.page-head .lede { margin-top: .6em; }

/* ссылка «подробнее» вместо второй кнопки */
.link-more { display: inline-block; margin-top: 1.2rem; font-weight: 500; color: var(--accent); }
.link-more:hover { color: var(--accent-dark); text-decoration: none; }   /* как у остальных зелёных ссылок — только мягкая смена цвета */
/* полосы на всю ширину — прямые: скругление на них читалось как отдельная плита */
.section--alt { border-radius: 0; }
/* три факта под кнопками первого экрана — ровным рядом и на телефоне */
@media (max-width: 760px) {
  .hero__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .hero__meta-item { font-size: .78rem; line-height: 1.3; }
  .hero__meta-item b { font-size: 1.35rem; }
}
/* шапки всех внутренних страниц — от левого края общей сетки, как контент под ними */
.page-head > .wrap--narrow { max-width: var(--wrap); }
.page-head .lede, .page-head p { max-width: 39.12em; }   /* = 62ch в Inter, но не зависит от загрузки шрифта */

/* ============================================================
   СЦЕНА ПЕРВОГО ЭКРАНА — кабинет (04.10.2026, вторая версия)
   ============================================================ */
/* текст прямо на светлой стене, без карточки: виден весь кабинет */
.hero--scene .hero__panel {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; box-shadow: none; padding: 0; max-width: 520px;
  opacity: var(--fade, 1);
}
.hero--scene .hero__panel h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.h1-short { display: none; }
.t-phone { display: none; }   /* надпись только для телефона (mobile-app.css меняет местами с .t-wide) */   /* короткий заголовок — только на телефоне, поверх фото (mobile-app.css) */
.hero--scene .hero__meta { border-top-color: rgba(35, 40, 43, .14); }
.scene__shade {
  background:
    radial-gradient(ellipse 42% 58% at 20% 40%, rgba(252, 250, 247, .55), rgba(252, 250, 247, 0) 70%);
}
/* только «горизонтальная» раскладка; у телефона и вертикального планшета своя (сцена сверху) */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .hero--scene { align-items: flex-start; padding-top: clamp(96px, 13vh, 150px); }
  /* факты под кнопками ложились на кресло; они есть в приветствии и на «Обо мне» */
  .hero--scene .hero__meta { display: none; }
  /* первый экран — на всю высоту окна ПОД липкой шапкой (так задумано для ролика room-move), поэтому
     его низ на высоту шапки ниже края окна. Стрелку и «Остановить движение» поднимаем на эту высоту */
  .hero--room .hero__down { bottom: calc(26px + var(--header-h)); }
  .hero--room .scene__motion { bottom: calc(24px + var(--header-h)); }
}

/* глубина при прокрутке: кадр и подписи уезжают медленнее текста */
.hero--scene .scene, .hero--scene .scene__nav { transform: translate3d(0, var(--sy, 0), 0); }
/* телефон: кадр стоит над текстом — без глубины, иначе фото и плашки наезжают на текст и ловят нажатия */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .hero--scene .scene, .hero--scene .scene__nav { transform: none; }
}

/* кадр проявляется: из лёгкого размытия и чуть ближе */
.scene__bg { transition: filter .35s ease, opacity .8s ease, scale 2.4s cubic-bezier(.2, .7, .2, 1); }   /* проявление 0,8 с (было 1,4 с, 19.10.2026) */
.hero--scene:not(.scene-ready) .scene__bg { opacity: 0; filter: blur(10px); scale: 1.06; }
.hero--scene:not(.scene-ready) .scene__svg, .hero--scene:not(.scene-ready) .scene__tags { opacity: 0; }
.scene__svg, .scene__tags { transition: opacity 1s ease .6s; }

/* наведение: остальная комната — в расфокус, предмет — в фокусе */
.scene-is-active .scene__bg, .scene-is-active .scene__amb { filter: blur(var(--hl-blur, 2.5px)) saturate(.92); }
.scene__amb { transition: filter .35s ease; }
.sobj__ring {
  stroke: #FFF8EC; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round;
  opacity: 1; transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1);
  filter: drop-shadow(0 0 6px rgba(255, 236, 205, .9));
}
.sobj.is-active .sobj__ring { stroke-dashoffset: 0; }
.hero--scene:has(.scene-tag:focus-visible) .sobj.is-active .sobj__ring { stroke-width: 3; }

/* свет из окна и пылинки в нём */
.scene__light { mix-blend-mode: screen; animation: scene-breathe 7s ease-in-out infinite alternate; }
.scene__mote {
  fill: rgba(255, 250, 236, .95); filter: drop-shadow(0 0 3px rgba(255, 244, 220, .9));
  animation: mote var(--d, 14s) linear var(--dl, 0s) infinite;
}
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0); }
  15%, 75% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}

/* тёплое пятно света за курсором */
.scene__cursor {
  position: absolute; left: -240px; top: -240px; width: 480px; height: 480px; border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, rgba(255, 226, 180, .45), rgba(255, 226, 180, 0));
  mix-blend-mode: soft-light; pointer-events: none; opacity: 0; transition: opacity .5s ease;
}
.scene__cursor.is-on { opacity: 1; }

.motion-paused .scene__mote, .scene-offscreen .scene__mote { animation-play-state: paused; }
@media (hover: none), (pointer: coarse) { .scene__cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .scene__bg { transition: none; }
  .hero--scene:not(.scene-ready) .scene__bg { opacity: 1; filter: none; scale: 1; }
  .scene__mote, .scene__light { animation: none; }
  .sobj__ring { transition: none; }
  .hero--scene .scene, .hero--scene .scene__nav { transform: none; }
}
/* телефон и вертикальный планшет: карточка под сценой — снова светлая плашка */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .hero--scene .hero__panel { max-width: none; opacity: 1; }
  .scene__shade { background: linear-gradient(180deg, rgba(252, 250, 247, 0) 70%, rgba(252, 250, 247, .9)); }
}

/* запись: пришли с главной с типом встречи — оба подходящих варианта мягко подсвечены.
   Подсказка — только зелёная рамка на белом; выбранный вариант отличается заливкой и двойной рамкой */
.choice__item.is-suggested input:not(:checked) + span { border-color: var(--accent); }

/* кадр клиента: без масштабирования (ни наезда, ни «проявления» из увеличения) — максимум резкости */
.scene__frame, .scene__tags { animation: none; }
.hero--scene:not(.scene-ready) .scene__bg { scale: 1; filter: none; }   /* кадр проявляется только прозрачностью — без размытия */
.scene__bg { image-rendering: auto; }
.scene-is-active .scene__bg, .scene-is-active .scene__amb { filter: none; }   /* резкость комнаты не трогаем */

/* ============================================================
   ТИПОГРАФИКА ПОД НОВЫЙ КАДР (05.10.2026): Manrope вместо Cormorant.
   У Manrope крупнее строчные буквы — заголовки чуть меньше и легче.
   ============================================================ */
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.14; }
h1 { font-size: clamp(2.3rem, 4.7vw, 3.5rem); font-weight: 500; letter-spacing: 0; }   /* Cormorant мельче Manrope при том же кегле */
h2 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); font-weight: 500; }   /* веса 400 у Cormorant нет: рисовался тем же 500 */
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; letter-spacing: -.01em; }
.hero__meta-item b { font-weight: 400; }

/* первый экран: текст по центру над окнами — мебель внизу остаётся свободной для нажатий */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .hero--scene { padding-top: clamp(84px, 11vh, 130px); }
  .hero--scene .hero__inner { display: flex; justify-content: center; }
  .hero--scene .hero__panel { max-width: 880px; margin: 0 auto; text-align: center; }
  .hero--scene .hero__panel .btn-row { justify-content: center; }
  .hero--scene .hero__panel h1 { font-size: clamp(2.3rem, 3.7vw, 3.35rem); margin-bottom: .4em; }
  .hero--scene .hero__sub { max-width: 640px; margin-left: auto; margin-right: auto; }
}
.hero--scene .hero__panel h1, .hero--scene .hero__sub, .hero--scene .eyebrow {
  /* мягкое светлое свечение под буквами — читается поверх веток, без плашки. Широкая часть ореола — фильтром
     видеокарты поверх готового текста, а не в каждой букве: размытие 42 px в буквах при первой отрисовке
     стоило ~50 мс работы видеокарты (рывок обратного пролёта на главную). На вид — то же (отличие < 0,5/255) */
  text-shadow: 0 0 18px rgba(252, 250, 247, .95), 0 0 2px rgba(252, 250, 247, .9);
  filter: drop-shadow(0 0 22px rgba(252, 250, 247, .35));
}
.hero--scene .hero__sub { color: #343B3F; }
/* надпись над заголовком лежит на фото (на компьютере — на стене, на телефоне первая строка — на краю кадра):
   обычный глиняный там даёт ~3:1, темнее глиняный — ≥4.9:1 при том же оттенке. Общий --clay-text не трогаем */
.hero--scene .eyebrow { color: #4E3226; }   /* 19.10.2026: темнее на тон — ≥5:1 на стене и при затемнении тура */
.scene__shade {
  background: radial-gradient(ellipse 52% 40% at 50% 25%, rgba(252, 250, 247, .5), rgba(252, 250, 247, 0) 75%);
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .hero--scene .hero__panel { text-align: center; }
  .hero--scene .hero__panel .btn-row { justify-content: center; }
  .hero--scene .hero__panel h1, .hero--scene .hero__sub, .hero--scene .eyebrow { text-shadow: none; filter: none; }
  /* до 97 % — как было (0 → .8: стол и подписи над ним не бледнеют), последние 3 % — до сплошного фона страницы:
     раньше низ кадра обрывался на .9 видимой полосой, а при прокрутке (--sy) она наезжала на текст */
  .scene__shade { background: linear-gradient(180deg, rgba(252, 250, 247, 0) 72%, rgba(252, 250, 247, .8) 97%, var(--bg)); }
}

/* подпись предмета: плашка со стрелкой точно на центр предмета (05.10.2026) */
.scene-tag {
  align-items: center; text-align: center; gap: 2px; padding: 9px 16px 10px; border-radius: 12px;
  background: rgba(252, 250, 247, .96); box-shadow: 0 8px 26px rgba(30, 28, 25, .18);
  transform: translateY(4px);
}
.scene-tag.is-below { transform: translateY(-4px); }
.scene-tag.is-active, .scene-tag:focus-visible { transform: none; }
.scene-tag::after {
  content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px;
  margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 2px;
  box-shadow: 3px 3px 6px rgba(30, 28, 25, .06);
}
.scene-tag.is-below::after { bottom: auto; top: -6px; box-shadow: -3px -3px 6px rgba(30, 28, 25, .04); }
.scene-tag__name {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay-text); line-height: 1.2;
}
.scene-tag__act { font-family: var(--font-serif); font-size: .98rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.scene-tag__act::after, .scene-tag__short::after { content: " →"; color: var(--accent); }
.scene-tag:hover .scene-tag__act { text-decoration: none; color: var(--accent-dark); }
/* точка-метка остаётся видна и при наведении — на неё смотрит стрелка */
.sobj.is-active .sobj__dot { opacity: 1; }
.sobj.is-active .sobj__dot-ring { animation: none; opacity: 0; }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .scene-tag { flex-direction: row; gap: 6px; padding: 7px 12px; }
  .scene-tag__name { font-size: .7rem; letter-spacing: .1em; }   /* ~11px — читается на телефоне; разрядка чуть уже, чтобы плашка не раздувалась */
  .scene-tag__name::after { content: ""; }
  .scene-tag__short { font-family: var(--font-serif); font-size: .86rem; font-weight: 500; color: var(--ink); }
}
@media (hover: none), (pointer: coarse) { .sobj__dot { display: inline; } }   /* на телефоне стрелка тоже смотрит на точку */
/* заголовок первого экрана: перенос по смыслу — две строки на компьютере */
.br-wide { display: none; }
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .br-wide { display: inline; }
  .hero--scene .hero__panel { max-width: 1040px; }
  .hero--scene .hero__panel h1 { font-size: clamp(2.2rem, 3.4vw, 3.15rem); }
}

/* ============================================================
   «ОБО МНЕ»: шапка на фоне фото (05.10.2026)
   Фото во всю ширину; текст слева на светлом окне, портрет справа на шторе;
   кресло, торшер и диван — внизу кадра. Нижний край плавно уходит в фон страницы.
   ============================================================ */
.page-head--photo { position: relative; isolation: isolate; overflow: hidden; border-bottom: 0; }
.page-head__bg { position: absolute; inset: 0; z-index: -1; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.page-head__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 22% 34%, rgba(252, 250, 247, .62), rgba(252, 250, 247, 0) 72%),
    linear-gradient(180deg, rgba(252, 250, 247, 0) 78%, var(--bg) 100%);
}
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .page-head--photo { min-height: min(88vh, 900px); padding-top: clamp(56px, 8vh, 96px); }
  .page-head--photo .hero__grid { align-items: start; }
  /* портрет — небольшой, на ровном фоне шторы, не заходит на диван и фикус */
  .page-head--photo .portrait-frame { max-width: 330px; margin-left: auto; margin-right: 7%; margin-top: 64px; }
  .page-head--photo h1, .page-head--photo .lede, .page-head--photo .breadcrumbs {
    /* как у главной: широкая часть ореола — фильтром поверх готового текста (дешевле первой отрисовки) */
    text-shadow: 0 0 18px rgba(252, 250, 247, .95), 0 0 2px rgba(252, 250, 247, .9);
    filter: drop-shadow(0 0 22px rgba(252, 250, 247, .35));
  }
  .page-head--photo .lede { color: #343B3F; max-width: 34em; }
  /* мелкие крошки над светлой рамой окна и листвой: серый --ink-faint там ниже 4.5:1 — темнее, как лид */
  .page-head--photo .breadcrumbs, .page-head--photo .breadcrumbs a { color: #343B3F; }
  .page-head--photo .breadcrumbs a:hover { color: var(--accent-dark); }
}
/* телефон и вертикальный планшет: фото сверху, текст под ним на фоне страницы */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .page-head--photo { padding-top: calc(52svh + 24px); }
  .page-head__bg { bottom: auto; height: 52svh; }
  .page-head__bg img { object-position: 55% 70%; }   /* = mobileFocal в ABOUT_SCENE: видны кресло, торшер, фикус и край дивана */
  .page-head__bg::after { background: linear-gradient(180deg, rgba(252, 250, 247, 0) 70%, var(--bg) 100%); }
}

/* ============================================================
   ФОТО БЕЗ АНИМАЦИЙ (05.10.2026): портрет не «выезжает» из-под шторки,
   не приближается при появлении и при наведении.
   ============================================================ */
.portrait::after { display: none !important; }
.portrait img, .portrait.is-shown img, .portrait-frame:hover .portrait img { transform: none !important; transition: none !important; }
.portrait { will-change: auto; }

/* ============================================================
   РАМКИ ПОРТРЕТА — варианты (выбор клиента; класс на .portrait-frame)
     --mat   паспарту: светлое поле и тонкая линия, как фото в раме на стене
     --line  тонкая линия-контур со сдвигом
     --soft  мягкий прямоугольник с тенью, без украшений
     --arch  чистая арка с белым кантом
   ============================================================ */
.portrait-frame[class*="portrait-frame--"]::before { display: none; }
.portrait-frame[class*="portrait-frame--"] .portrait { aspect-ratio: 4 / 5; }

.portrait-frame--mat { padding: 14px; background: #FBF9F5; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(60, 50, 40, .12), 0 18px 40px rgba(40, 30, 20, .16); }
.portrait-frame--mat .portrait { border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

.portrait-frame--line { padding: 0; }
.portrait-frame--line .portrait { border-radius: 6px; box-shadow: 0 14px 34px rgba(40, 30, 20, .16); }
.portrait-frame--line::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: 0;
  border: 1.5px solid rgba(255, 253, 248, .95); border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(60, 50, 40, .08); }

.portrait-frame--soft .portrait { border-radius: 20px; box-shadow: 0 20px 48px rgba(40, 30, 20, .18); }

.portrait-frame--arch .portrait { border-radius: 999px 999px 14px 14px; border: 6px solid #FBF9F5;
  box-shadow: 0 16px 40px rgba(40, 30, 20, .18); }

/* --glow: без рамки — мягкое светлое свечение вокруг фото, чтобы оно не сливалось с фоном
   (выбор клиента, 05.10.2026; стоит на портретах главной и «Обо мне») */
.portrait-frame--glow .portrait {
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 253, 248, .55),
    0 0 26px 6px rgba(255, 250, 240, .75),
    0 0 70px 22px rgba(255, 247, 232, .5),
    0 24px 50px rgba(40, 30, 20, .14);
}
/* свечение шире и пастельного шалфейного тона — заметнее на бежевой шторе (05.10.2026) */
.portrait-frame--glow .portrait {
  box-shadow:
    0 0 0 1px rgba(214, 232, 218, .7),
    0 0 34px 12px rgba(196, 222, 204, .85),
    0 0 90px 40px rgba(186, 214, 196, .55),
    0 0 160px 70px rgba(190, 216, 200, .28),
    0 24px 50px rgba(40, 30, 20, .12);
}
/* в карточке приветствия свечение компактнее — не выходит за край карточки */
.greeting__photo.portrait-frame--glow .portrait {
  box-shadow:
    0 0 0 1px rgba(214, 232, 218, .7),
    0 0 28px 10px rgba(196, 222, 204, .8),
    0 0 60px 22px rgba(186, 214, 196, .45),
    0 20px 40px rgba(40, 30, 20, .1);
}

/* ============================================================
   ПОРТРЕТ: фото плавно растворяется в тёплом бежевом свечении (05.10.2026)
   Края фото уходят в прозрачность (маска), под фото — мягкое бежевое
   пятно света; без рамки и без чёткой границы.
   ============================================================ */
.portrait-frame--glow { position: relative; isolation: isolate; }
.portrait-frame--glow::before {
  display: block !important; content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -16% -20%; opacity: 1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(247, 236, 219, 1) 0%, rgba(243, 229, 208, .92) 42%, rgba(238, 222, 198, .55) 62%, rgba(236, 220, 196, 0) 80%);
  border-radius: 50%; filter: blur(10px);
}
.portrait-frame--glow .portrait,
.greeting__photo.portrait-frame--glow .portrait {
  position: relative; z-index: 1; border-radius: 0; box-shadow: none; background: transparent;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-composite: intersect;
}
/* свет шире фото и плотный у его краёв — фото перетекает в бежевое свечение */
.portrait-frame--glow::before {
  inset: -30% -46%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(246, 235, 217, .98) 0%, rgba(244, 231, 211, .96) 58%,
    rgba(240, 225, 202, .62) 76%, rgba(236, 220, 196, .22) 90%, rgba(236, 220, 196, 0) 100%);
  filter: blur(14px);
}
.greeting__photo.portrait-frame--glow::before { inset: -18% -26%; }
/* края фото сначала светлеют в тот же бежевый, потом растворяются — без грязной полосы на стыке */
.portrait-frame--glow .portrait::after {
  display: block !important; content: ""; position: absolute; inset: 0; z-index: 2;
  transform: none !important; transition: none !important; pointer-events: none;
  background: radial-gradient(ellipse 58% 56% at 50% 44%,
    rgba(244, 231, 211, 0) 58%, rgba(244, 231, 211, .55) 80%, rgba(244, 231, 211, .95) 100%);
}

/* ============================================================
   ПОРТРЕТ, итог (05.10.2026): фото целиком, с чёткой, но максимально мягкой границей.
   Без маски-растворения. Бежевый свет начинается прямо от края фото,
   по самой кромке — тонкий светлый переход в несколько пикселей.
   ============================================================ */
.portrait-frame--glow .portrait,
.greeting__photo.portrait-frame--glow .portrait {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 18px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(246, 235, 217, .7),
    0 0 14px 3px rgba(246, 235, 217, .95),
    0 0 40px 12px rgba(242, 228, 206, .8),
    0 0 90px 30px rgba(238, 222, 198, .45);
}
.portrait-frame--glow .portrait::after {
  background: none;
  border-radius: inherit;
  box-shadow: inset 0 0 10px 1px rgba(246, 235, 217, .55);   /* мягкая кромка внутрь — 5–10 px, лица и рук не касается */
}
.portrait-frame--glow::before {
  inset: -14% -18%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(244, 231, 211, .9) 0%, rgba(242, 228, 206, .75) 60%, rgba(238, 222, 198, .3) 85%, rgba(236, 220, 196, 0) 100%);
  filter: blur(18px);
}
.greeting__photo.portrait-frame--glow::before { inset: -10% -12%; }
.greeting__photo.portrait-frame--glow .portrait {
  box-shadow:
    0 0 0 1px rgba(246, 235, 217, .7),
    0 0 12px 3px rgba(246, 235, 217, .95),
    0 0 34px 10px rgba(242, 228, 206, .75),
    0 0 64px 20px rgba(238, 222, 198, .4);
}
/* подсветка портрета — белая (05.10.2026, проба по просьбе клиента; прежний бежевый — блок выше) */
.portrait-frame--glow .portrait,
.greeting__photo.portrait-frame--glow .portrait {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .75),
    0 0 14px 3px rgba(255, 255, 255, .95),
    0 0 40px 12px rgba(255, 255, 255, .8),
    0 0 90px 30px rgba(255, 255, 255, .5);
}
.greeting__photo.portrait-frame--glow .portrait {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .75),
    0 0 12px 3px rgba(255, 255, 255, .95),
    0 0 34px 10px rgba(255, 255, 255, .8),
    0 0 64px 20px rgba(255, 255, 255, .45),
    0 18px 40px rgba(40, 30, 20, .10);   /* на белой карточке белый свет не виден — лёгкая тень отделяет фото */
}
.portrait-frame--glow .portrait::after { box-shadow: inset 0 0 10px 1px rgba(255, 255, 255, .5); }
.portrait-frame--glow::before {
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .7) 60%, rgba(255, 255, 255, .28) 85%, rgba(255, 255, 255, 0) 100%);
}

/* волна на кнопке проходит до самых краёв: размер считается от ширины кнопки,
   старт — из точки, где вошёл курсор (motion.js → waves) */
.btn::before {
  width: 0; height: auto; aspect-ratio: 1;
  transition: width .65s cubic-bezier(.33, 1, .68, 1), opacity .4s var(--ease);
}
.btn:hover::before { width: calc(240% + 60px); height: auto; }
@media (prefers-reduced-motion: reduce) { .btn:hover::before { width: 0; } }
/* волна на кнопках — плавнее (05.10.2026): медленнее расходится, мягко проявляется и гаснет */
.btn::before {
  opacity: 0;
  transition: width 1.2s cubic-bezier(.22, .61, .36, 1), opacity .7s ease;
}
.btn:hover::before { width: calc(210% + 40px); opacity: .12; }
.btn--primary:hover::before { opacity: .16; }
.btn:not(:hover)::before { transition: width .6s ease, opacity .45s ease; }
@media (prefers-reduced-motion: reduce) { .btn:hover::before { width: 0; } }
/* волна: мягкий край (световое пятно, а не круг) и плавный старт; цвет кнопки меняется не рывком */
.btn::before, .btn--primary::before {
  background: radial-gradient(circle closest-side, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, 0) 100%);
}
.btn--ghost::before { background: radial-gradient(circle closest-side, rgba(61, 106, 92, .9) 0%, rgba(61, 106, 92, .6) 45%, rgba(61, 106, 92, 0) 100%); }
.btn::before { transition: width 1.5s cubic-bezier(.45, .05, .3, 1), opacity .9s ease; }
.btn:hover::before { width: calc(320% + 80px); opacity: .14; }
.btn--primary:hover::before { opacity: .2; }
.btn--ghost:hover::before { opacity: .1; }
.btn:not(:hover)::before { transition: width .8s ease, opacity .6s ease; }
.btn { transition: background-color .7s ease, color .4s ease, border-color .5s ease, box-shadow .6s ease; }
@media (prefers-reduced-motion: reduce) { .btn:hover::before { width: 0; } }
/* цитата «Слон или жираф»: кавычкам своё место над текстом (после смены шрифта на Manrope они легли на текст) */
.pull-quote { padding-top: clamp(94px, 9vw, 114px); }
.pull-quote::before { top: 14px; left: clamp(26px, 4vw, 44px); font-size: 5.2rem; line-height: 1; }
/* кавычки — отдельной строкой над текстом, с постоянным промежутком при любой ширине окна */
.pull-quote { padding-top: clamp(32px, 5vw, 52px); }
.pull-quote::before {
  position: static; display: block; height: .5em; margin: 0 0 44px;
  font-size: 4.6rem; line-height: 1; opacity: .55;
}
/* кавычки чуть крупнее и чуть выше, промежуток до текста сохранён */
.pull-quote::before { font-size: 5.4rem; margin: -30px 0 58px; }

/* ============================================================
   НАВЕДЕНИЕ НА КАРТОЧКИ (06.10.2026)
   Карточка мягко приподнимается и чуть «раскрывается», тень становится глубже,
   рамка тепло подсвечивается, внутри за курсором идёт мягкий свет, иконка
   подаётся вперёд. Всё плавно и обратимо; без движения — при «уменьшить движение».
   ============================================================ */
.card, .price, .group-card {
  position: relative; isolation: isolate;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), box-shadow .6s cubic-bezier(.22, .61, .36, 1),
              border-color .5s ease, background-color .5s ease, opacity .75s var(--ease);
}
.card::after, .price::after, .group-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 0%), rgba(240, 226, 204, .55), rgba(240, 226, 204, 0) 70%);
  opacity: 0; transition: opacity .6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .price:hover, .group-card:hover {
    transform: translateY(-8px) scale(1.018);
    border-color: rgba(176, 122, 94, .35);
    box-shadow: 0 2px 4px rgba(60, 50, 40, .04), 0 26px 60px rgba(60, 50, 40, .13);
  }
  .card:hover::after, .price:hover::after, .group-card:hover::after { opacity: 1; }
  .card .ico { transition: transform .6s cubic-bezier(.22, .61, .36, 1), background-color .5s ease; }
  .card:hover .ico { transform: translateY(-3px) scale(1.08); background: #E6EFE8; }
  .card h3 { transition: color .4s ease; }
  .card--link:hover h3 { color: var(--accent-dark); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .price:hover, .group-card:hover { transform: none; }
  .card:hover .ico { transform: none; }
}

/* без светового пятна за курсором на карточках (06.10.2026) — подъём, тень и рамка остаются */
.card::after, .price::after, .group-card::after { content: none; }

/* ============================================================
   ПОЛОСКА ТЕКУЩЕГО РАЗДЕЛА В МЕНЮ (06.10.2026): на старом пункте
   сжимается к центру, на новом — раскрывается из центра, чуть позже.
   ============================================================ */
@media (min-width: 1041px) {
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; border-radius: 2px;
    background: var(--clay); transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform .38s cubic-bezier(.65, 0, .35, 1);
  }
  .nav a[aria-current]::after {
    transform: scaleX(1);
    transition: transform .6s cubic-bezier(.22, .61, .36, 1) .26s;
  }
  .nav a:not([aria-current]):hover::after { transform: scaleX(.35); transition-delay: 0s; opacity: .6; }
}
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none !important; } }
/* «Познакомиться» на первом экране: матовое белое стекло, чтобы не терялась на фото (06.10.2026) */
.hero--scene .btn--ghost {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  border-color: rgba(255, 255, 255, .85); color: var(--ink);
  box-shadow: 0 4px 18px rgba(40, 30, 20, .08);
}
.hero--scene .btn--ghost:hover {
  background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .95); color: var(--accent-dark);
  box-shadow: 0 8px 26px rgba(40, 30, 20, .12);
}
/* «Познакомиться»: заливка плотнее — не сливается с окнами */
.hero--scene .btn--ghost { background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .95); box-shadow: 0 6px 22px rgba(40, 30, 20, .12); }
.hero--scene .btn--ghost:hover { background: rgba(255, 255, 255, .92); }

/* блок проекта Ольги над статьями (articles.html) */
.project__card {
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid rgba(61, 106, 92, .14);
}
.project__title { margin: .3em 0 .4em; }
.project__text { max-width: 62ch; color: var(--ink-soft); }

/* ============================================================
   ВИДЕОПЕРЕХОД «ПО КОМНАТЕ» (06.10.2026): главная → «Обо мне»
   assets/js/room-move.js. Видеослой живёт в <body> под шапкой и над страницей;
   его место и размер считает скрипт — так, чтобы кадры совпали с фото.
   ============================================================ */
.room-move { position: fixed; z-index: 55; overflow: hidden; }
.room-move[hidden] { display: none; }
/* источник кадров для холста (видны кадры на холсте в шапке). Совсем невидимое видео браузер считает неважным
   и пропускает кадры; видимое хоть чуть-чуть — нет: 4×3 px в углу окна с прозрачностью 1% */
/* фото цели — заранее невидимым слоем (room-move.js → prewarm), чтобы видеокарта приготовила его до нажатия */
.room-move__pre { position: fixed; z-index: -1; opacity: .001; pointer-events: none; will-change: opacity; max-width: none; }
/* маячок «кадр выведен» (room-move.js → shown): 2×2 px в углу, невидим; живёт доли секунды */
.room-move__probe { position: fixed; right: 0; bottom: 0; width: 2px; height: 2px; background: #000; opacity: .001; pointer-events: none; }
.room-move__video {
  position: fixed; right: 0; bottom: 0; width: 4px; height: 3px; z-index: 2147483000;
  opacity: .01; pointer-events: none; object-fit: fill;
}
.room-move.is-out { opacity: 0; transition: opacity var(--room-out, 240ms) ease; pointer-events: none; }
.room-move__floor {                         /* фон страницы под шапкой цели (заходит на 2 px под её край — без щели) */
  position: absolute; left: 0; right: 0; bottom: 0; top: 100%;
  background: linear-gradient(180deg, rgba(252, 250, 247, 0) 0, var(--bg) 2px, var(--bg) 100%);
  opacity: 0; transition: opacity .9s cubic-bezier(.22, .61, .36, 1);
}
.room-move.is-floor .room-move__floor { opacity: 1; }
/* «Пропустить» — только для клавиатуры: появляется при фокусе */
.room-move__skip {
  position: fixed; z-index: 58; right: 20px; bottom: 20px;
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  background: rgba(252, 250, 247, .9); color: var(--ink);
  font: 500 .85rem/1.2 var(--font-sans, Inter, sans-serif); cursor: pointer;
  opacity: 0; pointer-events: none;
}
.room-move__skip[hidden] { display: none; }
.room-move__skip:focus-visible { opacity: 1; pointer-events: auto; outline: 3px solid var(--accent); outline-offset: 3px; }

/* холст ролика — в том же слое, что и фото (под приглушением, подсветкой и метками); в покое невидим
   (фон — качественное фото), по нажатию проявляется уже на ходу: кадр и фото совпадают, виден лишь
   мягкий переход резкости. Слой у него есть заранее (will-change) */
.scene__video {
  position: absolute; max-width: none; pointer-events: none;
  opacity: 0; transition: opacity var(--hero-fade, 120ms) linear; will-change: opacity;
}
.scene__video.is-on { opacity: 1; }
/* слои для анимаций выхода есть с первой отрисовки (на компьютере): иначе в момент нажатия видеокарта
   разом растрирует ~15 новых слоёв (текст, подписи, дымка, свет, SVG) и роняет кадры первые полсекунды —
   по замеру в настоящем окне 40 пропущенных кадров из 142 против 0–1 с готовыми слоями. Сразу, а не когда
   подгрузится ролик: перевод готового текста в отдельный слой заметен как лёгкое «мерцание» букв */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .hero--scene .hero__panel > *, :is(.hero--scene, .page-head--scene) :is(.scene__tags, .scene__shade, .scene__cursor, .scene__dim, .scene__svg, .scene__motion),
  .hero--scene .hero__down, .page-head--scene [data-scene-panel] > *, .page-head--scene .breadcrumbs, .page-head--scene .page-head__bg::after { will-change: opacity, transform; }
}
/* нажатие: ролик играет на месте. Эффекты (свет окна, пылинки, светлая дымка за текстом,
   свет у курсора, приглушение комнаты) в момент старта остаются как есть — иначе меняется цвет —
   и медленно растворяются уже на ходу (привязаны к кадру главной: к концу пролёта висели бы мимо).
   Весь SVG-слой (свет, пылинки, точки) гаснет одной композитной анимацией прозрачности, а живые детали
   (пылинки, дыхание света, пульс колец у точек) на время пролёта замораживаются: их движение за доли
   секунды незаметно, а каждый их шаг перерисовывал плитки слоя (со светом и его смешиванием) заново
   поверх обновляющегося кадра — по трассировке ~5 плиток на кадр, видеокарта не успевала (рывки 50–67 мс).
   Подсветка кресла и колыхание листьев — копии неподвижного фото — убираются сразу по нажатию
   (кадр ещё совпадает с фото; на едущем кадре они оставили бы «тень» прежнего фото), и убираются
   через visibility: их SVG-фильтры больше не считаются вовсе. Метки и подписи — своей анимацией
   без размытия и матового стекла: только opacity и transform — чистый композитинг (слои готовы заранее,
   см. блок про will-change выше). Текст — по очереди, тоже только opacity и transform. */
.room-playing .hero__inner, .room-playing .hero__panel, .room-playing .wrap { pointer-events: none; }
/* обратный пролёт из шапки «Обо мне»: её светлая вуаль остаётся эффектом верхнего слоя и уходит на ходу;
   секции ниже шапки прячутся сразу, а шапке разрешаем выход за край — ролик покрывает весь экран (как главная) */
.page-head--scene.room-playing .page-head__bg::after { opacity: 0 !important; transition: opacity 1.3s ease .45s !important; }
.page-head--scene.room-playing, .page-head--scene.room-tall { overflow: visible; }
/* шапка продлена до низа окна (room-move.js), а вуаль остаётся своей высоты — как была до нажатия */
/* высота вуали всегда задана явно: в покое — 100 %, в пролёте — прежняя высота шапки (--head-h ставится в кадре
   нажатия равной текущей). Значение не меняется, поэтому слой вуали не перерисовывается и при продлении фото */
.page-head--scene .page-head__bg::after { bottom: auto; height: var(--head-h, 100%); }
/* обратный пролёт из «Обо мне» (17.10.2026): вуаль шапки не трогаем вовсе — она уходит как обычно (room-playing).
   Полоса ниже шапки, куда продлевается фото (до низа окна), закрыта слоем цвета фона страницы: он стоит с кадра
   нажатия поверх того же фона, а фото продлевается через два кадра, когда слой уже нарисован (room-move.js).
   Растворяется вместе с вуалью — та же длительность и задержка, без шва. Прежние варианты меняли вуаль или
   переставляли слои в кадре нажатия, и Chrome показывал кадр с тёмным низом (стенд в настоящем окне: 2 из 5) */
.room-tall__floor {
  position: absolute; left: 0; right: 0; pointer-events: none; will-change: opacity;
  background: var(--bg);
  animation: room-floor-out 1.3s ease .45s both;
}
@keyframes room-floor-out { from { opacity: 1; } to { opacity: 0; } }
/* текст страницы под шапкой уходит чуть быстрее фона — сначала остаётся чистый фон, потом открывается видео */
main:has(> .page-head--scene.room-playing) > :not(.page-head--scene) {
  opacity: 0; pointer-events: none; transition: opacity .45s cubic-bezier(.4, 0, .2, 1);
}
.room-playing .sobj .sobj__lift, .room-playing .scene__sway { visibility: hidden !important; }
.room-playing .scene__light, .room-playing .sobj__dot-ring { animation-play-state: paused !important; }
/* пылинки — сразу: замороженные, они оставались неподвижными точками на едущем кадре */
.room-playing .scene__mote { visibility: hidden; }
.room-playing .scene__svg { opacity: 0; visibility: hidden; transition: opacity 1.3s ease .45s, visibility 0s linear 1.75s; }
.room-playing .scene__shade, .room-playing .scene__cursor {
  opacity: 0 !important; transition: opacity 1.3s ease .45s !important;
}
.room-playing .scene__dim { opacity: 0 !important; transition: opacity 1.3s ease .35s !important; }
.room-playing .sobj .sobj__dot { opacity: 0 !important; transition: opacity .34s ease .04s !important; }
.room-playing .scene__tags { animation: room-marks-out .34s cubic-bezier(.4, 0, .2, 1) .04s both; }
.room-playing .scene-tag { -webkit-backdrop-filter: none; backdrop-filter: none; }
.room-playing .scene__motion, .room-playing .hero__down {
  opacity: 0 !important; transition: opacity .25s ease !important; pointer-events: none !important;
}
.room-playing .hero__panel > * { animation: room-text-out .62s cubic-bezier(.4, 0, .2, 1) both; }
.room-playing .hero__panel > :nth-child(2) { animation-delay: .04s; }
.room-playing .hero__panel > :nth-child(3) { animation-delay: .08s; }
.room-playing .hero__panel > :nth-child(4) { animation-delay: .12s; }
.room-playing .hero__panel > :nth-child(n+5) { animation-delay: .16s; }
.room-playing [data-scene-panel] > *, .room-playing .breadcrumbs { animation: room-text-out .62s cubic-bezier(.4, 0, .2, 1) both; }
.room-playing [data-scene-panel] > :nth-child(2) { animation-delay: .04s; }
.room-playing [data-scene-panel] > :nth-child(3) { animation-delay: .08s; }
.room-playing [data-scene-panel] > :nth-child(n+4) { animation-delay: .12s; }
@keyframes room-text-out { to { opacity: 0; transform: translateY(-16px); } }
/* размытие под текстом шапки уходит вместе с текстом: иначе белёсое пятно с размытием висело над едущим
   кадром весь полёт, а видеокарта пересчитывала размытие (46 px) на каждом кадре (12.10.2026) */
.room-playing .hero__panel::before, .room-playing [data-scene-panel]::before {
  opacity: 0 !important; visibility: hidden; transition: opacity .5s cubic-bezier(.4, 0, .2, 1) .04s, visibility 0s linear .54s !important;
}
@keyframes room-marks-out { to { opacity: 0; transform: translateY(5px) scale(.985); } }
/* «Обо мне» над роликом: страница выше видеослоя, её фото скрыто — виден едущий кадр.
   Пока камера ещё движется, проявляются текст, портрет и светлая вуаль (room-reveal);
   когда остановилась — под ними встаёт статичное фото (room-landed). */
main.room-arriving { position: relative; z-index: 56; }
/* после посадки страница остаётся отдельным слоем с тем же порядком: уход главной из-под неё и снятие
   служебных классов не перестраивают отрисовку (иначе — один пустой белый кадр) */
main.room-done { position: relative; z-index: 56; }
main.room-done .page-head--scene .page-head__bg, main.room-done .hero--scene .scene { background: transparent; }
/* всё, что проявляется во время пролёта и при посадке, остаётся слоями и после: когда переход прозрачности
   заканчивается и слой «разжалуется», браузер перерисовывает его заново — один кадр остаётся пустым
   (белый блик через полсекунды после посадки: 2,82 с — конец проявления фото, 3,42 с — сцены) */
main.room-arriving .page-head__bg img, main.room-done .page-head__bg img,
main.room-arriving .page-head--photo [data-scene-panel]::before, main.room-done .page-head--photo [data-scene-panel]::before,
main.room-arriving .page-head__bg::after, main.room-done .page-head__bg::after,
main.room-arriving > :not(.page-head--photo),
main.room-arriving .page-head--scene .scene__svg, main.room-done .page-head--scene .scene__svg,
main.room-arriving .page-head--scene .scene__nav, main.room-done .page-head--scene .scene__nav,
main.room-arriving .hero--scene .scene__bg, main.room-done .hero--scene .scene__bg,
main.room-arriving .hero--scene .hero__panel::before, main.room-done .hero--scene .hero__panel::before,
main.room-arriving .hero--scene .scene__shade, main.room-done .hero--scene .scene__shade,
main.room-arriving > :not(.hero--scene),
main.room-arriving .hero--scene .scene__svg, main.room-done .hero--scene .scene__svg,
main.room-arriving .hero--scene .scene__nav, main.room-done .hero--scene .scene__nav { will-change: opacity, transform; }
/* невидимое — с opacity .001, а не 0: слои рисуются уже при подкладывании страницы (до старта ролика),
   а не в момент проявления посреди движения */
main.room-arriving .page-head__bg img { opacity: .001; }
main.room-arriving.room-landed .page-head__bg img { opacity: 1; transition: opacity var(--room-land, 320ms) ease; }
/* текст цели и размытие под ним проявляются каждый сам, а не через общего предка: прозрачность (или will-change)
   предка отрезает размытие от фото — во время проявления под текстом был только белёсый тон, размытие
   появлялось рывком в конце, а после посадки (will-change оставался) его не было вовсе (12.10.2026) */
main.room-arriving .page-head--photo [data-scene-panel] > *, main.room-arriving .page-head--photo [data-scene-panel]::before,
main.room-arriving > :not(.page-head--photo),
main.room-arriving .page-head__bg::after { opacity: .001; pointer-events: none; }
main.room-arriving .page-head--photo [data-scene-panel] > * { transform: translateY(14px); }
main.room-arriving[data-room-route="to-about"] .page-head--photo [data-scene-panel] > * { transform: translateY(8px); }
main.room-reveal .page-head--photo [data-scene-panel] > *, main.room-reveal .page-head--photo [data-scene-panel]::before,
main.room-reveal > :not(.page-head--photo),
main.room-reveal .page-head__bg::after {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform 1s cubic-bezier(.22, .61, .36, 1);
}
/* секции ниже шапки только проявляются (без сдвига): меньше слоёв в движении */
main.room-reveal[data-room-route="to-about"] .page-head--photo [data-scene-panel] > * {
  transform: none;
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
main.room-reveal > :not(.page-head--photo) { transition: opacity .9s cubic-bezier(.22, .61, .36, 1); }
/* главная как цель обратного пролёта — те же правила для её первого экрана */
main.room-arriving .hero--scene .scene { background: transparent; }
main.room-arriving .hero--scene .scene__bg { opacity: .001; }
main.room-arriving.room-landed .hero--scene .scene__bg { opacity: 1; transition: opacity var(--room-land, 320ms) ease; }
main.room-arriving .hero--scene .hero__panel > *, main.room-arriving .hero--scene .hero__panel::before, main.room-arriving .hero--scene .scene__shade,
main.room-arriving > :not(.hero--scene) { opacity: .001; pointer-events: none; }
main.room-arriving .hero--scene .hero__panel > * { transform: translateY(14px); }
main.room-reveal .hero--scene .hero__panel > *, main.room-reveal .hero--scene .hero__panel::before, main.room-reveal .hero--scene .scene__shade, main.room-reveal > :not(.hero--scene) {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform 1s cubic-bezier(.22, .61, .36, 1);
}
main.room-reveal > :not(.hero--scene) { transition: opacity .9s cubic-bezier(.22, .61, .36, 1); }
main.room-arriving .hero--scene .scene__svg, main.room-arriving .hero--scene .scene__nav,
main.room-arriving .hero--scene .scene__motion, main.room-arriving .hero--scene .hero__down { opacity: 0; visibility: hidden; pointer-events: none; }
main.room-arriving.room-landed .hero--scene .scene__svg, main.room-arriving.room-landed .hero--scene .scene__nav,
main.room-arriving.room-landed .hero--scene .scene__motion, main.room-arriving.room-landed .hero--scene .hero__down { opacity: 1; visibility: visible; transition: opacity .6s ease var(--room-land, 320ms), visibility 0s; }
main.room-arriving .hero--scene:not(.scene-ready) .scene__bg { opacity: .001; }

/* ============================================================
   «ОБО МНЕ»: интерактивная шапка (06.10.2026). Портрета нет; предметы кабинета —
   входы в разделы этой страницы (ABOUT_SCENE в hero-scene.config.js, тот же движок,
   что у главной). Фото — по-прежнему .page-head__bg img (на него опирается видеопереход).
   ============================================================ */
.page-head--scene .wrap { position: relative; z-index: 1; pointer-events: none; }   /* пустые поля текста не перехватывают наведение */
/* абажур торшера стоит за заголовком и текстом — наведение проходит сквозь текст, ссылки и кнопки нажимаются как обычно */
.page-head--scene .wrap :is(a, button) { pointer-events: auto; }
.page-head--scene .page-head__bg::after { pointer-events: none; }
.page-head--scene:not(.scene-ready) .scene__svg, .page-head--scene:not(.scene-ready) .scene__tags { opacity: 0; }
/* фото шапки проявляется целиком, как кадр главной (общий переход прозрачности у .scene__bg), — без построчной
   прорисовки на медленной сети. Не при видеопереходе: там фото ведут свои правила (room-arriving / room-done) */
main:where(:not(.room-arriving):not(.room-done)) .page-head--scene:not(.scene-ready) .scene__bg { opacity: 0; }
@media (prefers-reduced-motion: reduce) { main .page-head--scene:not(.scene-ready) .scene__bg { opacity: 1; } }
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .page-head--scene .scene__nav { bottom: auto; height: 52svh; }
}
/* раздел, к которому привёл предмет: его главный (первый) заголовок на миг окрашивается акцентом —
   класс ставится, когда прокрутка уже остановилась (hero-scene.js, arrived); «Супервизия» в #group не вспыхивает */
.is-arrived h2:first-of-type { animation: section-arrived 2.4s ease; }
@keyframes section-arrived { 0%, 100% { color: inherit; } 18%, 55% { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .is-arrived h2:first-of-type { animation: none; } }
/* видеопереход с главной: пока едет ролик, предметы и подписи сцены скрыты,
   появляются вместе со статичным фото страницы */
main.room-arriving .page-head--scene .scene__svg,
main.room-arriving .page-head--scene .scene__nav,
main.room-arriving .page-head--scene .scene__motion { opacity: 0; visibility: hidden; pointer-events: none; }   /* visibility: SVG-фильтры сцены не считаются, пока едет ролик */
main.room-arriving.room-landed .page-head--scene .scene__svg,
main.room-arriving.room-landed .page-head--scene .scene__nav,
main.room-arriving.room-landed .page-head--scene .scene__motion { opacity: 1; visibility: visible; transition: opacity .6s ease var(--room-land, 320ms), visibility 0s; }
main.room-arriving .page-head--scene .wrap, main.room-reveal .page-head--scene .wrap { pointer-events: none; }
/* пока текст «Обо мне» ещё не проявился, ничто на странице не должно ловить нажатия
   (клик «пропустить» попадал в невидимые ссылки и кнопки) */
main.room-arriving:not(.room-reveal) * { pointer-events: none !important; }
/* у контейнера сцены сплошной фон-подложка (.scene) — во время ролика он закрыл бы видео */
main.room-arriving .page-head--scene .page-head__bg { background: transparent; }

/* ============================================================
   Шапки-сцены «Статьи», «Услуги», «Запись» (08.10.2026): фото почти без засветления —
   только мягкий уход в фон снизу и едва заметный ореол под текстом (просьба владельца 08.10).
   ============================================================ */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .page-head--veil .page-head__bg::after {
    background:
      radial-gradient(ellipse 34% 30% at 20% 26%, rgba(252, 250, 247, .32), rgba(252, 250, 247, 0) 80%),
      linear-gradient(180deg, rgba(252, 250, 247, 0) 82%, var(--bg) 100%);
  }
  .page-head--veil .lede { max-width: 30em; }
}

/* «Запись» (08.10.2026): невысокая шапка-полоса с фото кабинета — кресло или диван по формату */
.page-head--strip .page-head__bg img { position: absolute; inset: 0; object-position: 50% 64%; transition: opacity .6s ease; }
.page-head--strip .page-head__bg .page-head__alt { object-position: 40% 58%; opacity: 0; }
.page-head--strip.is-couple .page-head__bg .page-head__alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .page-head--strip .page-head__bg img { transition: none; } }
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .page-head--photo.page-head--strip { min-height: clamp(260px, 36vh, 380px); padding-top: clamp(40px, 6vh, 64px); }
}
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px), (orientation: landscape) and (max-height: 500px) {
  .page-head--photo.page-head--strip { padding-top: calc(34svh + 16px); }
  .page-head--strip .page-head__bg { height: 34svh; }
}

/* ============================================================
   ТЕКСТ ШАПОК НА «МАТОВОМ СТЕКЛЕ» (08.10.2026, вариант 2 владельца): светлая полупрозрачная плашка
   с размытием фото под ней. Фото вокруг не засвечивается. Только на компьютере — на телефоне текст под фото.
   Плашки стоят над пустыми местами кадра и не закрывают предметы-кнопки.
   ============================================================ */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  /* без краёв: сильное размытие с лёгким светлым тоном, плавно растворяется в комнате (просьба владельца 08.10) */
  .hero--scene .hero__panel, .page-head--photo [data-scene-panel], .page-head__glass {
    position: relative; isolation: isolate;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; border-radius: 0;
  }
  .hero--scene .hero__panel::before, .page-head--photo [data-scene-panel]::before, .page-head__glass::before {
    /* край растворяется очень постепенно: маска гаснет с 20 % до 100 % радиуса, запас вокруг текста больше —
       иначе читалась «овальная стекляшка» с резкой границей (замечание владельца 09.10) */
    content: ""; position: absolute; inset: -190px -320px; z-index: -1; pointer-events: none;
    background: rgba(252, 250, 247, .4);
    -webkit-backdrop-filter: blur(46px) saturate(1.05); backdrop-filter: blur(46px) saturate(1.05);
    -webkit-mask-image: radial-gradient(closest-side, #000 26%, rgba(0, 0, 0, .78) 46%, rgba(0, 0, 0, .38) 66%, rgba(0, 0, 0, .1) 86%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 26%, rgba(0, 0, 0, .78) 46%, rgba(0, 0, 0, .38) 66%, rgba(0, 0, 0, .1) 86%, transparent 100%);
  }
  .page-head--strip .page-head__glass::before { inset: -120px -280px; }
  /* анимация появления (opacity + transform) делает карточку «корнем» для backdrop-filter — размытие под ней пропадало */
  .hero--scene .hero__panel { animation: none; }
  .page-head--photo [data-scene-panel], .page-head__glass { padding: 26px 34px 30px; width: fit-content; max-width: 34rem; }
  .page-head--photo [data-scene-panel] .lede, .page-head__glass .lede { margin-bottom: 0; }
  .page-head--photo [data-scene-panel] .btn-row { margin-top: 22px !important; }
  .page-head--photo .breadcrumbs { margin-bottom: .9rem; }
  .hero--scene .hero__panel { width: fit-content; max-width: 920px; padding: 26px 40px 30px; }
  /* на стекле свечение под буквами не нужно */
  .hero--scene .hero__panel h1, .hero--scene .hero__sub, .hero--scene .eyebrow,
  .page-head--photo h1, .page-head--photo .lede, .page-head--photo .breadcrumbs { text-shadow: none; filter: none; }
  .page-head--photo .page-head__bg::after { background: linear-gradient(180deg, rgba(252, 250, 247, 0) 82%, var(--bg) 100%); }
  .page-head--strip .page-head__glass { padding: 18px 28px 20px; }
  .page-head--strip .page-head__glass h1 { margin-bottom: .2em; }
}
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .scene__shade { background: none; }   /* под стеклом засветление кадра не нужно */
}
/* шапки страниц: стекло левее и уже — на «Обо мне» абажур и стойка торшера и спинка кресла остаются открытыми,
   на «Статьях» — край полки, на «Услугах» — кресло (проверено по контурам кнопок, 1280–1920 px) */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .page-head--photo [data-scene-panel] {
    max-width: min(27rem, calc(36vw - 40px)); margin-left: calc(-1 * max(0px, (100vw - var(--wrap)) / 2 - 40px));
    padding: 22px 28px 24px;
  }
  .page-head--photo [data-scene-panel] .lede { font-size: 1rem; }
  .page-head--photo [data-scene-panel] h1 { margin-bottom: .3em; }
}
/* невысокие экраны (ноутбуки 1280×800, 1366×768): стекло главной ниже не опускается, иначе закрывает кресла —
   цифры «20+ лет · ОППЛ · 4 формата» прячем, они есть ниже на странице */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px) and (max-height: 860px), (min-width: 1101px) and (min-height: 501px) and (max-height: 860px) {
  .hero--scene .hero__panel .hero__meta { display: none; }
  .hero--scene .hero__panel { padding: 20px 34px 24px; }
  .hero--scene { padding-top: clamp(64px, 9vh, 96px); }
}

/* «Запись»: сообщение об ошибке/успехе под кнопками — с отступом, не вплотную к «Записаться» (08.10.2026) */
.wizard > .form__status.is-error, .wizard > .form__status.is-ok { margin-top: 18px; }
/* размытие под текстом шапок страниц: центр левее (текст выровнен влево), край тает дальше от букв */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .page-head--photo [data-scene-panel]::before, .page-head__glass::before {
    inset: -200px -220px -200px -340px;
    -webkit-mask-image: radial-gradient(closest-side, #000 26%, rgba(0, 0, 0, .78) 46%, rgba(0, 0, 0, .38) 66%, rgba(0, 0, 0, .1) 86%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 26%, rgba(0, 0, 0, .78) 46%, rgba(0, 0, 0, .38) 66%, rgba(0, 0, 0, .1) 86%, transparent 100%);
  }
  .page-head--strip .page-head__glass::before { inset: -130px -220px -130px -340px; }
  .page-head--strip .page-head__glass h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
}
/* главная: при прокрутке карточка тает. Прозрачность самой карточки (opacity < 1) отключала размытие под ней целиком —
   оно пропадало при первом же движении. Теперь тают текст и размытие по отдельности и одинаково, размытие не исчезает рывком */
@media (min-width: 761px) and (orientation: landscape) and (min-height: 501px), (min-width: 1101px) and (min-height: 501px) {
  .hero--scene .hero__panel { opacity: 1; }
  .hero--scene .hero__panel > *, .hero--scene .hero__panel::before { opacity: var(--fade, 1); }
}
/* «Где удобнее получить ответ»: три варианта (WhatsApp, Telegram, СМС) в один ряд, 08.10.2026 */
.choice--row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* на телефоне в плитке ~50 px, а «WhatsApp» ~77 px — слово вылезало за рамку; там варианты столбиком */
@media (max-width: 520px) {
  .choice--row3 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   ГЛАВНАЯ КАК ИСТОРИЯ (09.10.2026, из концепций C и D, выбор владельца):
   фразы-главы, форматы списком-меню, тёмно-зелёная глава «путь» с линией шагов.
   ============================================================ */
/* фраза-глава: слова проявляются при прокрутке (main.js, story); без скрипта — видна целиком */
.statement { padding: clamp(80px, 12vw, 170px) 0 clamp(60px, 9vw, 120px); }
.statement--short { padding-top: clamp(70px, 10vw, 140px); }
.statement__text {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.6rem, 8vw, 8.2rem);
  line-height: .98; letter-spacing: -.02em; color: var(--ink); margin: 0; text-wrap: balance;
}
.statement__text em { font-style: italic; color: var(--clay-text); }
.statement__text .w, .greeting__title .w { display: inline-block; transition: opacity .25s linear; }
.greeting__title .w { will-change: transform, opacity; }
.statement__sub {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px;
}
.statement__sub p { max-width: 30em; margin: 0; color: var(--ink-soft); }
.chap { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--accent); }

/* форматы — меню: номер контуром, крупное название, описание и арочное фото появляются при наведении */
.formats__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.formats__head h2 { margin: 0; }
.menu { border-top: 1px solid var(--line); position: relative; }
.menu__row {
  /* колонки: номер · название · описание · кнопка */
  position: relative; display: grid; grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1fr) 150px; gap: 40px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: opacity .75s var(--ease), transform .75s var(--ease);   /* как у .reveal: строка выезжает плавно, а не прыгает на 22px */
}
/* номера — рукописные (Caveat, 18.10.2026), в стиле рисованных значков. Высота цифры — как у прежних 88px Cormorant
   (замер: «0» у Cormorant 88px — 35,6 px, у Caveat 66px — 35,7 px); строка той же высоты (70 px), раскладка не сдвигается */
.menu__n { font: 500 66px/1.06 "Caveat", var(--font-serif); color: var(--clay); -webkit-text-stroke: 0; display: inline-block; transform-origin: 0 60%; transition: color .5s var(--ease), transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.menu__t { font: 500 clamp(2.1rem, 3.4vw, 3rem)/1 var(--font-serif); min-width: 0; overflow-wrap: anywhere; transition: transform .5s var(--ease); }
.menu__t em { display: block; font: 400 .8rem/1.4 var(--font-sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; }
.menu__d { color: var(--ink-soft); font-size: 1rem; max-width: 38ch; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu__go { grid-column: 4; justify-self: end; display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-soft); }
.menu__go b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; transition: background .4s, color .4s, box-shadow .4s; }
.menu__row:hover, .menu__row:focus-visible { padding: 46px 0; outline: none; color: var(--ink); }
.menu__row:hover .menu__n, .menu__row:focus-visible .menu__n { color: var(--clay-text); transform: scale(1.18); }   /* номер увеличивается при наведении (18.10.2026) */
@media (prefers-reduced-motion: reduce) { .menu__row:hover .menu__n, .menu__row:focus-visible .menu__n { transform: none; } }
.menu__row:hover .menu__t, .menu__row:focus-visible .menu__t { transform: translateX(4px); }
.menu__row:hover .menu__d, .menu__row:focus-visible .menu__d { opacity: 1; transform: none; }
.menu__row:hover .menu__go b, .menu__row:focus-visible .menu__go b { background: var(--accent); color: #fff; box-shadow: none; }
.menu:hover .menu__row:not(:hover) { opacity: .55; }
.formats__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; color: var(--ink-faint); font-size: .93rem; }

/* глава «путь»: тёмно-зелёный фон, линия заполняется по мере прокрутки (--p из main.js), пройденные точки — глиняные */
.path { --path-bg: #1F3A33; --path-sage: #8FA89A; --path-text: rgba(252, 250, 247, .74); background: var(--path-bg); color: #FCFAF7; position: relative; overflow: hidden; }
.path::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143, 168, 154, .18), transparent); pointer-events: none; }
.path .wrap { position: relative; }
.path .chap { color: var(--path-sage); }
.path__intro { padding: clamp(90px, 12vw, 170px) 0 clamp(50px, 7vw, 90px); display: grid; grid-template-columns: 7fr 4fr; gap: 60px; align-items: end; }
.path__intro h2, .path__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.8rem, 7vw, 7rem); line-height: .94; letter-spacing: -.02em; margin: 22px 0 0; color: #FCFAF7; }
.path__intro h2 em, .path__title em { font-style: italic; color: var(--path-sage); }
.path__intro p { color: var(--path-text); max-width: 24em; margin: 0; }
.tl { position: relative; display: grid; grid-template-columns: 1fr; padding: 0 0 40px; margin: 0; list-style: none; }
.tl__line { position: absolute; left: calc(50% - .5px); top: 10px; bottom: 60px; width: 1px; background: rgba(252, 250, 247, .16); }
.tl__fill { position: absolute; inset: 0; background: linear-gradient(var(--path-sage), var(--clay)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 120px; padding: 0 0 84px; margin: 0; }
.step__dot { position: absolute; left: 50%; top: 14px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--path-bg); box-shadow: inset 0 0 0 1.5px var(--path-sage); transition: background .6s, box-shadow .6s; }
.step.is-lit .step__dot { background: var(--clay); box-shadow: 0 0 0 7px rgba(176, 122, 94, .2); }
.step__num { font-family: var(--font-serif); font-size: clamp(5rem, 9vw, 8.75rem); line-height: .8; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(252, 250, 247, .32); text-align: right; }
.step__body h3 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.05; margin-bottom: 14px; color: #FCFAF7; }
.step__body p { color: var(--path-text); max-width: 27em; font-size: 1rem; margin: 0; }
.step:nth-child(odd) .step__num { order: 2; text-align: left; }
.step:nth-child(odd) .step__body { order: 1; text-align: right; justify-self: end; }
.step:nth-child(odd) .step__body p { margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(252, 250, 247, .16); margin-top: 10px; }
.facts div { padding: 44px 40px 60px 0; }
.facts div + div { padding-left: 40px; border-left: 1px solid rgba(252, 250, 247, .16); }
.facts b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1; margin-bottom: 16px; color: #FCFAF7; }
.facts p { color: rgba(252, 250, 247, .68); font-size: .95rem; max-width: 24em; margin: 0; }
.path__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0 60px; border-top: 1px solid rgba(252, 250, 247, .16); flex-wrap: wrap; }
.path__bar p { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--path-sage); margin: 0; }
.path .link-more, .path .link-more:hover { color: #FCFAF7; }
@media (max-width: 1100px) {
  .menu__row { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) 70px; }
  .menu__n { font-size: 48px; line-height: 1.06; }   /* = 64px Cormorant по высоте цифры */
  .menu__go span { display: none; }
  .path__intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .statement__sub { flex-direction: column; align-items: flex-start; gap: 16px; }
  .menu__row { grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 14px; padding: 26px 0; }
  .menu__n { font-size: 30px; line-height: 1.06; color: var(--clay-text); -webkit-text-stroke: 0; }   /* = 40px Cormorant */
  .menu__d { grid-column: 2 / 4; grid-row: 2; opacity: 1; transform: none; font-size: .95rem; }
  .menu__go { grid-column: 3; grid-row: 1; }
  .menu__go b { width: 42px; height: 42px; }
  .menu__row:hover { padding: 26px 0; }
  .menu:hover .menu__row:not(:hover) { opacity: 1; }
  .formats__foot span:first-child { display: none; }   /* на телефоне наводить нечем, описания видны сразу */
  /* «Индивидуально» не рвётся посреди слова: колонка номера уже, название чуть мельче на узких экранах (от 470 px — как было) */
  .menu__t { font-size: min(2.1rem, 7.2vw); overflow-wrap: normal; -webkit-hyphens: manual; hyphens: manual; }
  .tl__line { left: 18px; }
  .step { grid-template-columns: 1fr; padding: 0 0 56px 52px; }
  .step__dot { left: 18px; }
  .step__num, .step:nth-child(odd) .step__num { order: 0; text-align: left; font-size: 4rem; margin-bottom: 12px; }
  .step:nth-child(odd) .step__body { order: 1; text-align: left; justify-self: start; }
  .step:nth-child(odd) .step__body p { margin-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(252, 250, 247, .16); }
  .facts div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .statement__text .w, .greeting__title .w { opacity: 1 !important; transform: none !important; color: var(--accent-dark); }
  .tl__fill { transform: scaleY(1); }
  .step .step__dot { background: var(--clay); box-shadow: none; }
}

/* ============================================================
   ОДИН ФОН НА ВСЕЙ ГЛАВНОЙ (09.10.2026, выбор владельца): без бежевых подложек, разделы делит
   тонкая линия с номером главы и названием (как в журнале). Единственный цветной блок — зелёная глава «путь».
   ============================================================ */
.chapter__rule {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: baseline;
  border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(36px, 5vw, 64px);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.chapter__num { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 0; color: var(--clay-text); }
.chapter__name { font-weight: 600; color: var(--ink); }
.chapter__aside { color: var(--ink-faint); letter-spacing: .02em; text-transform: none; font-size: .85rem; }
.chapter__head { max-width: 60ch; margin-bottom: 36px; }
.chapter__head h2 { margin-bottom: .4em; }
.chapter .pills li { background: transparent; border-color: var(--line); }
.chapter .quickbook__card { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.formats__head { align-items: center; margin-bottom: 36px; }
@media (max-width: 760px) {
  .chapter__rule { grid-template-columns: 40px 1fr; }
  .chapter__aside { display: none; }
}
/* заголовок быстрой записи на телефоне: короче строка, не налезает на шаги */
@media (max-width: 760px) {
  .quickbook__card h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: .6em; text-wrap: balance; }
}

/* ============================================================
   «КАК ПРОХОДИТ РАБОТА» НА ГЛАВНОЙ — КОМПАКТНО (09.10.2026): шесть шагов в ряд, без тёмного фона и анимации;
   полная версия с линией и точками живёт на session.html
   ============================================================ */
.path-lite__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 44px; }
.path-lite__head h2 { margin-bottom: .35em; }
.path-lite__head .lede { margin: 0; max-width: 34em; }
.path-lite__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.path-lite__steps li { border-top: 1px solid var(--ink); padding-top: 16px; min-width: 0; }
.path-lite__steps b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; color: var(--clay-text); margin-bottom: 14px; }
.path-lite__steps h3 { font-size: 1.3rem; line-height: 1.15; margin-bottom: 0; text-wrap: balance; }
.path-lite__steps p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1100px) { .path-lite__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
/* дорожка шагов (18.10.2026, вариант A, монотонно): рисованная пунктирная линия-путь через точки, номера от руки (Caveat).
   Линия растягивается по ширине (preserveAspectRatio none), толщина и пунктир — экранные (non-scaling-stroke).
   Точки — у пунктов списка (::before) на высоте 15 и 45 px, как изгибы линии */
.path-lite__track { position: relative; }
.path-lite__line { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.path-lite__line path { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 7; vector-effect: non-scaling-stroke; }
.path-lite__track .path-lite__steps { position: relative; gap: 0; }   /* без зазора: центры колонок = изгибы линии */
.path-lite__track .path-lite__steps li { border-top: 0; padding: 0 6px; text-align: center; }
.path-lite__track .path-lite__steps li::before { content: ""; display: block; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid #A9785E; background: var(--bg); margin: 8px auto 0; }
.path-lite__track .path-lite__steps li:nth-child(even)::before { margin-top: 38px; }
.path-lite__track .path-lite__steps b { font: 500 42px/1 "Caveat", var(--font-serif); color: #A9785E; margin: 16px 0 6px; }
/* вместо номеров — рисованные значки шагов одним глиняным цветом (18.10.2026, вариант B) */
.path-lite__track .path-lite__steps b.path-lite__ico { font-size: 0; line-height: 0; width: 40px; height: 40px; margin: 14px auto 8px; }
.path-lite__ico svg { width: 40px; height: 40px; display: block; }
@media (max-width: 1100px) {
  .path-lite__line { display: none; }
  .path-lite__track .path-lite__steps { gap: 28px 20px; }
  .path-lite__track .path-lite__steps li:nth-child(even)::before { margin-top: 8px; }
}
@media (max-width: 600px) { .path-lite__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================
   ЖУРНАЛЬНЫЕ РАЗДЕЛИТЕЛИ ВМЕСТО ЦВЕТНЫХ ПОДЛОЖЕК — на всех страницах (09.10.2026, просьба владельца):
   бежевые полосы .section--alt больше не красятся, вместо них тонкая тёмная линия по ширине колонки.
   ============================================================ */
.section--alt { background: transparent; border-radius: 0; position: relative; }
.section--alt::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); border-top: 1px solid var(--ink);
}
.section--alt .card, .section--alt .pills li { background: transparent; }
.section--alt .quickbook__card { background: transparent; box-shadow: none; }

/* страница «Как проходит сессия»: зелёная глава начинается прямо под шапкой сайта, крошки и название внутри неё */
.path--page .breadcrumbs { padding-top: clamp(28px, 4vw, 44px); margin-bottom: 0; color: rgba(252, 250, 247, .6); }
.path--page .breadcrumbs a { color: rgba(252, 250, 247, .6); }
.path--page .breadcrumbs a:hover { color: #FCFAF7; }
.path--page .path__intro { padding-top: clamp(48px, 7vw, 110px); }
.path--page h1.chap { font-size: 1.3rem; font-weight: 500; margin: 0; letter-spacing: 0; line-height: 1.3; }
/* «Как проходит сессия» — светлая (18.10.2026): фон как у остальных страниц, текст зелёный. Вводная фраза — одна,
   вместо «Ничего загадочного здесь нет» (та же фраза уже стоит на главной) */
.path--light { --path-bg: var(--bg); --path-sage: var(--accent); --path-text: rgba(44, 80, 70, .82); background: var(--bg); color: var(--accent-dark); }
.path--light::before { display: none; }
.path--light .path__intro { grid-template-columns: 1fr; }
.path--light .path__title--lead { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em; max-width: 21em; color: var(--accent-dark); margin-top: .35em; }
.path--light .chap, .path--light h1.chap { color: var(--clay-text); }
.path--light .breadcrumbs, .path--light .breadcrumbs a { color: var(--ink-faint); }
.path--light .breadcrumbs a:hover { color: var(--accent-dark); }
.path--light :focus-visible { outline-color: var(--accent-dark); }
.path--light .tl__line { background: rgba(44, 80, 70, .16); }
.path--light .step__dot { box-shadow: inset 0 0 0 1.5px var(--accent); }
.path--light .step__num { -webkit-text-stroke: 1px rgba(61, 106, 92, .38); }
.path--light .step__body h3 { color: var(--accent-dark); }
.path--light .facts, .path--light .facts div + div, .path--light .path__bar { border-color: rgba(44, 80, 70, .16); }
.path--light .facts b { color: var(--accent-dark); }
.path--light .facts p { color: rgba(44, 80, 70, .78); }
.path--light .link-more, .path--light .link-more:hover { color: var(--accent-dark); }

/* «Запись» (12.10.2026): шапка стала сценой в полный кадр (как «Статьи»), правила .page-head--strip больше не применяются.
   Обратный пролёт со страницы записи: как у «Обо мне». */

/* ============================================================
   НАВЕДЕНИЕ БЕЗ ПРЫЖКОВ (14.10.2026): правило 04.10 снова главное.
   Блок «наведение на карточки» от 06.10 поднимал и увеличивал любую карточку, даже формы записи.
   Теперь ничто не подпрыгивает и не увеличивается; карточки-ссылки и услуги отвечают только рамкой
   и мягкой тенью, обычные карточки и формы при наведении не меняются. Темы и строки форматов не
   бледнеют и не раздвигают страницу. Точки «Идёт набор» и «осталось N места» не мигают.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  .card:hover, .price:hover, .group-card:hover { transform: none; }
  .card:not(.card--link):hover, .group-card:hover { border-color: var(--line); box-shadow: none; }
  .card--flat:hover { border-color: transparent; }
  .group-card--open:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
  .card--link:hover, .price--clickable:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
  .price--featured:hover { box-shadow: var(--shadow); }
  .card:hover .ico, .card--link:hover .ico { transform: none; background: var(--moss); }
}
.price--clickable:hover, .qb-format:hover, .qb-slot:hover, .choice__item > span:hover { transform: none; }

/* темы «С чем я работаю» — не ссылки: при наведении ничего не бледнеет и не двигается */
.pills:hover li { opacity: 1; }
.pills li { cursor: default; }

/* меню форматов: строка не раздувается (отступ всегда 34px), соседние не бледнеют, у строки в фокусе есть кольцо */
.menu__row:hover, .menu__row:focus-visible { padding: 34px 0; }
@media (max-width: 760px) { .menu__row:hover, .menu__row:focus-visible { padding: 26px 0; } }
.menu__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu:hover .menu__row:not(:hover) { opacity: 1; }
/* сенсорные экраны шире телефона (iPad): навести нечем — описания форматов видны сразу, подсказки «Наведите…» нет */
@media (hover: none) {
  .menu__d { opacity: 1; transform: none; }
  .formats__foot span:first-child { display: none; }
}

/* самые узкие телефоны (320 px): «Здравствуйте» и «Подтверждение» не выходят за свою колонку */
@media (max-width: 400px) { .greeting__title { font-size: min(3.4rem, 16vw); } }
@media (max-width: 359px) { .path-lite__steps h3 { font-size: 1.15rem; -webkit-hyphens: auto; hyphens: auto; } }

/* кнопки откликаются так же быстро, как слоты и плитки рядом; волна — одна, около 0,6 с */
.btn { transition: background-color .25s var(--ease), color .2s var(--ease), border-color .25s var(--ease),
                   box-shadow .3s var(--ease), transform .12s var(--ease); }
.btn::before { transition: width .6s cubic-bezier(.33, 1, .68, 1), opacity .4s ease; }
.btn:not(:hover)::before { transition: width .6s ease, opacity .45s ease; }

/* «Идёт набор» и свободные места: спокойная точка без мигания */
.group-card--open .group-badge::before, .seats--few .seats__dots span:not(.is-taken) { animation: none; }

/* «Остановить движение» — недостающие правила из блоков prefers-reduced-motion (волна, номера меню, фон сцены) */
.motion-paused .btn:hover::before { width: 0; }
.motion-paused .menu__row:hover .menu__n, .motion-paused .menu__row:focus-visible .menu__n { transform: none; }
.motion-paused .scene__bg, .motion-paused .sobj__ring { transition: none; }

/* сенсорные экраны: волна и тень кнопки не залипают после касания
   (сброс в @media (hover: none) выше перебивался более поздними правилами волны) */
@media (hover: none) {
  .btn:hover::before { width: 0; opacity: 0; }
  .btn--primary:hover, .btn--ghost:hover { box-shadow: none; }
}

/* режим высокой контрастности Windows: выбранный формат, день и время видны рамкой системного цвета */
@media (forced-colors: active) {
  .choice__item input:checked + span, .cal__day.is-selected, .slot.is-selected,
  .qb-slot.is-selected, .qb-format.is-active { outline: 3px solid Highlight; outline-offset: -3px; }
}

/* ---------- выбор Роберта по листу скилов (19.10.2026) ---------- */
/* счётчики «20+ / ОППЛ / 4» под первым экраном телефона убраны: те же факты есть в приветствии (разметка оставлена) */
.hero__meta { display: none !important; }
/* номера шагов — глиняные рукописные, как на главной (Caveat), без контура и кружков */
.step__num, .path--light .step__num {
  font: 500 clamp(3.4rem, 5.5vw, 4.6rem)/.9 "Caveat", var(--font-serif);
  color: var(--clay-text); -webkit-text-stroke: 0;
}
@media (max-width: 760px) { .step__num, .step:nth-child(odd) .step__num { font-size: 3rem; } }
.steps li::before {
  background: transparent; border-radius: 0;
  font: 500 1.75rem/1 "Caveat", var(--font-serif); color: var(--clay-text);
}
/* ссылка внутри серого вводного текста: тот же тон, что текст, — выделяем начертанием и цветом */
.lede a:not([class]) { font-weight: 600; color: var(--accent-dark); }
/* подсказка у незаполненного поля — глиняным, без красных плашек */
.field__err { margin: 2px 0 0; font-size: .84rem; line-height: 1.4; color: #97402A; }

/* ============================================================
   ЦЕНЫ: «Сколько человек приходит на встречу?» (вариант В, выбран Робертом 19.10.2026).
   Четыре слова над одним открытым форматом. Пунктир под словами
   там, где выбрано, становится сплошной рисованной чертой.
   Логика вкладок — в main.js (chooser()), инлайн-скриптов нет.
   Без JS: форматы сеткой 2×2 с глиняными номерами.
   В проде обёртке дать свой класс (<div class="prices">) вместо
   grid grid--2; правило grid-column ниже — страховка для макета.
   ============================================================ */
.chooser {
  --dots: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 14"%3E%3Cpath d="M0 7 C12 2.5 24 2.5 36 7 S60 11.5 72 7 S90 3.5 96 7" fill="none" stroke="%23B07A5E" stroke-width="2" stroke-linecap="round" stroke-dasharray="0.1 7.9"/%3E%3C/svg%3E');
  --stroke: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 14" preserveAspectRatio="none"%3E%3Cpath d="M4 8.2 C48 4.6 96 9.4 150 6.4 S246 4.6 296 7.4" fill="none" stroke="%23B07A5E" stroke-width="2.6" stroke-linecap="round"/%3E%3Cpath d="M22 10.6 C80 8.4 150 11.4 210 9.4 S270 9 286 9.8" fill="none" stroke="%23B07A5E" stroke-opacity=".38" stroke-width="1.4" stroke-linecap="round"/%3E%3C/svg%3E');
  --tick: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10"%3E%3Cpath d="M1.5 5.8 C5 4.2 9 6.4 12.5 4.9 S17 3.9 18.5 4.6" fill="none" stroke="%23B07A5E" stroke-width="1.9" stroke-linecap="round"/%3E%3C/svg%3E');
  --dot-h: 14px;
  --word-off: #858B8F;            /* 3,3:1 — крупный текст, ≥3:1 */
  grid-column: 1 / -1;            /* во всю ширину и в браузерах без :has */
  max-width: 1040px; width: 100%;
  margin: 0 auto;
  counter-reset: fmt;
}

/* ---------- вопрос и слова (только с JS) ---------- */
.chooser__head { display: none; }
.chooser.is-tabs .chooser__head { display: block; margin-bottom: clamp(40px, 5vw, 60px); }
.chooser__ask {
  margin: 0 0 4px; font: italic 500 1.4rem/1.3 var(--font-serif); color: var(--ink-soft);
}
.chooser__tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px;
  background: var(--dots) left bottom / 96px var(--dot-h) repeat-x;
}
.chooser__tabs[hidden] { display: none; }

.chooser__tab {
  position: relative; justify-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 44px; margin: 0;
  padding: 8px 6px calc(var(--dot-h) + 12px) 2px;   /* черта живёт в нижнем отступе */
  background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left;
  color: var(--word-off);
  transition: color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.chooser__word {
  font: 500 clamp(2rem, 3.4vw, 2.75rem)/1.05 var(--font-serif);
  white-space: nowrap;
}
.chooser__word i {
  position: relative; top: -.42em; margin-right: 3px;
  font: 500 1.3rem/1 "Caveat", var(--font-serif); font-style: normal;
  color: var(--clay-text);
}
.chooser__meta {
  margin-top: 8px; padding-left: 15px;
  font: 400 .84rem/1.3 var(--font-sans); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
/* просвет в пунктире под словом + рисованная черта на его месте */
.chooser__tab::before,
.chooser__tab::after {
  content: ""; position: absolute; left: -4px; right: -2px; bottom: 0; height: var(--dot-h);
  pointer-events: none;
}
.chooser__tab::before { background: var(--bg); opacity: 0; transition: opacity .2s ease-out; }
.chooser__tab::after {
  background: var(--stroke) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); opacity: .45;
  transition: clip-path .42s cubic-bezier(.65, .05, .36, 1), opacity .2s ease-out;
}
.chooser__tab[aria-selected="true"] { color: var(--ink); cursor: default; }
.chooser__tab[aria-selected="true"]::before { opacity: 1; }
.chooser__tab[aria-selected="true"]::after { clip-path: inset(0 0 0 0); opacity: 1; }
@media (hover: hover) {
  .chooser__tab[aria-selected="false"]:hover { color: var(--ink-soft); }
  .chooser__tab[aria-selected="false"]:hover::before { opacity: 1; }
  .chooser__tab[aria-selected="false"]:hover::after { clip-path: inset(0 38% 0 0); }
}
.chooser__tab[aria-selected="false"]:focus-visible::before { opacity: 1; }
.chooser__tab[aria-selected="false"]:focus-visible::after { clip-path: inset(0 38% 0 0); }
.chooser__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- формат ---------- */
.chooser__panels { display: grid; gap: clamp(48px, 6vw, 72px) clamp(40px, 6vw, 88px); }
.chooser__panel {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "lead" "side" "buy";
  align-content: start;
}
.chooser__title { grid-area: title; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 12px; }
.chooser__panel h3 {
  margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.15rem); line-height: 1.1; color: var(--ink);
  text-wrap: balance;
}
/* «Основной формат» — маркерная пометка без капса: Caveat в проекте только с цифрами */
.chooser__tag {
  position: relative; top: -.2em;
  padding: .18em .6em .24em; background: var(--marker); color: var(--ink);
  font: 500 .86rem/1.2 var(--font-sans);
}
.chooser__lead {
  grid-area: lead; margin: 0 0 26px; max-width: 34em;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty;
}
.chooser__side { grid-area: side; margin: 0 0 30px; }
.chooser__facts { list-style: none; margin: 0; padding: 0; }
.chooser__facts li {
  position: relative; padding-left: 34px; margin: 0 0 12px;
  font-size: 1rem; line-height: 1.5; color: var(--ink);
}
.chooser__facts li:last-child { margin-bottom: 0; }
.chooser__facts li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 20px; height: 10px;
  background: var(--tick) center / contain no-repeat;
}
.chooser__note { margin: 18px 0 0; padding-left: 34px; max-width: 30em; font-size: .9rem; } /* --ink-faint, 5,1:1 */

.chooser__buy { grid-area: buy; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.chooser__price {
  margin: 0; font: italic 500 1.4rem/1.2 var(--font-serif); color: var(--ink);
}
.chooser__btn {
  background: transparent; color: var(--accent-dark); border: 1px solid var(--accent);
  padding: 13px 30px; min-height: 48px; box-shadow: none;
}
.chooser__btn::before { content: none !important; }
@media (hover: hover) {
  .chooser__btn:hover { background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; }
}
.chooser__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* без JS: сетка 2×2, у каждого формата глиняный номер и пунктир сверху */
.chooser:not(.is-tabs) .chooser__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chooser:not(.is-tabs) .chooser__panel {
  counter-increment: fmt;
  grid-template-rows: auto auto auto 1fr auto;
  grid-template-areas: "num" "title" "lead" "side" "buy";
  padding-top: 26px; background: var(--dots) left top / 96px var(--dot-h) repeat-x;
}
.chooser:not(.is-tabs) .chooser__panel::before {
  content: counter(fmt); grid-area: num; margin-bottom: 2px;
  font: 500 1.9rem/1 "Caveat", var(--font-serif); color: var(--clay-text);
}

/* с JS: все форматы в одной ячейке — высота блока = самый высокий формат,
   при переключении ничего ниже не прыгает */
.chooser.is-tabs .chooser__panel {
  grid-area: 1 / 1;
  /* ссылка на формат (кресло в сцене → #individual) прокручивает к вопросу
     и вкладкам, а не к самому формату под ними; --chooser-off ставит main.js */
  scroll-margin-top: var(--chooser-off, 0px);
  transition: opacity .3s cubic-bezier(.33, 1, .68, 1);
}
.chooser.is-tabs .chooser__panel.is-off { visibility: hidden; opacity: 0; transition: none; }
.chooser.is-tabs .chooser__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }

@media (min-width: 761px) {
  .chooser.is-tabs .chooser__panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "title side" "lead side" "buy side";
    column-gap: clamp(40px, 7vw, 96px);
  }
  .chooser.is-tabs .chooser__side { margin: 0; padding-top: .55rem; }  /* первая строка — на уровне заголовка */
}

@media (max-width: 760px) {
  .chooser { --dot-h: 12px; }
  .chooser__ask { font-size: 1.25rem; }
  /* 2×2: пунктир — один на ряд, на самом списке (два слоя фона) */
  .chooser__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
    column-gap: 12px; row-gap: 6px;
    background:
      var(--dots) 0 100% / 96px var(--dot-h) repeat-x,
      var(--dots) 0 calc(50% - (6px + var(--dot-h)) / 2) / 96px var(--dot-h) repeat-x;
  }
  .chooser__tab { padding: 6px 4px calc(var(--dot-h) + 10px) 2px; }
  .chooser__word { font-size: clamp(1.55rem, 7.4vw, 1.95rem); }
  .chooser__word i { font-size: 1.15rem; }
  .chooser__meta { margin-top: 5px; padding-left: 12px; font-size: .8rem; }
  .chooser:not(.is-tabs) .chooser__panels,
  .chooser.is-tabs .chooser__panels { grid-template-columns: minmax(0, 1fr); }
    .chooser.is-tabs .chooser__panel { grid-template-rows: auto auto auto 1fr; }
  .chooser__side { margin-bottom: 28px; }
  .chooser__facts li { margin-bottom: 10px; }
  /* лишняя высота (ячейка = самый высокий формат) уходит под кнопку, не над ней */
  .chooser__buy { gap: 14px; align-self: start; }
  .chooser__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .chooser__tab::after,
  .chooser__tab::before,
  .chooser.is-tabs .chooser__panel { transition: none; }
}

.motion-paused .chooser__tab::after, .motion-paused .chooser__tab::before, .motion-paused .chooser.is-tabs .chooser__panel { transition: none; }

/* рисованные цифры крупнее на 20% (Роберт, 19.10.2026); у слов выбора формата на «Услугах» цифр нет.
   Высота строки «Как можно работать» прежняя: line-height подобран под старую высоту */
.chooser__word i { display: none; }
.menu__n { font-size: 79px; line-height: .886; }
@media (max-width: 1100px) { .menu__n { font-size: 58px; line-height: .877; } }
@media (max-width: 760px) { .menu__n { font-size: 36px; line-height: .883; } }
.path-lite__track .path-lite__steps b:not(.path-lite__ico) { font-size: 50px; }
.step__num, .path--light .step__num { font-size: clamp(4.1rem, 6.6vw, 5.5rem); }
@media (max-width: 760px) { .step__num, .step:nth-child(odd) .step__num { font-size: 3.6rem; } }
.steps li::before { font-size: 2.1rem; }
.chooser:not(.is-tabs) .chooser__panel::before { font-size: 2.3rem; }
.chooser__meta { padding-left: 0 !important; }   /* отступ был под цифру — цифры убраны */

/* телефон лёжа: квадратные дни календаря давали месяц выше экрана — дни ниже, но не меньше 44px */
@media (orientation: landscape) and (max-height: 500px) {
  .cal__day { aspect-ratio: auto; height: 44px; }
  .cal__head { margin-bottom: 10px; }
  .cal__dow { padding-bottom: 4px; }
}

/* подвал на телефоне: «Политика…» и «Правила работы» друг под другом, без точки-разделителя в конце строки */
@media (max-width: 760px) {
  .footer__bottom .sep { display: none; }
  .footer__bottom > span:last-child > a[href="privacy.html"],
  .footer__bottom > span:last-child > a[href="rules.html"] { display: block; padding-block: 0; }
}

/* первый экран на телефоне (выбор Роберта 1Б, 19.10.2026): на обычных телефонах фото чуть ниже,
   чтобы заголовок целиком вставал над плавающей «Записаться»; на коротких (iPhone SE) фото так
   не ужать — там кнопка ждёт, пока заголовок уедет (main.js, fx.heroH1) */
@media (max-width: 760px) and (orientation: portrait) and (min-height: 740px) {
  .hero--scene { padding-top: min(60svh, calc(100svh - 360px)); }
  .hero--scene .scene, .hero--scene .scene__nav { height: min(60svh, calc(100svh - 360px)); }
}

/* «Услуги»: на телефоне каждая вкладка своей высоты — ниже всё равно за краем экрана, прыжка не видно (3А) */
@media (max-width: 760px) {
  .chooser.is-tabs .chooser__panels { display: block; }
  .chooser.is-tabs .chooser__panel.is-off { display: none; }
}

/* заголовки карточек на телефоне: Cormorant с маленьким очком в 17px читался мельче текста под ним (4А);
   у карточек со своим размером (.questions, .methods, .art-list) класс сильнее и размер остаётся */
@media (max-width: 760px) {
  h3 { font-size: 1.3rem; line-height: 1.2; }
}

/* телефон лёжа (7А): пока набираешь текст, шапка уезжает вверх и отдаёт место клавиатуре;
   строки статьи до ~70 знаков вместо 80 */
@media (orientation: landscape) and (max-height: 500px) {
  html:has(form :focus) .site-header { position: relative; }
  .article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote { max-width: 38em; }
}

/* стрелка «Назад» слева от логотипа (Роберт, 24.10): на главной её нет — съезжает в ноль, логотип плавно возвращается к краю */
.head-start { display: flex; align-items: center; gap: 2px; min-width: 0; }
.back-btn {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-left: -10px; border-radius: 50%;
  color: var(--ink-soft); overflow: hidden;
  transition: width .3s cubic-bezier(.22,.61,.36,1), margin .3s cubic-bezier(.22,.61,.36,1), opacity .25s, color var(--t), background-color var(--t);
}
.back-btn:hover { color: var(--ink); background-color: rgba(30, 28, 25, .05); }
.back-btn.is-off { width: 0; margin-left: 0; margin-right: -2px; opacity: 0; pointer-events: none; }

/* Выбор длительности консультации перед календарём. */
.session-duration { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block: 20px; }
.session-duration label { font-weight: 500; }
.session-duration select { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font: inherit; }
.session-duration p { margin: 0; color: var(--ink-soft); }
.session-duration[hidden], .session-duration [hidden] { display: none !important; }

/* Кабинет открывается внутри текущего раздела под общей шапкой. */
main.has-member-section > :not(#my-account), .viewing-member-section .fab, .viewing-member-section .progress { display: none !important; }

.info-account:not(:target){display:none}
