/* =========================================================
   VenArt Swiss — дизайн-система «строгая клиника»
   Стиль: чистый лист, крупная типографика, тонкие линии,
   сдержанные градиенты. Без внешних шрифтов и картинок.
   Анимации: motion.dev (появление, меню) + anime.js (герой, счётчики).
   ========================================================= */

:root {
  /* цвет */
  --ink: #0a2540;
  --ink-2: #435c72;
  --muted: #6b7c93;
  --bg: #ffffff;
  --bg-2: #f6f9fc;
  --bg-3: #edf2f7;
  --line: #e4ebf2;
  --line-2: #d3dee9;
  --accent: #0e7a66;
  --accent-2: #13a08a;
  --accent-ink: #0a5c4d;
  --accent-soft: #e7f4f0;
  --accent-line: #bfe3da;

  /* форма */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, .05), 0 14px 26px -20px rgba(10, 37, 64, .22);
  --shadow-lg: 0 26px 60px -28px rgba(10, 37, 64, .3), 0 2px 8px rgba(10, 37, 64, .05);

  /* сетка */
  --maxw: 1180px;
  --maxw-wide: 1320px;

  /* текст */
  --font: -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.045em; line-height: 1.06; }
h2 { font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.035em; }
h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.02em; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- индикатор прокрутки ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), #5bd6c0);
  z-index: 90; pointer-events: none;
  transition: width .08s linear;
}

/* ---------- верхняя служебная полоса ---------- */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.topbar-in {
  display: flex; align-items: center; gap: 10px 26px;
  min-height: 38px; flex-wrap: nowrap;
}
.topbar-item {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.topbar-item svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: .7; }
.topbar-spacer { margin-left: auto; }
.topbar-phone {
  font-weight: 600; color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.topbar-phone:hover { color: var(--accent); text-decoration: none; }
.topbar-sep { color: var(--line-2); }
@media (max-width: 1180px) { .topbar-hours { display: none; } }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 34px -22px rgba(10, 37, 64, .55); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; max-width: var(--maxw-wide); }

.logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-ink));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 12px -6px rgba(14, 122, 102, .7);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-name { font-weight: 700; font-size: 15.5px; letter-spacing: .07em; color: var(--ink); }
.logo-sub {
  font-size: 9.5px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase; margin-top: 4px; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 0; min-width: 0; flex: 1 1 auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 8px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; text-decoration: none;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.nav-link.is-active { color: var(--accent); font-weight: 600; }
.nav-item > .nav-link::after {
  content: ""; width: 5px; height: 5px; flex: 0 0 auto;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-1px); opacity: .45;
  transition: transform .22s var(--ease), opacity .2s;
}
.nav-item.is-open > .nav-link::after { transform: rotate(225deg) translateY(-2px); opacity: .8; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  display: none; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 70; min-width: 268px;
  grid-template-columns: 1fr; gap: 1px;
}
.nav-item.is-open > .dropdown { display: grid; }
.dropdown a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-2); color: var(--accent-ink); text-decoration: none; }
.nav-item.wide > .dropdown { grid-template-columns: repeat(2, minmax(212px, 1fr)); min-width: 500px; }
.nav-item.right > .dropdown { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  position: relative; flex: 0 0 auto;
  transition: border-color .2s, background .2s;
}
.burger:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.burger i {
  position: absolute; left: 11px; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .34s var(--ease), opacity .2s;
}
.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 19px; }
.burger i:nth-child(3) { top: 24px; }
.site-header.is-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .burger i:nth-child(2) { opacity: 0; }
.site-header.is-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1259px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .logo-sub { display: none; }
  .header-in { min-height: 62px; }
}

