/* ============================================================
   BESTDENTALIN — design tokens
   ============================================================ */
:root {
  /* Фирменные цвета бренда */
  --sand:        #EBD6C5;
  --sand-deep:   #DCC3AD;
  --cream:       #FAF5EF;
  --clay:        #E5D0BC;
  --olive:       #535D44;
  --olive-deep:  #434B37;
  --olive-soft:  #6E7A5C;
  --taupe:       #927C65;
  --ink:         #3B382F;
  --ink-soft:    #5A5346;
  --muted:       #927C65;
  --line:        rgba(83, 93, 68, .18);
  --line-light:  rgba(235, 214, 197, .22);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1320px;
  --gut: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --header-h: 92px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--olive);
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.08;
}
h1 { font-size: clamp(42px, 5.4vw, 84px); }
h2 { font-size: clamp(34px, 4vw, 62px); }
h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; }
p  { margin: 0; }

em { font-style: italic; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--olive); color: var(--cream);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* Служебные */
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
}
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--olive { background: var(--olive); color: var(--sand); }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { background: var(--olive); color: var(--cream); }
.btn--solid:hover { background: var(--olive-deep); }

.btn--ghost { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn--ghost:hover { background: var(--olive); color: var(--cream); }

.btn--light { background: var(--cream); color: var(--olive); }
.btn--light:hover { background: #fff; }

.btn--sm { min-height: 46px; padding: 0 24px; font-size: 15px; }
.btn--block { width: 100%; }

/* ============================================================
   Логотип — фирменная лигатура-сердце + словесный знак
   Знак выводится маской по альфа-каналу, поэтому перекрашивается
   одним свойством background-color и не мылит на ретине
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.logo__mark {
  flex: 0 0 auto;
  width: 50px;
  height: 44px;
  background-color: var(--olive);
  -webkit-mask: url("../img/logo-olive.png") center / contain no-repeat;
  mask: url("../img/logo-olive.png") center / contain no-repeat;
}
.logo__type { display: flex; flex-direction: column; gap: 3px; }
.logo__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .075em;
  color: var(--olive);
  text-transform: uppercase;
}
.logo__sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  /* правый трекинг последней буквы, чтобы блок был оптически ровным */
  margin-right: -.34em;
}

/* Инверсная версия для тёмного фона */
.logo--light .logo__mark { background-color: var(--sand); }
.logo--light .logo__name { color: var(--cream); }
.logo--light .logo__sub  { color: rgba(234, 217, 198, .62); }

/* ============================================================
   Шапка
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sand);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.header.is-stuck { height: 74px; box-shadow: 0 1px 0 var(--line); }
.header.is-stuck::before { opacity: .96; backdrop-filter: blur(8px); }

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav { display: flex; align-items: center; gap: 38px; }
.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--olive); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 1.5px;
  background: var(--olive);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--sand);
  padding: calc(var(--header-h) + 24px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .42s var(--ease), visibility .42s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--olive);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 28px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--sand);
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 64px 0 72px;
}
.hero__title { margin: 22px 0 30px; }
.hero__title em {
  display: block;
  color: var(--olive-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 44px 0 0;
}
.hero__stats {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 82px);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 46px);
  color: var(--olive);
  line-height: 1;
}
.stat__label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  max-width: 14ch;
}

.hero__media { position: relative; }
.hero__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--sand-deep), var(--clay));
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hero__photo::after {
  content: attr(data-hint);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
  z-index: 0;
}
.hero__badge {
  position: absolute;
  left: -46px;
  bottom: 46px;
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 22px 28px;
  box-shadow: 0 24px 60px rgba(65, 74, 54, .16);
  min-width: 232px;
}
.hero__badge .eyebrow { font-size: 11px; }
.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--olive);
  font-weight: 500;
  margin-top: 8px;
}
.hero__badge span { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Заголовок секции
   ============================================================ */
.head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.head__title { margin-top: 18px; }
.head__note { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }

/* ============================================================
   Услуги
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-svc {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 28px;
  border-radius: var(--r-lg);
  background: var(--clay);
  min-height: 420px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(65, 74, 54, .14);
}
.card-svc--dark { background: var(--olive); }
.card-svc__icon { width: 30px; height: 30px; color: var(--olive); margin-bottom: 42px; }
.card-svc__sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.card-svc__text { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-top: 18px; }
.card-svc__foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-svc__meta { font-size: 14px; color: var(--ink-soft); }
.card-svc__go {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: transform .3s var(--ease);
}
.card-svc:hover .card-svc__go { transform: translateX(4px); }

.card-svc--dark .card-svc__icon { color: var(--sand); }
.card-svc--dark h3 { color: var(--cream); }
.card-svc--dark .card-svc__sub { color: rgba(234, 217, 198, .6); }
.card-svc--dark .card-svc__text,
.card-svc--dark .card-svc__meta { color: rgba(250, 246, 240, .78); }
.card-svc--dark .card-svc__foot { border-top-color: var(--line-light); }
.card-svc--dark .card-svc__go { background: var(--cream); color: var(--olive); }

/* ============================================================
   О клинике
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.about__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.about__shot {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 3 / 4;
}
.about__shot img { width: 100%; height: 100%; object-fit: cover; }
.about__shot--tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.about__tile {
  border-radius: var(--r-md);
  background: var(--olive);
  color: var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
  text-align: center;
  font-size: 15px;
  aspect-ratio: 1 / 1;
}
.about__tile .logo__mark { width: 82px; height: 72px; background-color: var(--sand); }

.about__title { margin: 16px 0 24px; }
.about__title em { color: var(--olive-soft); }
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.feature {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 26px 26px 28px;
}
.feature::before {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--olive);
  opacity: .5;
  margin-bottom: 18px;
}
.feature h4 { font-size: 19px; }
.feature p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-top: 8px; }

/* ============================================================
   Как проходит лечение — реальная последовательность,
   поэтому нумерация здесь оправдана
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { padding-top: 26px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
  display: block;
  margin-bottom: 20px;
}
.step h3 { font-size: 22px; }
.step p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.65; }

/* ============================================================
   Форма записи
   ============================================================ */
.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.booking h2 { color: var(--cream); margin: 18px 0 24px; }
.booking h2 em { color: var(--sand-deep); }
.booking__note { color: rgba(250, 246, 240, .76); max-width: 44ch; }
.booking .eyebrow { color: rgba(234, 217, 198, .55); }
.perks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(250, 246, 240, .9);
  font-size: 16px;
}
.perks li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sand-deep);
  flex: 0 0 7px;
}

