/* =====================================================================
   STYLE.CSS — оформление блога (минималистичная тёмная тема)
   Принципы: много воздуха, тонкие линии, один акцентный цвет,
   неон — только как едва заметная подсветка при наведении.

   1. Переменные (палитра, шрифты) — меняйте цвета здесь
   2. База и типографика
   3. Фон, прелоадер, курсор
   4. Шапка и меню
   5. Hero
   6. Кнопки
   7. Поиск и теги
   8. Секции и карточки
   9. Обо мне, футер
   10. Модальное окно, кнопка «наверх»
   11. Появление при скролле
   12. Адаптивность и prefers-reduced-motion
   ===================================================================== */

/* ---------- 1. ПЕРЕМЕННЫЕ ---------- */
:root {
  /* Акценты: фиолетовый — основной, бирюзовый и розовый — редкие детали */
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --accent: var(--violet);

  /* Тёмная тема (по умолчанию) */
  --bg: #0a0a12;
  --bg-soft: #0f0f19;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.045);
  --surface-strong: #11111b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #d9d9e3;
  --text-muted: #8a8a9c;
  --text-faint: #5c5c6e;
  --heading: #f5f5f8;
  --header-bg: rgba(10, 10, 18, 0.72);
  --btn-bg: #f5f5f8;           /* основная кнопка — светлая, спокойная */
  --btn-text: #0a0a12;
  --glow: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 0 24px rgba(168, 85, 247, 0.18);
  --blob-opacity: 0.16;
  --particle: 200, 200, 220;   /* RGB частиц (читается из JS) */
  --particle-line: 168, 85, 247;

  /* Шрифты и размеры */
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Светлая тема */
:root[data-theme="light"] {
  --violet: #7c3aed;
  --cyan: #0e7490;
  --pink: #be185d;
  --bg: #f4f1fb;
  --bg-soft: #ece8f7;
  /* Фон-градиент светлой темы: лаванда → голубой → персик */
  --bg-gradient:
    radial-gradient(120% 80% at 0% 0%, #e9ddff 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 30%, #d6f1fb 0%, transparent 60%),
    radial-gradient(100% 80% at 30% 100%, #ffe1ec 0%, transparent 60%),
    linear-gradient(160deg, #f5f0ff 0%, #eef6fd 50%, #fdf3f6 100%);
  /* «Стекло»: полупрозрачный белый, градиент просвечивает */
  --surface: rgba(255, 255, 255, 0.5);
  --surface-hover: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --line: rgba(76, 58, 140, 0.12);
  --line-strong: rgba(76, 58, 140, 0.26);
  --text: #2a2a33;
  --text-muted: #6b6b78;
  --text-faint: #9a9aa6;
  --heading: #0f0f14;
  --header-bg: rgba(248, 245, 255, 0.72);
  --btn-bg: #0f0f14;
  --btn-text: #f7f7f5;
  --glow: 0 0 0 1px rgba(124, 58, 237, 0.3), 0 0 20px rgba(124, 58, 237, 0.1);
  --blob-opacity: 0.22;
  --particle: 70, 60, 110;
  --particle-line: 124, 58, 237;
}

/* ---------- 2. БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 {
  font-family: var(--font-head); font-weight: 500;
  color: var(--heading); line-height: 1.1; letter-spacing: -0.02em; margin: 0;
}

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  padding: 10px 16px; background: var(--heading); color: var(--bg); border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Стекло: лёгкое, почти незаметное */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- 3. ФОН, ПРЕЛОАДЕР, КУРСОР ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg-gradient, none); transition: background .4s; }
/* в светлой теме пятна ярче и есть третье, розовое */
:root[data-theme="light"] .blob--pink { display: block; opacity: calc(var(--blob-opacity) * .7); }
:root[data-theme="light"] .blob { mix-blend-mode: multiply; }
/* карточки и поля — «стеклянные», с лёгкой тенью */
:root[data-theme="light"] .card,
:root[data-theme="light"] .glass,
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .phone__code {
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
:root[data-theme="light"] .card { box-shadow: 0 10px 30px rgba(76, 58, 140, 0.08); }
:root[data-theme="light"] .card:hover { box-shadow: 0 14px 36px rgba(76, 58, 140, 0.14); }
.blobs__layer { position: absolute; inset: 0; will-change: transform; }
.blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(100px); opacity: var(--blob-opacity);
  animation: float 40s ease-in-out infinite alternate;
}
.blob--violet { top: -18vmax; left: -12vmax; background: radial-gradient(circle, var(--violet), transparent 65%); }
.blob--cyan   { top: 55vh; right: -20vmax; background: radial-gradient(circle, var(--cyan), transparent 65%); opacity: calc(var(--blob-opacity) * .6); animation-delay: -12s; }
.blob--pink   { display: none; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, 6vh) scale(1.08); }
}

