/* ═══════════════════════════════════════════════════════════════════
   Дентал Порт — сайт 2026
   Светлая «тихая гавань»: костяной фон, графитовый текст, глубокий
   зелёный из логотипа и один яркий акцент — лайм для цифр и призывов.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f4f2ed;
  --bg-2: #ebe8e1;
  --paper: #ffffff;
  --ink: #0e1513;
  --ink-2: #47514d;
  --ink-3: #7b8581;
  --line: rgba(14, 21, 19, 0.11);
  --line-2: rgba(14, 21, 19, 0.2);
  --brand: #1d4d43;
  --brand-2: #2c7563;
  --mint: #d3eee3;
  --mint-2: #eaf6f1;
  --lime: #dff56a;
  --lime-ink: #2b3405;
  --danger: #b4452a;

  --f-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --r-s: 14px;
  --r: 24px;
  --r-l: 36px;
  --r-xl: 48px;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/* Атрибуты width/height у <img> задают высоту сильнее, чем aspect-ratio:
   без height:auto картинка рисуется в натуральный размер. */
img {
  height: auto;
}
/* Атрибут hidden должен побеждать display у компонентов (плашка cookie). */
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--lime);
  color: var(--lime-ink);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Каркас ───────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  position: relative;
  padding: clamp(88px, 11vw, 168px) 0;
}
.section--tight {
  padding: clamp(64px, 8vw, 112px) 0;
}

/* ── Типографика ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px var(--mint);
}
.h-xl,
.h-l,
.h-m {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.h-xl {
  font-size: clamp(44px, 7.2vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.052em;
}
.h-l {
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.h-m {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.lead {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 14px;
  line-height: 1.5;
}

/* строки заголовка под маской для анимации */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* ── Кнопки ──────────────────────────────────────────────────────── */
.btn {
  --bh: 60px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--bh);
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(29, 77, 67, 0.6);
}
.btn--primary::before {
  background: var(--ink);
}
.btn--lime {
  background: var(--lime);
  color: var(--lime-ink);
}
.btn--lime::before {
  background: var(--ink);
}
.btn--lime:hover {
  color: var(--lime);
}
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost::before {
  background: var(--ink);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--ink);
}
.btn--small {
  --bh: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s, gap 0.3s var(--ease);
}
.link:hover {
  color: var(--brand-2);
  gap: 12px;
}

/* ── Прелоадер ───────────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
}
.preloader__mark {
  width: 96px;
  height: 96px;
}
.preloader__mark path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.no-js .preloader,
.is-loaded .preloader {
  display: none;
}

/* ── Шапка ───────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: transform 0.5s var(--ease);
}
.header.is-hidden {
  transform: translateY(-110%);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
  margin: 10px auto 0;
  width: calc(100% - 20px);
  max-width: calc(var(--max) - 40px);
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(244, 242, 237, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px -24px rgba(14, 21, 19, 0.35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  width: 46px;
  height: 54px;
  overflow: hidden;
  position: relative;
}
.logo__mark img {
  position: absolute;
  width: 100px;
  max-width: none;
  left: -27px;
  top: 0;
}
.logo__word {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo__word small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav {
  display: none;
  margin: 0 auto;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(14, 21, 19, 0.06);
}
.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header__phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.header__phone b {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.header__phone span {
  font-size: 12px;
  color: var(--ink-3);
}
.header__phone .open-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #34b27b;
  box-shadow: 0 0 0 3px rgba(52, 178, 123, 0.2);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 0.25s, border-color 0.25s;
}
.icon-btn:hover {
  background: #fff;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.header .btn--primary {
  display: none;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger span + span {
  margin-top: 5px;
}
.menu-open .burger span:nth-child(1) {
  transform: translateY(3.3px) rotate(45deg);
}
.menu-open .burger span:nth-child(2) {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 40px) var(--pad) 32px;
  background: var(--bg);
  clip-path: circle(0% at calc(100% - 44px) 48px);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - 44px) 48px);
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  padding: 10px 0;
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__foot {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .header__phone {
    display: flex;
  }
  .header .btn--primary {
    display: inline-flex;
  }
}
@media (min-width: 1180px) {
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .header__tg {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header) + 56px) 0 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(211, 238, 227, 0.95), rgba(211, 238, 227, 0) 70%),
    radial-gradient(40% 40% at 12% 90%, rgba(223, 245, 106, 0.28), rgba(223, 245, 106, 0) 70%),
    var(--bg);
}
.hero__grid {
  position: relative;
  flex: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero__text {
  position: relative;
  z-index: 2;
}
.hero__title {
  margin-top: 22px;
}
.hero__lead {
  margin-top: 26px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__note svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-2);
}
.hero__stage {
  position: relative;
  height: min(62vh, 620px);
  min-height: 340px;
}
#tooth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__fallback {
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--mint) 60%, rgba(211, 238, 227, 0) 72%);
  filter: blur(2px);
}
.has-webgl .hero__fallback {
  display: none;
}
.hero__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -24px rgba(14, 21, 19, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.25;
}
.hero__chip b {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.hero__chip i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
}
.hero__chip--a {
  top: 10%;
  right: 4%;
}
.hero__chip--b {
  bottom: 12%;
  left: 0;
}
.hero__chip--b i {
  background: var(--mint);
  color: var(--brand);
}
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}
.stat b {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat > span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
}
.scroll-cue {
  display: none;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
  }
  .hero__stage {
    height: 100%;
    min-height: 560px;
    margin-right: calc(var(--pad) * -1);
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .scroll-cue {
    display: flex;
    position: absolute;
    right: var(--pad);
    bottom: 132px;
    z-index: 3;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-3);
    writing-mode: vertical-rl;
  }
  .scroll-cue::after {
    content: '';
    width: 1px;
    height: 56px;
    background: linear-gradient(var(--ink-3), transparent);
    animation: cue 2.4s var(--ease) infinite;
  }
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── Бегущая строка ──────────────────────────────────────────────── */
.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__item em {
  font-style: normal;
  color: var(--brand-2);
}
.marquee__item::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-left: 28px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(43, 52, 5, 0.25);
}