.form {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 46px);
}
.form h3 { font-size: 26px; margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field__label span { color: var(--olive-soft); }
.field input,
.field select {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--sand-deep);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { appearance: none; padding-right: 48px; background-image: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--olive);
  border-bottom: 1.5px solid var(--olive);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field input::placeholder { color: #B9AB99; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(78, 88, 66, .12);
}
.field.is-invalid input,
.field.is-invalid select { border-color: #B4553F; }
.field__error {
  display: none;
  font-size: 13px;
  color: #B4553F;
  margin-top: 7px;
}
.field.is-invalid .field__error { display: block; }

.form__consent {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.form__consent a { text-decoration: underline; text-underline-offset: 2px; }
/* Экраны после отправки */
.form__state { text-align: center; padding: 12px 4px; }
.form__state h4 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--olive);
  margin: 16px 0 10px;
}
.form__state > p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
.form__state[data-state="sending"] > p { margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 34px; height: 34px;
  border: 2px solid rgba(83, 93, 68, .18);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tick {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-size: 22px;
  line-height: 1;
}

.bot-invite {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.bot-invite__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; border-top-color: rgba(83, 93, 68, .18); }
}

/* ============================================================
   Контакты
   ============================================================ */
.contacts {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.contacts__card {
  background: var(--clay);
  border-radius: var(--r-lg);
  padding: 40px 36px;
}
.contacts__block + .contacts__block { margin-top: 34px; }
.contacts__block .eyebrow { font-size: 11px; }
.contacts__value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--olive);
  margin-top: 10px;
}
.contacts__value--sm { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); }
.contacts__hours { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--olive);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.social svg { width: 16px; height: 16px; flex: 0 0 16px; }
.social:hover { background: var(--olive); color: var(--cream); }
.social--tg { background: var(--olive); color: var(--cream); }
.social--tg:hover { background: var(--olive-deep); }

.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: rgba(250, 246, 240, .8);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.footer__socials svg { width: 18px; height: 18px; }
.footer__socials a:hover { background: var(--sand); color: var(--olive); border-color: var(--sand); }

.drawer__socials {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
}
.drawer__socials a { border: 0; padding: 0; font-family: var(--font-body); font-size: 15px; }

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 520px;
  background: var(--sand-deep);
}
.map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* ============================================================
   Подвал
   ============================================================ */
