/* ==========================================================================
   «Лапе Руку» — ветеринарная клиника, Санкт-Петербург
   Дизайн-система: терракота · светлый беж · шалфей · пыльный синий · дерево
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  /* Цвета */
  --cream:      #FAF4EA;
  --cream-2:    #F4EADC;
  --cream-3:    #EFE2D0;
  --paper:      #FFFCF6;
  --paper-2:    #FDF7ED;

  --terra:      #BC5B3B;
  --terra-dark: #A0472B;
  --terra-deep: #7E3A24;
  --terra-soft: #F5DFD3;
  --terra-line: #E7C3B0;

  --sage:       #8C9C82;
  --sage-dark:  #6C7C63;
  --sage-soft:  #EAF0E3;
  --sage-line:  #CFD9C4;

  --blue:       #6E8CA8;
  --blue-dark:  #53718C;
  --blue-soft:  #E7EEF4;
  --blue-line:  #C7D6E2;

  --wood:       #D8C9B6;
  --wood-soft:  #E9DDCC;
  --wood-dark:  #B3A08A;

  --ink:        #2E251E;
  --ink-2:      #4A3E35;
  --muted:      #7C6E62;
  --muted-2:    #9A8B7D;

  --line:       rgba(150, 126, 104, 0.22);
  --line-strong:rgba(150, 126, 104, 0.4);

  /* Типографика */
  --serif: "Cormorant Garamond", "PT Serif", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Форма */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(74, 55, 40, 0.05), 0 4px 12px rgba(74, 55, 40, 0.04);
  --shadow:    0 2px 4px rgba(74, 55, 40, 0.04), 0 14px 34px -12px rgba(74, 55, 40, 0.16);
  --shadow-lg: 0 4px 10px rgba(74, 55, 40, 0.05), 0 30px 60px -22px rgba(74, 55, 40, 0.28);

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(54px, 7vw, 96px);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-2);
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, #F7E8D9 0%, rgba(247, 232, 217, 0) 62%),
    radial-gradient(900px 520px at -12% 4%, #EEF1E6 0%, rgba(238, 241, 230, 0) 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-dark); text-decoration-color: rgba(83, 113, 140, .35); text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
h1, .h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.1vw, 4.05rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
}
h2, .h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3, .h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }
figure { margin: 0; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
li::marker { color: var(--terra); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--terra); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--terra); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3. Сетка и утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; scroll-margin-top: 96px; }
.section--tight { padding-block: clamp(36px, 4.5vw, 60px); }
.section--tint { background: linear-gradient(180deg, rgba(244, 234, 220, .0), rgba(244, 234, 220, .85) 18%, rgba(244, 234, 220, .85) 82%, rgba(244, 234, 220, 0)); }
.section--sage { background: linear-gradient(180deg, rgba(234, 240, 227, .0), rgba(234, 240, 227, .8) 20%, rgba(234, 240, 227, .8) 80%, rgba(234, 240, 227, 0)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .745rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; opacity: .6;
}
.eyebrow--sage { color: var(--sage-dark); }
.eyebrow--blue { color: var(--blue-dark); }

.lead { font-size: clamp(1.03rem, 1.5vw, 1.16rem); color: var(--muted); line-height: 1.62; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.55; }
.tiny { font-size: .78rem; line-height: 1.5; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }

.section__head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head .lead { margin-top: 14px; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 4. Кнопки ---------- */
.btn {
  --btn-bg: var(--terra);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: inherit; font-size: .955rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  box-shadow: 0 10px 22px -12px rgba(188, 91, 59, .8);
}
.btn:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(188, 91, 59, .9); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--blue-line); box-shadow: none;
}
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); box-shadow: none; }

.btn--sage { background: var(--sage); box-shadow: 0 10px 22px -12px rgba(108, 124, 99, .8); }
.btn--sage:hover { background: var(--sage-dark); }