/* ── Общие заголовки секций ─────────────────────────────────────── */
.sec-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-head .lead {
  max-width: 44ch;
}
@media (min-width: 980px) {
  .sec-head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 64px;
  }
  .sec-head .lead {
    justify-self: end;
  }
}
.sec-num {
  display: block;
  margin-bottom: 20px;
}

/* ── Честная цена ───────────────────────────────────────────────── */
.honest {
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.honest__grid {
  display: grid;
  gap: 48px;
}
.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 22px;
  padding: 28px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--line);
}
.step__n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.step h3 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}
.receipt-wrap {
  position: relative;
  display: grid;
  place-items: start center;
}
.receipt {
  position: relative;
  width: min(100%, 440px);
  padding: 34px 32px 44px;
  background: #fff;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 40px 80px -40px rgba(14, 21, 19, 0.45), 0 1px 0 var(--line);
  font-size: 15px;
  transform: rotate(-1.4deg);
}
.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: radial-gradient(circle at 10px -4px, transparent 12px, #fff 12.5px) 0 0 / 20px 14px repeat-x;
  filter: drop-shadow(0 6px 6px rgba(14, 21, 19, 0.06));
}
.receipt__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-2);
}
.receipt__head b {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.receipt__head span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.receipt__stamp {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--brand-2);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-14deg);
  opacity: 0.85;
}
.receipt__rows {
  margin: 0;
  padding: 10px 0;
}
.receipt__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.receipt__row dt {
  flex: 1;
  min-width: 0;
}
.receipt__row dd {
  margin: 0;
  font-weight: 500;
}
.receipt__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  font-size: 15px;
}
.receipt__total b {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.receipt__foot {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint-2);
  color: var(--brand);
  font-size: 13px;
  line-height: 1.45;
}
@media (min-width: 980px) {
  .honest__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .receipt-wrap {
    position: sticky;
    top: 140px;
  }
}

/* ── Гарантии ───────────────────────────────────────────────────── */
.guarantee {
  display: grid;
  gap: 1px;
  margin-top: clamp(56px, 7vw, 96px);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.guarantee > div {
  padding: 32px;
  background: var(--bg);
}
.guarantee b {
  display: block;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.guarantee p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 34ch;
}
@media (min-width: 820px) {
  .guarantee {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Видео-знакомство ───────────────────────────────────────────── */
.film {
  position: relative;
  height: 100svh;
  min-height: 560px;
}
.film__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(12% 14% 12% 14% round 40px);
  will-change: clip-path;
}
.film__frame video,
.film__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
.film__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 21, 19, 0) 25%, rgba(14, 21, 19, 0.35) 55%, rgba(14, 21, 19, 0.78));
  opacity: 0;
}
.film__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 6vh, 64px);
  color: #fff;
  opacity: 0;
  display: grid;
  gap: 18px;
}
.film__cap .h-l {
  color: #fff;
  text-shadow: 0 2px 30px rgba(14, 21, 19, 0.35);
  max-width: 18ch;
}
.film__cap .serif {
  color: var(--lime);
}
.film__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.pill--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.pill--mint {
  background: var(--mint);
  color: var(--brand);
}
.pill--lime {
  background: var(--lime);
  color: var(--lime-ink);
}
.pill--line {
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}

/* ── Врачи ──────────────────────────────────────────────────────── */
.doctors {
  overflow: hidden;
}
.doc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 8px;
  margin: 0 calc(var(--pad) * -1);
  scrollbar-width: none;
}
.doc-track::-webkit-scrollbar {
  display: none;
}
.doc {
  position: relative;
  flex: none;
  width: min(82vw, 380px);
  scroll-snap-align: start;
  cursor: pointer;
}
.doc__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-2);
}
.doc__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.1s var(--ease);
}
.doc:hover .doc__photo img {
  transform: scale(1.05);
}
.doc__badge {
  position: absolute;
  left: 16px;
  top: 16px;
}
.doc__open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 24px -12px rgba(14, 21, 19, 0.45);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.doc:hover .doc__open {
  transform: rotate(45deg);
  background: var(--lime);
}
.doc__open svg {
  width: 20px;
  height: 20px;
}
.doc__name {
  margin: 20px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.doc__role {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}
.doc__exp {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.doc__exp b {
  display: block;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
/* Карточка врача: нажатие открывает шторку (кнопка-подложка на всю
   карточку), «Подробнее о враче» под фото ведёт на страницу врача. */
.doc__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--r-l);
}
.doc__hit:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
}
.doc__more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s, border-color 0.3s;
}
.doc__more svg {
  width: 16px;
  height: 16px;
}
.doc__more:hover {
  background: var(--lime);
  border-color: var(--lime);
}
.doc__more:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.doc .doc__name {
  margin-top: 14px;
}
.doc-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.doc-progress {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.doc-progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--ink);
  transform-origin: left;
}
/* Команда: администраторы и ассистент. Карточки того же размера и вида,
   что у врачей (фото 4:5, те же радиусы и подписи); по нажатию фото
   открывается целиком. На главной — лента со свайпом, как у врачей,
   на странице врачей — та же сетка, что у карточек врачей. */