/* ---------- мобильное меню ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 55;
  display: none; background: rgba(10, 37, 64, .3);
}
.mnav.is-open { display: block; }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: 0;
  max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: calc(var(--headH, 68px) + 14px) 20px 30px;
  box-shadow: var(--shadow-lg);
}
.mnav-group { border-bottom: 1px solid var(--line); }
.mnav-group:first-child { border-top: 1px solid var(--line); }
.mnav-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.mnav-group > summary::-webkit-details-marker { display: none; }
.mnav-group > summary::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease);
}
.mnav-group[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.mnav-links { display: grid; gap: 1px; padding: 2px 0 14px; }
.mnav-links a { padding: 8px 2px; font-size: 14.5px; color: var(--ink-2); }
.mnav-links a:hover { color: var(--accent); text-decoration: none; }
.mnav-flat { display: grid; gap: 1px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.mnav-flat a { padding: 11px 2px; font-size: 16px; font-weight: 500; color: var(--ink); }
.mnav-contact { display: grid; gap: 6px; padding: 22px 0 0; }
.mnav-contact .mnav-phone {
  font-size: 22px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.mnav-contact p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.mnav-contact .btn { margin-top: 14px; }

body.is-locked { overflow: hidden; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease),
              box-shadow .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--primary:hover { background: #12314f; color: #fff; box-shadow: 0 10px 24px -12px rgba(10, 37, 64, .55); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--sm { padding: 9px 15px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }

/* ---------- герой главной ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 52% at 16% 8%, rgba(19, 160, 138, .17), rgba(255, 255, 255, 0) 62%),
    radial-gradient(46% 46% at 88% 4%, rgba(10, 37, 64, .10), rgba(255, 255, 255, 0) 66%),
    radial-gradient(40% 40% at 62% 96%, rgba(19, 160, 138, .10), rgba(255, 255, 255, 0) 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 58px; align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 600;
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { margin-bottom: 20px; max-width: 20ch; }
.hero-lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); max-width: 46ch; }

.hero-panel {
  position: relative; display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fact {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  background: rgba(255, 255, 255, .92);
  padding: 18px 20px;
  transition: background .2s;
}
.fact:hover { background: #fff; }
.fact-ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.fact-ico svg { width: 19px; height: 19px; }
.fact b { display: block; font-size: 15.5px; letter-spacing: -.015em; margin-bottom: 3px; }
.fact span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 980px) {
  .hero { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { max-width: none; }
  .hero-lead { font-size: 17px; }
}

/* ---------- полоса цифр ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  letter-spacing: -.04em; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 860px) {
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ---------- секции ---------- */
.section { padding: 76px 0; }
.section--soft { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.section-head > div { max-width: 70ch; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.section-head h2 { margin-bottom: 0; }

.block { padding: 52px 0; border-top: 1px solid var(--line); }
.block:first-child { padding-top: 8px; border-top: 0; }
.block > h2 { margin-bottom: 22px; }

/* ---------- карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: inherit; overflow: hidden;
  transition: border-color .22s, box-shadow .28s var(--ease), transform .28s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), #7ee0cd 60%, rgba(126, 224, 205, 0));
  opacity: 0; transition: opacity .28s;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  text-decoration: none; color: inherit;
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.02em; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.card-meta {
  margin-top: auto; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-meta::after { content: "→"; font-family: var(--font); letter-spacing: 0; transition: transform .25s var(--ease); }
.card:hover .card-meta::after { transform: translateX(4px); }
.card-img {
  margin: -24px -24px 18px; aspect-ratio: 16 / 10;
  overflow: hidden; background: var(--bg-3);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }

/* карточка направления: номер вместо фотографии */
.card--dir { min-height: 188px; }
.card-num {
  display: inline-block; margin: 0 0 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  color: var(--accent); font-weight: 600;
}
.card--dir h3 { margin-top: 0; }
.card--dir p { max-width: 42ch; }

/* ---------- хлебные крошки ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .45; margin: 0 7px; }

/* ---------- заголовок страницы ---------- */
.page-head {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2) 0%, #fff 92%);
}
.page-head h1 { margin-bottom: 12px; max-width: 30ch; font-size: clamp(30px, 3.8vw, 46px); }
.page-head .lead { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 72ch; }

/* ---------- тело страницы + боковая колонка ---------- */
.page-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 312px;
  gap: 56px; padding: 44px 0 80px; align-items: start;
}
/* В исходнике боковая колонка идёт первой — ссылочный код SAPE должен стоять
   высоко (требование Serpzilla: ссылки не в «подвале» исходника).
   Место в разметке правит render.py (side_first), визуально — правая колонка. */