.btn--light { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #fff; color: var(--terra-dark); }

.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--lg { padding: 18px 34px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .93rem; color: var(--terra); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--terra-dark); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Верхняя полоса ---------- */
.topbar {
  background: var(--cream-3);
  border-bottom: 1px solid rgba(179, 160, 138, .25);
  font-size: .81rem; color: #6B5A4C;
  transition: height .25s ease, opacity .25s ease;
  overflow: hidden;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; padding-block: 6px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item, .topbar__link { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar__item svg, .topbar__link svg { width: 15px; height: 15px; color: var(--sage-dark); flex: none; }
.topbar__link { font-weight: 600; transition: color .15s; }
.topbar__link:hover { color: var(--terra-dark); }
.topbar__link:hover svg { color: var(--terra); }
.topbar__sep { width: 1px; height: 14px; background: rgba(150, 126, 104, .35); }

.site-header { position: sticky; top: 0; z-index: 90; }
.site-header__bar {
  background: rgba(251, 246, 238, .97);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled .site-header__bar { box-shadow: 0 10px 30px -18px rgba(74, 55, 40, .45); background: rgba(251, 246, 238, .97); }
.site-header.is-scrolled .topbar { height: 0; min-height: 0; opacity: 0; }
.site-header.is-scrolled .topbar__inner { min-height: 0; padding-block: 0; }
.site-header__inner { display: flex; align-items: center; gap: 26px; min-height: 76px; padding-block: 10px; }

/* Логотип */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: 46px; height: 46px; color: var(--terra); flex: none; transition: transform .3s ease; }
.brand:hover .brand__mark { transform: scale(1.05); }
.brand__mark svg, .brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em;
  color: var(--ink); text-transform: none;
}
.brand__sub { font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* Навигация */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; position: relative;
  padding: 9px 13px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: color .16s, background-color .16s;
}
.nav__link:hover { color: var(--terra-dark); background: rgba(188, 91, 59, .07); }
.nav__link.is-active { color: var(--terra-dark); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--terra);
}
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

.header__call {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  border-radius: 50%; background: var(--terra-soft); color: var(--terra-dark);
  text-decoration: none;
}
.header__call svg { width: 19px; height: 19px; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 30px;
  transform: translateY(-102%); opacity: 0; visibility: hidden;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .3s, visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mobile-menu__close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__nav { display: flex; flex-direction: column; margin-bottom: 24px; }
.mobile-menu__link {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu__link svg { width: 18px; height: 18px; color: var(--terra); opacity: .7; }
.mobile-menu__link.is-active { color: var(--terra-dark); }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.mobile-menu__contact { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.mobile-menu__contact svg { width: 18px; height: 18px; color: var(--sage-dark); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(38px, 5.5vw, 76px) clamp(46px, 6vw, 84px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(30px, 5vw, 68px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  background: rgba(255, 252, 246, .85); border: 1px solid var(--sage-line);
  font-size: .78rem; font-weight: 600; color: var(--sage-dark); letter-spacing: .02em;
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero__badge span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(140, 156, 130, .18); }
.hero__title { margin-bottom: 20px; }
.hero__title em { font-style: italic; color: var(--terra); }
.hero__lead { font-size: clamp(1.02rem, 1.45vw, 1.14rem); color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.hero__actions { margin-bottom: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__fact { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--muted); }
.hero__fact svg { width: 17px; height: 17px; color: var(--terra); flex: none; }
.hero__fact strong { color: var(--ink); font-weight: 700; }

.hero__art { position: relative; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: 48% 52% 44% 56% / 54% 44% 56% 46%;
  overflow: hidden; background: linear-gradient(150deg, var(--sage-soft), var(--terra-soft) 70%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; position: relative; z-index: 1; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 37, 30, 0) 45%, rgba(46, 37, 30, .18) 100%);
  pointer-events: none;
}
.hero__paw-bg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(188, 91, 59, .22); }
.hero__paw-bg svg { width: 58%; height: 58%; }

.hero__float {
  position: absolute; z-index: 2;
  background: rgba(255, 252, 246, .96);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 17px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px;
  font-size: .8rem; line-height: 1.3; color: var(--muted);
}
.hero__float strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 700; }
.hero__float svg { width: 20px; height: 20px; flex: none; color: var(--sage-dark); }
.hero__float--a { left: -4%; bottom: 12%; animation: floaty 7s ease-in-out infinite; }
.hero__float--b { right: -6%; top: 12%; animation: floaty 8.5s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 7. Бегущая строка преимуществ ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 246, .55);
  overflow: hidden; padding-block: 14px;
}
.marquee__track { display: flex; gap: 44px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marquee__item svg { width: 15px; height: 15px; color: var(--terra); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Карточки услуг на главной ---------- */
.cards { display: grid; gap: clamp(14px, 2vw, 22px); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--sage) 60%, var(--blue));
  opacity: 0; transition: opacity .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--wood); }
.svc-card:hover::before { opacity: 1; }
.svc-card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra-dark); margin-bottom: 6px;
}
.svc-card:nth-child(2n) .svc-card__icon { background: var(--sage-soft); color: var(--sage-dark); }
.svc-card:nth-child(3n) .svc-card__icon { background: var(--blue-soft); color: var(--blue-dark); }
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card h3 { margin: 0; font-size: 1.06rem; }
.svc-card p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.svc-card__price { margin-top: auto; padding-top: 8px; font-size: .8rem; font-weight: 700; color: var(--terra-dark); letter-spacing: .02em; }