/* Прелоадер: тонкий контур логотипа */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__logo { width: 44px; height: 44px; color: var(--heading); }
.preloader__logo path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s var(--ease) infinite; }
.preloader__logo circle { animation: glow 1.4s ease-in-out infinite; }
.preloader__text { font: 400 .72rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
@keyframes draw { 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 6px var(--violet)); } }

/* Курсор: точка + отстающее кольцо (только мышь) */
.cursor { display: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor input { cursor: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 999; transition: opacity .3s; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--heading); }
.cursor__ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1px solid var(--line-strong);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), border-color .3s, background .3s;
}
.cursor.is-hover .cursor__ring {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: var(--accent);
  background: rgba(168, 85, 247, .06);
}

/* ---------- 4. ШАПКА ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font: 500 1rem var(--font-head); color: var(--heading); letter-spacing: -0.01em; }
.logo svg { color: var(--heading); transition: transform .6s var(--ease); flex: none; }
.logo span { white-space: nowrap; }
[hidden] { display: none !important; } /* кнопка кабинета и т.п.: hidden сильнее display:grid */
/* узкие телефоны: кнопки в шапке чуть компактнее, чтобы имя не переносилось */
@media (max-width: 400px) {
  .header__actions { gap: 5px; }
  .header__actions .icon-btn { width: 34px; height: 34px; }
  .logo { gap: 8px; font-size: .95rem; }
}
.logo:hover svg { transform: rotate(60deg); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 8px 14px;
  font-size: .92rem; color: var(--text-muted);
  transition: color .25s;
}
.nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--heading); }
.nav__link.is-active { color: var(--heading); }
.nav__link.is-active::after { transform: scale(1); box-shadow: 0 0 8px var(--accent); }

.header__actions { display: flex; gap: 8px; }
.lang-btn { font: 600 .72rem var(--font-mono, monospace); letter-spacing: .06em; color: var(--text-muted); }
.lang-btn:hover { color: var(--heading); }

/* Только форма записи (по QR-коду): прячем остальной сайт */
.only-booking__back { display: none; }
.only-booking #hero, .only-booking #search, .only-booking #blog, .only-booking #files, .only-booking #videos,
.only-booking #links, .only-booking #reviews, .only-booking #about, .only-booking .footer,
.only-booking .nav, .only-booking .burger, .only-booking .qr-wrap, .only-booking .section__kicker { display: none !important; }
.only-booking #booking { padding-top: 100px; min-height: 100vh; }
.only-booking #preloader { display: none !important; }
.only-booking #booking .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.only-booking #booking .section__head { flex-direction: column; align-items: flex-start; gap: 0; }
.only-booking .only-booking__back { display: inline-block; margin-bottom: 14px; color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.only-booking .only-booking__back:hover { color: var(--heading); }

/* QR на форму записи — маленькое окошко под кнопкой, только на компьютере */
.qr-wrap { position: relative; }
.qr-pop {
  position: absolute; top: calc(100% + 12px); right: -8px; z-index: 60; width: 232px; padding: 16px;
  border-radius: 18px; border: 1px solid var(--line-strong); background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(168, 85, 247, .08);
  text-align: center; transform-origin: top right; animation: qrIn .22s var(--ease);
}
.qr-pop[hidden] { display: none; }
.qr-pop::before { content: ''; position: absolute; top: -7px; right: 20px; width: 12px; height: 12px; transform: rotate(45deg);
  background: inherit; border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
.qr-pop__tile { padding: 12px; border-radius: 12px; background: #fff; }
.qr-pop__code { display: block; width: 100%; height: auto; }
.qr-pop__title { margin: 12px 0 2px; color: var(--heading); font: 500 .95rem var(--font-head); }
.qr-pop__text { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--text-muted); }
.qr-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--heading); }
@keyframes qrIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
/* обратный отсчёт до скрытия — тонкая полоска внизу */
.qr-pop.is-timing::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .5; transform-origin: left; animation: qrTimer var(--qr-t, 3s) linear forwards; }
/* невидимый «мостик» между кнопкой и окошком, чтобы курсор не «выпадал» по пути */
.qr-wrap::after { content: ''; position: absolute; top: 100%; right: 0; width: 60px; height: 14px; }

