/* b4 — 9248843212
   МОТТОМО, стоматологический центр, Южно-Сахалинск.
   Дизайн-система «Тишина» (DESIGN.md): японский минимализм. Бумага васи и тушь, красная печать, сакура только
   на первом экране, иероглиф с переводом у разделов; текст шрифтом Onest, лаймовый акцент только на главном
   действии, стекло только у парящих слоёв. */

/* ---------- Шрифт (лежит на сайте) ---------- */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin-wght-normal.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; }

/* Иероглифы: подмножество Zen Old Mincho, остальные знаки из японского шрифта системы */
@font-face { font-family: 'Zen Old Mincho JP'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/zen-old-mincho-jp-400.woff2) format('woff2'); unicode-range: U+3000-30FF, U+4E00-9FFF; }

/* ---------- Токены ---------- */
:root {
  --bg: #f4efe6;
  --surface: #fbf8f2;
  --ink: #17151b;
  --ink-2: #3d3840;
  --muted: #5f5960;
  --line: rgba(23, 21, 27, .1);
  --line-2: rgba(23, 21, 27, .2);
  --line-input: #8a8389;
  --shu: #c23a2a;
  --sakura-petal: #f6c6d3;
  --sakura-core: #d65f7d;
  --sakura-2: #e48fa7;
  --sakura-soft: rgba(242, 191, 204, .32);
  --wood: #3a2c2c;
  --f-jp: 'Zen Old Mincho JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  --accent: #e7f00d;
  --accent-2: #dbe500;
  --on-accent: #121412;
  --accent-soft: rgba(231, 240, 13, .16);
  --danger: #b93a26;
  --danger-soft: rgba(185, 58, 38, .08);
  --ok: #25693f;
  --ok-soft: rgba(46, 122, 78, .1);
  --warn-soft: #fff7c7;
  --focus: #121412;
  --glass: rgba(251, 248, 242, .62);
  --glass-edge: rgba(255, 255, 255, .7);
  --shadow-1: 0 1px 2px rgba(23, 21, 27, .04), 0 10px 30px -14px rgba(58, 44, 44, .22);
  --shadow-2: 0 30px 70px -30px rgba(58, 44, 44, .38);

  --f: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mincho: var(--f);
  --f-gothic: var(--f);
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 10vw, 144px);
  --header-h: 64px;
  --header-gap: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --settle: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121015;
  --surface: #1c1920;
  --ink: #f1ebe1;
  --ink-2: #d8d0c6;
  --muted: #a8a0a8;
  --line: rgba(241, 235, 225, .1);
  --line-2: rgba(241, 235, 225, .2);
  --line-input: #80787f;
  --shu: #ef6f5c;
  --sakura-soft: rgba(242, 191, 204, .1);
  --wood: #b49b9b;
  --accent-soft: rgba(231, 240, 13, .12);
  --danger: #ff8a73;
  --danger-soft: rgba(255, 138, 115, .1);
  --ok: #7cd39e;
  --ok-soft: rgba(124, 211, 158, .1);
  --warn-soft: rgba(231, 240, 13, .1);
  --focus: #e7f00d;
  --glass: rgba(28, 25, 32, .6);
  --glass-edge: rgba(255, 255, 255, .1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-2: 0 30px 70px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 20px); scroll-padding-bottom: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; font-family: var(--f); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
