[hidden] { display: none !important; }
/* ──────────────────────────────────────────────────────────
   Professors Clinic — стили сайта
   Светлая и тёмная тема, адаптив от 360 px до 1920 px.
   ────────────────────────────────────────────────────────── */

:root {
  --bg: #FFFFFF;
  --soft: #EAF4FC;
  --soft2: #F5F9FD;
  --card: #FFFFFF;
  --text: #12304A;
  --muted: #4E6478;
  --line: #DCE8F2;
  --blue: #1F6FB2;
  --on-blue: #FFFFFF;
  --sky: #4FA8E8;
  --red: #D7262E;
  --on-red: #FFFFFF;
  --red-soft: #FDECEC;
  --warm: #FFF4E6;
  --warm-ink: #6B3D00;
  --ok: #14774F;
  --ok-soft: #E6F5EE;
  --shadow: 0 18px 40px rgba(18, 48, 74, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-h: "Manrope", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B1F33;
  --soft: #13324F;
  --soft2: #0F2840;
  --card: #12304B;
  --text: #EAF2F8;
  --muted: #A9BDCF;
  --line: #234765;
  --blue: #6BB8F0;
  --on-blue: #0B1F33;
  --sky: #4FA8E8;
  --red: #E0313A;
  --on-red: #FFFFFF;
  --red-soft: #3A2030;
  --warm: #2B2418;
  --warm-ink: #FFD9A8;
  --ok: #5FD3A0;
  --ok-soft: #133A33;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; margin: 0; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }

/* ── Анимированный фон: мягкие пятна в цветах логотипа */
.bg-anim { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-anim span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .32; will-change: transform; }
.bg-anim span:nth-child(1) { background: radial-gradient(circle, var(--sky) 0, transparent 62%); top: -18vmax; left: -12vmax; }
.bg-anim span:nth-child(2) { background: radial-gradient(circle, var(--red) 0, transparent 62%); top: 30vh; right: -20vmax; opacity: .16; }
.bg-anim span:nth-child(3) { background: radial-gradient(circle, var(--sky) 0, transparent 62%); bottom: -24vmax; left: 25vw; opacity: .22; }
[data-theme="dark"] .bg-anim span { opacity: .34; }
[data-theme="dark"] .bg-anim span:nth-child(2) { opacity: .12; }
.bg-anim span:nth-child(1) { animation: drift1 16s ease-in-out infinite alternate; }
  .bg-anim span:nth-child(2) { animation: drift2 20s ease-in-out infinite alternate; }
  .bg-anim span:nth-child(3) { animation: drift1 24s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { 50% { transform: translate(14vw, 10vh) scale(1.2); } to { transform: translate(-6vw, 16vh) scale(.95); } }
@keyframes drift2 { 50% { transform: translate(-16vw, -10vh) scale(.88); } to { transform: translate(-4vw, 12vh) scale(1.15); } }

/* ── Появление при прокрутке */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }


/* ── Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s, translate .4s cubic-bezier(.2, .9, .3, 1.4);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn-primary { background: var(--red); color: var(--on-red); box-shadow: 0 10px 24px rgba(215, 38, 46, .25); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(215, 38, 46, .32); color: var(--on-red); }
.btn-blue { background: var(--blue); color: var(--on-blue); }
.btn-blue:hover { color: var(--on-blue); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { color: #fff; border-color: #fff; }
.btn-soft { background: var(--soft); color: var(--blue); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.pulse { position: relative; }
.pulse::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(215, 38, 46, .5); animation: pulse 2.4s ease-out infinite; pointer-events: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 38, 46, .45); } 80%, 100% { box-shadow: 0 0 0 16px rgba(215, 38, 46, 0); } }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.icon-btn:hover { border-color: var(--blue); }

/* ── Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 48, 74, .08); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-h); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 0; margin: 0 auto; flex-wrap: nowrap; min-width: 0; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 9px; border-radius: 10px; transition: background-color .2s, color .2s; white-space: nowrap; }
.main-nav a:hover { background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--soft); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.h-phone { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; margin-right: 4px; }
.lang-switch { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; }
.lang-switch a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px 9px; border-radius: 9px; min-width: 36px; text-align: center; }
.lang-switch a[aria-current="true"] { background: var(--card); color: var(--blue); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.theme-toggle .when-dark { display: none; }
[data-theme="dark"] .theme-toggle .when-dark { display: inline-flex; }
[data-theme="dark"] .theme-toggle .when-light { display: none; }
.burger { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 20px 20px; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 18px; font-weight: 600; }
.mobile-menu a[aria-current="page"] { color: var(--blue); }
@media (max-width: 1240px) { .main-nav { display: none; } .burger { display: inline-flex; } }
@media (max-width: 760px) { .h-phone, .h-book { display: none; } .header-in { min-height: 64px; gap: 10px; } .brand-text small { display: none; } }
@media (max-width: 400px) { .brand-text { display: none; } }

.lang-hint { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 15px; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.lang-hint a, .lang-hint button { font-weight: 600; border: 0; background: none; color: var(--blue); cursor: pointer; padding: 6px 4px; }

/* ── Секции и сетки */
.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.section.last { padding-bottom: clamp(56px, 8vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 620px; margin-top: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 4px 4px 4px 0; border: 3px solid var(--red); border-right-color: var(--sky); border-top-color: var(--sky); transform: rotate(45deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico, .card:hover .link-arrow .ico { transform: translateX(4px); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid-2 { --min: 420px; } .grid-3 { --min: 300px; } .grid-4 { --min: 230px; }
.band { background: var(--soft2); }
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.page-hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Карточки */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
a.card:hover, .card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.card p { color: var(--muted); font-size: 16px; }
.card .ico-box { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--blue); transition: background-color .3s, color .3s, transform .3s var(--ease); }
a.card:hover .ico-box { background: var(--blue); color: var(--on-blue); transform: rotate(-6deg); }
.card .ico-box.red { background: var(--red-soft); color: var(--red); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--blue); width: fit-content; }
.badge.order { background: var(--warm); color: var(--warm-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; text-decoration: none; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"], .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Заглушка под фото — аккуратная, в стиле сайта, а не пустая дыра */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; background:
  radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 55%),
  radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--red) 12%, transparent), transparent 55%), var(--soft); }
.ph span { opacity: .85; }

/* ── Главный экран */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-text .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--blue); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-photo { position: absolute; inset: 6% 0 0 8%; border-radius: 36px; overflow: hidden; }
.hero-photo img, .hero-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-mark { position: absolute; width: 26%; left: 0; bottom: 4%; filter: drop-shadow(0 18px 30px rgba(18, 48, 74, .18)); }
.float-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: 14px; max-width: 250px; }
.float-card b { display: block; font-size: 16px; }
.float-card .ico-box { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.fc1 { right: -4%; top: 12%; }
.fc2 { right: 4%; bottom: 8%; }
.fc1 { animation: floaty 6s ease-in-out infinite; }
  .fc2 { animation: floaty 7s ease-in-out infinite 1.2s; }
  .hero-mark { animation: floaty 8s ease-in-out infinite .6s; }

@keyframes floaty { 50% { translate: 0 -12px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; aspect-ratio: 5 / 4; }
  .fc1 { right: 0; } .fc2 { right: 2%; }
}

/* Бегущая строка */
.marquee { overflow: hidden; background: var(--text); color: var(--bg); padding: 16px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; font-family: var(--font-h); font-weight: 700; font-size: 18px; white-space: nowrap; }
.marquee-track i { color: var(--sky); font-style: normal; }
.marquee-track { animation: marquee 45s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* Два пути */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.path { border-radius: 26px; padding: clamp(24px, 3.5vw, 36px); text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); min-height: 220px; }
.path:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.path h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.path p { font-size: 16.5px; }
.path .link-arrow { margin-top: auto; }
.path-paid { background: var(--blue); color: var(--on-blue); }
.path-paid p, .path-paid .link-arrow { color: var(--on-blue); opacity: .92; }
.path-order { background: var(--warm); color: var(--warm-ink); border: 1px solid color-mix(in srgb, var(--warm-ink) 20%, transparent); }
.path-order .link-arrow { color: var(--warm-ink); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

/* Преимущества по четыре — как четыре элемента логотипа */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv .card { padding: 22px; }
.adv .num { font-family: var(--font-h); font-weight: 800; font-size: 15px; color: var(--muted); }
.adv .card:nth-child(odd) .corner { border-color: var(--red); }
.corner { width: 30px; height: 30px; border: 5px solid var(--sky); border-radius: 0 999px 999px 999px; border-top-left-radius: 0; }
.adv .card:nth-child(2) .corner { transform: rotate(90deg); } .adv .card:nth-child(3) .corner { transform: rotate(-90deg); } .adv .card:nth-child(4) .corner { transform: rotate(180deg); }
@media (max-width: 980px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adv { grid-template-columns: 1fr; } }

/* Врачи */
.doc-card { padding: 0; overflow: hidden; gap: 0; }
.doc-photo { aspect-ratio: 4 / 4.2; position: relative; overflow: hidden; }
.doc-photo img, .doc-photo .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.doc-card:hover .doc-photo img { transform: scale(1.04); }
.doc-photo .badge { position: absolute; top: 12px; left: 12px; }
.doc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.doc-body h3 { font-size: 18px; }
.doc-body .pos { color: var(--blue); font-weight: 600; font-size: 15px; }
.doc-body .meta { color: var(--muted); font-size: 14px; }

/* Пусто — вместо дыр аккуратная плашка */
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── Запись */
.booking { display: grid; grid-template-columns: 340px 1fr; gap: 0; border-radius: 30px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.booking-side { background: #0B2440; color: #EAF2F8; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.booking-side h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.booking-side p { color: #B6CBDD; }
.b-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.b-steps li { display: flex; align-items: center; gap: 12px; color: #7F9DB8; font-weight: 500; }
.b-steps li span { width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid #34597A; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; transition: background-color .3s, color .3s; }
.b-steps li.on { color: #fff; } .b-steps li.on span { background: #fff; color: #0B2440; border-color: #fff; }
.b-steps li.done { color: #B6CBDD; } .b-steps li.done span { background: var(--sky); border-color: var(--sky); color: #0B2440; }
.booking-main { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; min-height: 460px; min-width: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 99px; transition: width .45s var(--ease); }
.b-pane { display: none; flex-direction: column; gap: 14px; }
.b-pane.on { display: flex; }
.b-pane.on { animation: paneIn .35s var(--ease); }

@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.b-pane h3 { font-size: 21px; }
.opt-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; min-height: 60px; font-weight: 600; font-size: 15.5px; }
.opt:hover { border-color: var(--blue); transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--soft); }
.opt .ico { color: var(--blue); }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: none; min-width: 76px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.day b { font-size: 16px; color: var(--text); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.day[aria-pressed="true"] b { color: var(--on-blue); }
.day:disabled { opacity: .45; cursor: not-allowed; }
.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); min-height: 50px; }
.slot { padding: 11px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; }
.slot:hover { border-color: var(--blue); }
.slot[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.slot:disabled { text-decoration: line-through; opacity: .45; cursor: not-allowed; }
.b-summary { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: 15px; color: var(--text); }
.b-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.b-done { text-align: center; align-items: center; padding: 20px 0; }
.b-done .ok-circle { width: 80px; height: 80px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.ok-circle path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.b-pane.on .ok-circle path { animation: draw .7s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } .booking-side { padding: 24px; } .b-steps { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; } .b-steps li b { display: none; } }

/* ── Формы */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-size: 16px; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-error { color: var(--red); font-weight: 600; font-size: 14.5px; }
.form-ok { color: var(--ok); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.stars { display: flex; gap: 4px; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--line); }
.stars button.on { color: #F2A516; }
.stars button .ico { width: 30px; height: 30px; fill: currentColor; }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: 4px 16px; max-width: 640px; }
.search input { border: 0; background: transparent; min-height: 48px; flex: 1; outline: none; font-size: 16.5px; }
.search:focus-within { border-color: var(--blue); }

/* ── Аккордеон (вопросы) */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: var(--on-blue); }
.faq .a { padding: 0 22px 20px; color: var(--muted); }
.faq .a p + p { margin-top: 10px; }

.check-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.check-list .ico { color: var(--ok); margin-top: 3px; }
.timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 10px; height: 10px; border-radius: 99px; background: var(--blue); }

/* ── Цены */
.price-sec { margin-bottom: 26px; }
.price-sec h2 { font-size: clamp(22px, 2.6vw, 26px); margin-bottom: 12px; }
.price-list { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .name { flex: 1; min-width: 0; }
.price-row .val { font-weight: 700; white-space: nowrap; }
.price-row .btn { flex: none; }
.price-tabs { position: sticky; top: 74px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 10px 0; backdrop-filter: blur(8px); }
@media (max-width: 640px) {
  .price-row { flex-wrap: wrap; gap: 6px 12px; }
  .price-row .name { flex-basis: 100%; }
  .price-row .btn { margin-left: auto; }
  .price-tabs { top: 64px; }
  .price-tabs .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}

/* ── Лечение по ордеру: маршрутный лист */
.order-hero { background: var(--warm); color: var(--warm-ink); }
.order-hero h1 { color: var(--warm-ink); }
.order-hero .crumbs, .order-hero .crumbs a { color: var(--warm-ink); opacity: .8; }
.callouts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 22px; }
.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--card); color: var(--text); border-radius: 20px; padding: 18px 20px; }
.callout .ico-box { width: 46px; height: 46px; border-radius: 14px; background: var(--warm); color: var(--warm-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.where { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 26px; }
.where b { margin-right: 6px; }
.route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: st; }
.route::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44px; height: 6px; border-radius: 6px; background: var(--line); }
.route .fill { position: absolute; left: 10%; top: 44px; height: 6px; border-radius: 6px; width: 0; background: linear-gradient(90deg, var(--red), var(--sky)); transition: width 1.4s var(--ease); }
.route.in .fill { width: 80%; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 4px; }
.stage .dot { width: 92px; height: 92px; border-radius: 28px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 12px 26px rgba(18, 48, 74, .16); }
.stage:nth-child(odd) .dot { background: linear-gradient(145deg, #E8434A, #C41E26); }
.stage:nth-child(even) .dot { background: linear-gradient(145deg, #5DB3EE, #2E86CC); }
.stage .dot .n { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.stage h3 { font-size: 17px; }
.stage p { font-size: 14.5px; color: var(--muted); }
.stage .dl { font-size: 13px; font-weight: 700; background: var(--text); color: var(--bg); padding: 5px 12px; border-radius: 999px; }
.stage.current .dot { transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 35%, transparent), 0 16px 32px rgba(18, 48, 74, .22); }
.stage.past { opacity: .5; }
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before, .route .fill { left: 45px; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; }
  .route .fill { height: 0; bottom: auto; transition: height 1.4s var(--ease); }
  .route.in .fill { width: 6px; height: calc(100% - 40px); }
  .stage { flex-direction: row; text-align: left; align-items: center; gap: 16px; padding: 12px 0; }
  .stage .dot { width: 76px; height: 76px; border-radius: 22px; flex: none; margin-left: 10px; }
  .stage .txt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
}
.calc { background: #0B2440; color: #EAF2F8; border-radius: 28px; padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; align-items: end; }
.calc h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.calc p { color: #B6CBDD; }
.calc .field { color: #CFE0EE; }
.calc input { background: #fff; color: #12304A; border: 0; }
.calc .res { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .res div { background: #143558; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.calc .res small { color: #9FC0DA; }
.calc .res b { font-family: var(--font-h); font-size: 26px; color: #FFD9A8; }
.calc .res .warn b { color: #FF8A8F; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc .res { grid-template-columns: 1fr; } }
.step-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; border: 1px solid var(--line); background: var(--card); border-radius: 26px; padding: clamp(20px, 3vw, 28px); }
.step-card + .step-card { margin-top: 16px; }
.step-card.no-img { grid-template-columns: 1fr; }
.step-card .st-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-card .st-n { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-h); font-weight: 800; font-size: 20px; flex: none; }
.step-card:nth-child(odd) .st-n { background: var(--red); } .step-card:nth-child(even) .st-n { background: #2E86CC; }
.step-card .body { display: flex; flex-direction: column; gap: 12px; color: var(--muted); }
.step-card .body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.step-card .body li { display: flex; gap: 10px; background: var(--soft2); border-radius: 12px; padding: 10px 12px; color: var(--text); font-size: 15.5px; }
.step-card .body li .ico { color: var(--ok); margin-top: 2px; }
.step-img { border-radius: 18px; overflow: hidden; min-height: 180px; }
.step-img img, .step-img .ph { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: 15.5px; }
.note-info { background: var(--soft); color: var(--text); }
.note-warn { background: var(--red-soft); color: var(--text); }
.note-ok { background: var(--ok-soft); color: var(--text); }
.note-pay { background: var(--warm); color: var(--text); }
@media (max-width: 860px) { .step-card { grid-template-columns: 1fr; } .step-img { order: -1; } }

/* ── Статьи */
.art-feat { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; gap: 0; }
.art-feat .ph, .art-feat img { min-height: 300px; height: 100%; object-fit: cover; }
.art-feat .in { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.art-card { padding: 0; overflow: hidden; gap: 0; }
.art-card .cover { aspect-ratio: 16 / 9; overflow: hidden; }
.art-card .cover img, .art-card .cover .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.art-card:hover .cover img { transform: scale(1.04); }
.art-card .in { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.art-meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.cat { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 860px) { .art-feat { grid-template-columns: 1fr; } }
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.toc b { margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a.on, .toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: clamp(23px, 2.6vw, 28px); margin: 36px 0 12px; scroll-margin-top: 100px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .note { background: var(--soft); border-left: 4px solid var(--blue); padding: 14px 16px; border-radius: 0 14px 14px 0; margin: 18px 0; }
.summary-box { background: var(--soft); border-radius: 18px; padding: 18px 20px; margin-bottom: 22px; }
.summary-box b { color: var(--blue); }
.aside-cta { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.reviewed { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--muted); }
.reviewed .badge { background: var(--ok-soft); color: var(--ok); }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; }
.sources ul { padding-left: 18px; }
@media (max-width: 1100px) { .article { grid-template-columns: minmax(0, 1fr) 280px; } .toc { display: none; } }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .aside-cta { position: static; } }

/* ── Отзывы */
.rating-sum { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; }
.rating-sum b { font-family: var(--font-h); font-size: 40px; }
.rev-card .who { display: flex; align-items: center; gap: 12px; }
.rev-card .ava { width: 44px; height: 44px; border-radius: 999px; background: var(--soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.rev-card .st { color: #F2A516; letter-spacing: 2px; }
.rev-card .reply { background: var(--soft2); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.video-card { position: relative; aspect-ratio: 9 / 14; border-radius: 22px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #12304A; color: #fff; text-align: left; }
.video-card img, .video-card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px; background: #fff; color: #12304A; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* ── Контакты */
.map-box { border-radius: 26px; overflow: hidden; min-height: 420px; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-list .card { gap: 6px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }

/* ── Призыв */
.cta { background: linear-gradient(135deg, #0B2440, #164A79); color: #fff; border-radius: 30px; padding: clamp(26px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: url(/assets/img/logo.png) center / contain no-repeat; opacity: .12; }
.cta h2 { color: #fff; }
.cta p { color: #C9DAEA; margin-top: 8px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ── Подвал */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: #0A1C2E; color: #C9DAEA; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer a { color: #C9DAEA; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a.brand { display: flex; padding: 0; }
.site-footer .f-book { display: inline-flex; margin-top: 14px; color: #fff; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-top: 12px; font-size: 15px; }
.site-footer .muted { color: #8FA9C0; }
.brand-light { color: #fff !important; } .brand-light small { color: #8FA9C0; }
.f-phone { font-size: 19px; font-weight: 700; color: #fff !important; }
.f-social { display: flex; gap: 16px; margin-top: 8px; }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #1E3A55; margin-top: 36px; padding-top: 18px; font-size: 13.5px; color: #8FA9C0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Нижняя панель на телефоне */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 600; min-height: 50px; border-radius: 12px; }
  .mobile-bar .mb-book { background: var(--red); color: #fff; font-size: 15px; }
  body { padding-bottom: 76px; }
  .assistant { bottom: 88px !important; }
}

/* ── Помощник */
.assistant { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.as-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #0B2440; color: #fff; font-weight: 600; box-shadow: 0 14px 32px rgba(11, 36, 64, .35); cursor: pointer; transition: transform .25s var(--ease); }
.as-fab .ico { color: #7FD6FF; }
.as-fab:hover { transform: translateY(-2px); }
@media (max-width: 520px) { .as-fab span { display: none; } .as-fab { width: 56px; padding: 0; justify-content: center; } }
.as-panel { width: min(370px, calc(100vw - 28px)); height: min(540px, calc(100vh - 170px)); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(11, 36, 64, .3); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.as-panel:not([hidden]) { animation: pop .3s var(--ease); }

@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.as-head { background: #0B2440; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.as-head > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.as-head small { color: #8FE3C1; font-size: 12px; }
.as-ava { width: 38px; height: 38px; border-radius: 12px; background: #1F6FB2; display: flex; align-items: center; justify-content: center; }
.as-close { background: none; border: 0; color: #fff; cursor: pointer; width: 36px; height: 36px; }
.as-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--soft2); }
.as-msg { max-width: 86%; padding: 10px 13px; font-size: 14.5px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; }
.as-msg.me { align-self: flex-end; background: var(--blue); color: var(--on-blue); border-color: var(--blue); border-radius: 14px 14px 4px 14px; }
.as-msg a.as-link { display: inline-flex; margin-top: 8px; font-weight: 600; }
.as-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; border-top: 1px solid var(--line); }
.as-chips button { border: 1px solid var(--line); background: var(--card); color: var(--blue); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.as-form { display: flex; gap: 8px; padding: 10px 12px; }
.as-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.as-form button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue); color: var(--on-blue); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.as-note { font-size: 11.5px; color: var(--muted); padding: 0 14px 10px; }

/* ── Печать маршрутного листа */
@media print {
  .site-header, .site-footer, .mobile-bar, .assistant, .bg-anim, .no-print, .lang-hint { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .step-card, .stage { break-inside: avoid; }
  .route .fill { width: 80% !important; }
}

/* Тонкая сетка из точек и плавающие крестики на фоне */
.bg-anim:before { content: ""; position: absolute; inset: -40px; background-image: radial-gradient(rgba(31, 95, 191, .16) 1.2px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%); animation: gridMove 30s linear infinite; }
[data-theme="dark"] .bg-anim:before { background-image: radial-gradient(rgba(127, 214, 255, .14) 1.2px, transparent 1.4px); }
@keyframes gridMove { to { transform: translate(26px, 26px); } }


/* Главный экран без фото */
.hero-empty { background: linear-gradient(145deg, #E6F1FB 0%, #F3F8FD 45%, #FDECEE 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--line); padding-bottom: 16%; }
[data-theme="dark"] .hero-empty { background: linear-gradient(145deg, #12304D 0%, #0F2236 50%, #2A1A24 100%); }
.hero-empty .hero-logo { width: 34% !important; height: auto !important; object-fit: contain !important; position: relative; z-index: 1; filter: drop-shadow(0 20px 34px rgba(18, 48, 74, .22)); animation: breathe 6s ease-in-out infinite; }
.hero-empty .hero-slogan { position: relative; z-index: 1; max-width: 80%; font-family: var(--font-h); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); color: var(--text); text-align: center; padding: 0 14%; }
.hero-empty .ring { position: absolute; left: 50%; top: 36%; border-radius: 50%; border: 2px solid rgba(79, 168, 232, .35); transform: translate(-50%, -50%); animation: ripple 6s ease-out infinite; }
.hero-empty .r1 { width: 40%; aspect-ratio: 1; } .hero-empty .r2 { width: 40%; aspect-ratio: 1; animation-delay: 2s; } .hero-empty .r3 { width: 40%; aspect-ratio: 1; animation-delay: 4s; border-color: rgba(215, 38, 46, .25); }
@keyframes ripple { from { width: 40%; opacity: 1; } to { width: 120%; opacity: 0; } }
@keyframes breathe { 50% { transform: translateY(-10px) scale(1.03); } }
/* Маршрут: картинка этапа */
.stage .st-img { display: block; width: 100%; max-width: 200px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; margin: 10px auto 0; box-shadow: var(--shadow); }
.stage .st-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .stage .st-img { margin: 8px 0 0; max-width: 100%; } }
/* Запись: «Как это работает» */
.b-pane[data-pane="0"] .opt-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.b-pane[data-pane="0"] .opt { min-height: 96px; padding: 18px; }
.b-how { margin-top: 8px; padding: 18px; border-radius: 18px; background: var(--soft); }
.b-how b { display: block; margin-bottom: 12px; font-family: var(--font-h); }
.b-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; counter-reset: h; }
.b-how li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.b-how li span { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
@media (max-width: 900px) {
  .hero-visual.is-empty { aspect-ratio: 4 / 3; max-width: 420px; }
  .hero-visual.is-empty .float-card { display: none; }
  .hero-visual.is-empty .hero-photo { inset: 0; padding-bottom: 6%; }
}
/* Контакты: карточки и карты */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-bottom: 26px; }
.info-card { gap: 8px; position: relative; }
.info-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.info-card b { font-size: 18px; }
.big-phone { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
.map-wrap { border-radius: 26px; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.map-tabs [role=tab] { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 8px 16px; font: 600 14.5px var(--font); cursor: pointer; }
.map-tabs [aria-selected=true] { background: var(--navy, #0B2440); color: #fff; border-color: transparent; }
.map-go { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.map-wrap .map-box { position: relative; border: 0; border-radius: 0; min-height: 440px; background: linear-gradient(135deg, var(--soft), var(--card)); }
.map-wrap .map-box iframe { position: relative; z-index: 1; min-height: 440px; }
.map-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.map-loading svg { color: var(--red); animation: floaty 2.4s ease-in-out infinite; }
@media (max-width: 760px) { .map-go { margin-left: 0; width: 100%; } .map-wrap .map-box, .map-wrap .map-box iframe { min-height: 340px; } }

/* ── 3D: наклон карточек за мышкой, блик, объёмный главный экран */
a.card, .tilt, a.path { transform-style: preserve-3d; }
a.card::after, .tilt::after, a.path::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .38), transparent 55%); opacity: 0; transition: opacity .35s; z-index: 2; }
[data-theme="dark"] a.card::after, [data-theme="dark"] .tilt::after, [data-theme="dark"] a.path::after { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(127, 214, 255, .16), transparent 55%); }
.tilting { transition: transform .14s ease-out, box-shadow .3s !important; will-change: transform; box-shadow: 0 26px 50px -18px rgba(11, 36, 64, .35) !important; z-index: 2; }
.tilting::after { opacity: 1; }
.hero-visual { transform-style: preserve-3d; transition: transform .7s var(--ease); }
.hero-visual .float-card { transform: translateZ(70px); }
.hero-visual .hero-mark { transform: translateZ(45px); }
.hero-visual.tilting { box-shadow: none !important; }
.hero-empty .hero-logo { animation: breathe 6s ease-in-out infinite, swing3d 12s ease-in-out infinite; }
@keyframes swing3d { 0%, 100% { rotate: y -16deg; } 50% { rotate: y 16deg; } }
@media (hover: none) {
  @keyframes sway { 0%, 100% { transform: perspective(1100px) rotateY(-7deg) rotateX(3deg); } 50% { transform: perspective(1100px) rotateY(7deg) rotateX(-2deg); } }
}
/* ── Быстродействие: на слабых устройствах — без тяжёлых эффектов; в фоне вкладки — пауза */
html.lite .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }

.ph { min-height: 100%; height: 100%; width: 100%; }
/* Направление без картинки */
.dir-art { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(79, 168, 232, .28), transparent 55%), radial-gradient(circle at 80% 90%, rgba(215, 38, 46, .14), transparent 50%), var(--card); }
.dir-art.is-order { background: radial-gradient(circle at 30% 20%, rgba(215, 38, 46, .2), transparent 55%), radial-gradient(circle at 80% 90%, rgba(79, 168, 232, .22), transparent 50%), var(--card); }
.dir-art-ico { width: 150px; height: 150px; border-radius: 40px; display: flex; align-items: center; justify-content: center; background: var(--card); color: var(--blue); box-shadow: 0 30px 60px -20px rgba(11, 36, 64, .35); position: relative; z-index: 1; animation: breathe 6s ease-in-out infinite, swing3d 12s ease-in-out infinite; }
.dir-art.is-order .dir-art-ico { color: var(--red); }
.dir-art-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: relative; z-index: 1; }
.dir-art-chips span { display: inline-flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(11, 36, 64, .06); }
.dir-art-chips svg { color: var(--ok); }
.dir-art .ring { position: absolute; left: 50%; top: 40%; border-radius: 50%; border: 2px solid rgba(79, 168, 232, .3); transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; animation: ripple 6s ease-out infinite; }
.dir-art .r2 { animation-delay: 3s; border-color: rgba(215, 38, 46, .22); }
.dir-art .badge { position: relative; z-index: 1; }
@media (max-width: 760px) { .dir-art { aspect-ratio: auto; min-height: 300px; } .dir-art-ico { width: 110px; height: 110px; } .dir-art-ico svg { width: 60px; height: 60px; } }
/* Отзывы: блок доверия, пока нет отзывов */
.trust-card { gap: 16px; }
.trust-top { text-align: center; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.stars-big { font-size: 34px; letter-spacing: 6px; color: #F5A623; display: block; animation: breathe 4s ease-in-out infinite; }
.trust-top p { margin: 8px 0 0; color: var(--muted); }
.trust-row { display: flex; gap: 14px; align-items: flex-start; }
.trust-row .ico-box { flex: none; }
.trust-row b { display: block; margin-bottom: 2px; }
/* Заглушка без картинки: логотип вместо пустоты */
.ph { flex-direction: column; gap: 10px; }
.ph::before { content: ""; width: 54px; height: 54px; background: url(../img/logo.png) center / contain no-repeat; opacity: .55; flex: none; }
.ph span { max-width: 80%; font-weight: 600; }

/* Карточка-заполнитель пустых клеток сетки */
.fill-card { grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 18px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(79, 168, 232, .45), transparent 50%), radial-gradient(circle at 10% 100%, rgba(215, 38, 46, .35), transparent 45%), linear-gradient(135deg, #0B2440, #16406B); box-shadow: 0 20px 40px -20px rgba(11, 36, 64, .5); }
.fill-card::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; background: url(../img/logo.png) center / contain no-repeat; opacity: .12; animation: swing3d 14s ease-in-out infinite; }
.fill-ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; flex: none; }
.fill-txt { flex: 1 1 300px; min-width: 0; position: relative; }
.fill-txt h3 { margin: 0 0 6px; color: #fff; font-size: 21px; }
.fill-txt p { margin: 0; color: #C9DAEA; }
.fill-btns { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.fill-card .btn-light { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.fill-card .btn-light:hover { background: rgba(255, 255, 255, .22); }
.fill-card.narrow { flex-direction: column; align-items: flex-start; justify-content: center; }

/* ═════════ ЭФФЕКТЫ ═════════ */
/* 1. Заставка */
.intro { display: none; }
html.show-intro .intro { display: flex; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; flex-direction: column; gap: 22px; }
html.show-intro body { overflow: hidden; }
.intro-door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: radial-gradient(circle at 100% 50%, #16406B, #0B2440 70%); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.intro-door.l { left: 0; } .intro-door.r { right: 0; transform: scaleX(-1); }
.intro-logo { position: relative; width: 150px; height: 150px; z-index: 1; }
.intro-logo .q { position: absolute; width: 50%; height: 50%; background-size: 200% 200%; background-repeat: no-repeat; opacity: 0; transition: transform 1s cubic-bezier(.2, .9, .2, 1.15), opacity .5s; filter: drop-shadow(0 10px 30px rgba(79, 168, 232, .45)); }
.intro-logo .tl { left: 0; top: 0; background-position: 0 0; transform: translate(-60vw, -40vh) rotate(-200deg) scale(2); }
.intro-logo .tr { right: 0; top: 0; background-position: 100% 0; transform: translate(60vw, -40vh) rotate(200deg) scale(2); transition-delay: .08s; }
.intro-logo .bl { left: 0; bottom: 0; background-position: 0 100%; transform: translate(-60vw, 40vh) rotate(160deg) scale(2); transition-delay: .16s; }
.intro-logo .br { right: 0; bottom: 0; background-position: 100% 100%; transform: translate(60vw, 40vh) rotate(-160deg) scale(2); transition-delay: .24s; }
html.intro-go .intro-logo .q { transform: none; opacity: 1; }
.intro-shine-wrap { position: absolute; inset: 0; overflow: hidden; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.intro-shine { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%); transform: translateX(-120%); mix-blend-mode: overlay; }
html.intro-go .intro-shine { transform: translateX(120%); transition: transform .9s ease-in-out 1.15s; }
.intro-name { position: relative; z-index: 1; color: #fff; font: 800 30px var(--font-h); letter-spacing: .02em; text-align: center; opacity: 0; transform: translateY(14px); transition: .7s 1.1s; }
.intro-name small { display: block; font: 600 12px var(--font); letter-spacing: .5em; color: #7FD6FF; margin-top: 4px; }
html.intro-go .intro-name { opacity: 1; transform: none; }
.intro-skip { position: absolute; z-index: 2; right: 22px; bottom: 22px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 16px; font: 600 13px var(--font); cursor: pointer; }
html.intro-out .intro-door.l { transform: translateX(-102%); }
html.intro-out .intro-door.r { transform: scaleX(-1) translateX(-102%); }
html.intro-out .intro-logo, html.intro-out .intro-name, html.intro-out .intro-skip { opacity: 0; transform: scale(1.6); transition: .6s; }

/* 7. Частицы */
.pfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html.fx-particles .bg-anim::before { display: none; }

/* 2. 3D-сцена ДНК */
.scene { position: relative; height: min(82vh, 760px); margin: 10px 0 20px; }
.scene.scene-off { display: none; }
.scene-sticky { position: relative; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-words { position: relative; z-index: 1; pointer-events: none; align-self: flex-end; margin-bottom: 12vh; height: 1.3em; font: 800 clamp(26px, 4.4vw, 54px) var(--font-h); text-align: center; width: 100%; }
.scene-words span { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(30px) rotateX(-60deg); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); background: linear-gradient(90deg, var(--blue), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scene-words span.on { opacity: 1; transform: none; }
.scene-hint { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); display: none; }
.scene-hint svg { transform: rotate(90deg); animation: floaty 1.6s ease-in-out infinite; }

/* 3. Полёт по маршруту */

/* 4. Плавный переход между страницами */
::view-transition-old(root) { animation: vt-out .35s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.98); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.02); } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* 5. Буквы заголовков */
.lt .lw { display: inline-block; white-space: nowrap; }
html.js .lt .lc, html.js .lt .lw-em { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-85deg); transform-origin: 50% 100%; }
html.js .lt.lt-in .lc, html.js .lt.lt-in .lw-em { opacity: 1; transform: none; transition: opacity .5s var(--d), transform .7s cubic-bezier(.2, .9, .25, 1.2) var(--d); }

/* 6. Кнопки: волна и магнит */
.btn, .chip, .opt, .slot, .day { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: ripple-go .7s ease-out forwards; pointer-events: none; }
@keyframes ripple-go { to { transform: scale(1); opacity: 0; } }
.mag { transition: translate .15s ease-out !important; }
.btn-primary.mag::after, .h-book.mag::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 90px at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent); pointer-events: none; }

/* 8. Клиника в цифрах */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; perspective: 1000px; }
.stat { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--sky) 22%, transparent), transparent 55%); }
.stat b { position: relative; display: block; font: 800 clamp(40px, 5vw, 58px)/1 var(--font-h); background: linear-gradient(120deg, var(--blue), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .45em; }
.stat > span { position: relative; color: var(--muted); font-weight: 500; }
html.js .stat.reveal { transform: perspective(900px) rotateY(-70deg) translateX(-30px); transform-origin: 0 50%; }
html.js .stat.reveal.in { transform: none; transition: opacity .8s var(--ease), transform 1s cubic-bezier(.2, .9, .25, 1.15); }

/* Короткие видео — кружки как сторис */
.reels { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.reel { flex: none; width: 112px; display: grid; justify-items: center; gap: 8px; background: none; border: 0; cursor: pointer; scroll-snap-align: start; color: var(--text); font: 600 13px var(--font); padding: 0; }
.reel-ring { width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: conic-gradient(from 0deg, var(--red), #F5A623, var(--sky), var(--blue), var(--red)); animation: ring-spin 6s linear infinite; }
.reel-img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg, #fff); background: var(--soft); animation: ring-spin 6s linear infinite reverse; }
.reel-img img { width: 100%; height: 100%; object-fit: cover; } .reel-img .reel-logo { object-fit: contain; padding: 18px; }
.reel:hover .reel-ring { transform: scale(1.06); }
.reel-t { text-align: center; line-height: 1.25; max-width: 112px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes ring-spin { to { rotate: 360deg; } }

/* 3D-карусель видео-отзывов */
.vcar { position: relative; perspective: 1400px; padding: 10px 0 0; }
.vcar-stage { position: relative; height: clamp(380px, 46vw, 520px); transform-style: preserve-3d; }
.vcar-item { position: absolute; left: 50%; top: 0; width: clamp(220px, 26vw, 300px); margin-left: calc(clamp(220px, 26vw, 300px) / -2); aspect-ratio: 9 / 15; max-height: 100%; border-radius: 26px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #12304A; color: #fff; text-align: left; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; box-shadow: 0 30px 60px -25px rgba(11, 36, 64, .55); }
.vcar-media, .vcar-media img, .vcar-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcar-item .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #12304A; display: flex; align-items: center; justify-content: center; transition: transform .3s; }
.vcar-item.center .play { animation: pulse-play 2s ease-in-out infinite; }
@keyframes pulse-play { 50% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 14px rgba(255, 255, 255, .15); } }
.vcar-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: grid; gap: 2px; }
.vcar-item .cap small { opacity: .8; }
.vcar-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.vcar-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.vcar-btn[data-prev] svg { transform: rotate(180deg); }
.vcar-dots { display: flex; gap: 6px; } .vcar-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); cursor: pointer; transition: .3s; } .vcar-dots i.on { width: 26px; background: var(--blue); }

/* Видео направления */
.dir-video { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #12304A; }
.dir-video img, .dir-video .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dir-video .play.big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--blue); display: flex; align-items: center; justify-content: center; animation: pulse-play 2.2s ease-in-out infinite; }
.dir-video-cap { position: absolute; left: 24px; bottom: 20px; color: #fff; font: 700 18px var(--font-h); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
@media (max-width: 760px) { .dir-video { aspect-ratio: 16 / 10; } }

/* Видео-плеер */
body.vbox-open { overflow: hidden; }
.vbox { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; }
.vbox-bg { position: absolute; inset: 0; background: rgba(5, 14, 26, .88); backdrop-filter: blur(6px); animation: fd .25s; }
.vbox-in { position: relative; width: min(1000px, 94vw); animation: vb-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes vb-in { from { opacity: 0; transform: scale(.92) translateY(20px); } }
@keyframes fd { from { opacity: 0; } }
.vbox-media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.vbox.vertical .vbox-in { width: min(420px, 94vw); }
.vbox.vertical .vbox-media { aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; }
.vbox-media video, .vbox-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vbox-x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }
.vbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.vbox-nav.prev { left: -64px; } .vbox-nav.prev svg { transform: rotate(180deg); } .vbox-nav.next { right: -64px; }
.vbox-cap { display: flex; justify-content: space-between; gap: 12px; color: #fff; margin-top: 12px; } .vbox-link { color: #7FD6FF; }
.vbox-bars { position: absolute; top: -18px; left: 0; right: 0; display: flex; gap: 4px; } .vbox-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); } .vbox-bars i.done, .vbox-bars i.on { background: #fff; }
@media (max-width: 760px) { .vbox-nav.prev { left: 6px; } .vbox-nav.next { right: 6px; } .vbox-nav { background: rgba(0, 0, 0, .35); } }

/* Лёгкий режим: без тяжёлого */

.reel-img video, .vcar-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Главный экран: 3D-частицы вместо статичного логотипа */
.hero-empty .hero-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 80%; z-index: 0; }
.hero-empty .hero-logo, .hero-empty .ring { transition: opacity .8s; }
.hero-empty.has-3d .hero-logo, .hero-empty.has-3d .ring { opacity: 0; }
.hero-empty.has-3d .hero-slogan { position: absolute; bottom: 5%; left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: 86%; padding: 10px 18px; border-radius: 16px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px -12px rgba(11, 36, 64, .3); font-size: clamp(14px, 1.4vw, 17px); }
/* Буквы заголовков на телефоне — мягко, без переворота */
@media (hover: none), (max-width: 760px) {
  html.js .lt .lc, html.js .lt .lw-em { transform: translateY(.25em); }
  html.js .lt.lt-in .lc, html.js .lt.lt-in .lw-em { transition: opacity .45s var(--d), transform .5s ease-out var(--d); }
}
/* Нижняя панель на телефоне: кнопки делят ширину без пустот */
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  .mobile-bar a { flex: 1 1 0; }
  .mobile-bar .mb-book { flex: 1.6 1 0; }
}
.dir-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Частицы при входе и переходах */
.ptx { display: none; }
html.ptx-enter .ptx, html.ptx-arrive .ptx, html.ptx-leave .ptx { display: block; position: fixed; inset: 0; z-index: 1000; background: radial-gradient(circle at 50% 45%, #16406B, #0B2440 72%); transition: opacity .7s cubic-bezier(.4, 0, .2, 1); }
html.ptx-leave .ptx { animation: ptx-in .45s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes ptx-in { from { opacity: 0; } }
html.ptx-out .ptx { opacity: 0; pointer-events: none; }
html.ptx-enter body { overflow: hidden; }
.ptx-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ptx-logo { position: absolute; left: 50%; top: calc(50% - 40px); width: 30vmin; height: 30vmin; object-fit: contain; transform: translate(-50%, -50%) scale(.96); opacity: 0; transition: opacity .35s, transform .5s; filter: drop-shadow(0 12px 40px rgba(79, 168, 232, .45)); }
.ptx-name { position: absolute; left: 0; right: 0; top: calc(50% - 40px + 15vmin + 26px); text-align: center; color: #fff; font: 800 clamp(22px, 3vw, 30px) var(--font-h); opacity: 0; transform: translateY(10px); transition: .5s .1s; }
.ptx-name small { display: block; font: 600 12px var(--font); letter-spacing: .5em; color: #7FD6FF; margin-top: 4px; }
.ptx[data-shape="logo"].lit .ptx-logo, html.ptx-arrive .ptx[data-shape="logo"] .ptx-logo { opacity: 1; transform: translate(-50%, -50%); }
.ptx.lit .ptx-name { opacity: 1; transform: none; }
html.ptx-leave .ptx-name, html.ptx-arrive .ptx-name { display: none; }
.ptx-skip { position: absolute; right: 22px; bottom: 22px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 16px; font: 600 13px var(--font); cursor: pointer; }
html.ptx-leave .ptx-skip, html.ptx-arrive .ptx-skip { display: none; }
@media (max-width: 699px), (max-height: 699px) { .ptx-logo { width: 42vmin; height: 42vmin; top: calc(50% - 30px); } .ptx-name { top: calc(50% - 30px + 21vmin + 22px); } }

/* ═════════ ТЕЛЕФОН: удобный интерфейс ═════════ */
a, button, [role=button], input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tabbar { display: none; }
.mm-actions { display: none; }
.site-header { transition: transform .3s ease, background-color .2s, box-shadow .2s; }
@media (max-width: 760px) {
  .mobile-bar { display: none !important; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  /* нижняя панель как в приложении */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; height: calc(66px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(11, 36, 64, .25); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 66px; color: var(--muted); text-decoration: none; font: 600 11px/1.1 var(--font); text-align: center; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }
  .tabbar svg { transition: transform .2s; }
  .tabbar .tb-book { color: var(--text); justify-content: flex-end; padding-bottom: 8px; }
  .tb-plus { width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #F04A55, #C81F2B); box-shadow: 0 10px 22px -6px rgba(215, 38, 46, .6); border: 3px solid var(--card); }
  .tb-book:active .tb-plus { transform: scale(.94); }
  /* помощник — компактно, над панелью */
  .assistant { bottom: calc(80px + env(safe-area-inset-bottom)) !important; right: 12px !important; }
  .as-fab { width: 48px !important; height: 48px !important; padding: 0 !important; justify-content: center; }
  .as-fab span { display: none; }
  body.menu-open .assistant { display: none; }
  /* шапка прячется при прокрутке вниз и возвращается при прокрутке вверх */
  /* меню на весь экран с большими кнопками */
  .mobile-menu { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px; }
  .mobile-menu a { padding: 16px 4px; font-size: 19px; }
  .mm-actions { display: grid; gap: 10px; padding: 6px 20px 10px; }
  .mm-actions .btn { justify-content: center; min-height: 52px; font-size: 16px; }
  /* поля ввода 16px — iPhone не приближает экран при вводе */
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 46px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-head { margin-bottom: 20px; }
  /* главный блок: компактнее */
  .hero-visual { max-height: 340px; }
}
/* Направления на телефоне: 2 колонки, компактно */
@media (max-width: 560px) {
  .grid:has(> .dir-card) { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dir-card { padding: 16px 14px !important; gap: 8px; min-height: 132px; }
  .dir-card p, .dir-card .link-arrow { display: none; }
  .dir-card h3 { font-size: 15px; line-height: 1.25; margin: 0; }
  .dir-card .ico-box { width: 42px; height: 42px; border-radius: 13px; }
  .dir-card .ico-box svg { width: 22px; height: 22px; }
  .dir-card .badge { font-size: 10.5px; padding: 3px 7px; align-self: flex-start; }
  .grid:has(> .dir-card) > .fill-card { padding: 18px; }
}
@media (max-width: 760px) { body.menu-open { overflow: hidden; } }
/* Ничего не вылезает по ширине (иначе телефон «отдаляет» страницу) */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
.booking > *, .split > *, .grid > * { min-width: 0; }
@media (max-width: 760px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .js .reveal { transform: translateY(22px); }
  .dir-card h3 { font-size: clamp(13.5px, 3.8vw, 15px); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
}
/* Фильтры-«чипсы» не сжимаются, листаются вбок */
.chips .chip, .price-tabs .chip { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 16px; }
  .stat b { font-size: clamp(32px, 10vw, 42px); }
  .stat > span { font-size: 13.5px; }
}

/* Мягкое появление страницы после перехода */
html.ptx-arrive main, html.ptx-arrive .site-header { opacity: 0; transform: scale(.985); }
html.ptx-arrive.ptx-out main, html.ptx-arrive.ptx-out .site-header { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .8, .2, 1) .1s, transform .9s cubic-bezier(.2, .8, .2, 1) .1s; }
html.ptx-leave main { transition: opacity .45s, filter .45s, transform .45s; opacity: .4; filter: blur(4px); transform: scale(.985); }
.ptx-logo { transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
/* Страховка: если скрипт не загрузился, через несколько секунд всё равно показываем страницу */
@keyframes ptx-safe-show { to { opacity: 1; transform: none; filter: none; } }
@keyframes ptx-safe-hide { to { opacity: 0; visibility: hidden; } }
html.ptx-arrive main, html.ptx-arrive .site-header { animation: ptx-safe-show .4s 3.5s forwards; }
html.ptx-enter .ptx, html.ptx-arrive .ptx { animation: ptx-safe-hide .5s 5s forwards; }
html.ptx-leave .ptx { animation: ptx-in .45s cubic-bezier(.4, 0, .2, 1) both, ptx-safe-hide .5s 4s forwards; }

/* ── Карта: обложка-иллюстрация, пульсирующая точка, плавное открытие */
.map-wrap .map-box { overflow: hidden; }
.map-wrap .map-box iframe { opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.map-wrap .map-box iframe.on { opacity: 1; transform: none; }
.map-loading { z-index: 0; opacity: 0; transition: opacity .3s; }
.map-busy .map-loading { opacity: 1; }
.map-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: map-spin .8s linear infinite; }
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-cover { position: absolute; inset: 0; z-index: 3; cursor: pointer; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .7s; }
.map-opened .map-cover { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mg-bg { fill: #EEF5FB; } .mg-l { stroke: rgba(31, 111, 178, .06); stroke-width: 1; }
.mg-blk rect { fill: #DCE9F5; } .mg-park rect { fill: #D4EFD9; } .mg-park circle { fill: #B5E0BF; }
.mg-road path { stroke: #fff; stroke-width: 34; fill: none; stroke-linecap: round; } .mg-road .mg-road-s { stroke-width: 22; }
.mg-mid path { stroke: #F3C96B; stroke-width: 3; fill: none; stroke-dasharray: 18 14; opacity: .7; }
.mg-route { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 14; animation: mg-route 1.2s linear infinite; }
@keyframes mg-route { to { stroke-dashoffset: -32; } }
.mg-txt { font: 700 15px var(--font); fill: #7C93AA; letter-spacing: .06em; }
[data-theme="dark"] .mg-bg { fill: #0F2840; } [data-theme="dark"] .mg-blk rect { fill: #173A5A; } [data-theme="dark"] .mg-park rect { fill: #17402F; } [data-theme="dark"] .mg-park circle { fill: #1E5A3E; }
[data-theme="dark"] .mg-road path { stroke: #26496B; } [data-theme="dark"] .mg-l { stroke: rgba(255, 255, 255, .04); } [data-theme="dark"] .mg-txt { fill: #8FB0CC; }
.map-pin { position: absolute; left: 50%; top: 50.4%; width: 0; height: 0; }
.map-pin span { position: absolute; left: -32px; top: -78px; width: 64px; height: 64px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; box-shadow: 0 14px 30px rgba(11, 36, 64, .3); display: grid; place-items: center; border: 3px solid var(--red); animation: pin-bob 2.6s ease-in-out infinite; }
.map-pin img { width: 38px; height: 38px; transform: rotate(45deg); object-fit: contain; }
.map-pin i { position: absolute; left: -14px; top: -7px; width: 28px; height: 14px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: pin-ring 2.4s ease-out infinite; }
.map-pin i + i { animation-delay: 1.2s; }
@keyframes pin-bob { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
@keyframes pin-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }
.map-card { position: absolute; left: 20px; bottom: 20px; right: auto; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(11, 36, 64, .18); border: 1px solid var(--line); max-width: calc(100% - 40px); }
.map-card > img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.map-card div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.map-card small { font: 700 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.map-card b { font: 800 17px var(--font-h); color: var(--text); }
.map-card span { color: var(--muted); font-size: 14px; }
.map-card .btn { flex: none; margin-left: 6px; }
.map-card .btn span { color: inherit; font-size: inherit; }
@media (max-width: 760px) {
  .map-card { left: 10px; right: 10px; bottom: 10px; max-width: none; flex-wrap: wrap; gap: 10px 12px; padding: 12px; }
  .map-card .btn { width: 100%; margin: 0; justify-content: center; }
  .map-pin { top: 38%; }
  .mg-txt { font-size: 26px; }
}
.mg-drop path { fill: #fff; stroke: var(--red); stroke-width: 4; filter: drop-shadow(0 10px 14px rgba(11, 36, 64, .3)); }
.mg-drop { animation: mg-bob 2.6s ease-in-out infinite; }
.mg-ring { fill: none; stroke: var(--red); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: pin-ring 2.4s ease-out infinite; opacity: 0; }
.mg-ring.r2 { animation-delay: 1.2s; }
@keyframes mg-bob { 50% { transform: translateY(-7px); } }
@media (max-width: 760px) {
  .map-tabs { gap: 6px; padding: 10px; } .map-tabs [role=tab] { flex: 1; padding: 8px 10px; }
  .map-go { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .map-go .btn { padding: 8px 6px; font-size: 13px; min-height: 40px; gap: 4px; }
  .map-wrap .map-box, .map-wrap .map-box iframe { min-height: 400px; }
  .map-card .btn { white-space: nowrap; }
}

/* ══ Версия для слабовидящих ══ */
.a11y-bar { display: none; }
html[data-a11y] .a11y-bar { display: block; position: relative; z-index: 70; background: #fff; color: #000; border-bottom: 3px solid #000; font: 600 15px/1.2 Arial, sans-serif; }
.a11y-in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.a11y-g { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.a11y-g > span { margin-right: 4px; }
.a11y-bar button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid #000; border-radius: 8px; background: #fff; color: #000; font: 700 16px Arial, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.a11y-bar button[aria-pressed="true"] { outline: 3px solid #D7262E; outline-offset: 2px; }
.a11y-bar button:focus-visible { outline: 3px solid #1F6FB2; outline-offset: 2px; }
.a11y-bar .sw-bw { background: #fff; color: #000; filter: grayscale(1); } .a11y-bar .sw-wb { background: #000; color: #fff; } .a11y-bar .sw-bk { background: #fff; color: #000; } .a11y-bar .sw-blue { background: #9DD1FF; color: #063462; border-color: #063462; }
.a11y-bar .sw-norm { background: linear-gradient(135deg, #EAF4FC, #fff); color: #1F6FB2; }
.a11y-bar .a11y-exit { background: #000; color: #fff; }
@media (max-width: 760px) { .a11y-in { gap: 8px 14px; } .a11y-g > span { width: 100%; font-size: 13px; } }
/* размер шрифта: увеличиваем всё содержимое пропорционально */
html[data-a11y-fs="1"] :is(main, footer, .mobile-menu nav, .mm-actions) { zoom: 1.2; }
html[data-a11y-fs="2"] :is(main, footer, .mobile-menu nav, .mm-actions) { zoom: 1.45; }
html[data-a11y-fs="1"] .tabbar { font-size: 112%; } html[data-a11y-fs="2"] .tabbar { font-size: 120%; }
html[data-a11y] main { overflow-wrap: break-word; }
html[data-a11y] main :is(h1, h2) { hyphens: auto; }
/* простая раскладка: первый экран в одну колонку, без декоративных плашек поверх текста */
html[data-a11y] .hero .wrap, html[data-a11y] .hero-grid { grid-template-columns: 1fr !important; }
html[data-a11y] .hero-visual { display: none !important; }
html[data-a11y] .pfield { display: none !important; }
@media (max-width: 760px) { html[data-a11y] .theme-toggle { display: none; } }
html[data-a11y] .main-nav { display: none; } html[data-a11y] .burger { display: inline-flex; } html[data-a11y] .h-phone { display: none; }
html[data-a11y-fs="2"] .h-book { display: none; }
/* интервал */
html[data-a11y-sp="1"] body *:not(svg):not(svg *) { letter-spacing: .12em !important; word-spacing: .25em !important; line-height: 1.9 !important; }
/* картинки */
html[data-a11y-img="off"] main img, html[data-a11y-img="off"] main video, html[data-a11y-img="off"] main picture, html[data-a11y-img="off"] footer img:not(.brand img) { visibility: hidden !important; }
html[data-a11y-img="off"] main [style*="background-image"] { background-image: none !important; }
/* без анимаций */
html[data-a11y-still] *, html[data-a11y-still] *::before, html[data-a11y-still] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y-still] .reveal { opacity: 1 !important; transform: none !important; }
html[data-a11y-still] .pfield, html[data-a11y-still] .ptx { display: none !important; }
/* крупный заметный фокус для клавиатуры */
html[data-a11y] a:focus-visible, html[data-a11y] button:focus-visible, html[data-a11y] input:focus-visible, html[data-a11y] select:focus-visible, html[data-a11y] textarea:focus-visible { outline: 4px solid #D7262E !important; outline-offset: 3px !important; }
html[data-a11y] main a:not(.btn) { text-decoration: underline !important; }
/* цветовые схемы */
html[data-a11y-c="bw"] body > *:not(.a11y-bar) { filter: grayscale(1); }
html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"] { --hc-bg: #000; --hc-fg: #fff; }
html[data-a11y-c="bk"] { --hc-bg: #fff; --hc-fg: #000; }
html[data-a11y-c="blue"] { --hc-bg: #9DD1FF; --hc-fg: #063462; }
html[data-a11y-c="wb"] body, html[data-a11y-c="bk"] body, html[data-a11y-c="blue"] body { background: var(--hc-bg) !important; color: var(--hc-fg) !important; }
:is(html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"]) body > :not(.a11y-bar) :is(*, *::before, *::after):not(svg *):not(img):not(video):not(iframe):not(canvas) {
  background-color: transparent !important; background-image: none !important; color: var(--hc-fg) !important; border-color: var(--hc-fg) !important; box-shadow: none !important; text-shadow: none !important; -webkit-text-fill-color: currentColor !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
:is(html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"]) :is(.site-header, .mobile-menu, .tabbar, .vbox-box, .modal, .as-panel, dialog, .map-card, .lang-hint) { background-color: var(--hc-bg) !important; }
:is(html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"]) body > :not(.a11y-bar) :is(.btn, .card, input, select, textarea, .chip, .tabbar a) { border: 2px solid var(--hc-fg) !important; }
:is(html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"]) body > :not(.a11y-bar) svg:not(.map-art) { color: var(--hc-fg) !important; stroke: currentColor; }
:is(html[data-a11y-c="wb"], html[data-a11y-c="bk"], html[data-a11y-c="blue"]) .pfield { display: none !important; }
/* производительность: на телефонах шапка и нижнее меню без размытия фона (оно тормозит прокрутку) */
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 97%, transparent); }
  .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--card) 98%, transparent); }
}
html[data-a11y] .hero-grid > * { min-width: 0; }
@media (max-width: 760px) {
  /* панель на телефоне — одна прокручиваемая строка, не закрывает экран */
  .a11y-in { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 14px; padding-top: 8px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .a11y-in::-webkit-scrollbar { display: none; }
  .a11y-g { flex-wrap: nowrap; flex: none; position: relative; padding-top: 16px; }
  .a11y-g > span { position: absolute; top: 0; left: 0; width: auto; font-size: 11px; white-space: nowrap; }
  .a11y-bar button { min-height: 42px; white-space: nowrap; }
}

/* Lenis + GSAP */
html.has-lenis, html.has-lenis body { height: auto; }
html.has-lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.gsap-on .reveal.gs { transition: none !important; }

.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* FAQ: левая колонка не пустая — подсказка и быстрые способы связи, прилипает при прокрутке */
.faq-side { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.faq-sec .split { grid-template-rows: auto 1fr; } .faq-sec .faq-side { grid-column: 1; grid-row: 1; } .faq-sec .faq-help { grid-column: 1; grid-row: 2; align-self: start; } .faq-sec .faq-list-wrap { grid-column: 2; grid-row: 1 / span 2; }
.faq-side h2 { margin: 0; }
.faq-help { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: linear-gradient(145deg, var(--soft), var(--card)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faq-help b { font: 800 20px var(--font-h); color: var(--text); }
.faq-help-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); color: var(--blue); box-shadow: 0 8px 20px -10px rgba(31, 111, 178, .5); margin-bottom: 4px; }
.faq-help-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.faq-help-btns .btn { flex: 1 1 auto; }
@media (max-width: 860px) { .faq-sec .split { grid-template-rows: none; } .faq-sec :is(.faq-side, .faq-help, .faq-list-wrap) { grid-column: 1; grid-row: auto; } .faq-help { margin-top: 0; } }

/* Видео-переходы */
.ptx-vid { position: absolute; left: 50%; top: 50%; width: min(100vw, 100vh, 1000px); height: min(100vw, 100vh, 1000px); transform: translate(-50%, -50%); object-fit: cover; opacity: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); background: transparent; }
.ptx-vid.on { opacity: 1; }
.ptx[data-vid] { background: #0B2440 !important; }
.ptx[data-vid] .ptx-cv, .ptx[data-vid] .ptx-logo { display: none; }
.ptx[data-vid] .ptx-name { top: calc(50% + min(100vw, 100vh, 1000px) * .33); }
.ptx[data-vid]:not([data-shape="logo"]) .ptx-name { display: none; }
.ptx[data-vid][data-shape="logo"].lit .ptx-name { opacity: 1; transform: none; }

/* Cookie-плашка */
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 520px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; padding: 18px 18px 16px; border-radius: 22px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(11, 36, 64, .45); opacity: 0; transform: translateY(20px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-ico { font-size: 28px; line-height: 1; }
.cookie-bar p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cookie-bar p a { color: var(--blue); font-weight: 600; }
.cookie-btns { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .cookie-bar { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; } .cookie-btns .btn { flex: 1; } }
.f-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; }
.f-legal a, .f-legal button { color: inherit; opacity: .8; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.f-legal a:hover, .f-legal button:hover { opacity: 1; }
.legal-doc { padding: clamp(22px, 4vw, 44px); }
.legal-doc .prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 1.6em; }
.legal-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.page-hero h1 + .muted { margin-top: 12px; }

/* ── Оптимизация для всех устройств */
@media (max-width: 760px), (pointer: coarse) {
  html.js .stat.reveal { transform: translate3d(0, 24px, 0); }
  html.js .stat.reveal.in { transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .stat::before { display: none; }
  .stat { box-shadow: none; }
  .section { padding-top: 36px; padding-bottom: 36px; }
}
.stat b { contain: layout paint; }
/* блоки ниже первого экрана браузер не рисует, пока до них не докрутили */
.vcar-item { will-change: transform, opacity; backface-visibility: hidden; }
.pfield { will-change: contents; }

/* Файлы для скачивания */
.files-box { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.files-box h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.files-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.file-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); color: var(--text); text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.file-item:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 12px 26px -16px rgba(31, 111, 178, .55); }
.file-ext { flex: none; width: 46px; height: 54px; border-radius: 10px 18px 10px 10px; display: grid; place-items: center; font: 800 12px var(--font-h); color: #fff; background: #5A7D9E; letter-spacing: .04em; }
.ext-pdf { background: #D7262E; } .ext-doc, .ext-docx { background: #2B65C9; } .ext-xls, .ext-xlsx { background: #1E8C55; } .ext-ppt, .ext-pptx { background: #D2672A; }
.file-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-name b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.file-name small { color: var(--muted); font-size: 13px; margin-top: 3px; }
.file-go { flex: none; color: var(--blue); }

/* шапка без размытия фона: под ней постоянно движется фон с точками, размытие заставляло перерисовывать её каждый кадр */
.site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: color-mix(in srgb, var(--bg) 96%, transparent) !important; }
.price-tabs { backdrop-filter: none; background: color-mix(in srgb, var(--bg) 97%, transparent); }

/* Маршрут пациента: автоматическая анимация (без 3D и без привязки к прокрутке) */
.route-comet { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 25%, var(--sky) 45%, transparent 72%); box-shadow: 0 0 22px 8px color-mix(in srgb, var(--sky) 45%, transparent);
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); will-change: transform; opacity: 0; }
.route.auto.in .route-comet { opacity: 1; }
.route.auto .stage { transition: opacity .5s; }
.route.auto .stage .dot { z-index: 1; }
.route.auto .stage.is-on .dot { transform: scale(1.1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 30%, transparent), 0 16px 32px rgba(18, 48, 74, .22); }
.route.auto .stage.is-on h3 { color: var(--blue); }
.route.auto .stage.is-on .dot::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--sky); animation: route-ping 1.6s ease-out infinite; }
@keyframes route-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@media (max-width: 900px) { .route-comet { width: 16px; height: 16px; margin: -8px 0 0 -8px; } }
