/* ============================================================
   Медсонар Плюс — design system «Семейная забота»
   Tiffany (oklch) · Cormorant Garamond · Manrope · JetBrains Mono
   ============================================================ */

:root {
  --tiffany-h: 203;
  --tiffany-c: 0.10;
  --tiffany-l: 0.80;
  --tiffany: oklch(var(--tiffany-l) var(--tiffany-c) var(--tiffany-h));
  --tiffany-soft: oklch(0.94 0.04 var(--tiffany-h));
  --tiffany-softer: oklch(0.97 0.02 var(--tiffany-h));
  --tiffany-deep: oklch(0.42 0.08 var(--tiffany-h));
  --tiffany-ink: oklch(0.28 0.06 var(--tiffany-h));
  --peach: oklch(0.88 0.06 55);
  --peach-soft: oklch(0.95 0.025 55);
  --peach-softer: oklch(0.97 0.015 55);
  --peach-deep: oklch(0.45 0.08 50);
  --bg: oklch(0.97 0.018 var(--tiffany-h));
  --paper: #fbf9f5;
  --ink: #1a1f1e;
  --ink-soft: #4a524f;
  --ink-mute: #7a827e;
  --rule: rgba(26, 31, 30, 0.08);
  --rule-strong: rgba(26, 31, 30, 0.16);
  --gold: oklch(0.78 0.13 75);
  --transition: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; transition: color .15s ease, opacity .15s ease; }
img, svg, video { display: block; max-width: 100%; }
button { border: 0; background: transparent; cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .12); border-radius: 999px; }
::selection { background: var(--tiffany); color: var(--ink); }

p { margin: 0 0 14px; }
h1, h2, h3, h4, h5 {
  margin: 0; color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; letter-spacing: -0.5px;
}
.serif-em { font-style: italic; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tiffany-deep); outline-offset: 3px; border-radius: 8px;
}

.skip-link {
  position: fixed; top: -200px; left: 16px; z-index: 999;
  padding: 12px 18px; background: var(--ink); color: #fff;
  border-radius: 12px; font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ── Top nav ─────────────────────────────────────────────── */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; gap: 16px;
  height: 64px;
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.2px;
  color: var(--ink); text-decoration: none;
}
.wordmark em { font-style: italic; font-weight: 500; color: var(--tiffany-deep); }

.wordmark-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--ink);
}
.wordmark-logo img {
  height: 88px; width: auto; display: block;
  transition: opacity .2s ease, transform .2s ease;
}
.wordmark-logo:hover img { opacity: .85; transform: translateY(-1px); }
.footer .wordmark-logo img { height: 80px; }
@media (max-width: 900px) {
  .wordmark-logo img { height: 72px; }
}
@media (max-width: 600px) {
  .wordmark-logo img { height: 60px; }
}
.nav-pill {
  display: flex; gap: 4px; padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.nav-pill a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-pill a:hover { color: var(--ink); }
.nav-pill a.active, .nav-pill a[aria-current="page"] {
  color: var(--ink); background: var(--tiffany-soft); font-weight: 500;
}
.nav-toggle-btn {
  display: none; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: rgba(0, 0, 0, .04); cursor: pointer;
}
.nav-toggle-btn span {
  display: block; width: 18px; height: 2px;
  margin: 5px auto; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-btn.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-btn.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle-btn.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
  border: none; cursor: pointer; text-decoration: none;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--tiffany); color: var(--ink);
  box-shadow: 0 6px 18px oklch(var(--tiffany-l) var(--tiffany-c) var(--tiffany-h) / 0.45);
}
.btn-primary:hover { box-shadow: 0 10px 28px oklch(var(--tiffany-l) var(--tiffany-c) var(--tiffany-h) / 0.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .55); color: var(--ink);
  backdrop-filter: blur(4px);
}
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--rule); }
.btn-outline:hover { border-color: var(--tiffany); }

/* ── Type helpers ────────────────────────────────────────── */
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--tiffany-deep);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2px;
  background: var(--tiffany-soft); color: var(--tiffany-deep);
}
.pill-glass { background: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); color: var(--tiffany-deep); }
.pill-peach { background: var(--peach-soft); color: var(--peach-deep); }

/* ── Page head ───────────────────────────────────────────── */
/* Размер баннера согласован с .hero-carousel на главной:
   те же margin / border-radius / height / min-height / max-height —
   чтобы шапки всех страниц были одной высоты. */
.page-head {
  margin: 12px 24px 24px;
  padding: 56px 64px;
  background: var(--tiffany);
  border-radius: 36px;
  position: relative; overflow: hidden;
  height: 56svh;
  min-height: 420px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-head .h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -1.4px;
  max-width: 720px; margin: 14px 0 16px;
}
.page-head .lede {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 560px; margin: 0;
  color: var(--tiffany-ink); line-height: 1.5;
}
.page-head .blob-a {
  position: absolute; right: -120px; top: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: oklch(0.88 0.07 var(--tiffany-h));
  opacity: 0.55; pointer-events: none;
}
.page-head .blob-b {
  position: absolute; left: -100px; bottom: -180px;
  width: 360px; height: 360px; border-radius: 50%;
  background: var(--peach-soft);
  opacity: 0.7; pointer-events: none;
}
.page-head-inner { position: relative; z-index: 2; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Home hero (extended) ───────────────────────────────── */
.home-hero {
  margin: 12px 24px 24px;
  padding: 96px 64px 76px;
  background: var(--tiffany);
  border-radius: 36px;
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 56px; align-items: end;
}
.home-hero .blob-a {
  position: absolute; right: -160px; top: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: oklch(0.86 0.08 var(--tiffany-h));
  opacity: 0.55; pointer-events: none;
}
.home-hero .blob-b {
  position: absolute; left: -120px; bottom: -200px;
  width: 420px; height: 420px; border-radius: 50%;
  background: var(--peach-soft);
  opacity: 0.7; pointer-events: none;
}
.home-hero .blob-c {
  position: absolute; left: 40%; top: 20%;
  width: 180px; height: 180px; border-radius: 50%;
  background: oklch(0.92 0.05 var(--tiffany-h));
  opacity: 0.45; pointer-events: none;
  filter: blur(2px);
}
.home-hero .h1 {
  font-size: clamp(48px, 7vw, 96px); line-height: 0.95; letter-spacing: -2px;
  margin: 0; max-width: 880px;
}
.home-hero .lede {
  font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; margin: 24px 0 0;
  color: var(--tiffany-ink); line-height: 1.5;
}
.home-hero-side {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 28px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.home-hero-side .row {
  display: flex; gap: 14px; align-items: center; padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 31, 30, .08);
}
.home-hero-side .row:last-child { border-bottom: 0; padding-bottom: 0; }
.home-hero-side .ic {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 22px;
}
.home-hero-side .label { font-size: 11px; color: var(--ink-mute); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.home-hero-side .value { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.home-hero-side .value a { color: inherit; text-decoration: none; }
.home-hero-side .value a:hover { color: var(--tiffany-deep); }

.home-hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 38px;
  grid-column: 1 / -1;
}
.home-hero-stats .s { display: flex; flex-direction: column; gap: 4px; }
.home-hero-stats .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1; letter-spacing: -1px; color: var(--ink);
}
.home-hero-stats .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--tiffany-ink); opacity: .85;
}