/* Мягкое лаймовое свечение у верхнего края: стеклу шапки есть что преломлять */
body::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(55% 50% at 90% 0%, var(--sakura-soft), transparent 70%), radial-gradient(40% 40% at 0% 8%, var(--accent-soft), transparent 70%);
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
.nw { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.fine { margin: 28px 0 0; max-width: 72ch; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
.kiku { width: 1em; height: 1em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--flush { padding-block: 0 var(--section); }
.section--app { padding-block: 8px var(--section); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split > .sh { margin-bottom: 0; }

/* ---------- Текст ---------- */
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.kicker .kiku { display: none; }
.eyebrow .jp { font-family: var(--f-jp); font-size: 1.125rem; font-weight: 400; line-height: 1; letter-spacing: .06em; color: var(--shu); }
.eyebrow .jp::after { content: ''; display: inline-block; width: 22px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 5px rgba(194, 58, 42, .12); }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sh__text { max-width: 640px; }
.sh__title { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.022em; }
.sh__lead { margin: 16px 0 0; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 14px; }
.prose { max-width: 66ch; color: var(--ink-2); font-size: 1.0625rem; }
.prose p:last-child { margin-bottom: 0; }
.prose--doc { color: var(--ink); }
.prose--doc h2 { font-size: 1.375rem; margin: 2em 0 .7em; letter-spacing: -.01em; }
.prose--doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose--doc li { margin-bottom: .45em; }
/* b4 — 9248843212 +++ */
.prose--doc ol { padding-left: 1.6em; margin: 0 0 1em; }
.prose--doc ol > li::marker { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.prose--doc li > ul { margin: .45em 0 0; list-style: circle; }
/* b4 — 9248843212 --- */
.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.list li::before { content: ''; position: absolute; left: 4px; top: 1.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(18, 20, 18, .25); }
.group-title { font-size: 1.25rem; margin-bottom: 24px; color: var(--muted); font-weight: 500; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .3s, transform .5s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn .i { width: 19px; height: 19px; }
.btn--kiku, .btn--ink { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(18, 20, 18, .14), inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 18px -10px rgba(140, 150, 0, .8); }
.btn--kiku:hover, .btn--ink:hover { background: var(--accent-2); }
.btn--line, .btn--glass { background: var(--surface); color: var(--ink); border-color: var(--line-input); }
.btn--line:hover, .btn--glass:hover { border-color: var(--ink); }
[data-theme="dark"] .btn--line { background: transparent; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.link, .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link .i, .link-arrow .i { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.link:hover span { background-size: 100% 1px; }
.link:hover .i, .link-arrow:hover .i { transform: translateX(4px); }
.linklike { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: .9375rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); }
.linklike:hover { text-decoration-color: currentColor; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-grid; place-items: center; text-decoration: none; transition: background-color .25s, box-shadow .25s;
}
.icon-btn:hover, .icon-btn[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(18, 20, 18, .06); }
[data-theme="dark"] .icon-btn:hover, [data-theme="dark"] .icon-btn[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.icon-btn .i { width: 21px; height: 21px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-input); background: var(--surface); font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: border-color .2s, transform .45s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip .i { width: 18px; height: 18px; }
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: .875rem; font-weight: 500; background: var(--line); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.stars { color: #d9a400; letter-spacing: .08em; font-family: system-ui, sans-serif; }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; border-radius: 50%; background: #17151b; color: var(--accent); display: grid; place-items: center; flex: none; }
.logo__mark .kiku { width: 32px; height: 32px; } /* клиника просила хризантему крупнее (2026-11-23) */
.logo__text { display: flex; flex-direction: column; gap: 4px; }
.logo__word { width: 106px; height: auto; }
.logo__text small { font-size: .6875rem; line-height: 1; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }

/* ---------- Шапка: стеклянная капсула ---------- */
.header { position: sticky; top: 0; z-index: 60; padding: calc(var(--header-gap) + env(safe-area-inset-top, 0px)) var(--gutter) 0; pointer-events: none; transition: transform .6s var(--ease); }
.header__inner {
  pointer-events: auto; max-width: calc(var(--container) + 40px); height: var(--header-h); margin-inline: auto;
  display: flex; align-items: center; gap: 16px; padding: 0 10px 0 14px; border-radius: var(--pill);
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 var(--line), 0 8px 24px -16px rgba(18, 20, 18, .25);
  transition: box-shadow .4s, background-color .4s;
}
[data-theme="dark"] .header__inner { box-shadow: inset 0 0 0 1px var(--glass-edge), 0 8px 24px -16px rgba(0, 0, 0, .7); }
.header.is-scrolled .header__inner { box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .6), var(--shadow-1); }
/* Шапка уходит и возвращается как Dynamic Island: содержимое гаснет, стекло стягивается в тёмную пилюлю 126x37
   посередине и уезжает вверх; обратно пилюля опускается, раскрывается пружиной и светлеет, содержимое проявляется
   последним. Анимируются только clip-path, transform и opacity, раскладка не пересчитывается. Граница клипа в покое
   шире капсулы, чтобы не срезать тень и кольцо фокуса. */
:root { --island-spring: var(--settle); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --island-spring: linear(0, 0.0457, 0.1512, 0.2816, 0.4151, 0.5393, 0.6479, 0.7385, 0.8115, 0.8684, 0.9116, 0.9433, 0.9659, 0.9815, 0.9919, 0.9984, 1.0022, 1.0042, 1.0049, 1.005, 1.0046, 1.0039, 1.0033, 1.0026, 1.002, 1.0015, 1.0011, 1.0008, 1.0005, 1.0004, 1.0002, 1.0001, 1.0001, 1, 1); }
}
.header__inner {
  clip-path: inset(-24px -24px -40px -24px round 999px);
  transition: box-shadow .4s, background-color .45s, clip-path .8s var(--island-spring) .1s, transform .5s var(--settle), opacity .2s;
}
.header__inner > * { transition: opacity .3s ease .36s; }
.header.is-hidden .header__inner {
  clip-path: inset(0 calc(50% - 63px) calc(100% - 37px) calc(50% - 63px) round 999px);
  transform: translateY(calc(-100% - var(--header-gap) - env(safe-area-inset-top, 0px) - 12px));
  background-color: #121015; opacity: 0; pointer-events: none;
  transition: box-shadow .2s, background-color .25s ease .06s, clip-path .42s var(--settle) .06s, transform .34s cubic-bezier(.55, 0, .75, .2) .38s, opacity .16s linear .54s;
}
.header.is-hidden .header__inner > * { opacity: 0; transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) {
  .header__inner, .header.is-hidden .header__inner { clip-path: none; transform: none; transition: opacity .2s, background-color .2s; }
  .header__inner > *, .header.is-hidden .header__inner > * { transition: opacity .2s; }
}
.header__logo { display: flex; flex: none; text-decoration: none; border-radius: var(--pill); }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav__link { padding: 9px 15px; border-radius: var(--pill); font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .25s, box-shadow .25s; }
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 3px rgba(18, 20, 18, .08); }
[data-theme="dark"] .nav__link[aria-current="page"] { background: rgba(255, 255, 255, .1); }
.header__actions { display: flex; align-items: center; gap: 2px; flex: none; }
.header__phone { padding: 0 12px; font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__cta { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; place-items: center; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .burger { background: rgba(255, 255, 255, .08); }
@media (max-width: 1240px) { .header__phone { display: none; } }
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-grid; margin-left: 4px; }
  .header__inner { justify-content: space-between; }
}
@media (max-width: 700px) {
  :root { --header-h: 58px; --header-gap: 8px; }
  .header { padding-inline: 10px; }
  .header__inner { padding: 0 6px 0 10px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__mark .kiku { width: 29px; height: 29px; }
  .logo__word { width: 96px; }
}

/* ---------- Меню телефона: стеклянная шторка ---------- */
.menu { position: fixed; inset: 0; z-index: 90; }
.menu::before { content: ''; position: absolute; inset: 0; background: rgba(15, 17, 15, .28); opacity: 0; transition: opacity .35s; }
.menu.is-open::before { opacity: 1; }
.menu__panel {
  position: absolute; inset: calc(8px + env(safe-area-inset-top, 0px)) 8px auto; max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 22px; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 30px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-2);
  opacity: 0; transform: translateY(-14px) scale(.98); transform-origin: 50% 0; transition: opacity .3s, transform .55s var(--settle);
}
.menu.is-open .menu__panel { opacity: 1; transform: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 4px; min-height: 52px; }
.menu__nav { display: flex; flex-direction: column; padding: 0 6px; }
.menu__link {
  padding: 11px 0; font-size: clamp(1.75rem, 8vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-decoration: none; color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease); transition-delay: calc(var(--i) * 30ms + 60ms);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:nth-child(n+6) { font-size: 1.25rem; color: var(--ink-2); padding: 8px 0; }
.menu__link:nth-child(6) { margin-top: 14px; }
.menu__foot { display: flex; flex-direction: column; gap: 14px; padding: 0 6px; }
.menu__phone { font-size: 1.375rem; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.menu__addr { margin: 0; color: var(--muted); font-size: .9375rem; }
.menu__row { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); font-size: .9375rem; text-decoration: none; color: var(--ink); }
.menu__toggle .i { width: 18px; height: 18px; }
[data-theme="dark"] .menu__toggle { background: transparent; }
[data-theme="light"] .menu__toggle .i-sun, [data-theme="dark"] .menu__toggle .i-moon,
[data-theme="light"] .header [data-theme-toggle] .i-sun, [data-theme="dark"] .header [data-theme-toggle] .i-moon,
[data-theme="light"] .footer__tools .i-sun, [data-theme="dark"] .footer__tools .i-moon { display: none; }

/* ---------- Японский декор ---------- */
.branch { pointer-events: none; overflow: visible; }
.branch__wood { stroke: var(--wood); }
.branch__bud { fill: var(--sakura-2); }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hanko {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 8px;
  background: var(--shu); color: #fff3ea; font-family: var(--f-jp); font-size: 1.625rem; line-height: 1; transform: rotate(-6deg);
  box-shadow: inset 0 0 0 3px rgba(255, 243, 234, .55), inset 0 0 0 4px var(--shu);
}
.enso { color: var(--ink); }

/* ---------- Первый экран: видео на весь экран, шапка поверх ---------- */
.hero {
  --line: rgba(244, 239, 230, .22); --muted: rgba(244, 239, 230, .74); --ink-2: rgba(244, 239, 230, .9); --focus: #fff;
  position: relative; isolation: isolate; overflow: clip; display: flex; align-items: flex-end;
  min-height: max(640px, min(100svh, 1000px));
  margin-top: calc(-1 * (var(--header-h) + var(--header-gap) + env(safe-area-inset-top, 0px)));
  padding: calc(var(--header-h) + var(--header-gap) + 64px) 0 clamp(40px, 6vw, 84px);
  color: #fbf8f2; background: #17151b;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: #17151b; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.06); transition: transform 2.6s var(--ease); }
.hero__video.is-playing { transform: none; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 21, 27, .84) 0%, rgba(23, 21, 27, .58) 42%, rgba(23, 21, 27, .14) 78%),
    linear-gradient(180deg, rgba(23, 21, 27, .6) 0%, rgba(23, 21, 27, 0) 28%, rgba(23, 21, 27, .18) 62%, rgba(23, 21, 27, .88) 100%);
}
.hero .petals { z-index: 1; }
.hero__inner { position: relative; z-index: 2; }
.hero__branch { position: absolute; z-index: 1; top: calc(var(--header-h) + var(--header-gap) + 6px); right: -3%; width: min(600px, 48vw); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); }
.hero__jp {
  position: absolute; z-index: 1; right: clamp(14px, 6vw, 110px); bottom: clamp(110px, 16vh, 200px);
  writing-mode: vertical-rl; font-family: var(--f-jp); font-size: clamp(5rem, 12vw, 12.5rem); line-height: 1; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(244, 239, 230, .38); pointer-events: none; user-select: none;
}
.hero__eyebrow { color: rgba(244, 239, 230, .86); }
.hero__eyebrow .hanko { width: 34px; height: 34px; border-radius: 6px; font-size: 1.125rem; }
.hero__title { max-width: 12ch; margin-bottom: 26px; font-size: clamp(2.625rem, 8.6vw, 7.25rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: #fbf8f2; text-shadow: 0 2px 40px rgba(0, 0, 0, .3); }
.hero__title .w { display: inline-block; }
.js .hero__title .w { animation: word-in 1.1s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 120ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(.3em); filter: blur(10px); } }
.hero__lead { max-width: 34ch; margin-bottom: 34px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--glass {
  color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
}
.hero .btn--glass:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.hero .btn--glass .i { width: 30px; height: 30px; margin-left: -12px; padding: 8px; border-radius: 50%; background: var(--accent); color: #17151b; fill: currentColor; stroke: none; }
.hero .btn--glass small { color: rgba(255, 255, 255, .7); font-size: .875rem; font-weight: 400; }
.facts { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; max-width: 780px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { padding: 18px 16px 0 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts a { display: block; text-decoration: none; }
.facts b { white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.35; color: var(--muted); }
.facts a:hover span { color: #fff; }
.facts__star { width: .8em; height: .8em; fill: #f2c94c; stroke: #f2c94c; }
.hero .warn-line { color: rgba(244, 239, 230, .8); }
.hero__pause {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(20, 20, 22, .38);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.hero__pause .i { width: 18px; height: 18px; }
.hero__pause .i-play, .hero__pause.is-paused .i-pause { display: none; }
.hero__pause.is-paused .i-play { display: block; fill: currentColor; }
.hero :focus-visible { outline-color: #fff; }

/* Шапка поверх видео: тёмное стекло, светлый текст; после прокрутки обычная */
.header--over:not(.is-scrolled) .header__inner { background: rgba(23, 21, 27, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14); }
.header--over:not(.is-scrolled) .logo, .header--over:not(.is-scrolled) .nav__link, .header--over:not(.is-scrolled) .header__phone, .header--over:not(.is-scrolled) .icon-btn { color: #f4efe6; }
.header--over:not(.is-scrolled) .logo__text small { color: rgba(244, 239, 230, .7); }
.header--over:not(.is-scrolled) .nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.header--over:not(.is-scrolled) .icon-btn:hover, .header--over:not(.is-scrolled) .nav__link:hover { background: rgba(255, 255, 255, .12); box-shadow: none; color: #fff; }
.header--over:not(.is-scrolled) .burger { background: rgba(255, 255, 255, .12); color: #f4efe6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.header--over:not(.is-scrolled) :focus-visible { outline-color: #fff; }

/* Иероглиф на поле раздела, тории, энсо, волны сэйгаиха */
.sec { position: relative; overflow: clip; }
.sec > .container { position: relative; z-index: 1; }
.sec-jp {
  position: absolute; z-index: 0; top: calc(var(--section) - 8px); right: max(8px, calc((100vw - var(--container)) / 2 - 130px));
  writing-mode: vertical-rl; font-family: var(--f-jp); font-size: clamp(4rem, 8vw, 8.5rem); line-height: 1; letter-spacing: .05em;
  color: var(--sakura-core); opacity: .13; pointer-events: none; user-select: none;
}
.torii { display: block; width: 66px; height: auto; margin-bottom: 20px; color: var(--shu); }
.nh { isolation: isolate; overflow: clip; }
.nh__intro { position: relative; }
.nh__enso { position: absolute; z-index: -1; left: -70px; top: -84px; width: 270px; height: 270px; color: var(--shu); opacity: .1; pointer-events: none; }

/* ---------- Навигатор «Что беспокоит?» ---------- */
.nh { padding-top: 0; }
.nh__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; padding-top: var(--section); border-top: 1px solid var(--line); }
.nh__intro .sh__lead { margin-bottom: 0; }
.nh__tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.nh-tile {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: var(--pill);
  border: 1px solid var(--line-input); background: var(--surface); font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .3s, transform .5s var(--ease);
}
.nh-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.nh-tile:active { transform: scale(.97); transition-duration: .12s; }
[data-theme="dark"] .nh-tile { background: transparent; }
.nh__note { margin: 18px 0 0; font-size: .9375rem; color: var(--muted); }
.nh__stage:not([hidden]) ~ .nh__note { display: none; }
.nh__stage.is-in { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.nh-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 14px -6px; padding: 0 12px 0 6px; border: 0; border-radius: var(--pill); background: none; color: var(--ink-2); font-weight: 500; }
.nh-back:hover { color: var(--ink); }
.nh-q { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-bottom: 18px; }
.nh-flag { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.nh-flag .i { color: var(--danger); margin-top: 1px; }
.nh-flag a { font-weight: 600; }
.nh-choices { display: grid; gap: 10px; }
.nh-choice { display: flex; gap: 14px; align-items: center; width: 100%; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line-input); background: var(--surface); text-align: left; transition: border-color .2s, box-shadow .3s; }
.nh-choice:hover { border-color: var(--ink); box-shadow: var(--shadow-1); }
.nh-choice > .i { width: 24px; height: 24px; color: var(--muted); }
.nh-choice--urgent > .i { color: var(--danger); }
.nh-choice b { display: block; font-weight: 500; font-size: 1.0625rem; }
.nh-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.nh-load { display: flex; align-items: center; gap: 6px; padding: 28px 0; color: var(--muted); }
.nh-load span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1s infinite both; }
.nh-load span:nth-child(2) { animation-delay: .15s; }
.nh-load span:nth-child(3) { animation-delay: .3s; }
.nh-load b { margin-left: 10px; font-weight: 500; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.nh-err { padding: 20px; border-radius: var(--r); background: var(--danger-soft); }
.nh-err p { margin: 0 0 8px; }
.nh-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.nh-card--urgent { box-shadow: inset 0 0 0 1px rgba(185, 58, 38, .35), var(--shadow-1); }
.nh-card__k { margin: 0 0 8px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.nh-card--urgent .nh-card__k { color: var(--danger); }
.nh-card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; margin-bottom: 10px; }
.nh-card__note { color: var(--ink-2); margin-bottom: 12px; }
.nh-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 20px; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.nh-card__price b { font-weight: 500; }
.nh-card__price s { color: var(--muted); font-size: 1rem; }
.nh-card__price span { font-size: .9375rem; color: var(--muted); }
.nh-doc { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 18px; }
.nh-doc img, .nh-doc__any { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.nh-doc__any { display: grid; place-items: center; background: var(--accent); color: #121412; }
.nh-doc b { display: block; font-weight: 500; }
.nh-doc small { display: block; color: var(--muted); font-size: .9375rem; }
.nh-sub { margin: 0 0 10px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.nh-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nh-slot { display: flex; flex-direction: column; justify-content: center; min-width: 108px; min-height: 60px; padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-input); text-decoration: none; transition: border-color .2s, background-color .2s; }
.nh-slot:hover { border-color: var(--ink); background: var(--accent-soft); }
.nh-slot small { font-size: .8125rem; color: var(--muted); }
.nh-slot b { font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.nh-none { padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-soft); font-size: .9375rem; margin-bottom: 18px; }
.nh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.nh-actions .btn { flex: 1 1 180px; }
.nh-alt { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .9375rem; }
.nh-alt .i { color: var(--muted); margin-top: 2px; }
.nh-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 14px; font-size: .9375rem; }
.nh-links a { color: var(--ink-2); }
.nh-disclaimer { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.5; color: var(--muted); }

/* ---------- Строки списков (услуги, пациентам) ---------- */
.rows { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.rows li { border-bottom: 1px solid var(--line-2); }
.row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 24px;
  min-height: 84px; padding: 18px 4px; text-decoration: none; color: var(--ink);
}
.row__title { font-size: clamp(1.25rem, 2.3vw, 1.875rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.2; transition: transform .5s var(--ease); }
.row__meta { color: var(--ink-2); font-size: 1rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .5s var(--ease); }
.row__go { width: 24px; height: 24px; color: var(--muted); transition: transform .5s var(--ease), color .2s; }
.row:hover .row__title { transform: translateX(8px); }
.row:hover .row__go { color: var(--ink); transform: translate(3px, -3px); }
.rows:not(.rows--dirs) .row__meta { white-space: normal; max-width: 34ch; font-size: .9375rem; color: var(--muted); }
.row__img { display: none; }
@media (hover: hover) and (min-width: 1100px) {
  .row__img {
    display: block; position: absolute; z-index: 3; right: 30%; top: 50%; width: 220px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden;
    opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.88); pointer-events: none; box-shadow: var(--shadow-2);
    transition: opacity .3s, transform .6s var(--ease);
  }
  .row__img img { width: 100%; height: 100%; object-fit: cover; }
  .row:hover .row__img { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
}
.promo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto 24px; align-items: center; gap: 20px; padding: 20px 24px;
  border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s;
}
.promo + .promo { margin-top: 10px; }
.promo:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.promo__label { padding: 4px 12px; border-radius: var(--pill); background: var(--accent); color: #121412; font-size: .875rem; font-weight: 600; }
.promo__title { font-weight: 500; font-size: 1.125rem; }
.promo__title small { display: block; font-weight: 400; color: var(--muted); font-size: .9375rem; }
.promo__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo__price s { color: var(--muted); margin-right: 6px; }
.promo__price b { font-weight: 600; font-size: 1.125rem; }
.promo__go { color: var(--muted); }

.warn-line { margin: 18px 0 0; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }

/* ---------- Лаборатория ---------- */
.lab { padding-top: 0; }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lab__media { margin: 0; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #1b1a1d; }
.lab__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transform-origin: 50% 30%; }
.lab__text .sh__title { margin-bottom: 0; }
.lab__text .sh__lead { margin-bottom: 18px; }
.craft__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.craft__stage { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 24px); }
.craft__screen { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #1b1a1d; }
.craft__video { width: 100%; height: 100%; object-fit: cover; }
.craft__badge { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--pill); color: #fff; font-size: .9375rem; font-variant-numeric: tabular-nums; background: rgba(20, 20, 22, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.craft__badge b { font-weight: 600; }
.craft__steps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.craft__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.craft__n { font-size: .9375rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.craft__step h3 { font-size: 1.25rem; margin-bottom: 6px; letter-spacing: -.01em; transition: color .3s; }
.craft__step p { margin: 0; color: var(--ink-2); }
@media (min-width: 901px) {
  .craft__step h3 { color: var(--muted); }
  .craft__step.is-active h3 { color: var(--ink); }
  .craft__step.is-active .craft__n { color: var(--ink); }
}
.craft__brands { margin: 28px 0 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Люди ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.person { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.person__photo { display: block; aspect-ratio: 4 / 5; margin-bottom: 18px; border-radius: var(--r-lg); overflow: hidden; background: #ece4d6; }
[data-theme="dark"] .person__photo { background: #222522; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1s var(--ease); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.person__role { margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.ph--doctor { padding-bottom: clamp(32px, 5vw, 64px); }
.doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.doctor__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #ece4d6; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.doctor__info .ph__title { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.doctor__exp { margin: 14px 0 0; font-weight: 500; }
.doctor__quote { margin: 20px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.doctor__dirs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.cv { display: flex; flex-direction: column; }
.cv__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 5vw, 80px); padding: 28px 0; border-top: 1px solid var(--line); }
.cv__title { font-size: 1.125rem; color: var(--muted); font-weight: 500; }
.cv__row ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.cv__courses li { display: flex; flex-direction: column; gap: 2px; }
.cv__courses b { font-weight: 500; }
.cv__courses span { color: var(--muted); font-size: .9375rem; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.cert { width: 96px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- Контакты на главной, финальный призыв ---------- */
.visit { padding-top: 0; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: var(--section); border-top: 1px solid var(--line); }
.visit__text .sh__title { font-size: clamp(2.25rem, 5vw, 4rem); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 10px; }
.visit__photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.cta { padding-block: 0 var(--section); }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: var(--section); border-top: 1px solid var(--line); }
.cta__title { font-size: clamp(2rem, 4.6vw, 3.75rem); letter-spacing: -.025em; max-width: 16ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Шапка внутренних страниц ---------- */
.ph { position: relative; overflow: clip; padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.ph > .container { position: relative; z-index: 1; }
.ph__jp {
  position: absolute; z-index: 0; top: clamp(20px, 4vw, 56px); right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  writing-mode: vertical-rl; font-family: var(--f-jp); font-size: clamp(3.5rem, 9vw, 8.5rem); line-height: 1; letter-spacing: .04em;
  color: var(--sakura-core); opacity: .16; pointer-events: none; user-select: none;
}
.ph--doctor .ph__jp, .ph:has(.ph__media) .ph__jp { display: none; }
.ph__inner { max-width: calc(980px + var(--gutter) * 2); margin-inline: 0; margin-inline: max(0px, calc((100% - var(--container) - var(--gutter) * 2) / 2)); }
.ph__title { font-size: clamp(2.375rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -.028em; }
.ph__lead { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--ink-2); }
.ph__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ph__meta { margin: 16px 0 0; color: var(--muted); font-size: .9375rem; }
.ph__meta:empty { display: none; }
.ph__media { margin: clamp(40px, 6vw, 72px) 0 0; aspect-ratio: 21 / 9; border-radius: var(--r-lg); overflow: hidden; background: #1b1a1d; }
.ph__media img, .ph__media video { width: 100%; height: 100%; object-fit: cover; }
.ph--app { padding-bottom: clamp(24px, 3vw, 40px); }
.ph--app .ph__title { font-size: clamp(2.125rem, 5vw, 3.75rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 24px; font-size: .9375rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- Цены ---------- */
.plist { border-top: 1px solid var(--line-2); }
.plist__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.plist__name { color: var(--ink-2); }
.plist__price { white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.plist__price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tier__seg { margin: 0 0 18px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.tier__term { margin: 0 0 14px; font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.tier__price { margin: -6px 0 14px; font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.tier__text { margin: 0; color: var(--ink-2); }
.tier__ex { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { width: 22px; height: 22px; color: var(--muted); transition: transform .45s var(--ease); }
.faq__item[open] summary .i { transform: rotate(45deg); color: var(--ink); }
.faq__a { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq__a p { margin: 0; }
.faq__item[open] .faq__a { animation: rise .45s var(--ease); }

.prices__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.prices__tools { position: sticky; z-index: 5; top: calc(var(--header-h) + var(--header-gap) + 12px); margin-bottom: 20px; transition: top .6s var(--ease); }
.header.is-hidden ~ main .prices__tools { top: 12px; }
.search { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border-radius: var(--pill); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px var(--line-input), var(--shadow-1); }
.search .i { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; outline: none; font-size: 1.0625rem; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-1); }
.prices__empty { padding: 20px 0; color: var(--ink-2); }
.pcat { border-bottom: 1px solid var(--line-2); scroll-margin-top: 168px; }
.pcat:first-of-type { border-top: 1px solid var(--line-2); }
.pcat__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 16px; min-height: 76px; padding: 14px 0; cursor: pointer; list-style: none; }
.pcat__sum::-webkit-details-marker { display: none; }
.pcat__title { font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.pcat__meta { color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.pcat__sum .i { width: 22px; height: 22px; color: var(--muted); transition: transform .45s var(--ease); }
.pcat[open] .pcat__sum .i { transform: rotate(45deg); color: var(--ink); }
.pcat[open] > .pgroup { animation: rise .45s var(--ease); }
.pgroup { padding-bottom: 18px; }
.pgroup__title { margin: 10px 0 6px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.pitems { list-style: none; padding: 0; }
.pitem { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; border-radius: 12px; transition: background-color .2s; }
.pitem.is-checked { background: var(--accent-soft); }
.pitem__label { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; padding: 4px 8px; cursor: pointer; }
.pitem__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pitem__box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-input); display: grid; place-items: center; background: var(--surface); transition: background-color .2s, border-color .2s; }
.pitem__box .i { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.pitem__check:checked + .pitem__box { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.pitem__check:checked + .pitem__box .i { opacity: 1; }
.pitem__check:focus-visible + .pitem__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.pitem__name { color: var(--ink-2); line-height: 1.4; }
.pitem__name mark { background: var(--accent); color: #121412; border-radius: 3px; padding: 0 2px; }
.pitem__price { padding-right: 8px; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.pitem__price s { margin-right: 6px; color: var(--muted); font-weight: 400; }
.estimate { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 12px); }
.estimate__box { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.estimate__title { margin: 0 0 12px; font-size: 1.125rem; font-weight: 500; }
.estimate__empty { margin: 0; color: var(--muted); font-size: .9375rem; }
.estimate__list { list-style: none; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.estimate__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.estimate__list b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate__list button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 1.25rem; }
.estimate__list button:hover { color: var(--danger); }
.estimate__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; }
.estimate__total b { font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate__actions { display: grid; gap: 8px; }
.estimate__hint { margin: 14px 0 0; color: var(--muted); font-size: .875rem; }
.est-bar { display: none; }
.note { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.note > .i { color: var(--muted); margin-top: 1px; }
.note--warn > .i { color: var(--danger); }

/* ---------- Результаты ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.ba-card { margin: 0; }
.ba { --pos: 50%; position: relative; aspect-ratio: 800 / 377; border-radius: var(--r-lg); overflow: hidden; background: #ece4d6; user-select: none; }
.ba__img { width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: var(--pill); color: #fff; font-size: .8125rem; font-weight: 500; background: rgba(20, 20, 22, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }
.ba__handle .i { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #121412; z-index: 1; }
.ba__handle .i:first-child { right: 4px; }
.ba__handle .i:last-child { left: 4px; }
@keyframes ba-hint { 0%, 100% { --pos: 50%; } 35% { --pos: 64%; } 70% { --pos: 42%; } }
@property --pos { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.ba.is-hint { animation: ba-hint 1.6s var(--ease) 1; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + * , .ba:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.ba-card figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.ba-card figcaption b { font-weight: 500; font-size: 1.125rem; }
.ba-card figcaption span { color: var(--muted); font-size: .9375rem; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.pair { margin: 0; }
.pair__img { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #ece4d6; }
.pair__img img { width: 100%; }
.pair__tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: var(--pill); color: #fff; font-size: .8125rem; background: rgba(20, 20, 22, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pair__tag--l { left: 12px; }
.pair__tag--r { right: 12px; }
.pair figcaption { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Отзывы ---------- */
.review-grid { columns: 3 300px; column-gap: 20px; }
.review { break-inside: avoid; margin: 0 0 20px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .9375rem; }
.review__src { color: var(--muted); }
.review blockquote { margin: 0 0 16px; color: var(--ink); line-height: 1.55; }
.review figcaption { display: flex; flex-direction: column; font-size: .9375rem; }
.review figcaption b { font-weight: 500; }
.review figcaption span { color: var(--muted); }
.review__reply { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }

/* ---------- О центре ---------- */
.letter__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.letter__photo { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 24px); margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.letter__photo img { width: 100%; height: 100%; object-fit: cover; }
.letter__text { max-width: 62ch; color: var(--ink-2); }
.letter__text .sh__title { color: var(--ink); margin-bottom: 28px; }
.letter__sign { display: flex; align-items: center; gap: 18px; margin-top: 32px; color: var(--ink); }
.letter__sign > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.letter__sign b { font-weight: 500; }
.letter__sign > span:last-child span { color: var(--muted); font-size: .9375rem; }
.film-card { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.film-card:hover img { transform: scale(1.03); }
.film-card__play { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 8px; border-radius: var(--pill); color: #fff; font-weight: 500; background: rgba(20, 20, 22, .38); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.film-card__play .i { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--accent); color: #121412; fill: currentColor; stroke: none; }
.film-card__play small { color: rgba(255, 255, 255, .72); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery__item { padding: 0; border: 0; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: #ece4d6; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.about-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-legal .fine { margin: 0; }

/* ---------- Пациентам, документы, реквизиты ---------- */
.docs { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.docs__item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.docs__item > span { flex: 1; min-width: 0; }
.docs__item small { color: var(--muted); white-space: nowrap; font-size: .875rem; }
.docs__item .i { color: var(--muted); transition: transform .45s var(--ease), color .2s; }
.docs__item:hover .i:last-child { color: var(--ink); transform: translateY(2px); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 40px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }
.callout b { font-size: 1.25rem; font-weight: 500; }
.callout p { margin: 4px 0 0; color: var(--ink-2); max-width: 52ch; }
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.org { padding-top: 24px; border-top: 1px solid var(--line-2); }
.kv { margin: 0; display: grid; }
.kv div { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.legal { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.legal .split > .h3 { color: var(--muted); }
.license-thumb { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 10px 18px 10px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); text-align: left; }
.license-thumb img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; }
.license-thumb span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contacts__info { display: flex; flex-direction: column; gap: 18px; }
.contacts__phone { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contacts__mail { color: var(--ink-2); }
.contacts__info .fine { margin: 0; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hours { margin: 0; display: grid; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.msgs { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line-input); text-decoration: none; font-size: .9375rem; font-weight: 500; transition: border-color .2s; }
.msg:hover { border-color: var(--ink); }
.msg .i { width: 18px; height: 18px; }
.msgs--icons .msg { width: 44px; padding: 0; justify-content: center; }
.msgs--icons .msg span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mapbox { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #ece4d6 linear-gradient(135deg, #f1f1ec, #e3e4dc); }
[data-theme="dark"] .mapbox { background: #1d201d; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox__load { position: absolute; inset: 0; margin: auto; width: max-content; height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; }
.mapbox.is-loaded .mapbox__load { display: none; }

/* ---------- Формы ---------- */
.card { padding: clamp(22px, 3.4vw, 36px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; margin-bottom: 18px; letter-spacing: -.012em; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-input); background: var(--surface);
  font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; padding-right: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%235b5f59' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #6f6970; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--ink); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field small { color: var(--muted); font-size: .875rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; flex: none; margin-top: -1px; border-radius: 7px; border: 1.5px solid var(--line-input); display: grid; place-items: center; background: var(--surface); transition: background-color .2s, border-color .2s; }
.check__box .i { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.check input:checked + .check__box .i { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__error { padding: 14px 16px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: .9375rem; }
.form__ok { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: var(--ok-soft); }
.form__ok .i { width: 28px; height: 28px; color: var(--ok); }
.form__ok b { display: block; font-size: 1.25rem; font-weight: 500; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.rate legend { width: 100%; margin-bottom: 6px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 2.125rem; line-height: 1; color: var(--line-input); cursor: pointer; font-family: system-ui, sans-serif; transition: color .15s, transform .3s var(--ease); }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #e6b400; }
.rate label:active { transform: scale(.9); }
.rate input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { width: 100%; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-input); background: var(--surface); font-size: .9375rem; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop__zone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; border-radius: var(--r); border: 1.5px dashed var(--line-input); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--ink); background: var(--accent-soft); }
.drop__zone .i { width: 28px; height: 28px; color: var(--muted); }
.drop__zone b { font-weight: 500; }
.drop__zone span { color: var(--muted); font-size: .9375rem; }
.drop input:focus-visible + .drop__zone { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop__list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.drop__list li { position: relative; width: 88px; height: 88px; border-radius: var(--r-sm); overflow: hidden; background: #ece4d6; }
.drop__list img { width: 100%; height: 100%; object-fit: cover; }
.drop__list button { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.drop__list button::before { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 20, 22, .7); }
.drop__list button .i { position: relative; width: 14px; height: 14px; color: #fff; }
.consult-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.consult-aside { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 24px); display: flex; flex-direction: column; gap: 4px; }
.consult-aside .note { margin: 0 0 16px; }
.mini-steps { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.mini-steps li { margin-bottom: 10px; }

/* ---------- Запись ---------- */
.app-loading { display: flex; align-items: center; gap: 14px; padding: 60px 0; color: var(--muted); }
.app-loading .kiku { width: 30px; height: 30px; color: var(--ink); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.bk-steps { display: flex; flex-direction: column; gap: 12px; }
.bk-step { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s; }
.bk-step.is-active { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.bk-step__head { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 16px 22px; border: 0; border-radius: var(--r-lg); background: none; text-align: left; }
.bk-step__num { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-input); font-weight: 500; font-variant-numeric: tabular-nums; }
.bk-step.is-active .bk-step__num { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bk-step.is-done .bk-step__num { background: var(--accent); border-color: transparent; color: #121412; box-shadow: inset 0 0 0 1px rgba(18, 20, 18, .14); }
.bk-step__head .i { width: 18px; height: 18px; stroke-width: 2.4; }
.bk-step__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.bk-step__value { margin-left: auto; color: var(--muted); font-size: .9375rem; text-align: right; }
.bk-step.is-locked { opacity: .5; }
.bk-step__body { padding: 0 22px 24px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.bk-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-input); background: var(--surface); text-align: left; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.bk-opt:hover { border-color: var(--ink); }
.bk-opt.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft); }
.bk-opt b { font-weight: 500; line-height: 1.3; }
.bk-opt small { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.bk-opt__price { margin-top: 6px; font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.bk-opt__price s { margin-right: 4px; color: var(--muted); font-weight: 400; font-size: .9em; }
.bk-opt__badge { position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: var(--pill); background: var(--accent); color: #121412; font-size: .75rem; font-weight: 600; }
.bk-opt--urgent .bk-opt__badge { background: var(--danger); color: #fff; }
.bk-doc { flex-direction: row; align-items: center; gap: 14px; }
.bk-doc > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bk-doc img, .bk-doc__any { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.bk-doc__any { display: grid; place-items: center; background: #121412; color: var(--accent); }
.bk-doc__any .kiku { width: 32px; height: 32px; }
.bk-days { display: grid; grid-auto-flow: column; grid-auto-columns: 76px; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bk-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r-sm); border: 1px solid var(--line-input); background: var(--surface); scroll-snap-align: start; transition: border-color .2s, background-color .2s; }
.bk-day:hover:not(:disabled) { border-color: var(--ink); }
.bk-day__dow { font-size: .8125rem; color: var(--muted); }
.bk-day__num { font-size: 1.5rem; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bk-day__mon { font-size: .8125rem; color: var(--muted); }
.bk-day__count { margin-top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.bk-day.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft); }
.bk-day.is-selected .bk-day__count { background: var(--ink); }
.bk-day:disabled { opacity: .35; cursor: not-allowed; }
.bk-day:disabled .bk-day__count { background: transparent; }
.bk-slots { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.bk-slots__label { margin: 0 0 8px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.bk-slots__list { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-slot { min-width: 80px; height: 48px; border-radius: var(--pill); border: 1px solid var(--line-input); background: var(--surface); font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, transform .3s var(--ease); }
.bk-slot:hover { border-color: var(--ink); }
.bk-slot:active { transform: scale(.96); }
.bk-slot.is-selected { background: var(--accent); border-color: transparent; color: #121412; box-shadow: inset 0 0 0 1px rgba(18, 20, 18, .18); }
.bk-empty { padding: 20px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink-2); }
.bk-summary { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 20px); padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.bk-summary__title { margin: 0 0 14px; font-size: 1.25rem; font-weight: 500; }
.bk-summary__row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.bk-summary__row .i { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.bk-summary__row span { color: var(--muted); }
.bk-summary__row b { display: block; color: var(--ink); font-weight: 500; }
.bk-summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 6px; }
.bk-summary__total b { font-size: 1.625rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.bk-summary p { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.bk-done { position: relative; max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); text-align: center; }
.bk-done__seal { position: relative; width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: #121412; color: var(--accent); animation: pop .8s var(--ease) both; }
.bk-done__seal .kiku { width: 58px; height: 58px; animation: spin 18s linear infinite; }
.bk-done__seal .enso { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); color: var(--shu); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bk-done h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -.022em; margin-bottom: 12px; }
.bk-done__code { display: inline-block; margin: 6px 0 18px; padding: 8px 20px; border-radius: var(--r-sm); border: 1px dashed var(--line-input); font-size: 1.625rem; font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.bk-done__facts { display: grid; gap: 8px; max-width: 460px; margin: 0 auto 24px; padding: 18px 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.bk-done__facts div { display: flex; justify-content: space-between; gap: 14px; font-size: .9375rem; }
.bk-done__facts span { color: var(--muted); }
.bk-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Кабинет ---------- */
.section--account { padding-top: clamp(24px, 4vw, 48px); }
.auth { max-width: 520px; margin: 0 auto; }
.auth__card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.auth__title { font-size: clamp(1.875rem, 4vw, 2.5rem); letter-spacing: -.022em; margin-bottom: 8px; }
.auth__tabs { display: flex; gap: 4px; margin: 22px 0 24px; padding: 4px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth__tabs button { flex: 1; min-height: 44px; border: 0; border-radius: var(--pill); background: none; font-weight: 500; color: var(--ink-2); }
.auth__tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.auth__perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.auth__perks li { display: flex; gap: 10px; }
.auth__perks .i { color: var(--ok); }
.acc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.acc__side { position: sticky; top: calc(var(--header-h) + var(--header-gap) + 20px); display: flex; flex-direction: column; gap: 14px; }
.acc__hello { padding: 22px; border-radius: var(--r-lg); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }
.acc__hello .kicker { margin-bottom: 6px; }
.acc__hello small { color: var(--muted); font-size: .875rem; }
.acc__hello b { display: block; margin: 4px 0 8px; font-size: 1.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.acc__nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.acc__nav button { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: .9375rem; color: var(--ink-2); }
.acc__nav button .i { width: 20px; height: 20px; color: var(--muted); }
.acc__nav button:hover { color: var(--ink); }
.acc__nav button[aria-current="true"] { color: var(--ink); font-weight: 500; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }
.acc__nav button[aria-current="true"] .i { color: var(--ink); }
.acc__nav .dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--danger); color: #fff; font-size: .75rem; display: grid; place-items: center; box-shadow: none; }
.acc__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acc__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.022em; }
.acc-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--line); }
.acc-banner > .i { width: 24px; height: 24px; color: var(--ink); }
.acc-banner b { display: block; font-weight: 500; }
.acc-banner p { margin: 4px 0 10px; color: var(--ink-2); font-size: .9375rem; }
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.acc-item.is-past { background: transparent; }
.acc-item.is-past h3 { color: var(--ink-2); }
/* медкарта в кабинете */
.acc-item--med { align-items: start; grid-template-columns: 76px minmax(0, 1fr); }
.med-type { display: block; margin-bottom: 2px; color: var(--muted); font-size: .8125rem; }
.acc-item .med-text { white-space: pre-line; margin-top: 6px; color: var(--ink); }
.acc-item .med-doc { margin-top: 8px; font-size: .8125rem; }
.med-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.med-files img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.acc-item__date { padding: 8px 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); text-align: center; line-height: 1.1; }
.acc-item__date b { display: block; font-size: 1.75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.acc-item__date small { color: var(--muted); font-size: .8125rem; }
.acc-item h3 { font-size: 1.125rem; margin-bottom: 4px; }
.acc-item p { margin: 0; color: var(--muted); font-size: .9375rem; }
.acc-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: .875rem; font-weight: 500; background: var(--line); color: var(--ink-2); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--new { background: var(--warn-soft); color: #6b5800; }
.status--confirmed, .status--answered, .status--ready, .status--done-ok { background: var(--ok-soft); color: var(--ok); }
.status--cancelled, .status--rejected, .status--noshow { background: var(--danger-soft); color: var(--danger); }
.status--done, .status--issued, .status--closed { color: var(--muted); }
.status--work { background: var(--accent-soft); color: var(--ink); }
[data-theme="dark"] .status--new { color: #f3e27a; }
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg-b { max-width: 86%; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.msg-b--patient { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 6px; }
.msg-b--clinic { align-self: flex-start; border-bottom-left-radius: 6px; }
.msg-b__who { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .8125rem; color: var(--muted); }
.msg-b__who b { color: var(--ink); font-weight: 500; }
.msg-b p { margin: 0; white-space: pre-wrap; }
.msg-b__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.msg-b__files a { display: block; width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; background: #ece4d6; }
.msg-b__files img { width: 100%; height: 100%; object-fit: cover; }
.msg-b__files .file { display: flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 8px 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; text-decoration: none; }
.fam { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fam__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fam__item b { display: block; font-weight: 500; }
.fam__item small { color: var(--muted); }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(72px, 12vw, 160px); }
.nf__inner { max-width: 760px; }
.nf__mark { position: relative; display: grid; place-items: center; width: 160px; height: 160px; margin-bottom: 28px; }
.nf__mark .enso { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: .85; }
.nf__mark span { position: relative; font-family: var(--f-jp); font-size: 4rem; line-height: 1; color: var(--shu); }
.nf__code { margin: 0 0 18px; font-size: .9375rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Подвал ---------- */
.footer {
  position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%2317151b' stroke-opacity='.07' stroke-width='.8'%3E%3Cpath d='M0 28a28 28 0 0 1 56 0M7 28a21 21 0 0 1 42 0M14 28a14 14 0 0 1 28 0M21 28a7 7 0 0 1 14 0'/%3E%3Cpath d='M-28 14a28 28 0 0 1 56 0M-21 14a21 21 0 0 1 42 0M-14 14a14 14 0 0 1 28 0M-7 14a7 7 0 0 1 14 0M28 14a28 28 0 0 1 56 0M35 14a21 21 0 0 1 42 0M42 14a14 14 0 0 1 28 0M49 14a7 7 0 0 1 14 0'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 56px 28px;
}
[data-theme="dark"] .footer { background-image: none; }
.footer__warn { margin: 0; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: .9375rem; font-weight: 500; color: var(--ink); text-align: center; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer__logo { display: inline-flex; margin-bottom: 22px; text-decoration: none; }
.footer__phone { display: block; margin-bottom: 8px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; text-decoration: none; font-variant-numeric: tabular-nums; }
.footer__addr { color: var(--ink-2); font-size: .9375rem; margin-bottom: 18px; }
.footer__title { margin: 0 0 14px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.footer__col a { display: inline-block; padding: 7px 0; color: var(--ink-2); font-size: .9375rem; text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 28px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer__legal { margin: 0; max-width: 90ch; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer__links a { display: inline-block; padding: 10px 0; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__tools { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer__tools .linklike { min-height: 44px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.footer__tools .linklike:hover { color: var(--ink); }
.footer__tools .i { width: 17px; height: 17px; }
.footer__mark { padding: 0 var(--gutter) 24px; color: var(--ink); opacity: .05; }
.footer__mark svg { width: 100%; height: auto; max-width: calc(var(--container)); margin-inline: auto; }

/* ---------- Диалоги, куки, уведомление ---------- */
.dlg { max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); }
.dlg::backdrop { background: rgba(15, 17, 15, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg[open] { animation: dlg-in .45s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(20, 20, 22, .45); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dlg__close:hover { background: rgba(20, 20, 22, .7); box-shadow: none; }
.dlg--film { width: min(1200px, 94vw); }
.dlg__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #000; }
.dlg--lightbox { width: min(1100px, 94vw); }
.dlg--lightbox img { width: auto; max-height: 88vh; margin: 0 auto; border-radius: var(--r); background: #fff; }
.dlg--form, .dlg--ask { width: min(540px, 94vw); padding: clamp(24px, 4vw, 36px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); }
.dlg--form .dlg__close, .dlg--ask .dlg__close { background: transparent; color: var(--ink); }
.dlg--form .dlg__close:hover { background: var(--bg); }
.dlg__title { margin-bottom: 20px; padding-right: 40px; font-size: 1.75rem; letter-spacing: -.02em; }
.dlg--ask { width: min(460px, 94vw); }
.dlg--ask .dlg__title { font-size: 1.5rem; margin-bottom: 12px; }
.dlg--ask p { margin: 0 0 22px; color: var(--ink-2); }
.dlg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cookie {
  position: fixed; z-index: 80; left: 16px; bottom: 16px; max-width: 460px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px;
  border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-2); font-size: .875rem; animation: rise .5s var(--ease);
}
.cookie p { margin: 0; color: var(--ink-2); }
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 24px; max-width: min(520px, 92vw); padding: 14px 22px; border-radius: var(--pill);
  background: var(--glass); color: var(--ink); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-2); font-size: .9375rem; font-weight: 500;
  transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .6s var(--ease), opacity .3s, visibility 0s linear .6s;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Нижняя панель на телефоне: жидкое стекло, сжимается в капсулу ---------- */
.mbar { display: none; }
.mbar__haptic { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  :root { --mbar-sab: 0px; }
  .mbar {
    --w: min(100% - 32px, 360px);
    --glass-bar: rgba(255, 255, 255, .55);
    --spring: cubic-bezier(.22, 1, .36, 1);
    position: fixed; z-index: 70; left: 50%; right: auto; bottom: max(10px, var(--mbar-sab)); width: var(--w);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 4px; padding: 4px;
    border-radius: 999px; overflow: hidden; isolation: isolate; color: #121412; background: var(--glass-bar);
    -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 -1px 1px rgba(18, 20, 18, .06), 0 12px 32px -10px rgba(18, 20, 18, .38), 0 2px 8px rgba(18, 20, 18, .08);
    transform: translateX(-50%);
    transition: width .8s var(--spring), padding .8s var(--spring), gap .8s var(--spring), transform .7s var(--spring), background-color .5s, color .5s, box-shadow .5s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; contain: layout paint;
  }
  .mbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(90px 56px at var(--tx, 50%) var(--ty, -30%), rgba(255, 255, 255, .6), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%);
    opacity: .75; transition: opacity .3s;
  }
  .mbar.is-pressed::before { opacity: 1; }
  .mbar.is-on-dark, [data-theme="dark"] .mbar {
    --glass-bar: rgba(28, 30, 28, .45); color: #f1f2ec;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px -10px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .25);
  }
  .mbar.is-on-dark::before, [data-theme="dark"] .mbar::before { opacity: .4; }
  .mbar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 5px 4px;
    border-radius: 999px; color: inherit; text-decoration: none; font-size: .8125rem; font-weight: 500; line-height: 1.2;
    transition: transform .6s var(--spring), min-height .8s var(--spring), padding .8s var(--spring), background-color .3s, box-shadow .3s;
  }
  .mbar__btn:active { transform: scale(.94); transition-duration: .18s; transition-timing-function: cubic-bezier(.3, 0, .2, 1); }
  .mbar__btn .i { width: 21px; height: 21px; transition: width .8s var(--spring), height .8s var(--spring); }
  .mbar__btn span { max-height: 1.3em; overflow: hidden; white-space: nowrap; transition: opacity .35s ease .22s, max-height .8s var(--spring); }
  .mbar__btn--main { background: var(--accent); color: #121412; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 0 rgba(120, 128, 0, .25), 0 6px 16px -8px rgba(150, 160, 0, .9); }
  .mbar.is-mini { --w: 112px; padding: 3px; gap: 2px; cursor: pointer; transition-timing-function: var(--settle); transition-duration: .6s; transition-delay: .06s; }
  .mbar.is-mini .mbar__btn { min-height: 36px; padding: 0; pointer-events: none; transition-timing-function: var(--settle); transition-duration: .6s; transition-delay: .06s; }
  .mbar.is-mini .mbar__btn span { opacity: 0; max-height: 0; transition: opacity .14s ease, max-height .6s var(--settle) .06s; }
  .mbar.is-mini .mbar__btn .i { width: 18px; height: 18px; }
  .mbar.is-mini .mbar__btn--main { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
  .mbar.is-hidden, .mbar.is-kb { transform: translate(-50%, calc(100% + var(--mbar-sab) + 24px)); visibility: hidden; transition: transform .5s var(--settle), visibility 0s linear .5s; }
  .mbar__btn:focus-visible { outline-offset: -3px; }
  .cookie { left: 10px; right: 10px; bottom: calc(max(10px, var(--mbar-sab)) + 66px); }
  .toast { bottom: calc(max(10px, var(--mbar-sab)) + 68px); }
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@supports (transition-timing-function: linear(0, 1)) {
  .mbar { --spring: linear(0, 0.0457, 0.1512, 0.2816, 0.4151, 0.5393, 0.6479, 0.7385, 0.8115, 0.8684, 0.9116, 0.9433, 0.9659, 0.9815, 0.9919, 0.9984, 1.0022, 1.0042, 1.0049, 1.005, 1.0046, 1.0039, 1.0033, 1.0026, 1.002, 1.0015, 1.0011, 1.0008, 1.0005, 1.0004, 1.0002, 1.0001, 1.0001, 1, 1); }
}
@media (max-width: 700px) and (display-mode: standalone) { :root { --mbar-sab: env(safe-area-inset-bottom, 0px); } }
/* Нижняя панель сжимается без пересчёта раскладки (класс has-glass ставит initMbar; без скрипта панель прежняя).
   Ширина и высота панели постоянны. Стекло рисует слой .mbar__glass, в капсулу его стягивает clip-path; тень это
   размытая пилюля .mbar__shade, она сжимается transform; иконки едут transform к местам в капсуле; лаймовый фон
   главной кнопки режет её собственный clip-path. Места считает initMbar и кладёт в переменные. Раньше на каждом кадре
   менялись ширина, отступы и высота кнопок: пересчёт раскладки и размытия стекла, на телефоне это рывки. */
@media (max-width: 700px) {
  .mbar.has-glass { --mini-x: 0px; --mini-top: 0px; --mini-sx: 1; --mini-sy: 1; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; overflow: visible; contain: layout; }
  .mbar.has-glass::before { display: none; }
  .mbar__glass, .mbar__shade { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; }
  .mbar__shade { z-index: -2; background: rgba(18, 20, 18, .3); filter: blur(14px); transform: translateY(10px) scale(.96, .8); transform-origin: 50% 100%; transition: transform .8s var(--spring), opacity .5s; }
  .mbar__glass {
    z-index: -1; overflow: hidden; pointer-events: auto; background: var(--glass-bar);
    -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 -1px 1px rgba(18, 20, 18, .06);
    clip-path: inset(0 round 999px); transition: clip-path .8s var(--spring), background-color .5s, box-shadow .5s;
  }
  .mbar__glass::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .75; transition: opacity .3s;
    background: radial-gradient(90px 56px at var(--tx, 50%) var(--ty, -30%), rgba(255, 255, 255, .6), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%);
  }
  .mbar.is-pressed .mbar__glass::before { opacity: 1; }
  .mbar.is-on-dark .mbar__glass, [data-theme="dark"] .mbar__glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .12); }
  .mbar.is-on-dark .mbar__glass::before, [data-theme="dark"] .mbar__glass::before { opacity: .4; }
  .mbar.is-on-dark .mbar__shade, [data-theme="dark"] .mbar__shade { background: rgba(0, 0, 0, .55); }
  .mbar.has-glass .mbar__btn .i { transition: transform .8s var(--spring); }
  .mbar.has-glass .mbar__btn span { transition: opacity .3s ease .24s, transform .6s var(--spring) .1s; }
  .mbar.has-glass .mbar__btn--main { clip-path: inset(-14px round 999px); transition: transform .6s var(--spring), clip-path .8s var(--spring), box-shadow .3s; }
  .mbar.has-glass.is-mini { --w: min(100% - 32px, 360px); padding: 4px; gap: 4px; pointer-events: none; cursor: default; }
  .mbar.has-glass.is-mini .mbar__glass { pointer-events: auto; cursor: pointer; clip-path: inset(var(--mini-top) var(--mini-x) 0 var(--mini-x) round 999px); transition: clip-path .6s var(--settle) .06s, background-color .5s, box-shadow .5s; }
  .mbar.has-glass.is-mini .mbar__shade { opacity: .85; transform: translateY(6px) scale(calc(var(--mini-sx) * .96), calc(var(--mini-sy) * .8)); transition: transform .6s var(--settle) .06s, opacity .4s; }
  .mbar.has-glass.is-mini .mbar__btn { min-height: 48px; padding: 5px 4px; }
  .mbar.has-glass.is-mini .mbar__btn .i { width: 21px; height: 21px; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.86); transition: transform .6s var(--settle) .06s; }
  .mbar.has-glass.is-mini .mbar__btn span { opacity: 0; max-height: 1.3em; transform: translateY(8px); transition: opacity .14s ease, transform .3s ease; }
  .mbar.has-glass.is-mini .mbar__btn--main { clip-path: inset(var(--pt) var(--pr) var(--pb) var(--pl) round 999px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); transition: clip-path .6s var(--settle) .06s, box-shadow .3s; }
}
html.lite .mbar__glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y .mbar__glass::before { display: none; }
html.lite .mbar__shade { display: none; }

/* ---------- Появление, переходы, прогресс чтения ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
  body:not(.page-home)::after {
    content: ''; position: fixed; z-index: 100; inset: 0 0 auto; height: 2px; background: var(--ink); transform-origin: 0 50%;
    animation: read-progress linear both; animation-timeline: scroll(root block); pointer-events: none;
  }
  @keyframes read-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@view-transition { navigation: auto; }
@property --vt-r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes vt-ink { from { --vt-r: 0%; } to { --vt-r: 150%; } }
@keyframes vt-sink { to { opacity: .55; transform: scale(.985); } }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-sink .62s ease both; }
  ::view-transition-new(root) {
    -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 var(--vt-r), transparent calc(var(--vt-r) + 16%));
    mask-image: radial-gradient(circle at 50% 46%, #000 var(--vt-r), transparent calc(var(--vt-r) + 16%));
    animation: vt-ink .62s cubic-bezier(.55, 0, .15, 1) both;
  }
}
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Фирменные приёмы ---------- */

/* Живой статус «Открыто до 21:00» */
.live { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 22px; padding: 7px 14px 7px 12px; border-radius: var(--pill); font-size: .9375rem; font-weight: 500; color: #f4efe6; background: rgba(23, 21, 27, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; }
.live.is-open i { background: #5fd38a; }
.live.is-open i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #5fd38a; animation: live-ping 2.2s var(--ease) infinite; }
@keyframes live-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

/* 最も рисуется тушью: контур проводится кистью, затем проступает бледная заливка */
svg.hero__jp {
  position: absolute; z-index: 1; right: clamp(10px, 5vw, 100px); bottom: clamp(100px, 15vh, 190px);
  width: clamp(90px, 11vw, 190px); height: auto; overflow: visible; pointer-events: none;
  -webkit-text-stroke: 0; color: inherit; writing-mode: horizontal-tb; font-size: inherit;
}
svg.hero__jp text { font-family: var(--f-jp); font-size: 172px; fill: rgba(244, 239, 230, 0); stroke: rgba(244, 239, 230, .55); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js svg.hero__jp text { stroke-dashoffset: 1400; animation: ink-draw 3.4s cubic-bezier(.45, .05, .25, 1) .5s forwards, ink-fill 2.4s ease 3.2s forwards; }
.js svg.hero__jp text + text { animation-delay: 1.6s, 3.8s; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@keyframes ink-fill { to { fill: rgba(244, 239, 230, .1); stroke: rgba(244, 239, 230, .38); } }

/* Прокрутка первого экрана: видео приближается и темнеет, текст уходит медленнее страницы */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg { animation: hero-deep linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .hero__inner { animation: hero-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    .hero__branch { animation: hero-branch linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
  @keyframes hero-deep { to { transform: scale(1.14); filter: brightness(.55); } }
  @keyframes hero-lift { to { transform: translateY(-14vh); opacity: .15; } }
  @keyframes hero-branch { to { transform: translate(4%, -10%) rotate(-3deg); } }
}

/* Лаборатория свитком */
.story { padding-bottom: 0; }
.story__pin { padding-bottom: var(--section); }
.story__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.story__count { display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; font-family: var(--f-jp); color: var(--shu); }
.story__count b { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 400; line-height: 1; min-width: 1.1em; text-align: center; transition: transform .5s var(--ease); }
.story__count span { font-size: clamp(1.25rem, 2vw, 1.75rem); color: var(--muted); }
.story__viewport { overflow: clip; }
.story__track {
  list-style: none; margin: 0; display: flex; gap: clamp(16px, 2vw, 28px);
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); scrollbar-width: none; will-change: transform;
}
.story__track::-webkit-scrollbar { display: none; }
.story__card { flex: 0 0 clamp(270px, 30vw, 400px); scroll-snap-align: start; transition: opacity .5s; }
.story__media { position: relative; aspect-ratio: 4 / 5; margin-bottom: 18px; border-radius: var(--r-lg); overflow: hidden; background: #1b1a1d; box-shadow: var(--shadow-1); }
.story__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.story__card.is-active .story__media video { transform: scale(1); }
.story__num {
  position: absolute; left: 16px; top: 12px; font-family: var(--f-jp); font-size: 3.25rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .85); text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.story__card h3 { display: flex; gap: 12px; align-items: baseline; font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: 8px; }
.story__card h3 span { font-size: .9375rem; font-weight: 500; color: var(--shu); font-variant-numeric: tabular-nums; }
.story__card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.story__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.story__bar { position: relative; flex: 1; max-width: 420px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.story__bar i { position: absolute; inset: 0; background: var(--shu); transform-origin: 0 50%; transform: scaleX(.04); }
.story.is-pinned .story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + var(--header-gap) + 12px) 32px; }
.story.is-pinned .story__track { overflow: visible; scroll-snap-type: none; }
.story.is-pinned .story__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.story__media { transition: transform .7s var(--ease), box-shadow .7s var(--ease), filter .7s; }
.story.is-pinned .story__card:not(.is-active) .story__media { filter: saturate(.7); }
.story.is-pinned .story__card.is-active .story__media { transform: translateY(-8px); box-shadow: var(--shadow-2); }
.story.is-pinned .story__card p { color: var(--muted); transition: color .5s; }
.story.is-pinned .story__card.is-active p { color: var(--ink-2); }
.story-in .rail, .story-in .island { opacity: 0 !important; visibility: hidden !important; pointer-events: none; transition: opacity .3s, visibility 0s linear .3s; }
.story.is-pinned .story__viewport { flex: none; overflow: clip; }
.story.is-pinned .story__media { aspect-ratio: auto; height: clamp(200px, calc(100svh - 520px), 520px); }

/* Рельс разделов иероглифами */
.rail { position: fixed; z-index: 55; left: max(12px, calc((100vw - var(--container)) / 2 - 110px)); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 6px; }
.rail a { position: relative; display: flex; align-items: center; width: 36px; min-height: 36px; text-decoration: none; color: var(--muted); transition: color .3s; }
.rail span { font-family: var(--f-jp); font-size: 1.125rem; width: 28px; text-align: center; transition: transform .45s var(--ease); }
.rail em { position: absolute; left: 100%; margin-left: 6px; font-style: normal; font-size: .8125rem; font-weight: 500; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.rail a:hover em, .rail a:focus-visible em { opacity: 1; transform: none; }
.rail a[aria-current] { color: var(--shu); }
.rail a[aria-current] span { transform: scale(1.35); }
.rail.on-dark a { color: rgba(244, 239, 230, .55); }
.rail.on-dark a[aria-current] { color: #fff; }
@media (min-width: 1360px) and (hover: hover) { .rail { display: flex; } }

/* «Остров» с ближайшим временем */
.island {
  position: fixed; z-index: 58; left: 50%; bottom: 22px; display: none; align-items: center; gap: 14px; padding: 6px 6px 6px 20px;
  border-radius: var(--pill); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 1px 0 rgba(255, 255, 255, .6), var(--shadow-2); font-size: .9375rem;
  transform: translate(-50%, 140%) scale(.9); opacity: 0; visibility: hidden;
  transition: transform .7s var(--settle), opacity .4s, visibility 0s linear .7s;
}
.island.is-shown { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.island__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.island__text b { font-weight: 600; }
.acc--offline [data-resched] { display: none; } /* онлайн-запись выключена: перенос по телефону */
@media (min-width: 1100px) { .island { display: flex; } }

/* Превью услуги за курсором */
.dirs-float {
  position: fixed; z-index: 40; left: 0; top: 0; width: 260px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; pointer-events: none;
  box-shadow: var(--shadow-2); opacity: 0; scale: .8; transition: opacity .3s, scale .5s var(--ease);
}
.dirs-float img { width: 100%; height: 100%; object-fit: cover; }
.dirs-float.is-on { opacity: 1; scale: 1; }
.row__img { display: none !important; }

/* Печать со стажем на фото врача */
.person__photo { position: relative; }
.person__seal {
  position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 10px;
  background: var(--shu); color: #fff3ea; transform: rotate(-6deg); line-height: 1; text-align: center;
  box-shadow: inset 0 0 0 3px rgba(255, 243, 234, .55), inset 0 0 0 4px var(--shu), 0 8px 18px -8px rgba(120, 30, 20, .6);
}
.person__seal b { font-size: 1.5rem; font-weight: 600; }
.person__seal small { margin-top: -6px; font-size: .6875rem; font-weight: 500; }

/* Тушь растекается: фото раскрывается мягким кругом при появлении */
@property --ink-r { syntax: '<percentage>'; inherits: false; initial-value: 150%; }
.js .ink { --ink-r: -10%; -webkit-mask-image: radial-gradient(circle at 35% 55%, #000 var(--ink-r), transparent calc(var(--ink-r) + 22%)); mask-image: radial-gradient(circle at 35% 55%, #000 var(--ink-r), transparent calc(var(--ink-r) + 22%)); transition: --ink-r 1.8s cubic-bezier(.3, .6, .2, 1); }
.js .ink.is-in { --ink-r: 150%; }

/* Цены: закладки разделов и смета-квитанция */
.pcats { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pcats::-webkit-scrollbar { display: none; }
@media (min-width: 701px) { .pcats { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
.pcats__chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: box-shadow .2s, color .2s; }
.pcats__chip:hover { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.receipt {
  position: relative; padding: 28px 24px 30px; border-radius: 6px; background: #fffdf8;
  box-shadow: 0 1px 0 rgba(23, 21, 27, .04), 0 24px 50px -28px rgba(58, 44, 44, .45);
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) top / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) bottom / 20px 51% repeat-x;
  mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) top / 20px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) bottom / 20px 51% repeat-x;
}
[data-theme="dark"] .receipt { background: #24202a; }
.receipt__head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-input); }
.receipt__jp { display: block; margin-bottom: 6px; font-family: var(--f-jp); font-size: 1.375rem; letter-spacing: .3em; color: var(--shu); }
.receipt .estimate__title { font-size: 1.25rem; margin-bottom: 4px; padding-right: 72px; }
.receipt__meta { padding-right: 72px; }
.receipt__meta { margin: 0; font-size: .8125rem; color: var(--muted); }
.receipt .estimate__list li { border-bottom-style: dashed; animation: rise .4s var(--ease); }
.receipt .estimate__list { max-height: max(160px, calc(100svh - 560px)); }
.estimate { filter: drop-shadow(0 22px 34px rgba(58, 44, 44, .22)); }
.receipt__close { display: none; position: absolute; right: 8px; top: 8px; }
.est-bar__open { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: 1rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line-2); }
.receipt__sum { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-input); }
.receipt .estimate__total { margin: 0 0 8px; }
.receipt .estimate__total b { font-size: 1.75rem; }
.receipt__tax { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ink); font-size: .875rem; }
.receipt__tax b { color: var(--ok); font-variant-numeric: tabular-nums; }
.receipt__tax a { margin-left: 4px; color: var(--ink-2); }
.receipt__stamp {
  position: absolute; right: 18px; top: 22px; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%;
  font-family: var(--f-jp); font-size: 1.125rem; letter-spacing: .1em; color: var(--shu); border: 2px solid var(--shu);
  box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px var(--shu); opacity: 0; transform: rotate(-14deg) scale(.6); pointer-events: none;
}
[data-theme="dark"] .receipt__stamp { box-shadow: inset 0 0 0 3px #24202a, inset 0 0 0 4px var(--shu); }
.receipt.is-stamped .receipt__stamp { opacity: .85; transform: rotate(-14deg) scale(1); }
.receipt.is-stamping .receipt__stamp { animation: stamp .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-30deg) scale(2.2); } 55% { opacity: .95; transform: rotate(-12deg) scale(.92); } 100% { opacity: .85; transform: rotate(-14deg) scale(1); } }

/* Подпись mottomo в подвале прорисовывается кистью */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer__mark { opacity: .07; }
    .footer__mark svg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
  @keyframes mark-draw { to { stroke-dashoffset: 0; } }
}

@media (max-width: 999px) {
  .story__head { align-items: flex-start; }
  .story__count b { font-size: 3rem; }
  .story__card { flex-basis: 78%; }
}
@media (max-width: 700px) {
  .live { margin-bottom: 18px; font-size: .875rem; }
  svg.hero__jp { display: none; }
  .story .sec-jp { display: none; }
  .person__seal { width: 52px; height: 52px; left: 10px; bottom: 10px; }
  .person__seal b { font-size: 1.25rem; }
  .story__foot .link { display: none; }
  .receipt__stamp { width: 56px; height: 56px; font-size: 1rem; }
}
html.calm .live i::after, html.calm svg.hero__jp text, html.calm .intro__kiku .kiku,
html.a11y .live i::after, html.a11y svg.hero__jp, html.a11y .rail, html.a11y .dirs-float { display: none; }
html.a11y .js .ink, html.a11y .ink { -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) { .js .ink { -webkit-mask-image: none; mask-image: none; } .js svg.hero__jp text { stroke-dashoffset: 0; animation: none; } }

/* Загрузка при входе: бумага с решёткой кумико, кольцо-энсо по ходу загрузки, надпись кистью, двери-сёдзи.
   Без скриптов загрузки нет; если скрипт не дошёл, двери откроются сами через 5,5 с. */
.intro { display: none; }
.js:not(.intro-seen) .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; animation: intro-failsafe 0s linear 6.2s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }
.intro.is-done { pointer-events: none; }
.intro__door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), #6b4f3a calc(25% - 3px) 25%),
    repeating-linear-gradient(0deg, transparent 0 calc(16.66% - 3px), #6b4f3a calc(16.66% - 3px) 16.66%),
    radial-gradient(120% 90% at 50% 50%, #fbf6ea, #ece2cd);
  box-shadow: inset 0 0 0 10px #4a3628, inset 0 0 80px rgba(74, 54, 40, .22);
  animation: shoji-open 1.15s cubic-bezier(.7, 0, .2, 1) 5.5s forwards;
}
.intro__door--l { left: 0; --to: -102%; }
.intro__door--r { right: 0; --to: 102%; }
.intro.is-done .intro__door { animation: shoji-open2 1.2s cubic-bezier(.7, 0, .2, 1) .3s forwards; }
@keyframes shoji-open { to { transform: translateX(var(--to)); } }
@keyframes shoji-open2 { to { transform: translateX(var(--to)); } }
.intro__center { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 44px 26px; border-radius: 28px; background: radial-gradient(closest-side, rgba(251, 246, 234, .96), rgba(251, 246, 234, .88) 70%, rgba(251, 246, 234, 0)); transition: opacity .5s ease, transform .7s var(--ease); }
.intro.is-done .intro__center { opacity: 0; transform: scale(1.08); }
.intro__mark { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.intro__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.intro__track { fill: none; stroke: rgba(74, 54, 40, .12); stroke-width: 3; }
.intro__bar { fill: none; stroke: var(--shu); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 2px 4px rgba(194, 58, 42, .25)); }
.intro__kiku { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #17151b; color: var(--accent); box-shadow: 0 12px 30px -12px rgba(23, 21, 27, .6); animation: intro-kiku .9s var(--ease) both; }
.intro__kiku .kiku { width: 70px; height: 70px; animation: spin 7s linear infinite; }
@keyframes intro-kiku { from { transform: scale(.4) rotate(-40deg); opacity: 0; } }
.intro__word { width: 168px; height: auto; color: #17151b; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-draw 1.5s cubic-bezier(.45, .05, .25, 1) .25s forwards; }
.intro__sub { margin: -2px 0 0; display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: #6b4f3a; opacity: 0; animation: intro-fade .6s ease .9s forwards; }
.intro__sub span { font-family: var(--f-jp); font-size: 1rem; color: var(--shu); }
.intro__pct { margin: 2px 0 0; font-size: .8125rem; color: #8a7a6a; font-variant-numeric: tabular-nums; }
.intro__pct b { font-weight: 600; color: #4a3628; }
@keyframes intro-fade { to { opacity: 1; } }
.intro__petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.intro__petals i {
  position: absolute; top: -20px; width: 12px; height: 14px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f9d3dd, #ee9fb5);
  opacity: .9; animation: intro-petal 4.2s linear infinite;
}
.intro__petals i:nth-child(1) { left: 12%; animation-delay: -.4s; }
.intro__petals i:nth-child(2) { left: 24%; animation-delay: -2.1s; animation-duration: 5s; transform: scale(.8); }
.intro__petals i:nth-child(3) { left: 37%; animation-delay: -1.2s; }
.intro__petals i:nth-child(4) { left: 49%; animation-delay: -3.3s; animation-duration: 4.8s; }
.intro__petals i:nth-child(5) { left: 61%; animation-delay: -.9s; animation-duration: 3.8s; }
.intro__petals i:nth-child(6) { left: 72%; animation-delay: -2.7s; }
.intro__petals i:nth-child(7) { left: 83%; animation-delay: -1.7s; animation-duration: 5.4s; }
.intro__petals i:nth-child(8) { left: 92%; animation-delay: -3.9s; }
.intro__petals i:nth-child(9) { left: 5%; animation-delay: -2.4s; animation-duration: 4.6s; }
@keyframes intro-petal { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-40px, 52vh) rotate(200deg); } 100% { transform: translate(-90px, 106vh) rotate(420deg); } }
.intro.is-done .intro__petals { opacity: 0; transition: opacity .6s; }
@media (max-width: 700px) {
  .intro__door { background-size: auto; }
  .intro__mark { width: 128px; height: 128px; }
  .intro__kiku { width: 82px; height: 82px; }
  .intro__kiku .kiku { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

/* Услуги веером */
.dacc { display: flex; gap: 10px; height: clamp(460px, 64vh, 620px); }
.dacc__item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
  color: #fbf8f2; text-decoration: none; background: #1b1a1d; box-shadow: var(--shadow-1);
  transition: flex-grow .9s cubic-bezier(.22, 1, .36, 1), box-shadow .6s;
}
.dacc__item.is-open { flex-grow: 5.4; box-shadow: var(--shadow-2); }
.dacc__media, .dacc__media img, .dacc__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.dacc__media img, .dacc__media video { object-fit: cover; transform: scale(1.1); filter: saturate(.55) brightness(.72); transition: transform 1.4s var(--ease), filter .9s, opacity .8s; }
.dacc__media video { opacity: 0; }
.dacc__item.is-open .dacc__media img, .dacc__item.is-open .dacc__media video { transform: scale(1); filter: none; }
.dacc__item.is-playing .dacc__media video { opacity: 1; }
.dacc__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 21, 27, .35) 0%, rgba(23, 21, 27, .05) 35%, rgba(23, 21, 27, .25) 60%, rgba(23, 21, 27, .9) 100%); }
.dacc__jp {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--f-jp); font-size: 2.25rem; line-height: 1;
  color: #fbf8f2; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); transition: left .8s var(--ease), transform .8s var(--ease), font-size .8s var(--ease), color .5s;
}
.dacc__item.is-open .dacc__jp { left: 30px; transform: none; font-size: 3.5rem; color: #fff; }
.dacc__num { position: absolute; top: 26px; right: 26px; font-size: .9375rem; font-weight: 500; color: rgba(251, 248, 242, .75); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.dacc__item.is-open .dacc__num { opacity: 1; transition-delay: .3s; }
.dacc__label {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); writing-mode: vertical-rl; white-space: nowrap;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: .02em; transition: opacity .35s;
}
.dacc__item.is-open .dacc__label { opacity: 0; }
.dacc__body { position: absolute; left: 32px; right: 32px; bottom: 30px; opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .7s var(--ease); pointer-events: none; }
.dacc__item.is-open .dacc__body { opacity: 1; transform: none; transition-delay: .28s; }
.dacc__title { display: block; max-width: 18ch; margin-bottom: 10px; font-size: clamp(1.75rem, 2.6vw, 2.625rem); font-weight: 500; line-height: 1.06; letter-spacing: -.022em; }
.dacc__short { display: block; max-width: 48ch; margin-bottom: 20px; color: rgba(251, 248, 242, .84); font-size: 1rem; line-height: 1.5; }
.dacc__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.dacc__meta b { padding: 9px 16px; border-radius: var(--pill); font-weight: 500; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.dacc__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); }
.dacc__go .i { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.dacc__item:hover .dacc__go .i { transform: translateX(4px); }
.dacc__item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 999px) {
  .dacc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 10px; }
  .dacc__item, .dacc__item.is-open { aspect-ratio: 3 / 4; flex: none; }
  .dacc__media img { transform: none; filter: saturate(.85) brightness(.85); }
  .dacc__label, .dacc__short, .dacc__num { display: none; }
  .dacc__jp, .dacc__item.is-open .dacc__jp { left: 16px; top: 14px; transform: none; font-size: 1.75rem; }
  .dacc__body, .dacc__item.is-open .dacc__body { left: 14px; right: 14px; bottom: 14px; opacity: 1; transform: none; }
  .dacc__title { font-size: clamp(.9375rem, 4.4vw, 1.125rem); line-height: 1.2; margin-bottom: 8px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .dacc__meta b { padding: 5px 10px; font-size: .8125rem; }
  .dacc__go { display: none; }
}
@media (min-width: 640px) and (max-width: 999px) { .dacc { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Страница направления: видео процесса на весь экран */
.dhero { min-height: max(560px, min(86svh, 860px)); }
.dhero .hero__bg video, .dhero .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.dhero--about .hero__bg img { object-position: 50% 30%; }
.dhero--about svg.dhero__jp { top: 56%; }
.dhero .crumbs, .dhero .crumbs a { color: rgba(244, 239, 230, .72); }
.dhero .crumbs [aria-current] { color: #fbf8f2; }
.dhero .eyebrow { color: rgba(244, 239, 230, .86); }
.dhero__title { max-width: 14ch; font-size: clamp(2.25rem, 6.4vw, 5.5rem); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.dhero__meta { display: inline-flex; align-items: baseline; gap: 12px; margin: 26px 0 0; padding: 10px 18px; border-radius: var(--pill); font-size: .9375rem; color: rgba(244, 239, 230, .82); background: rgba(23, 21, 27, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.dhero__meta b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
svg.dhero__jp { position: absolute; z-index: 1; right: clamp(16px, 7vw, 140px); top: 50%; transform: translateY(-50%); width: clamp(90px, 13vw, 210px); height: auto; overflow: visible; pointer-events: none; }
svg.dhero__jp text { font-family: var(--f-jp); font-size: 172px; fill: rgba(244, 239, 230, 0); stroke: rgba(244, 239, 230, .6); stroke-width: 1.4; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js svg.dhero__jp text { stroke-dashoffset: 1400; animation: ink-draw 3s cubic-bezier(.45, .05, .25, 1) .4s forwards, ink-fill 2.2s ease 2.8s forwards; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.incl li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .5s var(--ease); }
.incl li:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); transform: translateY(-2px); }
.incl span { flex: none; width: 34px; font-family: var(--f-jp); font-size: 1.5rem; line-height: 1.1; color: var(--shu); text-align: center; }
.incl p { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
@media (max-width: 700px) {
  .incl { grid-template-columns: minmax(0, 1fr); }
  svg.dhero__jp { top: calc(var(--header-h) + 40px); transform: none; width: 64px; right: 14px; }
  .dhero { min-height: max(560px, 92svh); }
}
html.a11y svg.dhero__jp { display: none; }
@media (prefers-reduced-motion: reduce) { .js svg.dhero__jp text { stroke-dashoffset: 0; animation: none; fill: rgba(244, 239, 230, .1); } }

/* Карточки сотрудников: фото приближается, появляется стеклянная кнопка «Подробнее» */
.person__photo::after {
  content: 'Подробнее'; position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--pill); font-size: .875rem; font-weight: 500; color: #fff;
  background: rgba(23, 21, 27, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .5s var(--ease);
}
.person:hover .person__photo::after, .person:focus-visible .person__photo::after { opacity: 1; transform: none; }
.person__name { transition: color .3s; }
.person:hover .person__name { color: var(--shu); }
@media (hover: none) { .person__photo::after { display: none; } }
/* Профиль врача: печать стажа и иероглиф тушью */
.doctor__photo { position: relative; }
.doctor__photo .person__seal { width: 76px; height: 76px; left: 20px; bottom: 20px; }
.doctor__photo .person__seal b { font-size: 1.875rem; }
.doctor__info { position: relative; }
svg.doctor__jp { position: absolute; z-index: -1; right: 0; top: -10px; width: clamp(80px, 11vw, 170px); height: auto; overflow: visible; pointer-events: none; }
svg.doctor__jp text { font-family: var(--f-jp); font-size: 172px; fill: rgba(214, 95, 125, 0); stroke: rgba(214, 95, 125, .5); stroke-width: 1.6; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js svg.doctor__jp text { stroke-dashoffset: 1400; animation: ink-draw 2.6s cubic-bezier(.45, .05, .25, 1) .4s forwards, ph-fill 1.8s ease 2.6s forwards; }
html.a11y svg.doctor__jp { display: none; }
@media (prefers-reduced-motion: reduce) { .js svg.doctor__jp text { stroke-dashoffset: 0; animation: none; fill: rgba(214, 95, 125, .14); } }
.ph--doctor { isolation: isolate; }

/* Иероглиф шапки страницы прорисовывается тушью */
svg.ph__jp { position: absolute; z-index: 0; top: clamp(16px, 3vw, 44px); right: max(var(--gutter), calc((100vw - var(--container)) / 2)); width: clamp(64px, 8vw, 132px); height: auto; overflow: visible; pointer-events: none; opacity: 1; writing-mode: horizontal-tb; font-size: inherit; color: inherit; }
svg.ph__jp text { font-family: var(--f-jp); font-size: 172px; fill: rgba(214, 95, 125, 0); stroke: rgba(214, 95, 125, .55); stroke-width: 1.6; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js svg.ph__jp text { stroke-dashoffset: 1400; animation: ink-draw 2.6s cubic-bezier(.45, .05, .25, 1) .3s forwards, ph-fill 1.8s ease 2.4s forwards; }
.js svg.ph__jp text:nth-child(2) { animation-delay: 1.1s, 3s; }
.js svg.ph__jp text:nth-child(3) { animation-delay: 1.9s, 3.6s; }
@keyframes ph-fill { to { fill: rgba(214, 95, 125, .14); stroke: rgba(214, 95, 125, .3); } }
@media (prefers-reduced-motion: reduce) { .js svg.ph__jp text { stroke-dashoffset: 0; animation: none; fill: rgba(214, 95, 125, .14); } }
html.a11y svg.ph__jp { display: none; }

/* Мазок кисти под словом */
.brush { position: relative; display: inline-block; white-space: nowrap; }
.brush__svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .34em; overflow: visible; pointer-events: none; }
.brush__svg path { fill: none; stroke: var(--shu); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.brush--hero .brush__svg path { stroke-width: 7; }
.js .brush .brush__svg path { stroke-dashoffset: 1; }
.js .brush.is-in .brush__svg path, .js .brush--hero .brush__svg path { animation: ink-draw .9s cubic-bezier(.5, 0, .2, 1) .35s forwards; }
.js .brush--hero .brush__svg path { animation-delay: 1.15s; }
.js .brush .brush__svg path + path { animation-delay: .6s; }
.js .brush--hero .brush__svg path + path { animation-delay: 1.4s; }

/* Салют лепестков после записи */
.bk-done__seal { overflow: visible; }
.bk-burst { position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; pointer-events: none; }
.bk-burst i { position: absolute; left: -6px; top: -7px; width: 12px; height: 14px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f9d3dd, #ee9fb5); opacity: 0; animation: burst 1.5s cubic-bezier(.15, .7, .3, 1) var(--t) forwards; }
.bk-burst i:nth-child(3n) { background: linear-gradient(135deg, #f4efe6, #e7f00d); }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(260deg) scale(1); } }

/* Печать «наверх» */
.totop {
  position: fixed; z-index: 57; right: 22px; bottom: 22px; display: none; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 10px;
  background: var(--shu); color: #fff3ea; font-family: var(--f-jp); font-size: 1.5rem; line-height: 1; transform: rotate(-6deg) translateY(20px); opacity: 0; visibility: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 243, 234, .55), inset 0 0 0 4px var(--shu), 0 10px 22px -10px rgba(120, 30, 20, .7);
  transition: transform .6s var(--settle), opacity .3s, visibility 0s linear .6s;
}
.totop.is-shown { transform: rotate(-6deg); opacity: 1; visibility: visible; transition-delay: 0s; }
.totop:hover { transform: rotate(0) scale(1.06); }
.totop:active { transform: rotate(0) scale(.94); }
@media (min-width: 1100px) { .totop { display: grid; } }
.story-in .totop { opacity: 0; visibility: hidden; }
@media print { .totop { display: none !important; } }
html.a11y .totop { transform: none; }

/* Телефон: видео первого экрана целиком отдельной карточкой под шапкой, текст ниже на тёмном фоне.
   Горизонтальный кадр на весь вертикальный экран превращался в размытый обрезок. */
@media (max-width: 700px) {
  .hero, .dhero { display: block; min-height: 0; padding-top: calc(var(--header-h) + var(--header-gap) + 14px + env(safe-area-inset-top, 0px)); }
  .hero__bg { position: relative; inset: auto; z-index: 0; margin: 0 var(--gutter) 28px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
  .dhero--clip .hero__bg { aspect-ratio: 1; }
  .hero__video, .hero__bg video, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero__shade, .dhero .hero__shade { background: linear-gradient(180deg, rgba(23, 21, 27, 0) 55%, rgba(23, 21, 27, .45)); }
  .hero__branch { top: calc(var(--header-h) + var(--header-gap) - 10px + env(safe-area-inset-top, 0px)); right: -6%; width: 50vw; }
  .hero__eyebrow { padding-right: 0; }
  .hero__pause { top: calc(var(--header-h) + var(--header-gap) + 26px + env(safe-area-inset-top, 0px)); right: calc(var(--gutter) + 10px); bottom: auto; width: 40px; height: 40px; }
  .hero { background: radial-gradient(120% 60% at 50% 0%, #2a2430, #17151b 60%); }
  .logo__text small { display: none; }
  .header__actions { gap: 0; }
  .hero__inner, .hero__branch { animation: none !important; }
}
@media (max-width: 360px) { .header__actions .icon-btn, .burger { width: 40px; height: 40px; } }

/* Карты: 2ГИС первой кнопкой, Яндекс второй */
.maplinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.maplinks .btn .i { width: 18px; height: 18px; }
@media (max-width: 700px) { .maplinks .btn { flex: 1 1 140px; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .prices__layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .split, .nh__grid, .lab__grid, .visit__grid, .letter__grid, .doctor, .contacts, .craft__grid, .consult-layout, .cv__row { grid-template-columns: minmax(0, 1fr); }
  .hero__branch { width: 62vw; right: -10%; }
  .facts { margin-top: 32px; }
  .sec-jp { font-size: 3.5rem; right: 6px; opacity: .1; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .ba-grid, .pairs { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orgs { grid-template-columns: minmax(0, 1fr); }
  .letter__photo, .craft__stage, .consult-aside, .estimate, .bk-summary, .acc__side { position: static; }
  .letter__photo { max-width: 420px; }
  .craft__stage { display: none; }
  .doctor__photo { max-width: 420px; }
  .cv__row { gap: 12px; }
  .prices__layout { grid-template-columns: minmax(0, 1fr); }
  .estimate { display: none; }
  .estimate.is-sheet { display: block; position: fixed; z-index: 96; left: 8px; right: 8px; bottom: calc(max(10px, var(--mbar-sab, 0px)) + 70px); max-height: calc(100svh - 120px); overflow: auto; animation: rise .45s var(--ease); }
  .estimate.is-sheet .receipt__close { display: inline-grid; }
  .estimate.is-sheet .receipt__stamp { right: 56px; }
  .est-bar:not([hidden]) {
    position: fixed; z-index: 65; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 32px, 420px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 20px; border-radius: var(--pill);
    background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
    box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-2); animation: rise .5s var(--ease);
  }
  .est-bar b { font-variant-numeric: tabular-nums; }
  .bk, .acc { grid-template-columns: minmax(0, 1fr); }
  .consult-aside { order: -1; }
  .ph__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  :root { --r-lg: 22px; --r: 18px; }
  body { font-size: 1.0625rem; }
  .hero { min-height: max(600px, 100svh); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .hero__shade { background: linear-gradient(180deg, rgba(23, 21, 27, .55) 0%, rgba(23, 21, 27, .1) 26%, rgba(23, 21, 27, .55) 52%, rgba(23, 21, 27, .92) 100%); }
  .hero__jp { font-size: 4.25rem; right: 10px; bottom: auto; top: 30%; }
  .hero__pause { bottom: auto; top: calc(var(--header-h) + var(--header-gap) + 14px); right: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 28px; }
  .facts li, .facts li + li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:last-child { border-bottom: 1px solid var(--line); }
  .facts a { display: contents; }
  .facts span { margin: 0; text-align: right; }
  .hero__branch { top: calc(var(--header-h) - 18px); right: -14%; width: 46vw; }
  .hero__eyebrow { padding-right: 18vw; }
  .ph__jp { font-size: 3rem; opacity: .14; }
  .nh-tile { min-height: 48px; padding: 0 18px; font-size: 1rem; }
  .row { grid-template-columns: minmax(0, 1fr) 22px; gap: 4px 14px; min-height: 76px; }
  .row__meta { grid-row: 2; grid-column: 1; text-align: left; font-size: .9375rem; color: var(--muted); }
  .row__go { grid-row: 1 / 3; grid-column: 2; }
  .rows:not(.rows--dirs) .row__meta { max-width: none; }
  .promo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .promo__go { display: none; }
  .people--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .people--scroll::-webkit-scrollbar { display: none; }
  .people--scroll .person { flex: 0 0 72%; scroll-snap-align: start; }
  .people:not(.people--scroll) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .people:not(.people--scroll) .person__name { font-size: 1.0625rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .visit__actions .btn, .cta__actions .btn, .ph__actions .btn, .contacts__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__tools { margin-left: 0; }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pcat__sum { grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 12px; }
  .pcat__meta { grid-row: 2; }
  .pcat__sum .i { grid-row: 1 / 3; grid-column: 2; }
  .pitem { align-items: flex-start; }
  .pitem__label { padding-left: 0; }
  .pitem__price { padding-top: 12px; }
  .acc-item { grid-template-columns: 64px minmax(0, 1fr); }
  .acc-item__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .bk-step__head { padding: 14px 16px; }
  .bk-step__body { padding: 0 16px 20px; }
  .bk-step__value { display: none; }
  .est-bar:not([hidden]) { bottom: calc(max(10px, var(--mbar-sab)) + 66px); }
  .msg-b { max-width: 94%; }
  .ph__media { aspect-ratio: 4 / 3; }
  .doctor__photo { aspect-ratio: 1; max-width: none; }
  .dlg__title { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .header__actions a[href="/account"] { display: none; }
  .logo__text small { display: none; }
  .nh-tile { padding: 0 14px; }
  .people--scroll .person { flex-basis: 80%; }
}
@media (hover: none) {
  .nh-tile:hover, .person:hover .person__photo img, .gallery__item:hover img, .film-card:hover img { transform: none; box-shadow: none; }
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Версия для слабовидящих ---------- */
html.a11y { font-size: 125%; }
html.a11y body { --muted: #2f2b31; --ink-2: #17151b; --line: rgba(23, 21, 27, .35); --line-2: rgba(23, 21, 27, .6); --line-input: #17151b; background: #fff; line-height: 1.7; }
html.a11y[data-theme="dark"] body { --muted: #e2e4dd; --ink-2: #f1f2ec; --line: rgba(255, 255, 255, .4); --line-2: rgba(255, 255, 255, .7); --line-input: #fff; background: #000; }
html.a11y body::after, html.a11y .petals, html.a11y .branch, html.a11y .hero__jp, html.a11y .ph__jp, html.lite .petals,
html.a11y body::before, html.a11y .footer__mark, html.a11y .row__img, html.a11y .hero__video, html.a11y .lab__media video, html.a11y .ph__media video { display: none; }
html.a11y *, html.a11y *::before, html.a11y *::after { animation: none !important; transition: none !important; letter-spacing: 0 !important; }
html.a11y .js .reveal, html.a11y .reveal { opacity: 1; transform: none; }
html.a11y a:not(.btn):not(.row):not(.person):not(.nh-tile):not(.chip):not(.mbar__btn):not(.header__logo) { text-decoration: underline; }
html.a11y .header__inner, html.a11y .menu__panel, html.a11y .search, html.a11y .cookie, html.a11y .toast, html.a11y .est-bar, html.a11y .hero__pause { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
html.a11y .hero__bg { display: none; }
html.a11y .hero { background: #000; }
@media (max-width: 1279px) {
  html.a11y .burger { display: inline-grid; }
  html.a11y .nav, html.a11y .header__cta, html.a11y .header__phone { display: none; }
}
html.a11y .header__actions [data-a11y-toggle] { display: inline-grid; box-shadow: 0 0 0 2px var(--ink); }
html.a11y .hero__title, html.a11y .ph__title { font-size: clamp(2rem, 7vw, 3.5rem); }
@media (max-width: 700px) {
  html.a11y .mbar { --glass-bar: #fff; color: #000; box-shadow: 0 0 0 2px #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.a11y[data-theme="dark"] .mbar { --glass-bar: #000; color: #fff; box-shadow: 0 0 0 2px #fff; }
  html.a11y .mbar::before { display: none; }
}

/* ---------- Лёгкий режим (экономия трафика или телефон с малой памятью) ---------- */
html.lite .header__inner, html.lite .menu__panel, html.lite .search, html.lite .cookie, html.lite .toast, html.lite .est-bar, html.lite .mbar,
html.lite .hero .btn--glass, html.lite .hero__pause, html.lite .craft__badge, html.lite .ba__tag, html.lite .pair__tag, html.lite .film-card__play { -webkit-backdrop-filter: none; backdrop-filter: none; }
html.lite .header__inner, html.lite .menu__panel, html.lite .search, html.lite .cookie, html.lite .toast, html.lite .est-bar { background: var(--bg); }
html.lite body::before { display: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header__inner, .search, .cookie, .toast, .est-bar { background: var(--bg); }
  .menu__panel { background: var(--bg); }
  .mbar { --glass-bar: rgba(250, 250, 247, .96); }
}

/* ---------- Печать ---------- */
@media print {
  .petals, .branch, .hero__jp, .ph__jp, .island, .rail, .dirs-float, .intro, .live,
  .header, .menu, .mbar, .footer__mark, .cookie, .toast, .hero__bg, .sec-jp, .torii, .nh, .cta, .mapbox, .estimate, .est-bar, body::before, body::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 16pt; }
  a { text-decoration: underline; }
  .ink { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* ---------- Кабинет: мой врач ---------- */
.mydoc-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.mydoc-empty__kanji { font-family: var(--f-jp); font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1; color: var(--shu); opacity: .85; }
.mydoc-empty p { margin: 0 0 10px; }
.mydoc-empty .btn { margin-top: 6px; }
.mydoc__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mydoc__tabs button { padding: 8px 16px; border: 0; border-radius: var(--pill); background: none; font: inherit; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.mydoc__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.mydoc { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: clip; }
.mydoc__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px clamp(16px, 3vw, 26px); border-bottom: 1px solid var(--line); }
.mydoc__photo { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sakura-soft); font-size: 1.4rem; color: var(--ink-2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line-2); }
.mydoc__photo img { width: 100%; height: 100%; object-fit: cover; }
.mydoc__who { display: grid; gap: 1px; min-width: 0; }
.mydoc__who small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--shu); }
.mydoc__who b { font-weight: 600; font-size: 1.0625rem; }
.mydoc__who span { color: var(--muted); font-size: .875rem; }
.mydoc__chat { display: flex; flex-direction: column; gap: 10px; max-height: min(58vh, 560px); min-height: 180px; overflow-y: auto; padding: 22px clamp(16px, 3vw, 26px); overscroll-behavior: contain;
  background: radial-gradient(circle at 100% 0, var(--sakura-soft), transparent 40%), var(--bg); }
.mydoc__msg { max-width: min(78%, 520px); padding: 11px 15px 8px; border-radius: 18px; line-height: 1.5; box-shadow: var(--shadow-1); }
.mydoc__msg p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mydoc__msg small { display: block; font-size: .75rem; color: var(--muted); }
.mydoc__msg--me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.mydoc__msg--me small { color: color-mix(in srgb, var(--bg) 64%, transparent); text-align: right; }
.mydoc__msg--doc { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.mydoc__files { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.mydoc__files img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; display: block; }
.mydoc__files .file { display: inline-flex; gap: 6px; align-items: center; color: inherit; }
.mydoc__sep { display: flex; align-items: center; gap: 12px; margin: 8px 0; color: var(--muted); font-size: .8125rem; }
.mydoc__sep::before, .mydoc__sep::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.mydoc__hello { margin: auto; max-width: 420px; text-align: center; color: var(--ink-2); }
.mydoc__hello span { display: block; font-family: var(--f-jp); font-size: 2.6rem; line-height: 1; color: var(--shu); margin-bottom: 10px; }
.mydoc__hello p { margin: 0; }
.mydoc__status, .mydoc__warn { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px clamp(16px, 3vw, 26px); font-size: .875rem; line-height: 1.5; border-top: 1px solid var(--line); }
.mydoc__status { color: var(--ink-2); background: var(--accent-soft); }
.mydoc__warn { color: var(--ink-2); }
.mydoc__warn .i, .mydoc__status .i { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.mydoc__warn .i { color: var(--shu); }
.mydoc__warn a { color: inherit; font-weight: 600; }
.mydoc__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; padding: 16px clamp(16px, 3vw, 26px) 20px; border-top: 1px solid var(--line); }
.mydoc__form textarea { grid-column: 1 / -1; width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-input); background: var(--bg); color: var(--ink); font: inherit; }
.mydoc__form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.mydoc__form .drop__zone { flex-direction: row; padding: 10px 16px; border-radius: var(--pill); }
.mydoc__form .drop__zone .i { width: 20px; height: 20px; }
.mydoc__form .check, .mydoc__form .form__error { grid-column: 1 / -1; }
.mydoc__form .btn { grid-column: 2; grid-row: 2; }
.mydoc__form .check { order: 3; }
@media (max-width: 600px) {
  .mydoc-empty { grid-template-columns: 1fr; gap: 10px; }
  .mydoc__head { grid-template-columns: auto minmax(0, 1fr); }
  .mydoc__head .btn { grid-column: 1 / -1; justify-self: start; }
  .mydoc__msg { max-width: 88%; }
  .mydoc__form { grid-template-columns: minmax(0, 1fr); }
  .mydoc__form .btn { grid-column: 1; grid-row: auto; justify-self: stretch; }
}

/* ---------- Времена года: ветка на первом экране ---------- */
/* Первый экран всегда тёмный (видео), поэтому кора своего цвета в любой теме, со светлым бликом сверху */
.hero__branch { --wood: #5c4237; }
.branch__shine path { stroke: rgba(255, 226, 205, .22); }
.branch__leaves, .branch__maple, .branch__snow, .branch__ume { display: none; }
.branch__stalk { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.branch__leaves .branch__stalk { stroke: #6f7f3f; }
.branch__maple .branch__stalk { stroke: #8a2f22; }
.branch__leaf { fill: #6e9b4c; } .branch__leaf--1 { fill: #85ad5c; } .branch__leaf--2 { fill: #5f8c43; } .branch__leaf--3 { fill: #7aa552; }
.branch__mp { fill: #c23a2a; } .branch__mp--1 { fill: #d4552c; } .branch__mp--2 { fill: #b02f24; } .branch__mp--3 { fill: #e07a2e; }
.branch__vein { stroke: rgba(30, 20, 15, .22); stroke-width: 2; stroke-linecap: round; }
.branch__snow path { stroke: #eef3f9; }
.branch__clump { fill: #eef3f9; }
.branch__ume ellipse, .branch__ume circle { fill: #c8372d; }
.branch__ume-flower circle { fill: #d4433a; }
.branch__ume .branch__ume-core { fill: #f2c94c; }
html:is([data-season="summer"], [data-season="autumn"], [data-season="winter"]) .branch__flowers { display: none; }
html[data-season="summer"] .branch__leaves, html[data-season="autumn"] .branch__maple, html[data-season="winter"] .branch__snow, html[data-season="winter"] .branch__ume { display: inline; }
html:not([data-season="spring"]) .branch__buds { display: none; }
html[data-season="winter"] .hero__branch { --wood: #4a3630; }

/* ---------- Имплант за четыре шага ---------- */
.impl__grid { display: grid; gap: 14px; }
.impl__stage { display: none; }
.impl__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.impl__step { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.impl__mini svg { display: block; width: 100%; height: auto; }
.impl__n { margin: 0 0 6px; font-family: var(--f-jp); font-size: 1.625rem; line-height: 1; color: var(--shu); }
.impl__text h3 { margin: 0 0 6px; font-size: 1.25rem; }
.impl__text p:last-child { margin: 0; color: var(--ink-2); line-height: 1.55; }
.impl__note { margin: 18px 0 0; max-width: 720px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 600px) {
  .impl__step { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .impl__mini { max-width: 340px; }
}
@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.js:not(.a11y) .impl--live .impl__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  html.js:not(.a11y) .impl--live .impl__stage { display: block; position: sticky; top: calc(var(--header-h) + var(--header-gap) + 24px); height: calc(100svh - var(--header-h) - var(--header-gap) - 56px); }
  html.js:not(.a11y) .impl--live .impl__stage svg { display: block; width: 100%; height: 100%; }
  html.js:not(.a11y) .impl--live .impl__mini { display: none; }
  html.js:not(.a11y) .impl--live .impl__step { display: flex; align-items: center; min-height: 62svh; padding: 0; background: none; box-shadow: none; opacity: .28; transition: opacity .5s var(--ease); }
  html.js:not(.a11y) .impl--live .impl__step.is-active { opacity: 1; }
  html.js:not(.a11y) .impl--live .impl__step:last-child { min-height: 78svh; }
  html.js:not(.a11y) .impl--live .impl__text { max-width: 440px; }
  html.js:not(.a11y) .impl--live .impl__text h3 { font-size: 1.625rem; }
}

/* схема: тушь на бумаге, кость штриховкой, десна бледно-розовая */
.impl__svg { overflow: visible; }
.impl__hatch { stroke: var(--ink); stroke-width: 1.2; opacity: .16; }
.impl__bone:not(.impl__bone--hatch) { fill: color-mix(in srgb, var(--ink) 4%, transparent); stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .35; }
.impl__bone--hatch { stroke: none; }
.impl__tooth path { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.impl__gum { fill: #f1c9d3; stroke: #d98fa3; stroke-width: 1.5; opacity: .94; }
[data-theme="dark"] .impl__gum { fill: #6b3a48; stroke: #a8687a; }
.impl__ghost path { fill: none; stroke: var(--shu); stroke-width: 2; stroke-dasharray: 6 6; }
.impl__ghost line, .impl__guide line { stroke: var(--shu); stroke-width: 1.5; stroke-dasharray: 3 7; }
.impl__scan line { stroke: var(--shu); stroke-width: 2; opacity: .75; }
.impl__scan text { fill: var(--shu); font: 600 15px var(--f); }
.impl__guide rect { fill: rgba(194, 58, 42, .07); stroke: var(--shu); stroke-width: 2; }
.impl__guide .impl__sleeve { fill: var(--surface); }
.impl__screw { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.impl__threads { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.impl__abut { fill: var(--surface); stroke: var(--ink); stroke-width: 2.2; }
.impl__crown { fill: #fffdf8; stroke: var(--ink); stroke-width: 2.4; }
[data-theme="dark"] .impl__crown { fill: #f4efe6; stroke: #f4efe6; }
.impl__shine { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .35; }
[data-theme="dark"] .impl__shine { stroke: #17151b; }
.impl__tags path { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .5; }
.impl__tags text { fill: var(--ink); font: 500 16px var(--f); paint-order: stroke; stroke: var(--surface); stroke-width: 5px; stroke-linejoin: round; }
.impl__tags text:first-child { stroke: #fffdf8; }
[data-theme="dark"] .impl__tags text:first-child { fill: #17151b; stroke: #f4efe6; }

/* шаги схемы */
.impl__svg g { transition: opacity .5s var(--ease), transform 1s var(--settle); }
.impl__guide { opacity: 0; transform: translateY(-36px); }
.impl__implant { opacity: 0; transform: translateY(-240px); }
.impl__top { opacity: 0; transform: translateY(-150px); }
.impl__tags, .impl__scan { opacity: 0; }
.impl__svg[data-step="0"] .impl__scan { opacity: 1; transform: translateY(330px); }
.impl__stage .impl__svg[data-step="0"] .impl__scan { animation: impl-scan 3.4s ease-in-out infinite; }
.impl__mini .impl__tags { display: none; }
.impl__svg[data-step="1"] .impl__guide, .impl__svg[data-step="2"] .impl__guide { opacity: 1; transform: none; }
.impl__svg[data-step="2"] .impl__ghost, .impl__svg[data-step="3"] .impl__ghost { opacity: 0; }
.impl__svg[data-step="2"] .impl__implant, .impl__svg[data-step="3"] .impl__implant { opacity: 1; transform: none; }
.impl__svg[data-step="3"] .impl__top { opacity: 1; transform: none; transition-delay: .1s; }
.impl__svg[data-step="3"] .impl__tags { opacity: 1; transition-delay: .7s; }
@keyframes impl-scan { 0%, 100% { transform: translateY(60px); } 50% { transform: translateY(500px); } }
@media (prefers-reduced-motion: reduce) {
  .impl__svg g { transition: none; }
  .impl__svg[data-step="0"] .impl__scan { animation: none; transform: translateY(330px); }
}
html.a11y .impl__svg[data-step="0"] .impl__scan { animation: none; transform: translateY(330px); }

/* ---------- Первый визит и минута тишины ---------- */
.fv__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fv__list { list-style: none; margin: 22px 0 0; padding: 0; }
.fv__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.fv__list li:last-child { border-bottom: 1px solid var(--line); }
.fv__n { font-family: var(--f-jp); font-size: 1.75rem; line-height: 1.1; color: var(--shu); text-align: center; }
.fv__list h3 { margin: 0 0 4px; font-size: 1.125rem; }
.fv__list p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.fv__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.calm { --breath: 0; --done: 0; position: sticky; top: calc(var(--header-h) + var(--header-gap) + 20px); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); text-align: center; }
.calm .eyebrow { justify-content: center; }
.calm__lead { margin: 6px auto 0; max-width: 34ch; color: var(--ink-2); }
.calm__stage { position: relative; width: min(240px, 72%); aspect-ratio: 1; margin: 18px auto 6px; display: grid; place-items: center; }
.calm__stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, var(--sakura-soft), transparent 70%); transform: scale(calc(.7 + var(--breath) * .45)); }
.calm__enso { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg) scale(calc(.86 + var(--breath) * .14)); }
.calm__track { fill: none; stroke: var(--line-2); stroke-width: 3; }
.calm__ring { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--done)); }
.calm__phase { position: relative; font-size: 1.5rem; font-weight: 500; }
.calm__count { position: absolute; bottom: 24%; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.calm__live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.calm__btn { margin-top: 10px; min-height: 56px; }
.calm__note { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }
@media (max-width: 900px) {
  .fv__grid { grid-template-columns: minmax(0, 1fr); }
  .calm { position: static; }
}
.bk-done__calm { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 22px auto 0; padding: 14px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; text-decoration: none; color: inherit; transition: box-shadow .3s; }
.bk-done__calm:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.bk-done__calm > span:first-child { font-family: var(--f-jp); font-size: 1.75rem; line-height: 1; color: var(--shu); }
.bk-done__calm b { display: block; font-weight: 500; }
.bk-done__calm small { color: var(--muted); }

/* ---------- Смета: показать родным и печатный лист ---------- */
.estimate__share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.estimate__share .btn { justify-content: center; }
.print-est { display: none; }
@media print {
  html.printing-est body > *:not(.print-est) { display: none !important; }
  html.printing-est body { background: #fff !important; }
  html.printing-est .print-est { display: block; color: #17151b; font: 12pt/1.5 Onest, Arial, sans-serif; }
  .print-est header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10pt; border-bottom: 1pt solid #17151b; }
  .print-est header b { display: block; font-size: 14pt; }
  .print-est header span { font-size: 10pt; color: #555; }
  .print-est header i { font-style: normal; font-size: 18pt; color: #c23a2a; border: 2pt solid #c23a2a; border-radius: 6pt; padding: 4pt 6pt; transform: rotate(-6deg); }
  .print-est h1 { margin: 18pt 0 2pt; font-size: 20pt; }
  .print-est__date { margin: 0 0 12pt; color: #555; }
  .print-est table { width: 100%; border-collapse: collapse; }
  .print-est td { padding: 6pt 0; border-bottom: .5pt solid #ccc; vertical-align: top; }
  .print-est td:last-child { text-align: right; white-space: nowrap; padding-left: 12pt; }
  .print-est__sum td { font-weight: 600; border-bottom: 1pt solid #17151b; }
  .print-est__note { margin-top: 14pt; font-size: 10pt; color: #555; }
  .print-est__site { font-size: 10pt; color: #555; }
}

/* ---------- Словарь «по-простому» ---------- */
.term { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--shu); text-decoration-thickness: 1.5px; text-underline-offset: .22em; border-radius: 3px; }
.term:hover, .term[aria-expanded="true"] { background: var(--accent-soft); }
.term:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gloss { position: absolute; z-index: 60; width: min(340px, calc(100vw - 24px)); padding: 18px 20px 16px; border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 1px var(--glass-edge), var(--shadow-2); opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.gloss.is-open { opacity: 1; transform: none; }
.gloss__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gloss__kicker span { font-family: var(--f-jp); font-size: 1rem; color: var(--shu); letter-spacing: 0; }
.gloss__title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; }
.gloss__text { margin: 0; color: var(--ink-2); line-height: 1.55; }
.gloss__foot { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.gloss__x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.375rem; line-height: 1; color: var(--muted); cursor: pointer; }
.gloss__x:hover { background: var(--line); color: var(--ink); }
.gloss.is-sheet { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(max(10px, var(--mbar-sab, 0px)) + 66px); width: auto; z-index: 85; }
.gloss:focus { outline: none; }
.gloss:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html.a11y .gloss { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); box-shadow: 0 0 0 2px var(--ink); }
html.lite .gloss { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .gloss { transition: none; transform: none; } }
@media print { .term { text-decoration: none; } .gloss { display: none !important; } }

/* ---------- Кинцуги ---------- */
.kin__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.kin__art { margin: 0; }
.kin__svg { display: block; width: min(100%, 440px); margin: 0 auto; overflow: visible; }
.kin__shadow { fill: var(--ink); opacity: .06; }
.kin__bowl { fill: var(--surface); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.kin__rim { fill: none; stroke: var(--ink); stroke-width: 3; }
.kin__inside { fill: color-mix(in srgb, var(--ink) 7%, var(--surface)); stroke: none; }
.kin__foot { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.kin__seam { fill: none; stroke: #b8892f; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(222, 176, 72, .55)); }
.js .kin__seam { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .kin__art.is-in .kin__seam { animation: kin-draw 1.8s cubic-bezier(.5, 0, .2, 1) .4s forwards; }
.js .kin__art.is-in .kin__seam--b { animation-delay: 1.6s; animation-duration: .8s; }
@keyframes kin-draw { to { stroke-dashoffset: 0; } }
.kin__p { margin: 14px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
@media (max-width: 900px) { .kin__grid { grid-template-columns: minmax(0, 1fr); } .kin__svg { width: min(100%, 320px); } }
@media (prefers-reduced-motion: reduce) { .js .kin__seam { stroke-dashoffset: 0; animation: none !important; } }
html.a11y .kin__seam { stroke-dashoffset: 0 !important; animation: none !important; }

/* На телефоне ветка слева над карточкой видео, зеркально: справа её закрывали стеклянная шапка и кнопка паузы */
@media (max-width: 700px) {
  .hero__branch { top: calc(var(--header-h) + var(--header-gap) + 14px + env(safe-area-inset-top, 0px)); left: -9%; right: auto; width: 66vw; transform: scaleX(-1); }
}

/* b4 — 9248843212 +++ */
/* Правки перед показом клинике (обход стенда 2026-10-04) */
/* Версия для слабовидящих: при шрифте 125 % шапка не влезает примерно до 1550 px, меню уходит в бургер раньше */
@media (max-width: 1599px) {
  html.a11y .burger { display: inline-grid; }
  html.a11y .nav, html.a11y .header__cta, html.a11y .header__phone { display: none; }
}
/* Всплывающее сообщение: своя ширина, а не половина экрана от left: 50% */
.toast { width: max-content; max-width: min(520px, calc(100vw - 32px)); text-align: center; text-wrap: balance; }
/* Прейскурант: под прилипшими поиском и разделами строки не просвечивают */
.prices__tools { padding: 8px; margin-inline: -8px; border-radius: calc(var(--r) + 8px); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); }
/* Метка «Акция» / «Бесплатно» в записи стоит над названием, а не поверх него */
.bk-opt__badge { position: static; align-self: flex-start; margin-bottom: 2px; }
/* Цена со скидкой переносится между старой и новой ценой, а не раздвигает страницу */
.plist__price { white-space: normal; text-align: right; }
.plist__price s { white-space: nowrap; }
/* Минута тишины: кнопка переносит текст при крупном шрифте */
.calm__btn { white-space: normal; height: auto; max-width: 100%; }
/* Карточки направлений на телефоне: длинные слова влезают целиком */
@media (max-width: 999px) {
  .dacc__title { font-size: clamp(.8125rem, 3.8vw, 1.125rem); }
}
/* Первый экран направления: на широком экране резкий кадр вместо растянутого ролика */
.dhero__img--wide { display: none; }
@media (min-width: 1000px) {
  .dhero--clip .dhero__video { display: none; }
  .dhero--clip .dhero__img--wide { display: block; animation: dhero-drift 24s ease-in-out infinite alternate; }
}
@keyframes dhero-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
/* Чёрточка между иероглифом и подписью видна и на тёмных первых экранах */
.dhero .eyebrow .jp::after, .hero .eyebrow .jp::after { background: rgba(244, 239, 230, .45); }
/* b4 — 9248843212 --- */