/* ---------- 9. Преимущества / цифры ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-dark); margin-bottom: 4px;
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.02rem; margin: 0; }
.feature p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); overflow: hidden;
}
.stat { padding: clamp(20px, 2.6vw, 32px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 600; color: var(--terra); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ---------- 10. Врачи ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); }

.doctor-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--wood); }
.doctor-card__media {
  position: relative; aspect-ratio: 4 / 5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BC5B3B' fill-opacity='.13'%3E%3Cellipse cx='8.4' cy='8.6' rx='1.9' ry='2.5'/%3E%3Cellipse cx='12' cy='6.6' rx='2.1' ry='2.7'/%3E%3Cellipse cx='15.6' cy='8.6' rx='1.9' ry='2.5'/%3E%3Cpath d='M12 11.4c2.5 0 4.6 2 4.6 4.3 0 2-1.7 3.3-3.7 3.3-.6 0-1.3-.3-1.9-.3s-1.3.3-1.9.3c-2 0-3.7-1.3-3.7-3.3 0-2.3 2.1-4.3 4.6-4.3z'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--sage-soft), var(--cream-2));
  background-repeat: no-repeat;
  background-position: 50% 52%, 0 0;
  background-size: 42%, cover;
  display: grid; place-items: center; overflow: hidden;
}
.doctor-card__media .avatar { background: transparent; font-size: clamp(2.8rem, 5vw, 3.9rem); }
.doctor-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.doctor-card__media .avatar { width: 100%; height: 100%; }
.doctor-card__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(255, 252, 246, .95); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--terra-dark);
}
.doctor-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doctor-card__name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0; }
.doctor-card__role { font-size: .84rem; font-weight: 700; color: var(--sage-dark); letter-spacing: .01em; }
.doctor-card__bio { font-size: .89rem; color: var(--muted); line-height: 1.6; margin: 0; }
.doctor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--cream-2); border: 1px solid var(--wood-soft);
  font-size: .71rem; font-weight: 600; color: var(--muted); letter-spacing: .01em;
}
.tag--sage { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-dark); }
.tag--blue { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-dark); }

.avatar {
  display: grid; place-items: center; position: relative;
  background: radial-gradient(120% 120% at 30% 20%, var(--terra-soft), var(--cream-2) 70%);
  color: var(--terra);
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: .04em;
}
.avatar--sage { background: radial-gradient(120% 120% at 30% 20%, var(--sage-soft), var(--cream-2) 70%); color: var(--sage-dark); }
.avatar--blue { background: radial-gradient(120% 120% at 30% 20%, var(--blue-soft), var(--cream-2) 70%); color: var(--blue-dark); }

/* Компактные строки — ассистенты и администраторы */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; transition: border-color .2s, box-shadow .2s;
}
.person:hover { border-color: var(--wood); box-shadow: var(--shadow-sm); }
.person__avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  font-size: 1.15rem; letter-spacing: .02em; flex: none;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person__avatar::after { display: none; }
.person__name { font-weight: 700; font-size: .97rem; color: var(--ink); line-height: 1.3; }
.person__role { font-size: .78rem; color: var(--sage-dark); font-weight: 600; margin-top: 2px; }
.person__bio { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 5px 0 0; }