@keyframes qrTimer { to { transform: scaleX(0); } }
@media (max-width: 820px), (hover: none) { .qr-wrap { display: none; } }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--text-muted);
  transition: border-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--heading); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

.burger { display: none; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px;
  background: currentColor; transition: transform .35s var(--ease), opacity .25s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 18px; }
.burger span:nth-child(3) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero__inner { display: grid; gap: 28px; }

.hero__top { display: flex; align-items: center; gap: 16px; }
.hero__avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  padding: 3px; border: 1px solid var(--line-strong);
}
.hero__status { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.hero__status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .12);
}

.hero__title {
  font-size: clamp(3rem, 11vw, 8rem); font-weight: 500; letter-spacing: -0.045em; line-height: .95;
  min-height: .95em;
}
.hero__title.is-typing::after, .hero__title.is-typed::after {
  content: ''; display: inline-block; width: 2px; height: .8em; margin-left: .06em;
  background: var(--accent); vertical-align: -.02em;
  animation: blink 1.1s steps(1) infinite;
}
.hero__title.is-typed::after { animation: blink 1.1s steps(1) 3 forwards; }
@keyframes blink { 50% { opacity: 0; } }

.hero__slogan { margin: 0; max-width: 520px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  translate: -50% 0;
  font: 400 .68rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint);
}
.hero__scroll span { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hero__scroll span::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--heading); animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint { to { top: 100%; } }

/* ---------- 6. КНОПКИ ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--heading); cursor: pointer;
  font: 500 .95rem var(--font-body);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn span, .btn svg { pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { box-shadow: var(--glow); }

.btn--ghost { color: var(--heading); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }

.btn--sm { padding: 9px 16px; font-size: .86rem; }
.magnetic { will-change: transform; }

/* ---------- 7. ПОИСК И ТЕГИ ---------- */
.toolbar { padding: 20px 0 0; }

.search {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 4px 18px; border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(168, 85, 247, .08); }
.search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0; padding: 13px 0;
  background: none; border: 0; outline: 0;
  color: var(--heading); font: inherit;
}
.search input::placeholder { color: var(--text-faint); }
.search kbd {
  flex: none; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
  font: .78rem var(--font-mono); color: var(--text-faint);
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: .82rem; color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s, box-shadow .25s;
}
.chip small { color: var(--text-faint); font-size: .75em; margin-left: 2px; }
.chip:hover { color: var(--heading); border-color: var(--line-strong); }
.chip.is-active {
  color: var(--heading); border-color: var(--accent);
  background: rgba(168, 85, 247, .08);
  box-shadow: 0 0 14px rgba(168, 85, 247, .18);
}
.chip.is-active small { color: var(--accent); }
.search__status { min-height: 1.6em; margin: 12px 2px 0; color: var(--text-muted); font-size: .86rem; }

/* ---------- 8. СЕКЦИИ И КАРТОЧКИ ---------- */
.section { padding: 110px 0 10px; }
.section__head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 40px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section__kicker { order: 2; margin-left: auto; font: .78rem var(--font-mono); color: var(--text-faint); letter-spacing: .04em; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.035em; }

.grid { display: grid; gap: 20px; }
.grid--posts  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--files  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--links  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.empty { padding: 24px; border-radius: var(--radius); text-align: center; border: 1px dashed var(--line); color: var(--text-muted); font-size: .92rem; }