.team {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.team__title {
  max-width: 24ch;
  margin: 0 0 clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.team__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .team__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.team__grid--track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 8px;
  margin: 0 calc(var(--pad) * -1);
  scrollbar-width: none;
}
.team__grid--track::-webkit-scrollbar {
  display: none;
}
.team__grid--track .member {
  flex: none;
  width: min(82vw, 380px);
  scroll-snap-align: start;
}
@media (min-width: 980px) {
  .team__grid--track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .team__grid--track .member {
    width: auto;
  }
}
.member {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.member__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-2);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 1.1s var(--ease);
}
.member:hover .member__photo img {
  transform: scale(1.05);
}
.member__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 24px -12px rgba(14, 21, 19, 0.45);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.member:hover .member__zoom {
  transform: scale(1.08);
  background: var(--lime);
}
.member__zoom svg {
  width: 20px;
  height: 20px;
}
.member:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
  border-radius: var(--r-l);
}
.member__cap {
  display: block;
}
.member__cap b {
  display: block;
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.member__cap span {
  display: block;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 16px;
}
/* На странице врачей на телефоне карточки врачей — строки с фото 116 px:
   команда повторяет тот же вид. */
@media (max-width: 559px) {
  .team__grid:not(.team__grid--track) .member {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .team__grid:not(.team__grid--track) .member__photo {
    border-radius: var(--r);
  }
  .team__grid:not(.team__grid--track) .member__zoom {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
  }
  .team__grid:not(.team__grid--track) .member__zoom svg {
    width: 14px;
    height: 14px;
  }
  .team__grid:not(.team__grid--track) .member__cap b {
    margin-top: 0;
    font-size: 21px;
  }
}
@media (min-width: 980px) {
  .doctors .doc-track {
    overflow: visible;
    scroll-snap-type: none;
    margin: 0;
    padding: 0;
    width: max-content;
  }
  .doc {
    width: 400px;
  }
  .doc-nav {
    display: none;
  }
}

/* ── Шторка врача ───────────────────────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
}
.drawer.is-open {
  visibility: visible;
}
.drawer__shade {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 19, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.drawer.is-open .drawer__shade {
  opacity: 1;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(104%);
  transition: transform 0.7s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__close {
  position: sticky;
  top: 16px;
  align-self: flex-end;
  margin: 16px 16px -64px 0;
  z-index: 2;
}
.drawer__top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: end;
  padding: 28px 28px 0;
}
.drawer__top img {
  width: 140px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r);
}
.drawer__body {
  padding: 28px;
  display: grid;
  gap: 26px;
}
.drawer__body h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.drawer__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.drawer__body li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.drawer__body li.plain {
  grid-template-columns: 1fr;
}
.drawer__body li span:first-child {
  color: var(--brand-2);
  font-weight: 500;
}
.drawer__cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 18px 28px 24px;
  background: linear-gradient(rgba(244, 242, 237, 0), var(--bg) 30%);
}

/* ── Услуги ─────────────────────────────────────────────────────── */
.services {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  margin: 0 10px;
}
.services .h-l,
.services .h-m {
  color: #fff;
}
.services .lead {
  color: rgba(255, 255, 255, 0.68);
}
.services .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.services .eyebrow::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(223, 245, 106, 0.18);
}
.services .serif {
  color: var(--lime);
}
.svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.svc {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.svc button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 26px 0;
  text-align: left;
  overflow: hidden;
}
.svc__name {
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: transform 0.6s var(--ease), color 0.3s;
}
.svc__note {
  grid-column: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.svc__price {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: right;
}
.svc__price s {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}
.svc__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: none;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.svc__go svg {
  width: 18px;
  height: 18px;
}
.svc button:hover .svc__name {
  transform: translateX(14px);
  color: var(--lime);
}
.svc button:hover .svc__go {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
  transform: rotate(-45deg);
}
.svc__tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(-4px);
}
.svc-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}
.svc-preview img.is-on {
  opacity: 1;
}
.services__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
}
.services__foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
}
.services .link:hover {
  color: var(--lime);
}
@media (max-width: 640px) {
  .svc button {
    grid-template-columns: 1fr;
  }
  .svc__price {
    grid-row: auto;
    grid-column: 1;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── До и после ─────────────────────────────────────────────────── */
.results__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tab {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tab:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.tab[aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.results__grid {
  display: grid;
  gap: 24px;
}
.compare {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-2);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}
.compare__knob svg {
  width: 28px;
  height: 28px;
}
.compare__lbl {
  position: absolute;
  top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__lbl--b {
  left: 18px;
}
.compare__lbl--a {
  right: 18px;
}
.compare input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.case-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
}
.case-info dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.case-info dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-info dd {
  margin: 4px 0 0;
  font-size: 16px;
}
.case-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-doc img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.case-doc b {
  display: block;
  font-weight: 500;
}
.case-doc span {
  font-size: 14px;
  color: var(--ink-2);
}
.works {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.work {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.work img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work:hover img {
  transform: scale(1.04);
}
.work div {
  padding: 18px 20px 20px;
}
.work b {
  display: block;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.work span {
  font-size: 14px;
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .results__grid {
    grid-template-columns: 1.55fr 0.45fr;
  }
  .works {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Клиника ────────────────────────────────────────────────────── */
.clinic {
  background: var(--paper);
  overflow: hidden;
}
.gallery {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 var(--pad);
}
.shot {
  position: relative;
  flex: none;
  width: min(78vw, 520px);
  margin: 0;
}
.shot--wide {
  width: min(88vw, 760px);
}
.shot--tall {
  width: min(62vw, 380px);
}
.shot__img {
  position: relative;
  height: clamp(320px, 56vh, 560px);
  border-radius: var(--r-l);
  overflow: hidden;
}
.shot__img img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.shot figcaption b {
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 979px) {
  .clinic__scroller {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .clinic__scroller::-webkit-scrollbar {
    display: none;
  }
  .shot {
    scroll-snap-align: center;
  }
}
.facts {
  display: grid;
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
}
.fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--r);
  background: var(--bg);
}
.fact svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--brand-2);
}
.fact b {
  display: block;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.fact span {
  font-size: 15px;
  color: var(--ink-2);
}
@media (min-width: 820px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Дети ───────────────────────────────────────────────────────── */
.kids__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.kids__media {
  position: relative;
}
.kids__video {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 200px 200px var(--r-l) var(--r-l);
  overflow: hidden;
  background: var(--bg-2);
}
.kids__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kids__sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  font-weight: 600;
  line-height: 1.05;
}
.kids__sticker--age {
  right: -8px;
  top: 12%;
  width: 124px;
  height: 124px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 15px;
}
.kids__sticker--age b {
  display: block;
  font-size: 36px;
  letter-spacing: -0.04em;
}
.kids__sticker--corner {
  left: -10px;
  bottom: -30px;
  width: 150px;
  height: 190px;
  border-radius: 90px;
  overflow: hidden;
  border: 6px solid var(--bg);
}
.kids__sticker--corner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kids__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.kids__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}
.kids__list li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4d43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.kids__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 980px) {
  .kids__grid {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
  }
}

/* ── Акции ──────────────────────────────────────────────────────── */
.offers {
  display: grid;
  gap: 16px;
}
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 32px;
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s var(--ease);
}
.offer:hover {
  box-shadow: 0 30px 60px -36px rgba(14, 21, 19, 0.45);
}
.offer--main {
  background: var(--lime);
  border-color: transparent;
  color: var(--lime-ink);
}
.offer__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.offer:hover .offer__glow {
  opacity: 1;
}
.offer__sum {
  margin-top: auto;
  font-size: clamp(56px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
}
.offer__was {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.7;
}
.offer h3 {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.offer p {
  margin: 8px 0 0;
  font-size: 15px;
  opacity: 0.78;
}
.offer .btn {
  margin-top: 24px;
  align-self: flex-start;
}
.band {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 36px;
  border-radius: var(--r-l);
  background: var(--brand);
  color: #fff;
}
.band b {
  display: block;
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--lime);
}
.band h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}
@media (min-width: 980px) {
  .offers {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .band {
    grid-template-columns: auto 1fr auto;
    gap: 48px;
  }
}

/* ── Отзывы ─────────────────────────────────────────────────────── */
.reviews__grid {
  display: grid;
  gap: 24px;
}
.reviews__frame {
  position: relative;
  height: 640px;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.reviews__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.reviews__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 400;
}
@media (min-width: 980px) {
  .reviews__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
  .reviews__side {
    position: sticky;
    top: 140px;
  }
}

/* ── Вопросы ────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--line-2);
}
.faq__item {
  border-bottom: 1px solid var(--line-2);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.6px;
  margin: -0.8px 0 0 -7px;
  background: var(--ink);
  transition: transform 0.5s var(--ease);
}
.faq__icon::after {
  transform: rotate(90deg);
}
.faq__item.is-open .faq__icon {
  background: var(--lime);
  border-color: var(--lime);
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::after {
  transform: rotate(0);
}
.faq__a {
  height: 0;
  overflow: hidden;
}
.faq__a p {
  margin: 0;
  padding: 0 64px 30px 0;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 70ch;
}
@media (min-width: 980px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
}

/* ── Финальный призыв и контакты ────────────────────────────────── */
.final {
  padding-bottom: 24px;
}
.final__card {
  position: relative;
  display: grid;
  gap: 40px;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
}
.final__card::before {
  content: '';
  position: absolute;
  right: -20%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint), rgba(211, 238, 227, 0) 70%);
  pointer-events: none;
}
.final__card > * {
  position: relative;
}
.form {
  display: grid;
  gap: 12px;
}
.field {
  position: relative;
}
.field input,
.field select {
  width: 100%;
  height: 64px;
  padding: 22px 20px 8px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-size: 17px;
  outline: none;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.field select {
  padding-top: 20px;
  cursor: pointer;
}
.field label {
  position: absolute;
  left: 20px;
  top: 21px;
  font-size: 17px;
  color: var(--ink-3);
  pointer-events: none;
  transform-origin: left;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 77, 67, 0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field--select label {
  transform: translateY(-12px) scale(0.72);
}
.field--select::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 28px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink-2);
  border-bottom: 1.6px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.field.is-error input {
  border-color: var(--danger);
}
.field__err {
  margin: 6px 4px 0;
  font-size: 13px;
  color: var(--danger);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form .btn {
  width: 100%;
  height: 64px;
}
.form__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-3);
}
.hp {
  position: absolute;
  left: -9999px;
}
.contacts {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.contacts__map {
  min-height: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(0.6) contrast(1.05);
}
.contacts__info {
  display: grid;
  gap: 1px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.contacts__info > div {
  padding: 26px 28px;
  background: var(--paper);
}
.contacts__info h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contacts__info p {
  margin: 0;
  font-size: 17px;
}
.contacts__phone {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
@media (min-width: 980px) {
  .final__card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 72px;
  }
  .contacts {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* ── Подвал ─────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 120px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer__big {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(56px, 12vw, 200px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.85;
  color: var(--ink);
  white-space: nowrap;
}
.footer__grid {
  display: grid;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}
.footer__grid a:hover {
  color: var(--ink);
}
.footer__warn {
  margin-top: 40px;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer {
    padding-bottom: 56px;
  }
}

/* ── Нижняя панель на телефоне ──────────────────────────────────── */
.dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(14, 21, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(14, 21, 19, 0.5);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease);
}
.dock.is-on {
  transform: none;
}
.dock a,
.dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.dock__call {
  background: rgba(255, 255, 255, 0.12);
}
.dock__book {
  background: var(--lime);
  color: var(--lime-ink) !important;
}
.dock__tg {
  width: 52px;
  background: #229ed9;
}
.dock svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 900px) {
  .dock {
    display: none;
  }
}

/* ── Окно записи (квиз) ─────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
}
.modal.is-open {
  visibility: visible;
}
.modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(14, 21, 19, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.modal.is-open .modal__shade {
  opacity: 1;
}
.modal__box {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-l);
  background: var(--bg);
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.modal.is-open .modal__box {
  transform: none;
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.quiz__bar {
  display: flex;
  gap: 6px;
  margin: 0 56px 26px 0;
}
.quiz__bar i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.quiz__bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.quiz__bar i.is-done::after {
  transform: scaleX(1);
}
.quiz__step {
  display: none;
}
.quiz__step.is-active {
  display: block;
  animation: stepIn 0.6s var(--ease);
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.quiz__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.quiz__sub {
  margin: 0 0 24px;
  color: var(--ink-2);
}
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color 0.25s, transform 0.4s var(--ease), background-color 0.25s;
}
.option:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.option.is-picked {
  border-color: var(--brand);
  background: var(--mint-2);
}
.option__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 20px;
}
.option small {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-3);
}
.quiz__back {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}
.quiz__back:hover {
  color: var(--ink);
}
.quiz__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.done {
  text-align: center;
  padding: 16px 0 4px;
}
.done__ico {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--lime);
}
.done__ico svg {
  width: 38px;
  height: 38px;
  color: var(--lime-ink);
}

/* ── Курсор ─────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s;
}
.cursor.is-on {
  opacity: 1;
}
.cursor.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: #fff;
}
.cursor.is-drag {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: #fff;
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ── Куки ───────────────────────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  padding: 14px 14px 14px 20px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(14, 21, 19, 0.35);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.cookie a {
  text-decoration: underline;
}
@media (max-width: 899px) {
  .cookie {
    left: 10px;
    right: 10px;
    bottom: 86px;
    max-width: none;
  }
}

/* ── Зерно поверх всего ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  20% { background-position: -40px 30px; }
  40% { background-position: 30px -50px; }
  60% { background-position: -60px -20px; }
  80% { background-position: 50px 40px; }
  100% { background-position: 0 0; }
}

/* ── Без движения ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain {
    display: none;
  }
  .film__frame {
    clip-path: none;
  }
  .film__shade,
  .film__cap {
    opacity: 1;
  }
}

/* ── Телефон: уточнения ─────────────────────────────────────────── */
@media (max-width: 719px) {
  .header__bar {
    gap: 12px;
    padding: 0 8px 0 14px;
    height: 64px;
  }
  .header__tg {
    display: none;
  }
  .logo__word small {
    display: none;
  }
  .logo__mark {
    transform: scale(0.85);
    transform-origin: left center;
    margin-right: -6px;
  }
  .step {
    grid-template-columns: 48px 1fr;
    gap: 14px 16px;
    padding: 22px;
  }
  .step__n {
    grid-row: auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }
  .step h3 {
    align-self: center;
    margin: 0;
    font-size: 19px;
  }
  .step p {
    grid-column: 1 / -1;
  }
  .results__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--pad) * -1) 20px;
    padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .results__tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: none;
  }
  .receipt {
    padding: 28px 22px 36px;
  }
}
.doc-track {
  scroll-padding-inline: var(--pad);
}
@media (max-width: 979px) {
  .kids__media {
    margin: 0 10px 48px;
  }
  .kids__sticker--corner {
    width: 112px;
    height: 144px;
    bottom: -40px;
  }
  .kids__sticker--age {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }
  .kids__sticker--age b {
    font-size: 28px;
  }
}

/* ═══ Обновление 22.09 ═══════════════════════════════════════════ */

/* Логотип — отдельный файл знака: обрезка картинки через absolute
   в Safari показывала одну мачту. */
.logo__mark {
  width: auto;
  height: 52px;
  overflow: visible;
}
.logo__mark img {
  position: static;
  width: auto;
  height: 100%;
  max-width: none;
}
@media (max-width: 719px) {
  .logo__mark {
    height: 44px;
    transform: none;
    margin-right: 0;
  }
}

/* Бургер: полоски в столбик по центру круга */
.burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span + span {
  margin-top: 0;
}
.menu-open .burger span:nth-child(1) {
  transform: translateY(3.3px) rotate(45deg);
}
.menu-open .burger span:nth-child(2) {
  transform: translateY(-3.3px) rotate(-45deg);
}
@media (min-width: 1180px) {
  .burger {
    display: none;
  }
}

/* Крупные заголовки на телефоне — без выхода за край */
@media (max-width: 719px) {
  .h-xl {
    font-size: clamp(34px, 9.6vw, 44px);
    letter-spacing: -0.045em;
  }
  .h-l {
    font-size: clamp(32px, 8.6vw, 40px);
  }
  .h-xl,
  .h-l {
    overflow-wrap: break-word;
  }
  .hero {
    padding-top: calc(var(--header) + 36px);
  }
  .hero .eyebrow {
    font-size: 12px;
  }
}

/* Плашка cookie — компактная, внизу; над нижней панелью, когда та видна */
.cookie {
  z-index: 45;
}
@media (max-width: 899px) {
  .cookie {
    bottom: 10px;
    padding: 10px 10px 10px 16px;
    gap: 12px;
    font-size: 12.5px;
  }
  .cookie .btn {
    --bh: 40px;
    padding: 0 16px;
  }
  .dock-on .cookie {
    bottom: 84px;
  }
}

/* Согласие: крупная зона нажатия, своя галочка */
.consent {
  position: relative;
  cursor: pointer;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  background: #fff center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.consent input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.consent input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.consent.is-error input {
  border-color: var(--danger);
}

/* Квиз: нечётная последняя опция — во всю ширину */
.option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ── Семейная стоматология ──────────────────────────────────────── */
.family {
  background: var(--mint-2);
}
.family__grid {
  display: grid;
  gap: 16px;
}
.family__photo {
  position: relative;
  margin: 0;
  min-height: 360px;
  border-radius: var(--r-l);
  overflow: hidden;
}
.family__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.family__photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(14, 21, 19, 0.35);
}
.family__cards {
  display: grid;
  gap: 12px;
}
.fcard {
  padding: 26px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.fcard__n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}
.fcard h3 {
  margin: 16px 0 6px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.fcard p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.family__prices {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
}
.family__label {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.family__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.family__row > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
}
.family__row > div.is-hot {
  background: var(--lime);
}
.family__row b {
  display: block;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.family__row span {
  font-size: 13px;
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .family__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .family__cards {
    grid-template-columns: 1fr 1fr;
  }
  .family__prices {
    grid-template-columns: auto 1fr auto;
    gap: 32px;
  }
  .family__row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ═══ Внутренние страницы ═══════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: calc(var(--header) + 64px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(55% 60% at 85% 20%, rgba(211, 238, 227, 0.9), rgba(211, 238, 227, 0) 70%), var(--bg);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--ink-3);
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs span[aria-hidden] {
  opacity: 0.5;
}
.page-hero .lead {
  margin-top: 24px;
}

/* ── Страница врачей ─────────────────────────────────────────────── */
.docs-grid {
  display: grid;
  gap: 20px;
}
.docs-grid .doc {
  width: auto;
}
.docs-grid a.doc {
  display: block;
}
@media (min-width: 720px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .docs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.doc__dirs {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc__dirs li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
}
.how {
  display: grid;
  gap: 12px;
}
.how__item {
  padding: 28px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.how__item b {
  display: block;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--brand);
}
.how__item h3 {
  margin: 18px 0 6px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.how__item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
@media (min-width: 900px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Страница врача ──────────────────────────────────────────────── */
.dr-hero {
  display: grid;
  gap: 36px;
  align-items: end;
}
.dr-hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
}
.dr-hero__media img,
.dr-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.dr-hero__media video {
  object-position: center;
}
.dr-hero__media .pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
}
.dr-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}
.dr-facts > div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.6);
}
.dr-facts b {
  display: block;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.dr-facts span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
@media (min-width: 980px) {
  .dr-hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
  }
  .dr-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dirs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.dirs li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
}
.dirs b {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.dirs span {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 60ch;
}
.dirs i {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-style: normal;
  font-size: 19px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .dirs li {
    grid-template-columns: 1fr;
  }
  .dirs i {
    grid-column: 1;
    grid-row: auto;
  }
}
.two-col {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .two-col {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
  }
}
.edu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.edu li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.edu li span:first-child {
  color: var(--brand-2);
  font-weight: 500;
}
.edu-more {
  margin-top: 16px;
}
.edu-more summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding: 12px 0;
}
.edu-more summary::-webkit-details-marker {
  display: none;
}
.edu-more summary::after {
  content: ' +';
  color: var(--brand-2);
}
.edu-more[open] summary::after {
  content: ' −';
}
.symptoms {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.symptoms li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-s);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 17px;
}
.symptoms li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px var(--mint);
}
@media (min-width: 720px) {
  .symptoms {
    grid-template-columns: 1fr 1fr;
  }
}
.dr-cases {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .dr-cases {
    grid-template-columns: repeat(2, 1fr);
  }
}
.other-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.other-docs a {
  display: block;
}
.other-docs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r);
  transition: transform 0.8s var(--ease);
}
.other-docs a:hover img {
  transform: scale(1.03);
}
.other-docs b {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
}
.other-docs span {
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Контакты ───────────────────────────────────────────────────── */
.ct-grid {
  display: grid;
  gap: 16px;
}
.ct-card {
  padding: 30px;
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
}
.ct-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ct-card p {
  margin: 0;
  font-size: 18px;
}
.ct-big {
  display: block;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hours {
  margin: 0;
  display: grid;
  gap: 2px;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.hours div.is-today {
  font-weight: 600;
  color: var(--brand);
}
.hours dt,
.hours dd {
  margin: 0;
}
.ct-map {
  position: relative;
  min-height: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
}
.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.route {
  counter-reset: r;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  font-size: 17px;
}
.route li::before {
  content: counter(r);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 600;
}
.route b {
  display: block;
  font-weight: 500;
}
.route span {
  color: var(--ink-2);
  font-size: 15px;
}
.ct-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ct-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
@media (min-width: 980px) {
  .ct-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .ct-grid .ct-card--wide {
    grid-column: span 1;
  }
}

/* Колонки не распираются длинными кнопками */
.hero__grid,
.kids__grid,
.honest__grid,
.results__grid,
.two-col,
.dr-hero,
.final__card,
.reviews__grid,
.faq-grid,
.family__grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .kids__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .honest__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .results__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.45fr); }
  .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .dr-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .final__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .reviews__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .family__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (max-width: 719px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    height: auto;
    min-height: var(--bh);
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero__cta .btn,
  .kids__grid .hero__cta .btn {
    width: 100%;
  }
  .hero__note {
    align-items: flex-start;
  }
}

/* Заголовки в узкой колонке (страницы врачей, контакты) */
.two-col .h-l,
.faq-grid .h-l {
  font-size: clamp(32px, 3.8vw, 58px);
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ── Правки по замечаниям: компактные фото на телефоне ──────────── */

/* Карточки врачей: на телефоне — строка с небольшим фото,
   дальше 2–4 колонки. Фото не растягиваем больше исходника (560 px). */
@media (max-width: 559px) {
  .docs-grid a.doc,
  .docs-grid article.doc {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    align-content: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .docs-grid .doc__photo {
    grid-column: 1;
    grid-row: 1 / span 4;
    border-radius: var(--r);
  }
  .docs-grid .doc__badge {
    left: 8px;
    top: 8px;
    font-size: 10px;
    padding: 4px 8px;
  }
  .docs-grid .doc__open {
    display: none;
  }
  .docs-grid .doc__name {
    grid-column: 2;
    margin-top: 0;
    font-size: 21px;
  }
  .docs-grid .doc__role,
  .docs-grid .doc__dirs,
  .docs-grid .doc__exp {
    grid-column: 2;
    margin-top: 0;
  }
  .docs-grid .doc__dirs {
    gap: 4px;
  }
  .docs-grid .doc__dirs li {
    font-size: 11px;
    padding: 4px 9px;
  }
  /* на узком экране хватает двух направлений: остальное — на странице врача */
  .docs-grid .doc__dirs li:nth-child(n + 3) {
    display: none;
  }
  .docs-grid .doc__exp > div:nth-child(2) {
    display: none;
  }
  .docs-grid .doc__exp {
    gap: 14px;
    padding-top: 10px;
  }
}
@media (min-width: 560px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .docs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .docs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.docs-grid .doc__photo img {
  object-position: center 18%;
}

/* Видео на странице врача снято горизонтально: в вертикальной рамке
   оно обрезалось и «растягивалось». Даём широкую рамку. */
.dr-hero__media--wide {
  aspect-ratio: 16 / 10;
  max-height: none;
}
@media (min-width: 980px) {
  /* auto-margin у grid-элемента схлопывает ширину: задаём её явно */
  .dr-hero__media {
    width: 100%;
    max-width: 560px;
    justify-self: end;
  }
  .dr-hero__media--wide {
    max-width: 620px;
  }
}

/* Работы врачей: компактные карточки, фото открывается по нажатию */
.work {
  cursor: zoom-in;
}
.work img {
  aspect-ratio: 3 / 2;
}
@media (max-width: 719px) {
  .works {
    gap: 12px;
  }
  .work {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
  }
  .work img {
    height: 100%;
    aspect-ratio: 1;
  }
  .work div {
    padding: 14px 16px;
  }
  .work b {
    font-size: 15px;
  }
  .work span {
    font-size: 13px;
  }
}

/* Просмотр фото во весь экран */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 16px;
  background: rgba(10, 16, 14, 0.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  cursor: zoom-out;
}
.zoom.is-on {
  opacity: 1;
  pointer-events: auto;
}
.zoom img {
  align-self: center;
  justify-self: center;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
}
.zoom__cap {
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 8px;
}
.zoom__cap b {
  display: block;
  font-weight: 500;
  font-size: 16px;
}
.zoom__cap span {
  color: rgba(255, 255, 255, 0.65);
}
.zoom__close {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

/* Нажатия на телефоне: без задержки двойного тапа */
button,
a,
label,
input,
select {
  touch-action: manipulation;
}
.cookie {
  touch-action: manipulation;
}

/* Пока открыт снимок — нижняя панель не мешает */
.zoom-on .dock,
.zoom-on .cookie {
  display: none;
}

/* ── Страницы услуг (имплантация, брекеты) ──────────────────────── */
.svc-figure {
  margin: 20px 0 0;
  min-height: clamp(280px, 48vw, 560px);
}
.svc-team {
  display: grid;
  gap: 20px;
  align-items: start;
}
.other-docs--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .svc-team {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
  }
}
/* Строки прайса на главной, которые ведут на страницу услуги */
.svc > a {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 26px 0;
  text-align: left;
  overflow: hidden;
  color: inherit;
}
.svc > a:hover .svc__name {
  transform: translateX(14px);
  color: var(--lime);
}
.svc > a:hover .svc__go {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
}
@media (max-width: 640px) {
  .svc > a {
    grid-template-columns: 1fr;
  }
}
.svc__tag--line {
  background: none;
  color: var(--lime);
  border: 1px solid rgba(223, 245, 106, 0.5);
}

/* Подвал: пять колонок ссылок */
@media (min-width: 820px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1180px) {
  .footer__grid {
    grid-template-columns: 1.1fr 1.1fr 1fr 1fr 1.2fr;
  }
}

/* ══ Разделы: детская, ортодонтия, портфолио, блог ════════════════ */

/* Несколько коротких прайсов рядом */
.pgroups {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .pgroups {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
  }
}
.pgroup h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dirs--compact li {
  padding: 14px 0;
}
.dirs--compact b {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.dirs--compact span {
  font-size: 14px;
}
.dirs--compact i {
  font-size: 17px;
}
@media (max-width: 640px) {
  .dirs--compact li {
    grid-template-columns: 1fr auto;
  }
  .dirs--compact i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Детская: по возрасту */
.ages {
  display: grid;
  gap: 16px;
}
@media (min-width: 820px) {
  .ages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.age {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
}
.age .pill {
  align-self: flex-start;
}
.age h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.age p {
  margin: 0;
  color: var(--ink-2);
}
.age ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.age li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}
.age li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}
.age__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.age__foot span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.age__foot b {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 15px;
}

/* Детская: «как бывает — как у нас» */
.myths {
  display: grid;
  gap: 12px;
}
@media (min-width: 820px) {
  .myths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .myths {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.myth {
  padding: 24px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.myth s {
  display: block;
  color: var(--ink-3);
  font-size: 15px;
  text-decoration-color: var(--danger);
}
.myth p {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Врач раздела: фото + текст */
.doc-feature {
  display: grid;
  gap: 32px;
  align-items: center;
}
.doc-feature .family__photo {
  margin: 0;
  min-height: clamp(300px, 42vw, 520px);
}
@media (min-width: 980px) {
  .doc-feature {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

/* Ортодонтия: методы-карточки */
.methods {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.method {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 26px 72px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.method:hover {
  border-color: var(--brand-2);
  transform: translateY(-3px);
}
.method__price {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-2);
}
.method h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.method p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.method__go {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s;
}
.method:hover .method__go {
  background: var(--lime);
  border-color: var(--lime);
}
.method__go svg {
  width: 16px;
  height: 16px;
}

/* Портфолио */
.pf-tabs {
  position: sticky;
  top: calc(var(--header) + 8px);
  z-index: 5;
  padding: 8px 0;
  background: var(--bg);
}
@media (max-width: 719px) {
  .pf-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1) 24px;
    padding: 8px var(--pad);
  }
  .pf-tabs::-webkit-scrollbar {
    display: none;
  }
  .pf-tabs .tab {
    flex: none;
  }
}
.pf-list {
  display: grid;
  gap: 20px;
}
.pf-case {
  display: grid;
  gap: 24px;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: var(--r-l);
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 80px);
}
.pf-case[hidden] {
  display: none;
}
@media (min-width: 980px) {
  .pf-case {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
}
.pf-case__media {
  display: grid;
  gap: 10px;
}
.pf-case__media .compare {
  border-radius: var(--r);
}
.pf-case__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.pf-case__info .pill {
  align-self: flex-start;
}
.pf-case__info .h-m {
  margin: 0;
}
.pf-case .case-doc {
  color: inherit;
}
.pf-case--text {
  background: var(--paper);
}
@media (min-width: 980px) {
  .pf-case--text {
    grid-template-columns: 1fr 1.2fr;
  }
}
.pf-dl {
  margin: 0;
  display: grid;
  gap: 14px;
}
.pf-dl dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pf-dl dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.pf-shots {
  display: grid;
  gap: 10px;
}
.pf-shots--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-shots--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pf-shots--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .pf-shots--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pf-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
}
.pf-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.pf-shot--big img {
  aspect-ratio: auto;
  max-height: 560px;
}
.pf-shot:hover img {
  transform: scale(1.04);
}
.pf-shot:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.pf-shot__lbl {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

/* Блог: карточки статей */
.posts {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}
.post-card .pill {
  align-self: flex-start;
}
.post-card__img {
  display: block;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--bg-2);
}
.post-card__img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.post-card:hover .post-card__img img {
  transform: scale(1.04);
}
.post-card h2 {
  margin: 0;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.post-card:hover h2 {
  color: var(--brand-2);
}
.post-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.post-card__meta {
  font-size: 13px;
  color: var(--ink-3);
}

/* Блог: статья */
.article__head .h-l {
  max-width: 22ch;
}
.article__meta {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: 15px;
}
.article__grid {
  display: grid;
  gap: 40px;
  padding-bottom: clamp(56px, 8vw, 110px);
}
@media (min-width: 1100px) {
  .article__grid {
    grid-template-columns: 260px minmax(0, 720px);
    gap: 72px;
  }
}
.article__toc {
  display: none;
}
@media (min-width: 1100px) {
  .article__toc {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    position: sticky;
    top: calc(var(--header) + 24px);
  }
}
.article__toc b {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line-2);
}
.article__toc a {
  display: block;
  padding: 6px 0 6px 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.article__toc a:hover {
  color: var(--ink);
}
.article__toc .btn {
  align-self: flex-start;
}
.prose {
  font-size: 18px;
  line-height: 1.65;
}
.prose > .lead {
  margin: 0 0 32px;
  font-size: clamp(19px, 1.6vw, 22px);
}
.prose section {
  scroll-margin-top: calc(var(--header) + 24px);
}
.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.prose p {
  margin: 0 0 16px;
}
.prose .checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.prose .checks li {
  position: relative;
  padding-left: 32px;
}
.prose .checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4d43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose .dirs {
  margin: 8px 0 20px;
}
.article__fig {
  margin: 24px 0;
}
.article__fig--cover img {
  width: 100%;
  border-radius: var(--r-l);
}
.article__fig figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.article__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 8px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--mint-2);
  border: 1px solid var(--mint);
}
.article__cta b {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.article__cta span {
  font-size: 15px;
  color: var(--ink-2);
}
.article__fig--cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Меню на ноутбуках 1180–1359 px: без этого кнопка «Записаться» уезжала за край */
@media (min-width: 1180px) and (max-width: 1359px) {
  .nav {
    gap: 0;
  }
  .nav a {
    padding: 10px 10px;
  }
}

/* Пять врачей: на широком экране три в ряд (3 + 2), команда — тем же
   размером карточек */
@media (min-width: 1180px) {
  .docs-grid,
  .team__grid:not(.team__grid--track) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .docs-grid .doc__more {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
    padding: 6px 12px;
    font-size: 13px;
  }
}
.other-docs:not(.other-docs--2) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .other-docs:not(.other-docs--2) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ══ Услуги: карточки, хаб, полный прайс ══════════════════════════ */
.svc-cards {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .svc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .svc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 26px 26px 70px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.svc-card:hover {
  border-color: var(--brand-2);
  transform: translateY(-3px);
}
.svc-card__price {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-2);
}
.svc-card h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.svc-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.svc-card__go {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s;
}
.svc-card:hover .svc-card__go {
  background: var(--lime);
  border-color: var(--lime);
}
.svc-card__go svg {
  width: 16px;
  height: 16px;
}
.svc-group__title {
  margin: 0 0 20px;
}
.page-hero .results__tabs .tab,
.price-nav .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.other-docs--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .other-docs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .svc-team--solo {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-team--solo .other-docs--2 {
    max-width: 640px;
  }
}

/* Полный прайс */
.price-search {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}
.price-search input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
}
.price-search input:focus {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}
.price-layout {
  display: grid;
  gap: 28px;
}
.price-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.price-nav::-webkit-scrollbar {
  display: none;
}
.price-nav .tab {
  flex: none;
  font-size: 14px;
  padding: 9px 14px;
}
@media (min-width: 1100px) {
  .price-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
  }
  .price-nav {
    position: sticky;
    top: calc(var(--header) + 24px);
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }
  .price-nav .tab {
    border: 0;
    padding: 6px 0;
  }
  .price-nav .tab:hover {
    color: var(--ink);
    background: none;
  }
}
.price-list {
  display: grid;
  gap: 48px;
}
.price-sec {
  scroll-margin-top: calc(var(--header) + 24px);
}
.price-sec[hidden] {
  display: none;
}
.price-sec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.price-sec__head .h-m {
  margin: 0;
}
.price-sec__head p {
  flex-basis: 100%;
  margin: 0;
  font-size: 15px;
}
.price-sec li[hidden] {
  display: none;
}

/* Семейный блок: одна цена на гигиену по акции вместо сетки из четырёх */
.family__row.family__row--one {
  grid-template-columns: minmax(0, 1fr);
}
.family__row--one > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.family__row--one span {
  font-size: 15px;
  color: var(--lime-ink);
}

/* Команда из четырёх человек: на широком экране заголовок слева,
   карточки справа сеткой 2×2 — ряд не рвётся «3 + 1», а размер карточек
   по-прежнему равен карточкам врачей */
@media (min-width: 980px) {
  .team__grid.team__grid--track {
    grid-template-columns: repeat(2, minmax(0, 400px));
  }
}
@media (min-width: 1180px) {
  .team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 40px;
    align-items: start;
  }
  .team .team__title {
    margin: 0;
  }
  /* страница врачей: три равные колонки, как у сетки врачей —
     заголовок в первой, карточки во второй и третьей */
  .team:has(> .team__grid:not(.team__grid--track)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
  }
  .team__grid:not(.team__grid--track) {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