/* ── Hero carousel (home page) ───────────────────────────── */
.hero-carousel {
  position: relative;
  margin: 12px 24px 24px;
  border-radius: 36px;
  overflow: hidden;
  height: 56svh;
  min-height: 420px;
  max-height: 560px;
  background: var(--tiffany);
  isolation: isolate;
}
.hero-track {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: 56px 64px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .9s var(--transition), transform 6s ease-out;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
.hero-slide.is-active .hero-content {
  animation: heroFadeUp .9s .15s var(--transition) both;
}
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-slide-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide-bg.tiffany { background: linear-gradient(135deg, var(--tiffany) 0%, oklch(0.86 0.08 var(--tiffany-h)) 100%); }
.hero-slide-bg.peach { background: linear-gradient(135deg, var(--peach) 0%, oklch(0.92 0.05 50) 100%); }
.hero-slide-bg.tiffany-deep { background: linear-gradient(135deg, oklch(0.72 0.10 var(--tiffany-h)) 0%, var(--tiffany) 100%); }
.hero-slide-bg.warm { background: linear-gradient(135deg, oklch(0.91 0.04 60) 0%, var(--tiffany-soft) 100%); }
.hero-slide-bg.calm { background: linear-gradient(135deg, var(--tiffany-softer) 0%, oklch(0.86 0.07 var(--tiffany-h)) 100%); }
.hero-slide-bg .blob {
  position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  filter: blur(8px);
}
.hero-slide-bg .blob.b {
  right: auto; top: auto; left: -100px; bottom: -160px;
  width: 360px; height: 360px;
  background: rgba(255, 255, 255, .18);
}

.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slide .overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  color: var(--ink);
}
.hero-slide.dark .hero-content { color: #fff; }
.hero-slide.dark .pill-glass { background: rgba(255, 255, 255, .15); color: #fff; }
.hero-content .h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -1.4px;
  margin: 14px 0 16px; max-width: 720px;
}
.hero-content .lede {
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 560px; margin: 0;
  color: var(--tiffany-ink); line-height: 1.5;
}
.hero-slide.dark .hero-content .lede { color: rgba(255, 255, 255, .88); }
.hero-content .actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 24px;
}

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(20, 40, 38, .15);
  transition: background .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.hero-arrow:active { transform: translateY(-50%) scale(.95); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-arrow svg { width: 22px; height: 22px; }

.hero-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  display: flex; gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  border-radius: 999px;
}
.hero-dot {
  width: 8px; height: 8px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-dot:hover { background: #fff; }
.hero-dot.active { background: #fff; width: 28px; border-radius: 999px; }

.hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255, 255, 255, .15);
  z-index: 4;
}
.hero-progress-bar {
  display: block; height: 100%;
  background: rgba(255, 255, 255, .85);
  width: 0;
  transition: width 5s linear;
}
.hero-progress-bar.run { width: 100%; }

@media (max-width: 900px) {
  .hero-carousel { margin: 8px 12px 16px; border-radius: 24px; min-height: 380px; height: 60svh; }
  .hero-slide { padding: 36px 28px; }
  .hero-content .h1 { font-size: 36px; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow.prev { left: 12px; }
  .hero-arrow.next { right: 12px; }
}
@media (max-width: 600px) {
  .hero-carousel { min-height: 360px; height: 65svh; }
  .hero-slide { padding: 28px 22px; }
  .hero-content .h1 { font-size: 30px; line-height: 1; }
  .hero-content .lede { font-size: 14px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 14px; padding: 6px 10px; }
}

/* ── Home compact stats (below carousel) ────────────────── */
.home-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: 0 24px 24px;
  padding: 28px 36px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px;
}
.home-stats .s { display: flex; flex-direction: column; gap: 6px; }
.home-stats .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1; letter-spacing: -1px;
  color: var(--tiffany-deep);
}
.home-stats .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 900px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); padding: 20px 24px; }
}
@media (max-width: 600px) {
  .home-stats { margin: 0 12px 16px; padding: 18px 22px; }
}

/* ── Section base ────────────────────────────────────────── */
.shell { max-width: 1320px; margin: 0 auto; }
.section { margin: 24px; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 36px;
}
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.98; letter-spacing: -1px; max-width: 720px;
}
.section-head .lede { font-size: 16px; color: var(--ink-soft); margin-top: 12px; max-width: 640px; }
.section-head .more {
  font-size: 14px; color: var(--tiffany-deep); text-decoration: none;
  font-weight: 500; white-space: nowrap;
}

/* ── Grids ──────────────────────────────────────────────── */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.four-col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

/* ── Cards (soft, peach, tiffany, dark) ─────────────────── */
.soft-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: transform .25s var(--transition), box-shadow .25s ease, border-color .25s ease;
}
.soft-card:hover { transform: translateY(-3px); border-color: var(--tiffany); box-shadow: 0 16px 40px rgba(20, 40, 38, .08); }
.peach-card { background: var(--peach-soft); border-radius: 28px; padding: 36px; }
.tiffany-card { background: var(--tiffany-soft); border-radius: 28px; padding: 36px; }

/* ── Direction cards ────────────────────────────────────── */
.direction-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s var(--transition), box-shadow .25s ease, border-color .25s ease;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.direction-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--tiffany-softer);
  opacity: 0; transition: opacity .25s ease;
}
.direction-card:hover { transform: translateY(-4px); border-color: var(--tiffany); }
.direction-card:hover::after { opacity: 1; }
.direction-card > * { position: relative; z-index: 1; }
.direction-card .ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tiffany-soft); color: var(--tiffany-deep);
  margin-bottom: 8px;
}
.direction-card.iconStyle-rose .ic { background: var(--peach-soft); color: var(--peach-deep); }
.direction-card.iconStyle-gold .ic { background: oklch(0.94 0.06 75); color: oklch(0.5 0.12 75); }
.direction-card .ic svg { width: 28px; height: 28px; }
.direction-card h3 {
  font-size: 28px; line-height: 1.1; letter-spacing: -0.5px;
}
.direction-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.direction-card .more {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--tiffany-deep); margin-top: auto;
}

/* ── Feature cards ──────────────────────────────────────── */
.feature-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 22px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--tiffany); box-shadow: 0 16px 36px rgba(20, 40, 38, .06); }
.feature-card .ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tiffany-soft); color: var(--tiffany-deep);
  display: grid; place-items: center;
}
.feature-card .ic svg { width: 24px; height: 24px; }
.feature-card.peach .ic { background: var(--peach-soft); color: var(--peach-deep); }
.feature-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.3px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ── Process / steps ────────────────────────────────────── */
.step-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.step-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 22px; padding: 28px 24px;
  counter-increment: step;
  transition: transform .25s var(--transition), border-color .25s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--tiffany); }
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 500; color: var(--tiffany-deep); line-height: 1;
}
.step-card h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.3px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ── Check list ──────────────────────────────────────────── */
.check-list {
  display: grid; gap: 14px; padding: 0; margin: 24px 0 0; list-style: none;
}
.check-list li {
  position: relative; padding-left: 36px;
  color: var(--ink-soft); line-height: 1.55;
  font-size: 15px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tiffany);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 11px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

/* ── Doctor cards (for non-doctors pages) ─────────────── */
/* Карточки компактнее на ~35%: 4-в-ряд вместо 3, padding/gap/шрифты урезаны. */
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.docc-link { text-decoration: none; color: inherit; display: block; }
.docc {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rule);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  height: 100%;
}
.docc:hover {
  box-shadow: 0 12px 28px rgba(20, 40, 38, .08);
  transform: translateY(-2px);
  border-color: var(--tiffany);
}
.docc-portrait {
  aspect-ratio: 1/1; border-radius: 12px;
  background: linear-gradient(155deg, var(--tiffany-softer) 0%, var(--bg) 100%);
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.docc-portrait::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(26, 31, 30, .025) 22px 23px);
  z-index: 1;
}
.docc-portrait img {
  width: 100%; height: 100%; object-fit: contain;
  position: absolute; inset: 0; z-index: 2;
}
.docc-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 500; line-height: 1;
  color: var(--tiffany-deep); position: relative; z-index: 1;
}
.docc-credit {
  position: absolute; bottom: 8px; left: 10px; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 8.5px;
  color: rgba(255, 255, 255, .85); letter-spacing: 0.5px; text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.docc-portrait.no-photo .docc-credit { color: var(--ink-mute); text-shadow: none; }
.docc-head h3 {
  font-size: 16px; line-height: 1.15; letter-spacing: -0.2px;
  font-family: 'Cormorant Garamond', serif;
}
.docc .role { font-size: 11.5px; color: var(--tiffany-deep); font-weight: 500; margin-top: 3px; }
.docc .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.docc .tag {
  font-size: 9.5px; padding: 3px 7px; border-radius: 999px;
  background: var(--tiffany-softer); color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.2px;
}
.reviews-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-soft); flex-wrap: wrap;
}
.reviews-line .stars { color: var(--gold); font-size: 10px; letter-spacing: 1px; }
.reviews-line .r-num { color: var(--ink); font-weight: 600; }
.reviews-line .r-price { color: var(--ink); font-weight: 500; margin-left: auto; }
.docc .row-bottom {
  margin-top: auto; padding-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); gap: 8px;
}
.docc .next { font-size: 10.5px; color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; }
.docc .next b { color: var(--tiffany-deep); font-weight: 600; }
.docc-btn { padding: 5px 11px !important; font-size: 10.5px !important; white-space: nowrap; }

@media (max-width: 1280px) {
  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .doctor-grid { grid-template-columns: 1fr; }
}

/* ── Service cards ──────────────────────────────────────── */
.service-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--transition), border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--tiffany); box-shadow: 0 16px 40px rgba(20, 40, 38, .08); }
.service-card .ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--tiffany-soft); color: var(--tiffany-deep);
  display: grid; place-items: center;
}
.service-card .ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.3px; }
.service-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.service-card .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.service-card .tag {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--tiffany-softer); color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
}
.service-card .btn { align-self: flex-start; margin-top: 12px; }