.page-body > .side { grid-column: 2; grid-row: 1; }
.page-body > :not(.side) { grid-column: 1; grid-row: 1; min-width: 0; }
@media (max-width: 980px) {
  .page-body { grid-template-columns: 1fr; gap: 34px; padding: 32px 0 56px; }
  .page-body > .side, .page-body > :not(.side) { grid-column: 1; grid-row: auto; }
  .page-body > :not(.side) { order: 1; }
  .page-body > .side { order: 2; }
}

.side { position: sticky; top: 92px; display: grid; gap: 16px; align-content: start; }
@media (max-width: 980px) { .side { position: static; } }

.side-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff;
}
.side-box > h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600;
}
.side-nav { display: grid; gap: 1px; }
.side-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 7px 10px; margin: 0 -10px; border-radius: 8px;
  font-size: 14px; line-height: 1.4; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.side-nav a:hover { background: var(--bg-2); color: var(--accent-ink); text-decoration: none; }
.side-nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side-nav .cnt { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- блок записи на приём ---------- */
.cta-box {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 24px 24px 26px;
  color: #fff;
  background:
    radial-gradient(130% 110% at 100% 0%, rgba(19, 160, 138, .85) 0%, rgba(19, 160, 138, 0) 58%),
    linear-gradient(158deg, #0a2540 0%, #0b3a4e 58%, #0a2540 100%);
  box-shadow: 0 28px 54px -34px rgba(10, 37, 64, .85);
}
.cta-box::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 224, 205, .35), rgba(126, 224, 205, 0) 68%);
  pointer-events: none;
}
.cta-box h4 {
  position: relative; margin: 0 0 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .68); font-weight: 600;
}
.cta-box p { position: relative; margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.cta-box .btn {
  position: relative; width: 100%;
  background: #fff; color: var(--ink); border-color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.cta-box .btn:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft); }
.cta-phone {
  position: relative; display: block; margin-top: 16px;
  font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: #fff;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.cta-phone:hover { color: #fff; text-decoration: none; }
.cta-hours { position: relative; margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* место под код SAPE / Serpzilla — сразу после блока записи */
.sape-slot { display: block; }
.sape-slot:not(:empty) { margin-top: 16px; }

/* ---------- статья ---------- */
.content {
  font-size: 17px; line-height: 1.75; color: var(--ink-2);
  min-width: 0; max-width: 76ch; overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content h2, .content h3, .content h4 { color: var(--ink); }
.content h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 1.9em 0 .6em; letter-spacing: -.03em; }
.content h3 { font-size: 20px; margin: 1.7em 0 .5em; }
.content h4 { font-size: 17px; margin: 1.5em 0 .4em; }
.content p { margin: 0 0 1.05em; }
.content ul, .content ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.content li { margin-bottom: .42em; }
.content li::marker { color: var(--accent-2); }
.content img { border-radius: var(--radius); margin: 26px 0; box-shadow: var(--shadow-sm); }
.content img + em, .content p > em:only-child { display: block; font-size: 13.5px; color: var(--muted); }
.content blockquote {
  margin: 26px 0; padding: 16px 22px;
  border-left: 2px solid var(--accent-2);
  background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-2);
}
.content strong, .content b { color: var(--ink); font-weight: 600; }
.content a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: var(--accent); }
.content .tbl { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.content .tbl td, .content .tbl th {
  border: 1px solid var(--line); padding: 10px 13px;
  text-align: left; vertical-align: top; color: var(--ink-2);
}
.content .tbl tr:first-child td { background: var(--bg-2); }
.content .tbl tr:nth-child(even) td { background: #fbfdff; }
.table-scroll { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.table-scroll .tbl { margin: 0; min-width: 520px; }

.qa-label {
  display: inline-block; margin: 0 0 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}

/* ---------- аккордеон ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 600; color: var(--ink); list-style: none; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--accent-2); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 18px 18px; color: var(--ink-2); font-size: 15.5px; }
.faq .faq-a > :last-child { margin-bottom: 0; }

/* ---------- список страниц ---------- */
.list { border-top: 1px solid var(--line); }
.list-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .18s, padding-left .22s var(--ease);
}
.list-row:hover { background: var(--bg-2); padding-left: 12px; text-decoration: none; color: inherit; }
.list-row b { font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.4; }
.list-row p { margin: 3px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.list-row .arrow {
  color: var(--accent); font-size: 17px; opacity: .35;
  transition: opacity .2s, transform .25s var(--ease);
}
.list-row:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ---------- врачи ---------- */
.doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.doctor { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.doctor img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.doctor-body { padding: 16px 18px 18px; }
.doctor-body b { display: block; font-size: 15.5px; }
.doctor-body span { font-size: 13.5px; color: var(--muted); }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; gap: 28px; } }
.contact-list { display: grid; gap: 22px; margin: 0; }
.contact-list dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.contact-list dd { margin: 0; font-size: 17px; line-height: 1.55; }
.contact-list dd a { color: var(--ink); }
.contact-list dd a:hover { color: var(--accent); }
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-2), #fff); padding: 26px;
}
.map-frame b { display: block; margin-bottom: 8px; font-size: 16px; }
.map-frame p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- поиск ---------- */
.search-form { display: flex; gap: 10px; margin: 22px 0 30px; max-width: 620px; }
.search-form input {
  flex: 1; min-width: 0; padding: 13px 18px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search-form input:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(19, 160, 138, .12);
}
.search-results { display: grid; }
.search-empty { color: var(--muted); font-size: 15px; }

/* ---------- подвал ---------- */
.site-footer {
  position: relative; margin-top: 0; padding: 60px 0 28px;
  background: linear-gradient(180deg, #0a2540, #081c30 65%, #071626);
  color: #b8c7d6;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(19, 160, 138, 0), rgba(19, 160, 138, .8), rgba(19, 160, 138, 0));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 {
  color: #fff; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 16px; font-weight: 600;
}
.site-footer a { color: #b8c7d6; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.footer-brand .logo-name { color: #fff; letter-spacing: .1em; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #8fa2b4; margin: 14px 0 0; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 12.5px; color: #7d90a3;
}

/* ---------- мобильная панель звонка ---------- */
.mobile-cta { display: none; }
@media (max-width: 980px) {
  body { padding-bottom: 72px; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta a { flex: 1 1 0; min-width: 0; }
  .mobile-cta .btn { width: 100%; padding: 12px 10px; font-size: 14.5px; }
}

/* ---------- утилиты ---------- */
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* главная: колонка контента + боковой блок */
.home-main { min-width: 0; }
.block-title { margin: 52px 0 22px; }
.block-note { margin-top: 16px; }

/* контакты */
.contact-phones { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.map-frame-action { margin: 16px 0 0; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}

/* ---------- анимационные состояния ---------- */
/* включается только когда JS и библиотеки готовы (html.js) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-hero] { opacity: 0; }
.js .hero-title .w > i { transform: translateY(110%); }

.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-title .w > i { display: inline-block; font-style: inherit; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-hero] { opacity: 1; }
  .js .hero-title .w > i { transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- печать ---------- */
@media print {
  .site-header, .topbar, .mnav, .mobile-cta, .side, .scroll-progress, .site-footer { display: none !important; }
  .page-body { grid-template-columns: 1fr; padding: 0; }
  body { padding-bottom: 0; font-size: 12pt; }
  .page-head { background: none; }
}