/* ---------- 11. О клинике (главная) ---------- */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-split__media { position: relative; }
.about-split__img {
  border-radius: 42% 58% 46% 54% / 48% 42% 58% 52%;
  overflow: hidden; aspect-ratio: 1 / 1.05; background: linear-gradient(150deg, var(--terra-soft), var(--sage-soft)); box-shadow: var(--shadow);
}
.about-split__img img { width: 100%; height: 100%; object-fit: cover; }
.about-split__quote {
  position: absolute; right: -6%; bottom: 6%; max-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow); font-size: .85rem; color: var(--muted); line-height: 1.5;
}
.about-split__quote strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin: 0; font-size: .95rem; }
.checklist svg { width: 22px; height: 22px; color: var(--sage-dark); margin-top: 1px; }
.checklist strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.checklist span { color: var(--muted); font-size: .89rem; }

/* ---------- 12. Статьи ---------- */
.article-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--wood); }
.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, var(--sage-soft), var(--cream-2)); position: relative; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__media .avatar { width: 100%; height: 100%; }
.article-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__meta { display: flex; align-items: center; gap: 8px; font-size: .73rem; font-weight: 600; color: var(--muted-2); letter-spacing: .03em; }
.article-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.article-card__cat { color: var(--terra-dark); text-transform: uppercase; letter-spacing: .08em; }
.article-card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0; }
.article-card__excerpt { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }
.article-card__more { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 700; color: var(--blue-dark); display: inline-flex; align-items: center; gap: 6px; }
.article-card:hover .article-card__more { color: var(--terra-dark); }
.article-card__more svg { width: 14px; height: 14px; }

/* Большая карточка статьи */
.article-card--feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.article-card--feature .article-card__media { aspect-ratio: auto; min-height: 300px; }
.article-card--feature .article-card__body { justify-content: center; padding: clamp(24px, 3vw, 42px); }
.article-card--feature .article-card__title { font-size: clamp(1.45rem, 2.6vw, 2rem); }

/* ---------- 12.5. Миссия, ценности, шаги ---------- */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 20px); }
.mission__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 10px;
}
.mission__card--terra { background: linear-gradient(150deg, var(--terra-soft), var(--paper) 85%); border-color: var(--terra-line); }
.mission__card--sage { background: linear-gradient(150deg, var(--sage-soft), var(--paper) 85%); border-color: var(--sage-line); }
.mission__card h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 0; }
.mission__card p { margin: 0; color: var(--muted); font-size: .95rem; }
.mission__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--terra); }
.mission__card--sage .mission__label { color: var(--sage-dark); }