/* Общая карточка */
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.card.is-filtered, .card.is-collapsed { display: none; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.more[hidden] { display: none; }
.card:hover { border-color: var(--line-strong); background: var(--surface-hover); }

/* 3D-наклон: JS задаёт --rx, --ry и --mx, --my (позиция блика) */
.tilt {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), border-color .3s, background .3s;
}
.tilt.is-tilting { transition: border-color .3s, background .3s; }
.tilt::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .05), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tilt.is-tilting::after { opacity: 1; }

.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) brightness(.88);
  transition: transform 1s var(--ease), filter .6s;
}
.card:hover .card__media img { transform: scale(1.03); filter: none; }
.img-fallback { background: linear-gradient(135deg, var(--bg-soft), rgba(168, 85, 247, .25)) !important; }
.img-fallback img { opacity: 0; }

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.card__title { font-size: 1.18rem; letter-spacing: -0.015em; line-height: 1.3; }
.card__text { margin: 0; color: var(--text-muted); font-size: .93rem; line-height: 1.6; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font: .76rem var(--font-mono); color: var(--text-faint); letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 6px; }
.tag { font-size: .8rem; color: var(--text-muted); }

/* Пост целиком кликабелен */
.post-card { cursor: pointer; }
.post-card__btn { all: unset; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.post-card__btn:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--heading); }
.read-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.post-card:hover .read-more { color: var(--accent); }