.footer { position: relative; overflow: hidden; background: var(--olive); color: rgba(250, 246, 240, .7); padding: 56px 0 40px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-light);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__nav a { font-size: 15px; color: rgba(250, 246, 240, .8); }
.footer__nav a:hover { color: var(--cream); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 14px;
}

/* Мобильная панель записи */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 240, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock .btn { flex: 1; min-height: 50px; padding: 0 14px; font-size: 15px; }

/* ============================================================
   Появление при скролле
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card-svc:hover { transform: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 400px; }
}

@media (max-width: 960px) {
  :root { --gut: 24px; --header-h: 76px; }
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding: 32px 0 56px; }
  .hero__media { order: -1; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .hero__badge { left: auto; right: 16px; bottom: -22px; padding: 16px 20px; min-width: 0; }
  .about { grid-template-columns: 1fr; }
  .head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .booking { grid-template-columns: 1fr; }
  .dock { display: flex; }
  body { padding-bottom: 74px; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 620px) {
  .services, .steps { grid-template-columns: 1fr; }
  .card-svc { min-height: 0; }
  .about__features, .form__row { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 26px 32px; }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 9.5px; letter-spacing: .3em; }
  .logo__mark { width: 42px; height: 37px; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   Внутренние страницы
   ============================================================ */
.page-hero {
  background: var(--sand);
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(56px, 7vw, 92px);
}
.page-hero h1 { margin: 16px 0 22px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--olive); }

.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 6vw, 84px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svc-block:first-of-type { border-top: 0; }
.svc-block h2 { font-size: clamp(28px, 3vw, 44px); }
.svc-block .lead { margin-top: 18px; }
.price-list { margin-top: 8px; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.price-row span:first-child { flex: 0 1 auto; }
.price-row i {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}
.price-row strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--olive);
  font-weight: 500;
  white-space: nowrap;
}
.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor__photo {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand-deep);
  margin-bottom: 18px;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor h3 { font-size: 21px; }
.doctor p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 40px 0 14px; }
.prose p { margin-top: 14px; color: var(--ink-soft); }

@media (max-width: 1180px) { .doctors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .svc-block { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .doctors { grid-template-columns: 1fr; } }

/* Знак-водяной в подвале */
.footer::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 340px;
  height: 296px;
  background-color: var(--sand);
  opacity: .07;
  -webkit-mask: url("../img/logo-olive.png") center / contain no-repeat;
  mask: url("../img/logo-olive.png") center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 960px) { .footer::after { width: 200px; height: 174px; right: -40px; } }

/* ============================================================
   Страница-визитка для ссылки в шапке профиля
   ============================================================ */
.bio {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.bio__card { width: 100%; max-width: 420px; text-align: center; }
.bio__mark {
  width: 96px;
  height: 84px;
  margin: 0 auto 22px;
  background-color: var(--olive);
  -webkit-mask: url("../img/logo-olive.png") center / contain no-repeat;
  mask: url("../img/logo-olive.png") center / contain no-repeat;
}
.bio__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--olive);
}
.bio__sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 0 .34em;
}
.bio__tag { font-size: 15px; color: var(--ink-soft); margin-top: 18px; }

.bio__links { display: grid; gap: 12px; margin-top: 32px; text-align: left; }
.bio__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 22px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  font-weight: 600;
  font-size: 16px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bio__link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(83, 93, 68, .14); }
.bio__link--solid { background: var(--olive); color: var(--cream); }
.bio__link--solid:hover { background: var(--olive-deep); }
.bio__link svg { width: 19px; height: 19px; flex: 0 0 19px; }
.bio__link small { display: block; font-weight: 400; font-size: 13px; opacity: .7; margin-top: 2px; }

.bio__icons { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.bio__icons a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--olive);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.bio__icons svg { width: 19px; height: 19px; }
.bio__icons a:hover { background: var(--olive); color: var(--sand); }

.bio__foot { margin-top: 28px; font-size: 13px; color: var(--muted); }
.bio__foot a { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .bio__link:hover { transform: none; } }

/* ============================================================
   Переключатель языка
   ============================================================ */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: auto;
}
.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang__item:hover { color: var(--olive); }
.lang__item.is-active { background: var(--olive); color: var(--cream); }

.header__inner .lang { margin-left: 0; }

.lang--drawer {
  align-self: flex-start;
  margin: 28px 0 0;
  background: rgba(250, 246, 240, .5);
}

@media (max-width: 960px) {
  .header__inner .lang { display: none; }
}