.steps { display: grid; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 2.4vw, 26px); padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step__num { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--terra); opacity: .45; font-weight: 600; }
.step h3 { margin: 0 0 4px; font-size: 1.04rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

/* ---------- 13. CTA-полоса ---------- */.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #8E4A30 0%, var(--terra) 46%, #A9603F 100%);
  color: #FCEFE6; border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 224, .22), transparent 68%);
}
.cta-band::before { width: 460px; height: 460px; right: -110px; top: -190px; }
.cta-band::after { width: 320px; height: 320px; left: -120px; bottom: -180px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; position: relative; }
.cta-band p { color: rgba(255, 239, 230, .85); max-width: 52ch; position: relative; }
.cta-band__actions { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.cta-band .btn--light { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.cta-band__phone { display: flex; align-items: center; gap: 8px; justify-content: center; color: #fff; font-weight: 700; text-decoration: none; font-size: 1rem; }
.cta-band__phone svg { width: 17px; height: 17px; }
.cta-band__phone:hover { color: #FFE6D8; }

/* ---------- 14. Контакты / карта ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.contact-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-dark);
}
.contact-item__icon svg { width: 19px; height: 19px; }
.contact-item dt, .contact-item .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; color: var(--muted-2); font-weight: 700; margin-bottom: 3px; }
.contact-item .value { font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-item .value:hover { color: var(--terra-dark); }
.contact-item .sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.map-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-2); box-shadow: var(--shadow);
  height: 420px;
}
.map-wrap--tall { height: 520px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: saturate(.92) contrast(.98); }
.map-note {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(255, 252, 246, .95); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 14px; font-size: .78rem; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-sm);
}
.map-note svg { width: 15px; height: 15px; color: var(--terra); }

/* ---------- 15. Формы ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px); box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .field__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.field label .req { color: var(--terra); }
.input, .textarea, .select {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: #FFFDF9; border: 1px solid var(--wood); border-radius: 12px;
  padding: 13px 15px; transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--wood-dark); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(110, 140, 168, .16); background: #fff;
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C6E62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; cursor: pointer; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.checkbox input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--wood-dark); border-radius: 6px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.checkbox input::after {
  content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .16s ease; margin-top: -2px;
}
.checkbox input:checked { background: var(--terra); border-color: var(--terra); }
.checkbox input:checked::after { transform: rotate(-45deg) scale(1); }
.checkbox a { color: var(--blue-dark); }
.checkbox.is-error { color: var(--terra-deep); }
.checkbox.is-error input { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(188, 91, 59, .15); }

.form-note { font-size: .76rem; color: var(--muted-2); line-height: 1.5; }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* ---------- 16. Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted-2); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra-dark); }
.crumbs span.sep { opacity: .5; }
.crumbs .current { color: var(--ink-2); font-weight: 600; }

/* ---------- 17. Заголовок страницы ---------- */
.page-head { padding-block: clamp(26px, 3.5vw, 46px) clamp(22px, 3vw, 38px); position: relative; overflow: hidden; }
.page-head__inner { max-width: 780px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { margin-bottom: 0; }
.page-head--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: end; }

/* ---------- 18. Страница «Услуги и цены» ---------- */
.price-hero { padding-block: clamp(24px, 3vw, 40px) 0; }
.price-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.price-hero h1 { margin-bottom: 12px; }
.live-label {
  display: inline-flex; align-items: flex-start; gap: 9px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-dark);
  margin-bottom: 14px;
}
.live-label .pulse {
  width: 9px; height: 9px; margin-top: 5px; flex: none; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 0 rgba(140, 156, 130, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 156, 130, .55); }
  70% { box-shadow: 0 0 0 12px rgba(140, 156, 130, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 156, 130, 0); }
}

.search-deck {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--shadow);
  position: relative; z-index: 5;
}
.search-deck__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.live-label--lg { font-size: .88rem; margin-bottom: 0; color: var(--terra-dark); letter-spacing: .07em; }

.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.quick-tags__label { font-size: .76rem; color: var(--muted-2); margin-right: 2px; }
.quick-tag {
  font-family: inherit; font-size: .76rem; font-weight: 600; color: var(--blue-dark);
  background: transparent; border: 1px dashed var(--blue-line); border-radius: 999px;
  padding: 4px 11px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.quick-tag:hover { background: var(--blue-soft); border-style: solid; border-color: var(--blue); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box__icon { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted-2); pointer-events: none; }
.search-input {
  width: 100%; font-family: inherit; font-size: 1.02rem; color: var(--ink);
  background: #FFFDF9; border: 1.5px solid var(--wood); border-radius: 999px;
  padding: 16px 118px 16px 50px; transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.search-input::placeholder { color: var(--muted-2); }
.search-input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(188, 91, 59, .12); background: #fff; }
.search-box__hint {
  position: absolute; right: 14px; display: flex; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--muted-2); pointer-events: none;
}
.search-box__hint kbd {
  font-family: inherit; font-size: .72rem; border: 1px solid var(--wood); background: var(--cream-2);
  border-radius: 5px; padding: 1px 6px; color: var(--muted);
}
.search-clear {
  position: absolute; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: var(--cream-2); color: var(--muted); cursor: pointer;
  display: none; place-items: center;
}
.search-clear svg { width: 15px; height: 15px; }
.search-box.has-value .search-clear { display: grid; }
.search-box.has-value .search-box__hint { display: none; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-btn {
  font-family: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-2); background: var(--cream-2); border: 1px solid transparent;
  border-radius: 999px; padding: 9px 15px; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s;
  white-space: nowrap;
}
.cat-btn:hover { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-dark); }
.cat-btn.is-active { background: var(--terra); border-color: var(--terra); color: #fff; box-shadow: 0 8px 16px -10px rgba(188, 91, 59, .9); }
.cat-btn .count { opacity: .6; font-weight: 600; margin-left: 5px; font-size: .74rem; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.results-count { font-size: .86rem; color: var(--muted); }
.results-count b { color: var(--ink); font-weight: 700; }
.results-actions { display: flex; align-items: center; gap: 12px; }
.source-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; color: var(--muted-2);
  background: var(--cream-2); border-radius: 999px; padding: 5px 11px;
}
.source-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.source-badge--demo .dot { background: var(--wood-dark); }

.price-table { position: relative; min-height: 220px; }
.price-group + .price-group { margin-top: 30px; }
.price-group__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}
.price-group__title { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--ink); margin: 0; }
.price-group__count { font-size: .74rem; color: var(--muted-2); font-weight: 600; }

