/* Клиника доктора Уфимцевой — цвета сняты со старого сайта ufimtseva-clinic.ru */
:root {
  --bg: #F1EEE7;          /* их фон */
  --paper: #FAF8F4;       /* своё: светлая подложка карточек */
  --taupe: #AC9C8C;       /* их карточки и плашки */
  --taupe-soft: #C4BAB0;  /* их второстепенные элементы */
  --ink: #140F0B;         /* их текст и подвал */
  --cocoa: #443426;       /* их тёмно-коричневый */
  --muted: #6B5E52;       /* своё: приглушённый текст (контраст 5.6:1 на фоне) */
  --gold: #B69F5E;        /* их золото */
  --gold-deep: #8C7348;   /* своё: золото для тонких линий и цифр на светлом */
  --gold-grad: linear-gradient(82deg, #A58263 0%, #CEB18A 51%, #E3C89D 98%); /* их кнопки */
  --line: rgba(20, 15, 11, .12);
  --line-gold: rgba(140, 115, 72, .45);

  --serif: 'Source Serif 4', 'Times New Roman', serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 18px 40px -24px rgba(20, 15, 11, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 { font: 300 clamp(32px, 4.2vw, 54px)/1.12 var(--serif); letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; }
.show-sm { display: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin-top: 8px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--gold-deep); margin-bottom: 20px; }
.eyebrow--light { color: #D9C08E; }
.ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.stub { background: #F6E3B4; color: var(--cocoa); padding: 0 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), filter .4s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
/* Градиент от внешней границы и без повтора: иначе под прозрачной рамкой проступает полоска с другого края */
.btn--gold {
  background: var(--gold-grad) border-box no-repeat; border: 0; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140, 115, 72, .35), 0 10px 24px -14px rgba(140, 115, 72, .9);
}
.btn--gold:hover { filter: brightness(1.06) saturate(1.05); box-shadow: inset 0 0 0 1px rgba(140, 115, 72, .45), 0 14px 30px -14px rgba(140, 115, 72, 1); }
.btn--line { border-color: rgba(20, 15, 11, .28); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn--line-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:hover .ico--r { transform: translateX(2px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 238, 231, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.header.is-scrolled { transform: translateY(-40px); border-bottom-color: var(--line); }
.header-util {
  height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line);
  transition: opacity .3s var(--ease);
}
.header.is-scrolled .header-util { opacity: 0; }
.util-info { display: flex; align-items: center; gap: 24px; min-width: 0; }
.util-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
a.util-item { transition: color .3s var(--ease); }
a.util-item:hover { color: var(--ink); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.socials { display: flex; gap: 6px; }
.social {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: var(--cocoa); border: 1px solid var(--line);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.social svg { width: 15px; height: 15px; }
.social:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.header-main { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-seal {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line-gold); color: var(--cocoa);
  transition: border-color .4s var(--ease);
}
.brand-seal svg { width: 34px; height: 34px; }
.brand:hover .brand-seal { border-color: var(--gold-deep); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 400 21px/1.1 var(--serif); letter-spacing: -.01em; }
.brand-text span { font-size: 12.5px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; transition: color .3s var(--ease); }
.nav a:not(.phone)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .phone { font-weight: 700; padding-left: 8px; }
.nav .phone:hover { color: var(--gold-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(20, 15, 11, .28);
  background: transparent; position: relative; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.burger:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.drawer {
  border-top: 1px solid var(--line); padding: 20px var(--gutter) 28px; background: var(--bg);
  max-height: calc(100dvh - 76px); overflow-y: auto;
}
.drawer-nav { display: grid; }
.drawer-nav a { font: 400 24px/1.25 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); transition: color .3s var(--ease); }
.drawer-nav a:hover { color: var(--gold-deep); }
.drawer-phone { display: block; margin-top: 20px; font-size: 20px; font-weight: 700; }
.drawer-hours { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 36px; position: relative; overflow-x: clip; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.hero h1 {
  font: 300 clamp(46px, 7.4vw, 100px)/1.08 var(--serif); letter-spacing: -.015em;
  margin-bottom: 36px;
}
.hero h1 span { display: block; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 30em; margin-bottom: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-price { font-size: 14px; color: var(--muted); margin-bottom: clamp(48px, 6vw, 80px); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-gold); }
.hero-facts > div { padding: 24px 24px 0 0; }
.hero-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt { font: 400 30px/1.1 var(--sans); letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.hero-facts dd { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.star { width: 22px; height: 22px; color: var(--gold); }

.hero-visual { position: relative; margin: 0; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.medallion {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  background: #6f6a66; box-shadow: var(--shadow);
}
.medallion img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-ring circle {
  fill: none; stroke: var(--gold-deep); stroke-width: .5; stroke-opacity: .7;
  stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 2.2s var(--ease) .2s;
}
.hero-profile {
  position: absolute; right: -9%; top: 6%; width: 38%; height: 56%; overflow: visible;
  fill: none; stroke: var(--gold-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.hero-profile path, .hero-profile use { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .6s; }
.is-loaded .hero-ring circle, .is-loaded .hero-profile use { stroke-dashoffset: 0; }
.hero-room {
  position: absolute; left: -4%; bottom: 2%; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow); z-index: 2;
  transition: box-shadow .5s var(--ease);
}
.hero-room img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-room:hover img { transform: scale(1.05); }
.hero-room:hover { box-shadow: 0 22px 44px -22px rgba(20, 15, 11, .55); }
.hero-caption {
  position: absolute; right: -2%; bottom: 6%; z-index: 2; max-width: 250px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; font-size: 13px; line-height: 1.45; color: var(--muted); box-shadow: var(--shadow);
}
.hero-caption b { display: block; font: 400 18px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.hero-note { margin-top: clamp(56px, 7vw, 96px); padding-top: 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Секции ---------- */
.section { padding: clamp(88px, 12vw, 168px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head > div:first-child { max-width: 700px; }
.section-head > .muted { max-width: 400px; }

/* Принципы */
.principles { background: var(--paper); }
.principles-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 136px); align-items: start; }
.principles-head { position: sticky; top: 110px; }
.principles-head h2 { margin-bottom: 28px; }
.principles-photo { margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.principles-photo img { width: 100%; height: 100%; object-fit: cover; }
.principles-list { counter-reset: p; }
.principles-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.principles-list li:last-child { border-bottom: 1px solid var(--line); }
.num { font: 300 28px/1 var(--serif); color: var(--gold-deep); padding-top: 2px; }
.principles-list h3 { font: 400 clamp(21px, 2vw, 26px)/1.25 var(--serif); margin-bottom: 12px; }
.principles-list p { color: var(--muted); }

/* Направления */
.dir { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.dir-tabs { display: grid; border-top: 1px solid var(--line); position: sticky; top: 110px; }
.dir-tab {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 8px;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 22px 4px; font-size: 16px; font-weight: 600; color: var(--muted);
  transition: color .35s var(--ease), padding-left .45s var(--ease);
}
.dir-tab .ico { opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.dir-n { font: 400 14px/1 var(--sans); color: var(--gold-deep); }
.dir-tab:hover { color: var(--ink); }
.dir-tab[aria-selected="true"] { color: var(--ink); padding-left: 12px; }
.dir-tab[aria-selected="true"] .ico { opacity: 1; transform: none; color: var(--gold-deep); }
.dir-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px);
  animation: panel-in .6s var(--ease);
}
.dir-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.dir-photo { border-radius: var(--r); overflow: hidden; min-height: 380px; }
.dir-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.dir-body { display: flex; flex-direction: column; gap: 28px; padding: 12px 4px; }
.dir-body h3 { font: 300 clamp(28px, 3vw, 38px)/1.1 var(--serif); }
.dir-body > p { color: var(--muted); }
.dir-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.dir-cols h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--cocoa); }
.dir-cols h4:not(:first-child) { margin-top: 24px; }
.dir-cols li, .doc-cols li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.dir-cols li::before, .doc-cols li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--gold-deep); }
.dir-prices { display: grid; }
.dir-prices li, .price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.dir-prices b, .price-list b { font-weight: 700; white-space: nowrap; }
.dir-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.dir-price { display: flex; flex-direction: column; font-size: 22px; font-weight: 700; line-height: 1.2; }
.dir-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.dir-docs { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.dir-docs li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dir-docs img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dir-foot .btn { margin-left: auto; }

/* Путь пациента: золотая нить через четыре шага */
.path { background: var(--paper); }
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 10px; top: 14px; width: calc(100% - (100% - 144px) / 4); height: 40px; overflow: visible; }
.steps-line path {
  fill: none; stroke: var(--gold-deep); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease);
}
.steps-wrap.is-in .steps-line path { stroke-dashoffset: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; position: relative; }
.step { padding-top: 80px; position: relative; }
.step-dot {
  position: absolute; top: 24px; left: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--gold-deep);
}
.step-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold-grad); transform: scale(0); transition: transform .6s var(--ease) .4s; }
.step.is-in .step-dot::after { transform: scale(1); }
.step-n { display: block; font-size: 13px; color: var(--gold-deep); margin-bottom: 14px; }
.step h3 { font: 400 clamp(23px, 2.1vw, 28px)/1.2 var(--serif); margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15px; }

/* Основатель */
.founder { background: #1E1712; color: #EFE9E0; }
.founder-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.founder-photos { position: relative; padding-bottom: 18%; }
.founder-main { width: 88%; border-radius: var(--r-lg); aspect-ratio: 890 / 570; object-fit: cover; }
.founder-sub {
  position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--r);
  aspect-ratio: 890 / 570; object-fit: cover; border: 6px solid #1E1712;
}
.founder h2 { margin-bottom: 36px; color: #fff; }
.founder blockquote { margin: 0 0 44px; position: relative; padding-left: 64px; }
.founder-mark { position: absolute; left: 0; top: 4px; width: 46px; height: 46px; color: #CEB18A; }
.founder blockquote p { font: 400 clamp(19px, 1.8vw, 23px)/1.55 var(--serif); color: #fff; }
.founder-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 36px; border-top: 1px solid rgba(206, 177, 138, .35); }
.founder-facts > div { padding: 22px 20px 0 0; }
.founder-facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.founder-facts dt { font-size: 28px; font-weight: 400; color: #E3C89D; line-height: 1.1; margin-bottom: 4px; }
.founder-facts dd { margin: 0; font-size: 14px; color: #B3A99C; line-height: 1.4; }
.founder-text { color: #B3A99C; margin-bottom: 40px; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Команда */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.doctor {
  display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 28px;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.doctor-photo { display: block; aspect-ratio: 4 / 4.4; border-radius: var(--r); overflow: hidden; margin-bottom: 26px; background: var(--taupe-soft); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.doctor-name { font: 400 22px/1.2 var(--serif); padding: 0 8px; margin-bottom: 10px; }
.doctor-role { font-size: 14px; color: var(--muted); padding: 0 8px; margin-bottom: 26px; }
.doctor-more {
  margin: auto 8px 0; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 14px; font-weight: 700; padding-bottom: 2px; border-bottom: 1px solid var(--line-gold);
  transition: border-color .4s var(--ease);
}
.doctor:hover { border-color: var(--line-gold); box-shadow: var(--shadow); }
.doctor:hover .doctor-photo img { transform: scale(1.04); }
.doctor:hover .doctor-more { border-color: var(--ink); }
.team-group { margin: clamp(56px, 7vw, 112px) 0 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.team-group img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 890 / 520; object-fit: cover; }
.team-group figcaption { font: 400 clamp(19px, 1.8vw, 24px)/1.5 var(--serif); }

/* Цены */
.prices { background: var(--paper); }
.prices-inner { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
.prices-head h2 { margin-bottom: 24px; }
.prices-head .muted { margin-bottom: 36px; }
.price-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
.price-group { border-top: 1px solid var(--ink); padding-top: 24px; }
.price-group h3 { font: 400 24px/1.2 var(--serif); margin-bottom: 14px; }
.price-group .price-list li { flex-direction: column; gap: 4px; padding: 16px 0; }

/* Клиника */
.clinic { padding-bottom: clamp(40px, 5vw, 72px); }
.clinic-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; max-width: 420px; }
.clinic-nav .muted { text-align: right; }
.arrows { display: flex; gap: 8px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(20, 15, 11, .28); background: transparent;
  display: grid; place-items: center; transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery, .review-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 8px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.gallery::-webkit-scrollbar, .review-track::-webkit-scrollbar { display: none; }
.g-item { flex: none; width: clamp(240px, 24vw, 320px); height: clamp(320px, 34vw, 440px); scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.g-item--wide { width: clamp(300px, 40vw, 560px); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item span {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content;
  background: rgba(250, 248, 244, .92); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}

/* Отзывы */
.rating-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: 14px;
  transition: border-color .4s var(--ease);
}
.rating-chip:hover { border-color: var(--ink); }
.rating-chip b { font-size: 16px; }
.ya { width: 32px; height: 32px; border-radius: 50%; background: #FC3F1D; color: #fff; display: grid; place-items: center; flex: none; }
.ya svg { width: 18px; height: 18px; }
.review {
  flex: none; width: clamp(290px, 30vw, 400px); scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.7;
}
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.review-head b { display: block; font-size: 16px; }
.review-head span { font-size: 13px; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--letter { display: grid; place-items: center; background: var(--taupe-soft); color: var(--ink); font: 400 22px/1 var(--serif); }

/* Контакты */
.contacts-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.contacts-copy h2 { margin-bottom: 44px; }
.contacts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin: 0 0 48px; }
.contacts-list dt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.contacts-list dd { margin: 0; line-height: 1.5; }
.contacts-list a { transition: color .3s var(--ease); }
.contacts-list a:hover { color: var(--gold-deep); }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.socials--row .social { width: 40px; height: 40px; }
.socials--row .social svg { width: 18px; height: 18px; }
.map { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 650 / 450; box-shadow: var(--shadow); }
.map > img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) brightness(1.03) contrast(.92); transition: filter .6s var(--ease); }
.map:hover > img { filter: grayscale(.6) sepia(.25) brightness(1.02); }
.pin {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -52px 0 0 -26px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold-grad);
  display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(20, 15, 11, .6);
}
.pin svg { width: 30px; height: 30px; transform: rotate(45deg); color: var(--ink); }
.map-photo { position: absolute; right: 16px; bottom: 16px; width: 28%; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; border: 4px solid var(--paper); }
.map-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Подвал */
.footer { background: var(--ink); color: #CFC6BA; padding: clamp(72px, 8vw, 112px) 0 36px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand--light .brand-seal { background: transparent; border-color: rgba(206, 177, 138, .5); color: #E3C89D; }
.brand--light .brand-text b { color: #fff; }
.brand--light .brand-text span { color: #A89E92; }
.footer-legal { margin-top: 28px; line-height: 1.7; color: #A89E92; }
.footer-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-col h3 { font: 400 18px/1.2 var(--serif); color: #fff; margin-bottom: 10px; }
.footer-col a { transition: color .3s var(--ease); }
.footer-col a:hover { color: #E3C89D; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); transition: border-color .4s var(--ease); }
.badge:hover { border-color: #E3C89D; }
.badge b { color: #fff; }
.footer-warn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; color: #A89E92; font-size: 13px; }
.footer-warn p:first-child { color: #E3C89D; font-weight: 600; }

/* ---------- Диалоги ---------- */
.sheet {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(24px, 4vw, 40px);
  border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 15, 11, .5);
}
.sheet--wide { width: min(860px, calc(100vw - 24px)); }
.sheet::backdrop { background: rgba(20, 15, 11, .5); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
.sheet h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; padding-right: 40px; }
.sheet > .muted { margin-bottom: 28px; }
.sheet > p:not(.muted):not(.eyebrow) { margin-bottom: 22px; color: var(--muted); }
.sheet .muted a { text-decoration: underline; text-underline-offset: 3px; }
.sheet-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; display: grid; place-items: center;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid rgba(20, 15, 11, .18);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .3s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238C7348' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(20, 15, 11, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); }
.check { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cocoa); }
.check a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.form .btn { justify-self: start; margin-top: 4px; }
.feedback { font-size: 14px; color: var(--cocoa); min-height: 1em; }
.doc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-right: 40px; }
.doc-head img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.doc-head h2 { margin: 0; padding: 0; }
.doc-head .eyebrow { margin-bottom: 6px; }
.doc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-bottom: 36px; }
.doc-cols h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--cocoa); }
.pl { margin-bottom: 24px; border-top: 1px solid var(--line); }
.pl details { border-bottom: 1px solid var(--line); }
.pl summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 0; font: 400 20px/1.3 var(--serif); cursor: pointer; transition: color .3s var(--ease);
}
.pl summary::-webkit-details-marker { display: none; }
.pl summary:hover { color: var(--gold-deep); }
.pl summary .ico { transition: transform .45s var(--ease); }
.pl details[open] summary .ico { transform: rotate(180deg); }
.pl .price-list { padding-bottom: 14px; }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.principles-list li.reveal:nth-child(2n) { transition-delay: .08s; }
.steps .step:nth-child(2) { transition-delay: .15s; }
.steps .step:nth-child(3) { transition-delay: .3s; }
.steps .step:nth-child(4) { transition-delay: .45s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1520px) {
  .nav .phone { display: none; }
}
@media (min-width: 1521px) {
  .util-phone2 { display: none; }
}
@media (max-width: 1320px) {
  .nav { gap: 18px; }
  .nav a[href="#clinic"] { display: none; }
}
@media (max-width: 1000px) {
  .util-phone2 + .util-phone2 { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1100px) {
  .dir { grid-template-columns: minmax(0, 1fr); }
  .dir-tabs { position: static; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 0; gap: 0 20px; }
  .dir-tab { border-top: 1px solid var(--line); border-bottom: 0; }
  .prices-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; }
  .principles-inner { grid-template-columns: minmax(0, 1fr); }
  .principles-head { position: static; }
  .dir-panel { grid-template-columns: minmax(0, 1fr); }
  .dir-tabs {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
  }
  .dir-tabs::-webkit-scrollbar { display: none; }
  .dir-tab {
    flex: none; display: inline-flex; gap: 8px; padding: 10px 16px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 14px; white-space: nowrap; background: var(--paper);
    transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  }
  .dir-tab br { display: none; }
  .dir-tab .ico { display: none; }
  .dir-tab:hover { border-color: rgba(20, 15, 11, .4); }
  .dir-tab[aria-selected="true"] { padding-left: 16px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .dir-tab[aria-selected="true"] .dir-n { color: #E3C89D; }
  .dir-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .steps-line { display: none; }
  .step-dot { top: 24px; }
  .founder-inner { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-group { grid-template-columns: minmax(0, 1fr); }
  .price-groups { grid-template-columns: minmax(0, 1fr); }
  .contacts-inner { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .clinic-nav { align-items: flex-start; max-width: none; }
  .clinic-nav .muted { text-align: left; }
}
@media (max-width: 720px) {
  .header-actions .btn--line { display: none; }
  .util-addr { display: none; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts > div, .hero-facts > div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
  .hero-facts dt { min-width: 92px; }
  .dir-cols, .doc-cols { grid-template-columns: minmax(0, 1fr); }
  .dir-foot .btn { margin-left: 0; }
  .founder-facts { grid-template-columns: minmax(0, 1fr); }
  .founder-facts > div, .founder-facts > div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: flex; gap: 14px; align-items: baseline; }
  .founder-facts dt { min-width: 84px; }
  .founder blockquote { padding-left: 0; padding-top: 58px; }
  .contacts-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .team-grid { gap: 12px; }
  .doctor { padding: 8px 8px 16px; }
  .doctor-name { font-size: 18px; padding: 0 4px; }
  .doctor-role { font-size: 13px; padding: 0 4px; }
  .doctor-more { margin-left: 4px; margin-right: 4px; font-size: 13px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-caption { right: 0; max-width: 210px; font-size: 12px; padding: 10px 12px; }
  .hero-caption b { font-size: 16px; }
}
@media (max-width: 560px) {
  .brand-text span { display: none; }
  .brand-text b { font-size: 18px; line-height: 1.05; }
  .brand .show-sm { display: inline; }
  .header-actions .hide-sm { display: none; }
  .header-actions .show-sm { display: inline; }
  .header-main { gap: 12px; }
  .util-phone2 { display: none; }
}
@media (max-width: 460px) {
  .header-actions .btn--gold { padding: 0 16px; }
  .header-actions .btn--gold .ico { display: none; }
  .hero-actions .btn, .founder-actions .btn { width: 100%; }
  .founder-actions .btn--gold { font-size: 14px; padding: 0 16px; }
  .hide-xs { display: none; }
  .doctor-name { font-size: 16px; }
  .doctor-more .ico { display: none; }
  .hero-profile { right: -4%; }
}
@media (max-width: 380px) {
  .brand-seal { width: 42px; height: 42px; }
  .brand-seal svg { width: 30px; height: 30px; }
  .brand-text b { font-size: 16px; }
  .header-main { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn--gold { padding: 0 14px; font-size: 14px; }
  .socials .social { width: 28px; height: 28px; }
}

@media (max-width: 340px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-ring circle, .hero-profile use, .steps-line path { stroke-dashoffset: 0; }
}