/* Низ карточки: «Читать» слева, счётчик комментариев и лайк справа */
.post-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post-card__stats { display: inline-flex; align-items: center; gap: 10px; }
.ccount { display: inline-flex; align-items: center; gap: 5px; font: 500 .85rem var(--font-body); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ccount[hidden] { display: none; }
.ccount svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Комментарии в открытом посте ---------- */
.comments { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.comments[hidden] { display: none; }
.comments__title { font-size: 1.15rem; margin-bottom: 16px; }
.comments__empty { margin: 0 0 18px; color: var(--text-muted); font-size: .95rem; }
.cmts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.cmt { display: flex; gap: 12px; align-items: flex-start; }
.cmt.is-new { animation: cmtIn .6s var(--ease); }
@keyframes cmtIn { from { opacity: 0; transform: translateY(8px); } }
.cmt__ava { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.cmt__ava--letter { display: grid; place-items: center; background: rgba(168, 85, 247, .15); color: var(--accent); font: 600 .9rem var(--font-head); }
.cmt__body { min-width: 0; flex: 1; }
.cmt__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .88rem; }
.cmt__head b { color: var(--heading); font-weight: 600; }
.cmt__head span { color: var(--text-faint); font-size: .8rem; }
.cmt__del { margin-left: auto; background: none; border: 0; padding: 0; font-size: .78rem; color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cmt__del:hover { color: var(--pink); }
.cmt__text { margin: 4px 0 0; font-size: .97rem; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.cform { display: flex; gap: 12px; align-items: flex-start; }
.cform__main { flex: 1; min-width: 0; }
.cform textarea {
  width: 100%; min-height: 64px; resize: vertical; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--heading); font: inherit; font-size: .97rem;
  transition: border-color .2s, box-shadow .2s;
}
.cform textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 247, .1); }
.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cform__count { font: .75rem var(--font-mono); color: var(--text-faint); }
.cform__msg { margin: 6px 0 0; min-height: 1.2em; font-size: .85rem; color: var(--pink); }
.cform--guest { align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.cform--guest p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* Сохранить (☆) — для вошедших */
.fav {
  position: relative; z-index: 5; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s;
}
.fav[hidden] { display: none; }
.fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav:hover { color: #f5b301; border-color: rgba(245, 179, 1, .45); }
.fav.is-on { color: #f5b301; border-color: rgba(245, 179, 1, .45); background: rgba(245, 179, 1, .08); }
.fav.is-on svg { fill: currentColor; }
.fav.is-pop svg { animation: likePop .45s var(--ease); }
#modalMeta .fav { margin-left: auto; }
#modalMeta .fav + .like { margin-left: 0; }
.file-card__foot { gap: 10px; }

/* Отзывы */
.grid--reviews { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.review { padding: 22px; gap: 14px; }
.review__stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; }
.review__stars span { color: var(--line-strong); }
.review__text { margin: 0; color: var(--text); line-height: 1.65; flex: 1; }
.review__who { display: flex; align-items: center; gap: 10px; }
.review__who img, .review__ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.review__ava { display: grid; place-items: center; background: rgba(168, 85, 247, .15); color: var(--accent); font: 600 .9rem var(--font-head); }
.review__who b { display: block; color: var(--heading); font-weight: 500; font-size: .92rem; }
.review__who span { font-size: .8rem; color: var(--text-faint); }

/* Лайк */
.like {
  position: relative; z-index: 5; /* выше невидимой кнопки, открывающей пост */
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-muted); font: 500 .85rem var(--font-body); font-variant-numeric: tabular-nums;
  transition: color .2s, border-color .2s, background .2s, box-shadow .3s;
}
.like[hidden] { display: none; }
.like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .3s var(--ease); }
.like__count:empty { display: none; }
.like:hover { color: var(--pink); border-color: rgba(236, 72, 153, .45); }
.like.is-on { color: var(--pink); border-color: rgba(236, 72, 153, .45); background: rgba(236, 72, 153, .08); }
.like.is-on svg { fill: currentColor; }
.like.is-on:hover { box-shadow: 0 0 16px rgba(236, 72, 153, .25); }
/* «вспышка» при лайке */
.like::after {
  content: ''; position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; border: 2px solid var(--pink); opacity: 0; pointer-events: none;
}
.like.is-pop svg { animation: likePop .45s var(--ease); }
.like.is-pop::after { animation: likeRing .55s var(--ease); }
@keyframes likePop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes likeRing { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
#modalMeta .like { margin-left: auto; }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* Файл */
.file-card__head { display: flex; align-items: center; gap: 14px; }
.file-icon {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--c); border: 1px solid var(--line);
  background: var(--surface);
}
.file-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.file-icon--pdf   { --c: var(--pink); }
.file-icon--zip   { --c: var(--violet); }
.file-icon--image { --c: var(--cyan); }
.file-icon--doc   { --c: var(--text-muted); }
.file-card__foot { display: flex; align-items: center; justify-content: flex-start; margin-top: auto; padding-top: 8px; }
.file-card .btn--primary { background: transparent; color: var(--heading); border-color: var(--line-strong); }
.file-card .btn--primary:hover { border-color: var(--accent); box-shadow: var(--glow); }

/* Видео */
.video-card__player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-card__poster { all: unset; position: absolute; inset: 0; cursor: pointer; }
.video-card__poster img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.5) brightness(.7);
  transition: transform 1s var(--ease), filter .6s;
}
.video-card:hover .video-card__poster img { transform: scale(1.03); filter: brightness(.85); }
.video-card__poster:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 18, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .35);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.play svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }
.video-card:hover .play { transform: scale(1.08); border-color: #fff; box-shadow: 0 0 24px rgba(168, 85, 247, .35); }
.video-card__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ссылка */
.link-card__head { display: flex; align-items: center; gap: 12px; }
.favicon {
  flex: none; width: 36px; height: 36px; border-radius: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--line);
}
.link-card__cat { font: .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.link-card .card__title { font-size: 1.05rem; }
.link-card__url { font: .76rem var(--font-mono); color: var(--text-faint); margin-top: auto; overflow-wrap: anywhere; }
.link-card__stretch::before { content: ''; position: absolute; inset: 0; z-index: 4; }
.link-card__arrow {
  position: absolute; top: 20px; right: 20px; width: 16px; height: 16px;
  fill: none; stroke: var(--text-faint); stroke-width: 1.6;
  transition: transform .3s var(--ease), stroke .25s;
}
.link-card:hover .link-card__arrow { stroke: var(--accent); transform: translate(2px, -2px); }

/* ---------- ЗАПИСЬ (анкета) ---------- */
.booking {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px;
  padding: clamp(24px, 5vw, 56px); border-radius: calc(var(--radius) + 4px);
}
.booking__lead { margin: 0 0 28px; font-size: 1.1rem; line-height: 1.6; color: var(--heading); max-width: 34ch; }
.booking__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.booking__steps li { display: flex; gap: 14px; align-items: baseline; color: var(--text-muted); font-size: .95rem; }
.booking__steps span { font: .76rem var(--font-mono); color: var(--accent); }

.form { display: grid; gap: 18px; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__label { display: block; margin-bottom: 8px; font-size: .82rem; color: var(--text-muted); }
.form__label small { color: var(--text-faint); font-size: inherit; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; min-width: 0; }

.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8a9c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field select option { background: var(--surface-strong); color: var(--heading); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 247, .1);
}
.field input[type="date"] { color-scheme: dark; min-height: 48px; }
:root[data-theme="light"] .field input[type="date"] { color-scheme: light; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--pink); }
.field__error { display: block; margin-top: 6px; font-size: .8rem; color: var(--pink); }
.field__note { display: block; margin-top: 6px; font-size: .8rem; color: var(--cyan); }