.price-row { border-bottom: 1px solid var(--line); }
.price-row:first-of-type { border-top: 1px solid var(--line); }
.price-row__main {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 15px 6px; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s;
}
.price-row__main:hover { background: rgba(255, 252, 246, .8); }
.price-row__name { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.price-row__name mark { background: rgba(188, 91, 59, .16); color: inherit; padding: 0 2px; border-radius: 3px; }
.price-row__variants-hint { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--blue-dark); font-weight: 600; margin-top: 3px; }
.price-row__variants-hint svg { width: 13px; height: 13px; }
.price-row__price { font-size: 1rem; font-weight: 700; color: var(--terra-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-row__price .from { font-size: .74rem; font-weight: 600; color: var(--muted-2); margin-right: 3px; }
.price-row__chev {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--muted); transition: transform .22s ease, background-color .16s;
}
.price-row__chev svg { width: 15px; height: 15px; }
.price-row.is-open .price-row__chev { transform: rotate(180deg); background: var(--sage-soft); color: var(--sage-dark); }
.price-row.is-open .price-row__main { background: rgba(255, 252, 246, .9); }
.price-row__variants { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.price-row.is-open .price-row__variants { grid-template-rows: 1fr; }
.price-row__variants > div { overflow: hidden; }
.variants-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 4px 6px 18px; border-left: 2px solid var(--sage-line); margin-left: 2px; padding-left: 18px;
}
.variants-inner .select { max-width: 340px; }
.variants-inner .variant-price { font-size: 1.15rem; font-weight: 700; color: var(--terra); font-variant-numeric: tabular-nums; }
.variants-inner .variant-price .from { font-size: .75rem; color: var(--muted-2); font-weight: 600; }
.variants-note { font-size: .76rem; color: var(--muted-2); width: 100%; }

.price-row--fixed .price-row__main { cursor: default; }
.price-row--fixed .price-row__chev { visibility: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.empty-state { text-align: center; padding: clamp(34px, 6vw, 64px) 20px; }.empty-state__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--muted-2); }
.empty-state__icon svg { width: 28px; height: 28px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin-inline: auto; margin-bottom: 18px; }