/* ── Promotion cards ────────────────────────────────────── */
.promo-card {
  background: var(--ink); color: #fff;
  border-radius: 24px; padding: 32px 28px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--transition);
}
.promo-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: oklch(0.55 0.1 var(--tiffany-h));
  opacity: 0.4;
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card:hover { transform: translateY(-3px); }
.promo-card .kicker { color: oklch(0.85 0.09 var(--tiffany-h)); }
.promo-card h3 { color: #fff; font-size: 22px; line-height: 1.2; }
.promo-card p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 14px; line-height: 1.55; }
.promo-card .btn { margin-top: auto; align-self: flex-start; }
.promo-card .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.promo-card .btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ── Reviews ────────────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20, 40, 38, .08); }
.review-card::before {
  content: """; position: absolute; top: 8px; right: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 90px; line-height: 1; color: var(--tiffany-soft);
}
.review-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 14px 0 18px; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tiffany); color: var(--ink);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 17px;
}
.review-author-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.review-author-meta { color: var(--ink-mute); font-size: 12px; font-family: 'JetBrains Mono', monospace; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 18px; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--tiffany); box-shadow: 0 8px 28px rgba(20, 40, 38, .06); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-weight: 600; color: var(--ink); font-size: 16px;
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 19px; letter-spacing: -0.2px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--tiffany-deep);
  border-bottom: 2px solid var(--tiffany-deep);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }

/* ── Price list ──────────────────────────────────────────── */
.price-list { display: grid; gap: 10px; }
.price-row {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 18px; padding: 18px 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 18px; align-items: center;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.price-row:hover { border-color: var(--tiffany); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20, 40, 38, .06); }
.price-row h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; line-height: 1.25; letter-spacing: -0.2px;
  margin: 4px 0 0;
}
.price-row p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.price-row .price-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--tiffany-deep);
}
.price-row strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 500;
  color: var(--ink); white-space: nowrap;
}

/* ── Filters ────────────────────────────────────────────── */
.doc-filters {
  margin: 24px 0 0;
  padding: 22px 28px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.doc-filters .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-filters .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-mute); margin-right: 8px;
}
.doc-chip {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--rule);
  cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.doc-chip:hover { color: var(--ink); }
.doc-chip.active { background: var(--tiffany); color: var(--ink); border-color: transparent; font-weight: 500; }
.doc-search {
  flex: 1; min-width: 220px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--rule);
  background: var(--bg); font-size: 13px; color: var(--ink);
}
.doc-search:focus { outline: none; border-color: var(--tiffany-deep); }
.filter-row-scroll {
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 28px;
  display: grid; gap: 14px;
}
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card label {
  display: grid; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-mute);
}
.form-card input, .form-card select, .form-card textarea {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 14px;
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-card textarea { min-height: 110px; padding: 14px 16px; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--tiffany-deep); background: #fff;
  box-shadow: 0 0 0 4px oklch(var(--tiffany-l) var(--tiffany-c) var(--tiffany-h) / 0.2);
}
.form-card input.is-invalid, .form-card select.is-invalid, .form-card textarea.is-invalid {
  border-color: oklch(0.62 0.18 25); box-shadow: 0 0 0 4px oklch(0.62 0.18 25 / 0.12);
}
.form-card .field-error { color: oklch(0.5 0.16 25); font-size: 12px; font-weight: 500; margin: -4px 0 0; }
.form-card small { color: var(--ink-mute); font-size: 12px; }
.form-card .checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--ink-soft); font-family: inherit;
  text-transform: none; letter-spacing: 0;
}
.form-card .checkbox-row input { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; padding: 0; }
.form-card .checkbox-row a { color: var(--tiffany-deep); font-weight: 600; }
/* Раньше тёмный CTA + полупрозрачно-белая форма; теперь CTA бежевый,
   форму делаем чисто-белой с лёгкой обводкой, чтобы выделялась. */
.form-card.dark { background: #fff; border: 1px solid oklch(0.85 0.04 75); }

/* ── CTA section ────────────────────────────────────────── */
/* Тёплый бежевый вместо чёрного: мягко, не «офисно». На фоне темный
   текст, кружок-блик в брендовой бирюзе. */
.cta-section {
  margin: 24px;
  padding: 56px;
  background: oklch(0.93 0.03 75); color: var(--ink);
  border-radius: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--tiffany);
  opacity: 0.35;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: var(--ink); font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -1px; }
.cta-section h2 em { color: var(--tiffany-deep); font-style: italic; font-weight: 500; }
.cta-section p { color: var(--ink-soft); margin: 16px 0 0; font-size: 16px; line-height: 1.55; max-width: 520px; }
.cta-section .kicker { color: var(--tiffany-deep); margin-bottom: 18px; }
/* Перекрываем устаревшие inline color:#fff на ссылках телефона
   (они остались с тёмной версии cta-section на 11 страницах). */
.cta-section a[style*="color:#fff"],
.cta-section a[style*="color: #fff"] { color: var(--tiffany-deep) !important; }

/* ── Contact channels ───────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px;
}
.contact-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 32px;
  display: grid; gap: 18px;
}
.contact-card h2 { font-size: 32px; margin: 0; }
.contact-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--bg);
}
.contact-list .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--tiffany-soft); color: var(--tiffany-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list strong {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 4px; font-weight: 500;
}
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--tiffany-deep); }
.map-card {
  border-radius: 24px; overflow: hidden; min-height: 480px;
  border: 1px solid var(--rule); background: var(--tiffany-softer);
}
.map-card iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────── */
/* Тёплый бежевый фон вместо тёмного. Тексты и ссылки — тёмные с
   ink-soft / ink-mute. Inline color:#a8aca9 в HTML перекрываем
   правилом снизу (исторический код с тёмного футера). */
.footer {
  margin: 40px 24px 24px;
  background: oklch(0.93 0.03 75); color: var(--ink-soft);
  border-radius: 28px;
  padding: 56px 56px 36px;
}
.footer a { text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; align-items: start;
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--tiffany-deep);
  margin: 0 0 18px; font-weight: 500;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
}
.footer ul a { color: var(--ink-soft); opacity: 1; }
.footer ul a:hover { color: var(--tiffany-deep); }
.footer-bottom {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 32px; align-items: start;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid oklch(0.85 0.04 75);
  font-size: 12.5px; color: var(--ink-mute);
  line-height: 1.65;
}
.footer-bottom .legal-block {
  display: flex; flex-direction: column; gap: 8px;
}
.footer-bottom .legal-block:nth-child(2) {
  text-align: right; align-items: flex-end;
}
.footer-bottom .legal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.footer-bottom .legal-info {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 540px;
}
/* Перекрываем устаревшие inline color:#a8aca9 в описании клиники
   (стояло на тёмном футере). */
.footer p[style*="color:#a8aca9"],
.footer p[style*="color: #a8aca9"] { color: var(--ink-soft) !important; }
.footer .legal-links a { color: var(--tiffany-deep); }
.footer .legal-links a:hover { color: var(--ink); }
.footer-bottom .legal-links {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: oklch(0.72 0.02 var(--tiffany-h));
}
.footer-bottom .legal-links a {
  color: oklch(0.85 0.09 var(--tiffany-h)); text-decoration: none;
}
.footer-bottom .legal-links a:hover { color: #fff; }
@media (max-width: 900px) {
  .footer-bottom { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom .legal-block:nth-child(2) {
    text-align: left; align-items: flex-start;
  }
}

/* ── Skeleton ───────────────────────────────────────────── */
.skel-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: 24px; padding: 22px; height: 380px;
  position: relative; overflow: hidden;
}
.skel-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(26, 31, 30, .04), transparent);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── Empty / counter line ─────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  padding: 48px 32px; text-align: center;
  color: var(--ink-soft); font-size: 15px;
}
.empty-state b { color: var(--ink); }
.counter-line {
  margin-top: 16px; padding: 18px 24px;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--ink-soft);
}
.counter-line b { color: var(--ink); }
.counter-line .right { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-mute); }

/* ── Trust badges ───────────────────────────────────────── */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink);
}
.trust-badge svg { width: 16px; height: 16px; color: var(--tiffany-deep); }

/* ── Search modal ───────────────────────────────────────── */
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff; color: var(--ink-soft);
  font-family: inherit; font-size: 13px; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.search-trigger:hover { border-color: var(--tiffany); color: var(--ink); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd {
  padding: 3px 8px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-mute); font-weight: 500;
}
.search-trigger.compact { width: 44px; padding: 0; justify-content: center; }
.search-trigger.compact span, .search-trigger.compact kbd { display: none; }

.search-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  padding: 9svh 16px 16px;
}
.search-modal.is-open { display: block; }
.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 23, 30, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.search-is-open { overflow: hidden; }
.search-dialog {
  position: relative; z-index: 1;
  width: min(960px, 100%); margin: 0 auto;
  max-height: min(820px, calc(100svh - 100px));
  background: rgba(255, 255, 255, .98);
  border-radius: 28px;
  box-shadow: 0 36px 80px rgba(11, 23, 30, .35);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: searchIn .25s var(--transition);
}
@keyframes searchIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.search-bar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--rule);
}
.search-bar svg { width: 24px; height: 24px; color: var(--tiffany-deep); }
.search-bar input {
  width: 100%; min-height: 56px;
  padding: 0; border: 0;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.2vw, 32px); font-weight: 500;
  letter-spacing: -0.5px; color: var(--ink); outline: none;
}
.search-bar input::placeholder { color: var(--ink-mute); }
.search-close {
  min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: #fff; color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  cursor: pointer; letter-spacing: 0.3px;
}
.search-close:hover { border-color: var(--tiffany-deep); color: var(--ink); }

.search-suggestions {
  display: flex; gap: 8px; padding: 14px 22px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto; scrollbar-width: thin;
}
.search-suggestions button {
  flex: 0 0 auto;
  min-height: 32px; padding: 6px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--tiffany-softer); color: var(--ink-soft);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.search-suggestions button:hover {
  background: var(--tiffany); color: var(--ink); border-color: transparent;
}

.search-results {
  flex: 1; overflow-y: auto;
  padding: 12px 22px 22px;
}
.search-tier-label {
  display: block; padding: 16px 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-mute);
}
.search-tier-label.related {
  margin-top: 14px; padding-top: 18px;
  border-top: 1px dashed var(--rule);
}
.search-group { padding: 10px 0 4px; }
.search-group h3 {
  margin: 0 0 10px; padding: 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--tiffany-deep); font-weight: 500;
}
.search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.search-result:hover {
  background: var(--tiffany-softer);
  border-color: rgba(167, 216, 212, .55);
  transform: translateX(3px);
}
.search-result.is-active {
  background: var(--tiffany-soft);
  border-color: var(--tiffany);
  box-shadow: 0 8px 24px rgba(167, 216, 212, .35);
}
.search-result-thumb {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tiffany-soft);
  display: grid; place-items: center;
  color: var(--tiffany-deep);
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 500;
}
.search-result-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.search-result-thumb svg { width: 22px; height: 22px; }
.search-result-body { min-width: 0; }
.search-result strong {
  display: block; font-size: 15.5px;
  color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result span.subtitle {
  display: block; font-size: 12.5px; color: var(--ink-mute);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result .price-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: var(--tiffany-deep); font-weight: 500;
  white-space: nowrap;
}
.search-result mark {
  background: rgba(167, 216, 212, .45);
  color: inherit; padding: 0 2px; border-radius: 3px;
}
.search-empty {
  padding: 60px 24px; text-align: center;
  color: var(--ink-mute); font-size: 14px;
}
.search-empty b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 6px; font-family: 'Cormorant Garamond', serif; }
.search-hint {
  padding: 10px 22px; border-top: 1px solid var(--rule);
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-mute);
}
.search-hint kbd {
  padding: 2px 8px; margin: 0 4px;
  border-radius: 6px; border: 1px solid var(--rule);
  background: var(--bg); font-family: inherit;
}

@media (max-width: 720px) {
  .search-modal { padding: 50px 8px 8px; }
  .search-dialog { max-height: calc(100svh - 60px); border-radius: 22px; }
  .search-bar { padding: 16px 18px; gap: 10px; }
  .search-bar input { font-size: 22px; min-height: 44px; }
  .search-suggestions { padding: 10px 16px; }
  .search-results { padding: 10px 14px 16px; }
  .search-hint { display: none; }
}

/* ── Price tree (древовидный прайс) ─────────────────────── */
.price-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.price-tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.price-tile:hover {
  transform: translateY(-3px);
  border-color: var(--tiffany);
  box-shadow: 0 16px 36px rgba(20, 40, 38, .06);
}
.price-tile.is-active {
  background: var(--tiffany-soft);
  border-color: var(--tiffany-deep);
  box-shadow: 0 12px 32px rgba(20, 40, 38, .12);
}
.price-tile-icon {
  font-size: 30px; line-height: 1;
}
.price-tile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.price-tile-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px;
  color: var(--ink-mute);
  margin-top: auto;
}

.price-empty-hint {
  margin: 24px 0;
  padding: 28px;
  text-align: center;
  color: var(--ink-mute);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
}
.price-empty-hint .kicker {
  display: block; margin-bottom: 8px;
  font-style: normal;
}

.price-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.price-skeleton {
  height: 130px; border-radius: 22px;
  background: linear-gradient(90deg, #fff 25%, var(--tiffany-softer) 50%, #fff 75%);
  background-size: 200% 100%;
  animation: priceSkel 1.5s linear infinite;
}
@keyframes priceSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.price-row {
  cursor: pointer;
  user-select: none;
}
.price-row[data-expanded="true"] {
  border-color: var(--tiffany);
  background: linear-gradient(135deg, #fff, var(--tiffany-softer) 50%, #fff);
}
.price-row-arrow {
  width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--tiffany-softer);
  color: var(--tiffany-deep);
  font-size: 14px; line-height: 1;
  transition: transform .25s ease, background .2s ease;
  flex-shrink: 0;
}
.price-row[data-expanded="true"] .price-row-arrow {
  transform: rotate(90deg);
  background: var(--tiffany);
}
.price-row-meta {
  display: flex; align-items: center; gap: 10px;
}
.price-row-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--ink-mute);
  letter-spacing: 0.5px;
}
.price-row-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.5px;
  color: var(--peach-deep);
  background: var(--peach-soft);
}
.price-row-badge.success {
  color: var(--tiffany-deep);
  background: var(--tiffany-soft);
}
.price-row.is-other-branch {
  opacity: .6;
}
.price-row.is-other-branch:hover {
  opacity: .85;
}

.price-row-details {
  margin: -2px 0 8px;
  padding: 18px 24px 22px 32px;
  background: var(--tiffany-softer);
  border: 1px solid var(--rule);
  border-top: 0;
  border-left: 3px solid var(--tiffany);
  border-radius: 0 0 18px 18px;
  display: grid; gap: 14px;
}
.price-row-details h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  margin: 0 0 6px;
}
.price-row-details p {
  margin: 0; font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
}
.price-row-details .preparation-block {
  padding: 12px 16px;
  background: var(--peach-soft);
  border-radius: 12px;
  border-left: 3px solid var(--peach-deep);
}
.price-row-details .preparation-block strong {
  color: var(--peach-deep); font-weight: 600;
}
.price-row-doctors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.price-row-doctor {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  font-size: 13.5px;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, transform .15s ease;
}
.price-row-doctor:hover {
  border-color: var(--tiffany);
  transform: translateX(2px);
}
.price-row-doctor-photo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--tiffany-softer);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; color: var(--tiffany-deep);
  overflow: hidden;
  flex-shrink: 0;
}
.price-row-doctor-photo img { width: 100%; height: 100%; object-fit: contain; }
.price-row-doctor-name {
  font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-row-doctor-spec {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-row-doctor-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 500;
  color: var(--tiffany-deep);
  white-space: nowrap;
}
.price-row-doctor-price.custom {
  color: var(--peach-deep);
}
.price-row-doctor-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--ink-mute);
  white-space: nowrap;
}

/* Колонка-контейнер строки услуги */
.price-row-line {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.price-row-line-left { flex: 1; min-width: 0; }
.price-row-line-right {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.price-row h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .price-tiles, .price-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .price-tiles, .price-skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .price-tile { padding: 18px 14px; }
  .price-tile-title { font-size: 18px; }
  .price-row-doctor {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
  }
  .price-row-doctor-spec { grid-column: 1 / -1; }
  .price-row-doctor-duration { display: none; }
}

/* ── Recommendations (5 блоков в раскрытии услуги) ──────── */
.rec-block {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: #fff;
}
.rec-block.upsell { background: linear-gradient(135deg, var(--tiffany-soft), #fff); border-color: var(--tiffany-deep); }
.rec-block.cross { background: linear-gradient(135deg, var(--peach-soft), #fff); border-color: var(--peach-deep); }
.rec-block.package { background: linear-gradient(135deg, oklch(0.94 0.06 75), #fff); border-color: oklch(0.78 0.13 75); }
.rec-block.promo { background: linear-gradient(135deg, oklch(0.92 0.07 320), #fff); border-color: oklch(0.55 0.16 320); }
.rec-block.specialty { background: var(--tiffany-softer); border-color: var(--tiffany); }

.rec-block h4 {
  margin: 0 0 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.rec-block.upsell h4 { color: var(--tiffany-deep); }
.rec-block.cross h4 { color: var(--peach-deep); }
.rec-block.package h4 { color: oklch(0.45 0.13 75); }
.rec-block.promo h4 { color: oklch(0.45 0.16 320); }
.rec-block.specialty h4 { color: var(--tiffany-deep); }

.rec-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(26, 31, 30, .06);
  border-radius: 12px;
  font-size: 13.5px;
  margin-top: 8px;
}
.rec-card-name {
  font-weight: 600; color: var(--ink);
}
.rec-card-phrase {
  display: block; margin-top: 3px;
  color: var(--ink-soft); font-size: 12.5px;
  font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 14.5px;
}
.rec-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
}
.rec-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.rec-promo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(26, 31, 30, .06);
  border-radius: 12px;
  margin-top: 8px;
}
.rec-promo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 500;
  color: var(--ink);
}
.rec-promo-desc {
  display: block; margin-top: 3px;
  color: var(--ink-soft); font-size: 13px;
  line-height: 1.5;
}
.rec-promo-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.rec-promo-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .3px;
}
.rec-promo-price {
  text-align: right;
}
.rec-promo-price .new {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500; color: var(--peach-deep);
  line-height: 1;
}
.rec-promo-price .old {
  display: block; margin-top: 4px;
  font-size: 12px; color: var(--ink-mute);
  text-decoration: line-through;
}

/* Cross-specialty: карточка целевой услуги + врачи */
.rec-cross-spec {
  margin-top: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(26, 31, 30, .06);
  border-radius: 12px;
}
.rec-cross-spec-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.rec-cross-spec-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: var(--ink);
}
.rec-cross-spec-phrase {
  display: block; margin-top: 3px;
  font-style: italic; color: var(--ink-soft);
  font-size: 13px;
}
.rec-cross-spec-doctors {
  display: grid; gap: 6px; margin-top: 8px;
}

@media (max-width: 720px) {
  .rec-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .rec-card-meta, .rec-card-price { text-align: left; }
}

/* ── Toast ──────────────────────────────────────────────── */
.toast-host {
  position: fixed; top: 90px; right: 16px; z-index: 100;
  display: grid; gap: 10px; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast {
  pointer-events: auto;
  display: flex; gap: 12px; align-items: flex-start;
  min-width: 280px; max-width: 380px;
  padding: 14px 18px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 40, 38, .12);
  animation: toastIn .3s var(--transition) both;
}
.toast.is-leaving { animation: toastOut .25s ease forwards; }
.toast.success { border-left: 4px solid oklch(0.65 0.16 145); }
.toast.error { border-left: 4px solid oklch(0.62 0.18 25); }
.toast.info { border-left: 4px solid var(--tiffany-deep); }
.toast strong { display: block; font-size: 14px; color: var(--ink); }
.toast span { color: var(--ink-soft); font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: oklch(0.93 0.03 75); color: var(--ink-soft);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 40, 38, .15);
  max-width: 760px; margin: 0 auto;
  transform: translateY(160%);
  transition: transform .35s var(--transition);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.55; flex: 1; min-width: 240px; }
.cookie-banner a { color: oklch(0.85 0.09 var(--tiffany-h)); font-weight: 600; }
.cookie-banner .btn { background: var(--tiffany); color: var(--ink); }

/* ── Scroll-to-top ──────────────────────────────────────── */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 39;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tiffany); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(20, 40, 38, .18);
  cursor: pointer;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.scroll-top svg { width: 18px; height: 18px; }

/* ── Mobile floating CTA ──────────────────────────────── */
.mobile-cta {
  position: fixed;
  left: 12px; right: 12px;
  /* iPhone safe-area: home-indicator (тонкая полоска снизу) не должна
     перекрывать кнопки. На устройствах без safe-area env() возвращает
     0 — обычные 12px остаются как есть. */
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(20, 40, 38, .18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .6);
}
/* Блокировка кнопок «Записаться» и «Позвонить» при критическом
   алерте (force_majeure) — серверная защита уже стоит, это
   визуальная подсказка пользователю. */
body.is-record-blocked .mobile-cta a:nth-child(2) {
  opacity: 0.5; pointer-events: none; cursor: not-allowed;
}
.mobile-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.mobile-cta a:nth-child(1) { color: var(--ink); background: var(--bg); }
.mobile-cta a:nth-child(2) { color: var(--ink); background: var(--tiffany); }

/* ── Reveal anim ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--transition), transform .7s var(--transition); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topnav { padding: 8px 24px; height: auto; }
  .home-hero { padding: 64px 40px; gap: 32px; grid-template-columns: 1fr; }
  .page-head { padding: 48px 40px; height: auto; min-height: 380px; max-height: none; }
  .home-hero .h1 { font-size: 56px; }
  .three-col, .doctor-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .four-col, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .cta-section, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 40px 32px 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .topnav { flex-wrap: wrap; gap: 12px; }
  .nav-pill { display: none; order: 3; flex-basis: 100%; flex-direction: column; padding: 12px; border-radius: 24px; }
  .nav-pill.is-open { display: flex; }
  .nav-toggle-btn { display: block; }
  .page-head { padding: 40px 32px; min-height: 340px; max-height: none; }
  .page-head .h1 { font-size: 44px; }
  .home-hero .h1 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 40px 32px; }
  .cta-section h2 { font-size: 36px; }
  .mobile-cta { display: grid; }
}
@media (max-width: 640px) {
  .topnav { padding: 7px 14px; }
  .page-head, .home-hero { margin: 8px 12px 16px; padding: 32px 24px; border-radius: 24px; min-height: 280px; max-height: none; }
  .page-head .h1, .home-hero .h1 { font-size: 38px; line-height: 1; letter-spacing: -1px; }
  .page-head .lede { font-size: 15px; }
  .section { margin: 16px 12px; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 32px; }
  .three-col, .four-col, .step-grid, .doctor-grid, .review-grid, .two-col { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .price-row strong { font-size: 22px; }
  .cta-section { margin: 16px 12px; padding: 32px 24px; }
  .footer { margin: 24px 12px 12px; padding: 36px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 90px; }
  .doc-filters { padding: 16px; }
  .home-hero-stats { gap: 22px; margin-top: 26px; }
  .scroll-top { bottom: 84px; }
}

/* ─────────────────────────── /services витрина ─────────────────────────── */
.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin: 24px 24px 40px;
  align-items: start;
}
.services-aside {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 24px;
  padding: 18px 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.services-aside h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 12px 4px;
}
.services-tree { list-style: none; padding: 0; margin: 0; }
.services-tree-item { margin: 0; }
.services-tree-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.services-tree-row:hover { background: var(--tiffany-softer); color: var(--tiffany-deep); }
.services-tree-row.is-open { background: var(--tiffany-soft); color: var(--tiffany-deep); }
.services-tree-row .chev {
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-mute);
}
.services-tree-row.is-open .chev { transform: rotate(90deg); color: var(--tiffany-deep); }
.services-tree-children {
  list-style: none;
  padding: 4px 0 8px 28px;
  margin: 0;
  display: none;
}
.services-tree-item.is-open > .services-tree-children { display: block; }
.services-tree-children a {
  display: block;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.4;
}
.services-tree-children a:hover { background: var(--tiffany-softer); color: var(--tiffany-deep); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 22px 20px 20px;
  background: var(--tiffany-deep);
  color: #fff;
  border-radius: 22px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
.service-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, oklch(0.55 0.10 var(--tiffany-h)) 0%, transparent 60%);
  opacity: 0.6;
  z-index: -1;
}
.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(20, 40, 38, 0.18);
}
.service-tile-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 80%;
}
.service-tile-img {
  width: 88px; height: 88px;
  align-self: flex-end;
  display: block;
}
.service-tile-arrow {
  position: absolute;
  top: 22px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid; place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.service-tile:hover .service-tile-arrow { background: oklch(0.88 0.06 55); transform: translate(2px, -2px); }
.service-tile-arrow svg { width: 14px; height: 14px; color: #fff; }
.service-tile:hover .service-tile-arrow svg { color: var(--ink); }

@media (max-width: 1100px) {
  .services-layout { grid-template-columns: 240px 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; margin: 16px 16px 32px; }
  .services-aside { position: static; max-height: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-tile { padding: 18px 16px 16px; border-radius: 18px; }
  .service-tile-title { font-size: 18px; }
  .service-tile-img { width: 64px; height: 64px; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-tile-title { font-size: 16px; letter-spacing: 0.3px; }
}

/* ─────────────────── /services/<slug> детальная ─────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  margin: 24px 24px 56px;
  align-items: start;
}
.service-detail-main {
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 28px;
  padding: 36px 40px;
}
.service-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}
.service-breadcrumbs a { color: var(--tiffany-deep); text-decoration: none; }
.service-breadcrumbs a:hover { text-decoration: underline; }
.service-stub-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--peach-soft);
  color: var(--peach-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.service-detail h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0 0 18px;
}
.service-detail .lede {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}
.service-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.service-meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--tiffany-softer);
  color: var(--tiffany-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}
.service-section { margin-top: 36px; }
.service-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 14px;
}
.service-section p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 12px; white-space: pre-line; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service-list li {
  position: relative;
  padding: 10px 14px 10px 38px;
  background: var(--tiffany-softer);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute; left: 14px; top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tiffany);
}
.service-list.contra li::before { background: var(--peach-deep); }

.service-faq-item {
  border-bottom: 1px solid oklch(0.92 0.014 var(--tiffany-h));
}
.service-faq-q {
  width: 100%;
  padding: 18px 40px 18px 0;
  background: none; border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.service-faq-q::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--tiffany-deep);
  transition: transform 0.2s ease;
}
.service-faq-item.is-open .service-faq-q::after { content: '−'; }
.service-faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.service-faq-item.is-open .service-faq-a { display: block; }

/* ── правая колонка: карточка цены + врачи ── */
.service-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.service-price-card {
  background: var(--tiffany);
  color: var(--ink);
  border-radius: 22px;
  padding: 28px 26px;
}
.service-price-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--tiffany-ink);
  margin-bottom: 8px;
}
.service-price-card .value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 14px;
}
.service-price-card .value small { font-size: 18px; opacity: 0.7; font-family: inherit; }
.service-price-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

.service-doctors-card {
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 22px;
  padding: 24px;
}
.service-doctors-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 14px;
}
.service-doctors-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.service-doctors-list li { display: flex; gap: 12px; align-items: center; }
.service-doctors-list .ava {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tiffany-softer);
}
.service-doctors-list .name { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.service-doctors-list .prof { font-size: 12px; color: var(--ink-mute); margin: 2px 0 0; }

@media (max-width: 1000px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-side { position: static; }
}
@media (max-width: 640px) {
  .service-detail { margin: 16px 12px 32px; }
  .service-detail-main { padding: 24px 22px; border-radius: 22px; }
  .service-detail h1 { font-size: 34px; }
}

/* ── модалка записи ── */
.appointment-modal {
  position: fixed; inset: 0;
  background: rgba(20, 40, 38, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 16px;
}
.appointment-modal.is-open { display: flex; }
.appointment-modal-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 36px 32px;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.appointment-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--tiffany-softer);
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  color: var(--tiffany-deep);
  cursor: pointer;
  line-height: 1;
}
.appointment-modal-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 6px;
}
.appointment-modal-card p {
  color: var(--ink-soft); margin: 0 0 24px; font-size: 14px;
}
.appointment-modal-card label {
  display: grid; gap: 6px; margin-bottom: 14px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.appointment-modal-card input,
.appointment-modal-card textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 12px;
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.appointment-modal-card input:focus,
.appointment-modal-card textarea:focus {
  outline: 2px solid var(--tiffany);
  border-color: var(--tiffany);
}
.appointment-modal-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.appointment-success {
  display: none;
  padding: 20px;
  background: var(--tiffany-softer);
  color: var(--tiffany-deep);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
}
.appointment-success.is-shown { display: block; }

/* ── Кнопка «Кабинет/Войти» в .topnav (вставляется через assets/js/cabinet-link.js) ── */
.topnav-cabinet {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.topnav-cabinet:hover {
  background: var(--tiffany-soft);
  color: var(--tiffany-deep);
  border-color: var(--tiffany);
}
.topnav-cabinet-ic { font-size: 14px; line-height: 1; }
@media (max-width: 900px) {
  .topnav-cabinet-text { display: none; }
  .topnav-cabinet { padding: 9px 11px; }
}

/* ──────────────────────── /cabinet/ — личный кабинет ──────────────────────── */
.cabinet-auth {
  display: grid; place-items: center;
  min-height: 70vh;
  padding: 40px 16px;
}
.cabinet-auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(20, 40, 38, 0.06);
}
.cabinet-auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px; line-height: 1.05; letter-spacing: -0.5px;
  font-weight: 500;
  margin: 14px 0 12px;
}
.cabinet-auth-title em {
  font-style: italic; color: var(--tiffany-deep); font-weight: 500;
}
.cabinet-auth-lede {
  color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0 0 24px;
}
.cabinet-auth-form {
  display: grid; gap: 14px;
}
.cabinet-auth-form label {
  display: grid; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cabinet-hint {
  text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--ink-mute); font-weight: 400;
}
.cabinet-auth-form input,
.cabinet-form input {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 12px;
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
}
.cabinet-auth-form input:focus,
.cabinet-form input:focus {
  outline: 2px solid var(--tiffany);
  border-color: var(--tiffany);
}
.cabinet-auth-form input:disabled,
.cabinet-form input:disabled {
  background: var(--tiffany-softer);
  color: var(--ink-mute);
  cursor: not-allowed;
}
.cabinet-check {
  display: flex !important; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: inherit !important;
}
.cabinet-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--tiffany-deep);
}
.cabinet-check a { color: var(--tiffany-deep); }
.cabinet-auth-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.cabinet-auth-error {
  margin: 0;
  padding: 10px 14px;
  background: var(--peach-soft);
  color: var(--peach-deep);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.cabinet-auth-foot {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: center;
}
.cabinet-auth-foot a { color: var(--tiffany-deep); font-weight: 600; }

/* ── Layout кабинета ── */
.cabinet-role-pill {
  margin-left: auto;
  margin-right: 16px;
  padding: 8px 14px;
  background: var(--tiffany-soft);
  color: var(--tiffany-deep);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
}
.cabinet-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  margin: 24px 24px 56px;
  align-items: start;
}
.cabinet-aside {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 24px;
  padding: 22px;
  display: grid; gap: 18px;
}
.cabinet-user-card {
  display: flex; gap: 14px; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid oklch(0.92 0.014 var(--tiffany-h));
}
.cabinet-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--tiffany);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cabinet-user-name {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2;
  word-break: break-word;
}
.cabinet-user-email {
  font-size: 12px; color: var(--ink-mute); margin-top: 4px; word-break: break-all;
}
.cabinet-nav {
  display: grid; gap: 4px;
}
.cabinet-nav button {
  display: block; width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.cabinet-nav button:hover { background: var(--tiffany-softer); color: var(--tiffany-deep); }
.cabinet-nav button.is-active { background: var(--tiffany-soft); color: var(--tiffany-deep); }
.cabinet-nav button[hidden] { display: none; }

.cabinet-content {
  background: #fff;
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 28px;
  padding: 36px 40px;
  min-height: 60vh;
}
.cabinet-pane { display: none; }
.cabinet-pane.is-active { display: block; }
.cabinet-pane[hidden] { display: none; }
.cabinet-pane-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 38px; line-height: 1.05; letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0 0 8px;
}
.cabinet-pane-lede {
  color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 24px;
}
.cabinet-form { display: grid; gap: 14px; max-width: 460px; }
.cabinet-form label {
  display: grid; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cabinet-form .btn { justify-self: start; }
.cabinet-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin: 0;
}
.cabinet-msg-ok { background: var(--tiffany-softer); color: var(--tiffany-deep); }
.cabinet-msg-err { background: var(--peach-soft); color: var(--peach-deep); }

.cabinet-list { display: grid; gap: 12px; }
.cabinet-empty {
  padding: 32px;
  background: var(--tiffany-softer);
  border-radius: 16px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.cabinet-empty a { color: var(--tiffany-deep); font-weight: 600; }

.cabinet-card {
  border: 1px solid oklch(0.92 0.014 var(--tiffany-h));
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cabinet-card:hover { border-color: var(--tiffany); transform: translateY(-1px); }
.cabinet-card-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  flex-wrap: wrap;
}
.cabinet-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.2;
}
.cabinet-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.6px;
}
.cabinet-card-comment {
  margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.cabinet-card-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid oklch(0.94 0.014 var(--tiffany-h));
  font-size: 13px;
}
.cabinet-card-label { color: var(--ink-soft); }
.cabinet-card-link { color: var(--tiffany-deep); font-weight: 600; text-decoration: none; }
.cabinet-card-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .cabinet-layout { grid-template-columns: 1fr; gap: 16px; margin: 16px 16px 32px; }
  .cabinet-aside { position: static; }
  .cabinet-content { padding: 28px 24px; border-radius: 22px; }
  .cabinet-pane-title { font-size: 30px; }
  .cabinet-role-pill { display: none; }
}

/* ─── Расширенный «info-block» на странице врача ───
   Структурированный блок: эпиграф (цитата курсивом с акцент-бордером
   слева) → подзаголовок + абзацы intro → подзаголовок «услуги»
   с подгруппами и буллетами → «особенность подхода» (жирный префикс
   + текст в одном абзаце) → подзаголовок «доверия» + список.
   Заполняется в admin/doctor-edit.html и рендерится в .bio-card
   функцией buildInfoBlock() в assets/js/doctor-public.js. */
.info-block {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}
/* ─── Бейдж аудитории — адаптивные варианты текста ───
   В DOM один <span class="badge audience-badge"> с двумя <span> внутри:
   полный для широкого экрана, короткий для узкого. CSS показывает
   ровно один — без JS-перерисовки и без скачков layout'а.
   A11y: оба <span> в DOM, скринридер прочитает первый видимый. */
.badge.audience-badge .audience-full { display: inline; }
.badge.audience-badge .audience-short { display: none; }
@media (max-width: 600px) {
  .badge.audience-badge .audience-full { display: none; }
  .badge.audience-badge .audience-short { display: inline; }
}

/* ─── Бейдж стажа — адаптивные варианты текста ───
   Десктоп: «Стаж 23 года» — подпись разъясняет цифру и снимает
     путаницу с возрастом детей у врачей с детским приёмом.
   Мобила (<600px): «⏱ 23 года» — эмодзи как пиктограмма для
     экономии места. Оба <span> в DOM; CSS показывает один.
   Эмодзи отображаются через системный emoji-шрифт автоматически
   (Segoe UI Emoji на Windows, Apple Color Emoji на macOS/iOS).
   A11y: на short ставится aria-label с full-текстом — скринридер
   на мобиле прочитает «Стаж 23 года», а не «alarm clock 23 года». */
.badge.experience-badge .experience-full { display: inline; }
.badge.experience-badge .experience-short { display: none; }
@media (max-width: 600px) {
  .badge.experience-badge .experience-full { display: none; }
  .badge.experience-badge .experience-short { display: inline; }
}

/* ─── Эпиграф врача (гибрид A+C) ───
   Премиум-цитата: большая декоративная кавычка через ::before
   (a11y-дружелюбно — pointer-events:none + не в DOM-тексте, скринридер
   её не читает), толстая tiffany-полоса с градиентом слева через
   ::after (структурный якорь), белый фон, тонкая теневая рамка.
   Семантика — <blockquote class="epigraph"><p>текст</p></blockquote>
   (текст в БД БЕЗ кавычек-ёлочек по краям; декоративные кавычки
   рендерятся только CSS-ом). Если поле в БД пусто — buildInfoBlock
   секцию не создаёт. */
.info-block .epigraph {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 40px 48px 34px 60px;
  margin: 0;
  box-shadow: 0 6px 28px rgba(20, 40, 38, 0.05);
  overflow: hidden;
}
.info-block .epigraph::before {
  /* Декоративная открывающая кавычка (U+201C). Размер 100px —
     уменьшен с 130px, чтобы не перетягивать внимание с текста цитаты. */
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 26px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 100px;
  line-height: 1;
  color: var(--tiffany-deep);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}
.info-block .epigraph::after {
  /* Толстая tiffany-полоса слева с градиентом, скруглёнными концами. */
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--tiffany-deep), var(--tiffany));
  pointer-events: none;
}
.info-block .epigraph p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 600px) {
  .info-block .epigraph {
    padding: 30px 22px 24px 38px;
    border-radius: 16px;
  }
  .info-block .epigraph::before {
    font-size: 88px;
    top: -2px;
    left: 12px;
  }
  .info-block .epigraph::after {
    left: 10px;
    width: 4px;
    top: 16px;
    bottom: 16px;
  }
  .info-block .epigraph p {
    font-size: 19px;
  }
}
.info-block h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 4px 0 -4px;
}
.info-block h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  margin: 6px 0 -6px;
}
.info-block p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.info-block p + p { margin-top: 4px; }
.info-block ul {
  margin: 4px 0 0 22px;
  padding: 0;
  line-height: 1.6;
  color: var(--ink-soft);
  font-size: 15px;
}
.info-block ul li { margin: 0; padding: 2px 0; }
.info-block ul li + li { margin-top: 2px; }
.info-block .approach { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.info-block .approach b { color: var(--ink); font-weight: 700; }
.info-block .ib-services-group { display: grid; gap: 4px; }

/* ─── Открытые секции страницы врача (вне аккордеонов) ───
   .doc-block — общий контейнер новых секций (Специализации,
   Видео, Образование, Сертификаты, Procedures). Использует те же
   токены и базовые принципы, что и .bio-card — кикер сверху,
   крупный заголовок, контент. Не свёрнутые: всегда видны. */
.doc-block {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .doc-block { padding: 24px; border-radius: 18px; }
}
.doc-block .kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.doc-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 22px;
}
@media (max-width: 700px) {
  .doc-block h2 { font-size: 26px; }
}

/* ─── Специализации: крупные чипы-карточки ─── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.specs-grid .spec-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--tiffany-deep);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}
.specs-grid .spec-chip::before {
  content: "●";
  color: var(--tiffany-deep);
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── Procedures (инструментальные методы) ───
   Сетка чипов — компактнее, не растягивает страницу при большом
   количестве пунктов (УЗИ-врачи могут иметь 15-20 методик).
   На мобиле — 2 колонки. */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
@media (max-width: 700px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
.proc-grid .proc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink);
}
.proc-grid .proc-chip::before {
  content: "🩺";
  font-size: 13px;
  flex-shrink: 0;
}

/* legacy-стиль .proc-list оставлен для обратной совместимости —
   если где-то используется, рендерится как раньше (вертикальный
   список с 🩺-маркером). На странице врача больше не применяется. */
.proc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.proc-list li {
  position: relative;
  padding: 10px 14px 10px 38px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.proc-list li::before {
  content: "🩺";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

/* ─── Видеоролики: сетка 16:9 с play-иконкой ───
   Десктоп: 3 в ряд (4-й и 5-й перенесутся на новую строку).
   Планшет (≤1000): 2 в ряд.
   Мобила (≤700): горизонтальный скролл-карусель со snap. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .video-grid {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .video-grid > * { scroll-snap-align: start; }
}
.video-card {
  display: block;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.video-card .video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Брендовый тифани-градиент вместо плоского чёрного, чтобы
     карточки без превью не выглядели как «битые картинки». */
  background:
    radial-gradient(ellipse at 30% 30%, oklch(0.78 0.08 195) 0%, transparent 60%),
    linear-gradient(135deg, var(--tiffany-deep) 0%, oklch(0.32 0.08 200) 100%);
  overflow: hidden;
}
/* ─── Двухуровневая шапка: top-bar + main-header ───
   Утилитарная полоска сверху со статусом клиники и телефоном.
   Высота 36px (мобила: 32px) — фиксирована, чтобы placeholder
   зарезервировал место и страница не «прыгала» при инициализации. */
.top-bar-placeholder {
  height: 36px;
  background: oklch(0.96 0.018 195);
}
@media (max-width: 768px) {
  .top-bar-placeholder { height: 32px; }
}

.top-bar {
  height: 36px;
  background: oklch(0.96 0.018 195);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--ink);
  position: relative;
  z-index: 60;
}
.top-bar__left, .top-bar__right {
  display: flex; align-items: center; gap: 18px;
}
.top-bar__phone {
  color: var(--ink); text-decoration: none; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.top-bar__phone:hover { color: var(--tiffany-deep); }
@media (max-width: 768px) {
  .top-bar { height: 32px; padding: 0 14px; font-size: 12px; }
  .top-bar__phone { display: none; }
}

/* ─── Регалии-бейджи в hero страницы врача ───
   Контрастный peach-soft стиль для category / degree / position.
   Применяется как .badge.is-regalia — перебивает базовые стили
   .badge из локальных <style> страниц врачей за счёт большей
   специфичности (.badge.is-regalia два класса). */
.doc-hero-copy .badges .badge.is-regalia {
  background: var(--peach-soft);
  color: var(--peach-deep);
  font-weight: 600;
  border: 1px solid oklch(0.78 0.07 35 / 0.4);
}
/* Position — самый сильный сигнал доверия, делаем заметнее
   соседних регалий: толще шрифт, крупнее, контрастнее border.
   Применяется ко всем врачам с position (Глебов, Мальцев, Титова). */
.doc-hero-copy .badges .badge.is-regalia.is-position {
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 14px;
  background: oklch(0.92 0.07 35);
  color: oklch(0.40 0.10 30);
  border: 1px solid oklch(0.72 0.10 35 / 0.55);
  letter-spacing: 0.2px;
}

/* ─── Бейдж статуса клиники ─── */
.clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  position: relative;
}
.clinic-badge__btn {
  background: transparent;
  border: 0;
  padding: 4px 8px 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: var(--ink);
  border-radius: 6px;
  transition: background 0.15s ease;
}
.clinic-badge__btn:hover { background: rgba(0, 0, 0, 0.04); }
.clinic-badge__dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0;
  animation: clinic-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes clinic-badge-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .clinic-badge__dot { animation: none; opacity: 1; }
}
/* Текст бейджа: один <span> внутри, JS подставляет
   нужный вариант (full / medium / short) через matchMedia.
   Это гарантирует, что в DOM видим ровно один текст —
   скринридер не читает три варианта подряд (a11y). */
.clinic-badge__text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}
@media (max-width: 1024px) { .clinic-badge__text { max-width: 240px; } }
@media (max-width: 768px)  { .clinic-badge__text { max-width: 140px; font-weight: 600; } }

/* Popover */
.clinic-badge__popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 1000;
}
.clinic-badge__popover h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  color: var(--ink);
}
.clinic-badge__week { width: 100%; border-collapse: collapse; font-size: 13px; }
.clinic-badge__week td { padding: 4px 0; color: var(--ink-soft); }
.clinic-badge__week td:first-child {
  font-family: 'JetBrains Mono', monospace;
  width: 40px; color: var(--ink-mute); font-size: 11px;
}
.clinic-badge__week tr.today td { color: var(--ink); font-weight: 600; }
.clinic-badge__week tr.today td:first-child { color: var(--tiffany-deep); }
.clinic-badge__upcoming {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-soft);
}
.clinic-badge__upcoming ul { margin: 4px 0 0 16px; padding: 0; }

/* Sticky-CTA реализована через существующий блок .mobile-cta
   (см. выше). Здесь — без дубликата. */

/* Popover с недельным графиком */
.clinic-badge__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  max-width: 320px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 1000;
}
.clinic-badge__popover h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  color: var(--ink);
}
.clinic-badge__week { width: 100%; border-collapse: collapse; font-size: 13px; }
.clinic-badge__week td { padding: 4px 0; color: var(--ink-soft); }
.clinic-badge__week td:first-child {
  font-family: 'JetBrains Mono', monospace;
  width: 40px; color: var(--ink-mute); font-size: 11px;
}
.clinic-badge__week tr.today td { color: var(--ink); font-weight: 600; }
.clinic-badge__week tr.today td:first-child { color: var(--tiffany-deep); }
.clinic-badge__upcoming {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-soft);
}
.clinic-badge__upcoming ul { margin: 4px 0 0 16px; padding: 0; }

/* ─── Алерт-баннер сверху ─── */
.clinic-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px; line-height: 1.4;
}
.clinic-alert__icon { font-size: 16px; flex-shrink: 0; }
.clinic-alert__text { flex: 1; min-width: 0; }
.clinic-alert__close {
  background: transparent; border: 0; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 0 6px; opacity: 0.8;
}
.clinic-alert__close:hover { opacity: 1; }

.clinic-alert--info {
  background: oklch(0.40 0.10 240); color: #fff;
}
.clinic-alert--warning {
  background: oklch(0.92 0.13 95); color: oklch(0.30 0.10 70);
}
.clinic-alert--critical {
  background: oklch(0.45 0.18 25); color: #fff;
  padding: 12px 16px; font-weight: 500;
}
@media (max-width: 700px) {
  .clinic-alert { font-size: 13px; padding: 8px 12px; }
}

/* Modal-once */
#clinic-alert-modal { display: none; }
#clinic-alert-modal.is-open { display: block; }
.clinic-alert-modal__backdrop {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(20, 30, 30, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.clinic-alert-modal__panel {
  background: #fff; border-radius: 16px;
  max-width: 460px; width: 100%;
  padding: 28px 28px 22px; text-align: center;
}
.clinic-alert-modal__icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.clinic-alert-modal__panel h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; margin: 0 0 8px; color: var(--ink);
}
.clinic-alert-modal__panel p { color: var(--ink-soft); margin: 0 0 18px; line-height: 1.5; }

/* Блокировка кнопок «Записаться» при critical */
body.is-record-blocked .btn-primary[href*="zapis"],
body.is-record-blocked .btn-primary[href*="record"],
body.is-record-blocked [data-record-btn],
body.is-record-blocked .btn-record {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}
body.is-record-blocked [data-record-btn]::after,
body.is-record-blocked .btn-record::after {
  content: "Запись приостановлена";
  position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-size: 11px; color: var(--peach-deep);
  white-space: nowrap;
}

/* ─── Подвал: таблица расписания ─── */
.clinic-footer-schedule__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: var(--ink);
  margin: 0 0 12px;
}
.clinic-footer-schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.clinic-footer-schedule__table td {
  padding: 5px 0;
  color: var(--ink-soft);
  vertical-align: top;
}
.clinic-footer-schedule__table td:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  width: 40px;
}
.clinic-footer-schedule__table tr.is-today td {
  font-weight: 600;
}
.clinic-footer-schedule__table tr.is-today td:first-child {
  color: var(--tiffany-deep);
}
.clinic-footer-schedule__table small {
  color: var(--ink-mute); font-size: 11px;
}
.clinic-footer-schedule__upcoming {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-soft);
}
.clinic-footer-schedule__upcoming ul { margin: 6px 0 0 16px; padding: 0; }
.clinic-footer-schedule__upcoming li { margin-bottom: 3px; }

/* Карточки без превью получают мягкий тифани-градиент вместо
   чёрного — так VK-ролик без обложки не выглядит как «битая
   картинка». Play-иконка остаётся (общие правила ::before/::after
   ниже не переопределяются). */
.video-card:not(.has-thumb) .video-thumb {
  background-image:
    radial-gradient(ellipse at 30% 30%, oklch(0.82 0.10 195 / 0.6) 0%, transparent 60%),
    linear-gradient(135deg, oklch(0.50 0.10 195) 0%, oklch(0.32 0.05 210) 100%);
}
.video-card .video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: filter 0.2s ease, transform 0.25s ease;
}
/* На hover карточки с реальным превью — лёгкое затемнение
   и микро-zoom превью (200мс). Play-иконка одновременно
   становится более контрастной (см. правила opacity ниже). */
.video-card.has-thumb:hover .video-thumb img {
  filter: brightness(0.88);
  transform: scale(1.02);
}
.video-card.has-thumb .video-thumb::after {
  /* Полупрозрачная подложка под play-иконкой — на 0.85 в норме,
     до 1.0 на hover, чтобы выделялась на любом превью. */
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-card.has-thumb:hover .video-thumb::after {
  opacity: 1;
  transform: scale(1.05);
  transform-origin: center;
}
/* Когда видео раскрыто (iframe вставлен) — прячем play-иконку и
   круглый белый фон, чтобы они не наезжали на плеер. */
.video-card .video-thumb.is-playing::before,
.video-card .video-thumb.is-playing::after { display: none; }
.video-card .video-thumb iframe,
.video-card .video-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* button-вариант карточки (когда видео открывается inline) — убираем
   нативные стили <button> и оставляем тот же layout что и у <a>. */
button.video-card {
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  padding: 0; width: 100%;
}
/* Кнопка-ссылка «Смотреть весь канал клиники» под сеткой видео —
   разделяющая полоса сверху и центрирование. */
.video-channel-cta {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.video-card .video-thumb::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.video-card .video-thumb::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  margin: -10px 0 0 -6px;
  border-left: 18px solid var(--tiffany-deep);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  z-index: 1;
}
.video-card .video-meta {
  padding: 14px 16px 16px;
}
.video-card .video-meta h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}
.video-card .video-meta p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ─── Образование: таймлайн ─── */
.edu-timeline {
  display: grid;
  gap: 0;
}
.edu-timeline .edu-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.edu-timeline .edu-item:first-child { border-top: 0; padding-top: 4px; }
.edu-timeline .edu-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--tiffany-deep);
  font-weight: 600;
}
.edu-timeline .edu-body { display: grid; gap: 4px; min-width: 0; }
.edu-timeline .edu-place {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.35;
}
.edu-timeline .edu-program {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.edu-timeline .edu-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}
.edu-timeline .edu-type {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.4px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  background: var(--tiffany-soft);
  color: var(--tiffany-deep);
  border-radius: 999px;
}
.edu-timeline .edu-note {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  background: oklch(0.94 0.06 90);
  color: oklch(0.45 0.10 70);
  border-radius: 999px;
}

/* ─── Сертификаты ─── */
.cert-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cert-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  align-items: baseline;
}
.cert-list .cert-year {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--tiffany-deep);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.cert-list .cert-title {
  color: var(--ink);
  line-height: 1.45;
}
.cert-list .cert-org {
  color: var(--ink-mute);
  font-size: 12.5px;
  margin-top: 3px;
}