/* Телефон с выбором страны */
.phone { display: flex; gap: 8px; }
.phone__country { position: relative; flex: none; }
.phone__code {
  display: flex; align-items: center; height: 100%; min-height: 48px;
  padding: 0 32px 0 12px; white-space: nowrap; font-size: .98rem; color: var(--heading);
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8a9c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s, box-shadow .2s;
}
.field .phone__country select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.phone__country:focus-within .phone__code { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 247, .1); }
.phone input { flex: 1; min-width: 0; }
.field.is-invalid .phone__code { border-color: var(--pink); }

/* Выбор услуги — «таблетки» */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-muted); font-size: .9rem;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s, box-shadow .25s;
}
.choice span:hover { color: var(--heading); border-color: var(--line-strong); }
.choice input:checked + span {
  color: var(--heading); border-color: var(--accent); background: rgba(168, 85, 247, .08);
  box-shadow: 0 0 14px rgba(168, 85, 247, .18);
}
.choice input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.form__group.is-invalid .choice span { border-color: rgba(236, 72, 153, .5); }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form__note { margin: 0; font-size: .8rem; color: var(--text-faint); }
.form__note a, .footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover, .footer a:hover { color: var(--heading); }
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--text-muted); }
.form__status.is-error { color: var(--pink); }
.form__status.is-ok { color: var(--cyan); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Экран «заявка отправлена» */
.form-done { display: grid; gap: 14px; align-content: center; justify-items: start; min-height: 320px; }
.form-done__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); box-shadow: var(--glow);
}
.form-done__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--heading); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-done h3 { font-size: 1.6rem; }
.form-done p { margin: 0; color: var(--text-muted); max-width: 46ch; }
.form-done a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ЛИЧНЫЙ КАБИНЕТ ---------- */
.account-btn { position: relative; overflow: hidden; padding: 0; }
.account-btn__avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-btn.is-in { border-color: var(--accent); }
.account-btn.is-in .account-btn__icon { display: none; }

.modal__dialog.account { width: min(560px, 100%); }
.account__body { padding: 32px clamp(20px, 5vw, 40px) 36px; }
.account__title { font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.03em; margin-bottom: 8px; padding-right: 40px; }
.account__lead { margin: 0 0 22px; color: var(--text-muted); }
.account__gsi { min-height: 44px; display: flex; }
.account__fine { margin: 16px 0 0; font-size: .8rem; color: var(--text-faint); }