/* Скелетон-лоадер */
.loader { display: grid; gap: 10px; padding-block: 8px; }
.loader__row { height: 52px; border-radius: 12px; background: linear-gradient(90deg, rgba(216, 201, 182, .25) 25%, rgba(216, 201, 182, .45) 37%, rgba(216, 201, 182, .25) 63%); background-size: 400% 100%; animation: shimmer 1.5s ease-in-out infinite; }
.loader__row:nth-child(2) { width: 92%; }
.loader__row:nth-child(3) { width: 96%; }
.loader__row:nth-child(4) { width: 88%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.loader__caption { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 6px 2px 14px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--sage-line); border-top-color: var(--terra);
  animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.price-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.price-foot__card { background: var(--sage-soft); border-radius: var(--r); padding: 18px 20px; font-size: .84rem; color: var(--sage-dark); }
.price-foot__card strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 4px; }
.price-foot__card--blue { background: var(--blue-soft); color: var(--blue-dark); }
.price-foot__card--terra { background: var(--terra-soft); color: var(--terra-deep); }

/* ---------- 19. Статья ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prose { max-width: 72ch; font-size: 1.03rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: 2em; margin-bottom: .55em; }
.prose h3 { margin-top: 1.7em; margin-bottom: .5em; font-size: 1.12rem; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin-bottom: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--r); margin: 1.6em 0; box-shadow: var(--shadow-sm); }
.prose blockquote {
  margin: 1.8em 0; padding: 20px 24px; border-left: 3px solid var(--terra);
  background: var(--cream-2); border-radius: 0 var(--r) var(--r) 0; font-family: var(--serif);
  font-size: 1.22rem; line-height: 1.45; color: var(--ink); font-style: italic;
}
.prose blockquote p { margin: 0; }
.prose .callout {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  background: var(--sage-soft); border-radius: var(--r); padding: 18px 20px; margin: 1.6em 0;
  font-size: .93rem; color: var(--sage-dark); line-height: 1.6;
}
.prose .callout svg { width: 22px; height: 22px; margin-top: 1px; }
.prose .callout strong { color: var(--ink); }
.prose .callout--terra { background: var(--terra-soft); color: var(--terra-deep); }
.prose .callout--blue { background: var(--blue-soft); color: var(--blue-dark); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); background: var(--cream-2); }
.prose figcaption { font-size: .78rem; color: var(--muted-2); text-align: center; margin-top: -1em; margin-bottom: 2em; }

.article-head { max-width: 820px; margin-bottom: 34px; }
.article-head h1 { margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.article-meta .tag { font-size: .72rem; }
.article-hero { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 9; background: linear-gradient(150deg, var(--sage-soft), var(--cream-2)); margin-bottom: 40px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* мягкая «лапа» на случай, если фото не загрузилось */
.about-split__img, .article-hero {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BC5B3B' fill-opacity='.16'%3E%3Cellipse cx='8.4' cy='8.6' rx='1.9' ry='2.5'/%3E%3Cellipse cx='12' cy='6.6' rx='2.1' ry='2.7'/%3E%3Cellipse cx='15.6' cy='8.6' rx='1.9' ry='2.5'/%3E%3Cpath d='M12 11.4c2.5 0 4.6 2 4.6 4.3 0 2-1.7 3.3-3.7 3.3-.6 0-1.3-.3-1.9-.3s-1.3.3-1.9.3c-2 0-3.7-1.3-3.7-3.3 0-2.3 2.1-4.3 4.6-4.3z'/%3E%3C/svg%3E"),
    linear-gradient(150deg, var(--sage-soft), var(--cream-2));
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: 40%, cover;
}
.article-hero .avatar { width: 100%; height: 100%; }

.sidebar { position: sticky; top: 104px; display: grid; gap: 18px; }
.sidebar__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.sidebar__card h4 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; }
.sidebar__card p { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.sidebar__list { list-style: none; margin: 0; padding: 0; }
.sidebar__list li { margin: 0; border-bottom: 1px solid var(--line); }
.sidebar__list li:last-child { border-bottom: 0; }
.sidebar__list a { display: block; padding: 10px 0; font-size: .87rem; font-weight: 600; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.sidebar__list a:hover { color: var(--terra-dark); }
.sidebar__card--accent { background: linear-gradient(160deg, var(--terra-soft), var(--paper)); }

/* ---------- 20. Подвал ---------- */
.site-footer { margin-top: var(--section-y); background: #2E251E; color: #D9CEC3; position: relative; overflow: hidden; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 5vw, 64px) 34px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #A99B8C; }
.site-footer .brand__mark { color: #D97C56; }
.site-footer__desc { font-size: .86rem; line-height: 1.65; color: #AFA194; margin-top: 16px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__list li { margin: 0; }
.site-footer__list a { color: #C6B8AA; text-decoration: none; font-size: .87rem; transition: color .15s; }
.site-footer__list a:hover { color: #fff; }
.site-footer__contact { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; color: #C6B8AA; margin-bottom: 10px; }
.site-footer__contact svg { width: 16px; height: 16px; color: #8C9C82; flex: none; margin-top: 3px; }
.site-footer__contact a { color: inherit; text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 18px 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  font-size: .76rem; color: #8F8275;
}
.site-footer__bottom a { color: #AFA194; text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__paw { position: absolute; right: -40px; top: -30px; width: 260px; color: rgba(255, 255, 255, .03); pointer-events: none; }

/* ---------- 21. Мелочи ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; z-index: 300;
  display: flex; align-items: center; gap: 9px;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; color: #A9C09B; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

.paw-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--wood-dark); opacity: .6; }
.paw-divider::before, .paw-divider::after { content: ""; height: 1px; width: min(120px, 18vw); background: currentColor; }
.paw-divider svg { width: 22px; height: 22px; color: var(--terra); }

/* ---------- 22. Адаптив ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-header__inner { min-height: 68px; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .site-footer__inner > div:last-child { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__art { order: -1; max-width: 440px; margin-inline: auto; }
  .hero__frame { aspect-ratio: 4 / 3.4; border-radius: 34px; }
  .hero__float--a { left: 8px; bottom: 10px; }
  .hero__float--b { right: 8px; top: 10px; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-split { grid-template-columns: 1fr; gap: 34px; }
  .about-split__media { order: -1; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .page-head--split { grid-template-columns: 1fr; align-items: start; }
  .price-foot { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .article-card--feature { grid-template-columns: 1fr; }
  .article-card--feature .article-card__media { min-height: 230px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { display: none; }
  .hero__content { order: -1; }
  .hero__art { order: 0; }
  .cats {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-right: -6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat-btn { flex: none; font-size: .79rem; padding: 8px 13px; }
  .live-label--lg { font-size: .8rem; }
  .search-deck { padding: 16px 14px 12px; }
  .cards--3, .cards--4, .cards--2 { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__inner > div:first-child { grid-column: 1 / -1; }
  .sidebar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search-input { padding-right: 52px; font-size: .95rem; }
  .search-box__hint { display: none; }
  .price-row__main { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px 2px; }
  .price-row__chev { display: none; }
  .price-row__name { font-size: .9rem; }
  .price-row__price { font-size: .95rem; }
  .variants-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .variants-inner .select { max-width: none; }
  .variants-inner .variant-price { font-size: 1.1rem; }
  .brand__name { font-size: 1.3rem; }
  .brand__mark { width: 40px; height: 40px; }
  .article-hero { aspect-ratio: 16 / 9; }
  .review { padding: 20px; }
}

@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .header__call { display: inline-flex; }
  .site-header__inner { gap: 12px; }
  .hero__frame { aspect-ratio: 4 / 4.2; }
  .quick-tags { display: none; }
  .price-hero .hero__facts { display: none; }
  .hero__float { display: none; }
}

@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .btn { padding: 13px 22px; font-size: .9rem; }
  .hero__actions .btn { width: 100%; }
  .hero__float { font-size: .72rem; padding: 10px 13px; }
  .hero__float strong { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Печать ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .breadcrumbs, .crumbs, .btn, .topbar { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .container { max-width: none; padding: 0; }
  .prose { max-width: none; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