.account__user { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-right: 40px; }
.account__user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.account__user b { display: block; color: var(--heading); font-weight: 500; }
.account__user span { font-size: .85rem; color: var(--text-muted); overflow-wrap: anywhere; }
.account__logout { margin-left: auto; font-size: .85rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.account__logout:hover { color: var(--heading); }
.account h3 { font-size: 1.15rem; margin-bottom: 12px; }

.mybk { display: grid; gap: 10px; }
.mybk__item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.mybk__when { font: 500 1.1rem var(--font-head); color: var(--heading); letter-spacing: -0.01em; }
.mybk__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; font-size: .85rem; color: var(--text-muted); }
.mybk__status { font: .72rem var(--font-mono); padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.mybk__status.is-ok { color: #22c55e; }
.mybk__status.is-new { color: var(--cyan); }
.mybk__status.is-off { color: var(--pink); }
/* запись, которую отменили вы: извинение и «выбрать другое время» */
.mybk__item.is-cancelled { border-color: rgba(236, 72, 153, .35); background: rgba(236, 72, 153, .05); }
.mybk__item.is-cancelled .mybk__when { text-decoration: line-through; text-decoration-color: rgba(236, 72, 153, .6); color: var(--text-muted); }
.mybk__sorry { margin: 10px 0 0; font-size: .9rem; line-height: 1.55; color: var(--text); }
/* короткая подсветка, когда статус поменялся «на лету» */
.mybk__status.is-flash { animation: statusFlash 1.6s var(--ease); }
@keyframes statusFlash {
  0% { box-shadow: 0 0 0 0 currentColor; transform: scale(1); }
  20% { box-shadow: 0 0 14px 2px currentColor; transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
.form-done__status { display: flex; align-items: center; gap: 8px; }
.mybk__actions { display: flex; gap: 8px; margin-top: 14px; }
.mybk__actions .btn { flex: 1; }
.mybk__move { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mybk__move.is-open { display: grid; gap: 10px; }
.mybk__move .form__row { gap: 10px; }
.btn--danger { color: var(--pink); border-color: rgba(236, 72, 153, .4); }
.btn--danger:hover { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(236, 72, 153, .25); }
.account__empty { padding: 22px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; color: var(--text-muted); }
.account__empty .btn { margin-top: 12px; }
.account__msg { min-height: 1.3em; margin: 12px 0 0; font-size: .88rem; color: var(--text-muted); }
.account__msg.is-error { color: var(--pink); }
.account__msg.is-ok { color: var(--cyan); }

/* ---------- 9. ОБО МНЕ И ФУТЕР ---------- */
.about {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: end;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 4px);
}
.about__text p { color: var(--text-muted); font-size: 1.02rem; max-width: 58ch; }
.about__text .section__kicker { display: block; margin-bottom: 12px; }
.about__text .section__title { margin-bottom: 18px; }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.social {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .95rem; color: var(--heading);
  transition: border-color .25s, box-shadow .3s;
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: stroke .25s; }
.social:hover { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(236, 72, 153, .3), 0 0 22px rgba(236, 72, 153, .15); }
.social:hover svg { stroke: var(--pink); }

.footer { margin-top: 100px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: .85rem; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }

/* ---------- 10. МОДАЛЬНОЕ ОКНО ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal__dialog {
  position: relative; width: min(740px, 100%);
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  opacity: 0; transform: scale(.94) translateY(16px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -52px 0; z-index: 2;
  background: rgba(10, 10, 18, .5); color: #fff; border-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal__cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.modal__body { padding: 32px clamp(20px, 6vw, 56px) 48px; }
.modal__title { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.03em; margin: 12px 0 24px; }

.prose { color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.08rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose code { font: .9em var(--font-mono); padding: 2px 6px; border-radius: 6px; background: var(--surface-hover); }
.prose li::marker { color: var(--text-faint); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  font-size: 1.15rem; color: var(--heading);
}

/* Кнопка «наверх» */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: var(--surface-strong);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease), box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--glow); }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: var(--line); }
.to-top__bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }
.to-top__arrow { width: 16px; height: 16px; fill: none; stroke: var(--heading); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 11. ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ---------- */
.js .reveal {
  opacity: 0; translate: 0 24px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- 12. АДАПТИВНОСТЬ ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .booking { grid-template-columns: 1fr; gap: 32px; }
  .booking__lead { max-width: none; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .burger { display: grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    margin: 0; padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility .45s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link::after { left: auto; right: 6px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .header__actions { margin-left: auto; }
  .header { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
}

@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .section { padding-top: 80px; }
  .section__head { flex-wrap: wrap; }
  .search kbd { display: none; }
  .hero__cta .btn { flex: 1 1 140px; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .to-top { right: 16px; bottom: 16px; }
  .footer .container { flex-direction: column; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { max-height: 92dvh; border-radius: 18px 18px 0 0; }
}

/* Уважение к prefers-reduced-motion: отключаем анимации */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .blob { animation: none; }
}
