/* ============================================================
   Isabelle Dentistry — Hero (первый блок)
   ============================================================ */

:root {
  --gold:         #988351;
  --gold-light:   #b8a06a;
  --gold-dark:    #6f5f37;
  --text-dark:    #2b2620;
  --text-muted:   #6a6258;
  --white:        #ffffff;

  --container:    1400px;
  --side-pad:     60px;
}

/* ------------------------------------------------------------
   Акцентный рукописный шрифт — Great Vibes
   ------------------------------------------------------------
   В ТЗ значился «Good Vibes»; такого семейства в Google Fonts нет.
   Имелся в виду Great Vibes — формальная каллиграфия, кириллица
   в наборе есть (субсет cyrillic отдаётся отдельным файлом).
------------------------------------------------------------ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  font-family: 'Nunito', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #f4f1ec;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}


/* ============================================================
   ШАПКА — стеклянная «таблетка» поверх первого экрана
   ============================================================ */
.header {
  position: fixed;
  top: clamp(16px, 2.6vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;

  width: min(1200px, calc(100vw - 2 * var(--side-pad)));
  border-radius: 1000px;

  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
          backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 10px 34px rgba(84, 72, 45, 0.14);

  transition: top 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* при прокрутке под стеклом идёт контент — прижимаем к краю и уплотняем,
   иначе текст страницы просвечивает сквозь шапку */
.header.is-stuck {
  top: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 28px rgba(84, 72, 45, 0.20);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* симметричные отступы: у «таблетки» оба торца скруглены одинаково */
  padding: 15px 30px;
}

/* ---------- логотип ---------- */
.header__logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.header__logo img {
  width: auto;
  height: 38px;
}

/* ---------- меню ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  list-style: none;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--gold); }

.nav__chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.22s ease;
}

.nav__item--sub:hover .nav__chevron,
.nav__item--sub:focus-within .nav__chevron { transform: rotate(180deg); }

/* ---------- подменю «Наши услуги» ---------- */
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  padding-top: 14px;          /* «мостик» под курсор, чтобы меню не схлопывалось */

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav__item--sub:hover .submenu,
.nav__item--sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.submenu__list {
  min-width: 262px;
  padding: 14px 8px;
  list-style: none;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.70);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
          backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.80),
    0 16px 38px rgba(84, 72, 45, 0.18);
}

.submenu__list a {
  display: block;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.submenu__list a:hover,
.submenu__list a:focus-visible {
  background: rgba(152, 131, 81, 0.13);
  color: var(--gold-dark);
}

/* ---------- график и телефон ---------- */
.header__contacts {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.schedule {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}

.schedule__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.schedule__time {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.header__phone {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.header__phone:hover,
.header__phone:focus-visible { color: var(--gold); }

/* ---------- бургер ---------- */
.burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text-dark);
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: rgba(255, 255, 255, 0.86); }
  .submenu__list { background: rgba(255, 255, 255, 0.97); }
}


/* ---------- адаптив шапки ---------- */
@media (max-width: 1180px) {
  .header__inner { padding: 13px 22px; gap: 16px; }
  .header__logo img { height: 34px; }
  .nav__link { font-size: 15px; }
  .header__phone { font-size: 16px; }
  .schedule__title { font-size: 12px; }
  .schedule__time { font-size: 11px; }
}

@media (max-width: 1024px) {
  /* пять пунктов в строку не помещаются — уводим меню в раскрывающуюся панель */
  .header { border-radius: 34px; }
  .header__inner { flex-wrap: wrap; padding: 12px 18px 12px 22px; }

  .burger { display: block; order: 3; }
  .header__contacts { order: 2; margin-left: auto; }

  .nav {
    order: 4;
    flex-basis: 100%;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
  }

  .header.is-open .nav { grid-template-rows: 1fr; }

  .nav__list {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* flex вместо inline-flex — иначе разделитель шириной по тексту, а не по строке */
  .nav__link {
    display: flex;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 16px;
    border-top: 1px solid rgba(152, 131, 81, 0.18);
  }

  /* раскрытое меню делаем плотнее: сквозь стекло 0.30 текст под ним просвечивал */
  .header.is-open {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
            backdrop-filter: blur(26px) saturate(160%);
  }

  .nav__item:first-child .nav__link { margin-top: 8px; }

  /* подменю в мобильной панели — раскрывается по тапу, без наложения */
  .submenu {
    position: static;
    transform: none;
    padding-top: 0;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: grid-template-rows 0.26s ease;
  }

  .nav__item--sub:hover .submenu,
  .nav__item--sub:focus-within .submenu { transform: none; }

  .header.sub-open .submenu { grid-template-rows: 1fr; }
  .header.sub-open .nav__chevron { transform: rotate(180deg); }
  .nav__item--sub:hover .nav__chevron { transform: none; }

  .submenu__list {
    overflow: hidden;
    min-width: 0;
    padding: 4px 0 8px;
    border: none;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    box-shadow: none;
  }

  .submenu__list a { padding: 9px 14px; font-size: 15px; color: var(--text-muted); }
}

@media (max-width: 720px) {
  .header { top: 12px; border-radius: 28px; }
  .header__inner { padding: 10px 12px 10px 16px; gap: 10px; }
  .header__logo img { height: 30px; }

  /* график прячем — остаётся логотип, телефон и бургер */
  .schedule { display: none; }
  .header__phone { font-size: 15px; }
}

@media (max-width: 400px) {
  .header__phone { font-size: 13.5px; }
  .header__logo img { height: 26px; }
}

/* ------------------------------------------------------------
   HERO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.webp') center center / cover no-repeat;
  z-index: -2;
}

/* Светлая вуаль — чтобы текст слева читался поверх фото */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(255, 253, 249, 0.96) 0%,
      rgba(255, 253, 249, 0.90) 32%,
      rgba(255, 253, 249, 0.60) 52%,
      rgba(255, 253, 249, 0.18) 70%,
      rgba(255, 253, 249, 0.05) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  column-gap: 40px;
  min-height: 100vh;
}

.hero__content { grid-column: 1; grid-row: 1; }

/* фото занимает все ряды — стеклянные блоки ложатся поверх него */
.hero__photo   { grid-column: 2; grid-row: 1 / -1; }

/* нижний блок на всю ширину: плашка + карточка врача над ней */
.hero__bottom  {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  margin-bottom: clamp(34px, 5.5vh, 60px);
}

/* ------------------------------------------------------------
   Левая колонка — текст
------------------------------------------------------------ */
.hero__content {
  padding: clamp(104px, 15vh, 150px) 0 clamp(10px, 1.8vh, 22px);
  max-width: 720px;
  align-self: center;
}

.hero__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.hero__title-accent {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  /* у Great Vibes мелкий очок и длинные выносные — кегль поднимаем */
  font-size: 1.92em;
  line-height: 0.86;
  color: var(--gold);
  /* компенсируем правый вынос росчерка «т» и наклон */
  margin-left: 0.04em;
  padding-right: 0.14em;
}

.hero__subtitle {
  /* запас под нижние росчерки Great Vibes */
  margin-top: clamp(32px, 4.4vh, 44px);
  max-width: 610px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Объёмная кнопка
------------------------------------------------------------ */
.btn-primary {
  display: inline-block;
  margin-top: clamp(28px, 4vh, 40px);
  padding: 23px 55px;
  border: none;
  border-radius: 70px;
  cursor: pointer;

  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.36px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;

  background: linear-gradient(180deg, #b39a5f 0%, var(--gold) 52%, #7e6d42 100%);

  /* объём: нижняя «толщина» + внутренний блик + мягкая тень */
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0  7px  0 #6b5c35,
    0 17px 29px rgba(107, 92, 53, 0.34),
    0  2px  5px rgba(0, 0, 0, 0.10);

  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 10px  0 #6b5c35,
    0 22px 36px rgba(107, 92, 53, 0.40),
    0  2px  5px rgba(0, 0, 0, 0.10);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0  2px  0 #6b5c35,
    0  7px 14px rgba(107, 92, 53, 0.30);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(152, 131, 81, 0.55);
  outline-offset: 4px;
}

/* ------------------------------------------------------------
   Плашка — стеклянный эффект
------------------------------------------------------------ */
.stats {
  margin-top: 0;
  margin-bottom: 0;
  z-index: 2;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 0;
  padding: 26px 20px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 32px rgba(84, 72, 45, 0.13);
}

.stats__item {
  width: 100%;            /* колонки равной ширины -> золотые линейки одной длины */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: center;
}

.stats__value {
  display: block;
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: var(--text-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(152, 131, 81, 0.45);
}

.stats__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;   /* «на Яндекс.Картах» и остальные — строго в одну строку */
  color: var(--text-muted);
}

.stats__star { color: var(--gold); }

.stats__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Правая колонка — фото
------------------------------------------------------------ */
.hero__photo {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  /* лёгкий выход за паддинг контейнера, но без прилипания к краю экрана */
  margin-right: calc(var(--side-pad) * -0.35);
}

/* Обёртка нужна, чтобы световые слои точно совпали с силуэтом по маске */
.photo {
  position: relative;
  display: block;
  margin: 0;
  line-height: 0;
}

.photo picture { display: block; }

.photo__img {
  display: block;
  width: auto;
  max-height: min(94vh, 900px);
  object-fit: contain;
  object-position: bottom right;

  /* сцена высветленная и малоконтрастная — подтягиваем фото под неё */
  filter:
    brightness(1.05)
    contrast(0.93)
    saturate(0.90)
    drop-shadow(-16px 18px 38px rgba(122, 106, 78, 0.20));
}

/* Общая световая среда: тепло от окна справа, мягкая холодная тень слева */
.photo__grade,
.photo__rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url('../images/diana.webp') center bottom / 100% 100% no-repeat;
          mask: url('../images/diana.webp') center bottom / 100% 100% no-repeat;
}

.photo__grade {
  background: linear-gradient(255deg,
    rgba(255, 243, 219, 0.62) 0%,
    rgba(255, 238, 209, 0.30) 34%,
    rgba(233, 226, 210, 0.10) 62%,
    rgba(116, 108, 92, 0.22)  100%);
  mix-blend-mode: soft-light;
}

/* Контровой блик по правому краю — источник света тот же, что на фоне */
.photo__rim {
  background: linear-gradient(272deg,
    rgba(255, 252, 243, 0.95) 0%,
    rgba(255, 250, 236, 0.35) 7%,
    rgba(255, 250, 236, 0)   18%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* ------------------------------------------------------------
   Карточка врача — то же стекло, тонированное в #988351
------------------------------------------------------------ */
.doctor {
  /* Вне потока: не добавляет высоты герою на низких экранах.
     right: 0 и bottom: 100% отсчитываются от .hero__bottom, поэтому правая
     граница карточки совпадает с правой границей плашки автоматически. */
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: clamp(18px, 2.6vh, 30px);
  z-index: 3;

  width: max-content;
  max-width: min(340px, 100%);
  padding: 16px 24px;
  border-radius: 16px;
  text-align: left;
  line-height: 1.38;
  color: var(--white);

  /* Тон #988351 -> к более тёмному краю того же оттенка: так белый текст
     остаётся читаемым поверх светлого фото, а стекло не превращается в заливку */
  background: linear-gradient(148deg,
    rgba(152, 131, 81, 0.80) 0%,
    rgba(111, 95, 55, 0.83) 100%);
  border: 1px solid rgba(255, 255, 255, 0.36);

  -webkit-backdrop-filter: blur(18px) saturate(140%) brightness(0.84);
          backdrop-filter: blur(18px) saturate(140%) brightness(0.84);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 14px 34px rgba(84, 72, 45, 0.28);
}

.doctor__role {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.93);
}

.doctor__name {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .doctor {
    background: linear-gradient(148deg, rgba(140, 120, 72, 0.90), rgba(104, 89, 51, 0.92));
  }
}

/* ------------------------------------------------------------
   Адаптив
------------------------------------------------------------ */
@media (max-width: 1280px) {
  :root { --side-pad: 40px; }
  .hero__content { padding: clamp(96px, 13vh, 130px) 0 clamp(8px, 1.6vh, 20px); }
  .stats { padding: 22px 14px; }
  .stats__item { padding: 0 10px; }
  .stats__value { font-size: 18px; }
  .stats__label { font-size: 13px; }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 100vh;
    row-gap: 24px;
    align-content: end;
  }

  .hero__content { grid-column: 1; grid-row: 1; }
  .hero__bottom  { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .hero__photo   { grid-column: 1; grid-row: 3; }

  .hero__veil {
    background: linear-gradient(180deg,
      rgba(255, 253, 249, 0.94) 0%,
      rgba(255, 253, 249, 0.88) 55%,
      rgba(255, 253, 249, 0.72) 100%);
  }

  .hero__content {
    /* запас под стеклянную шапку, она лежит поверх экрана */
    padding: clamp(118px, 13vh, 140px) 0 0;
    max-width: 100%;
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }

  .hero__photo {
    justify-content: center;
    margin-right: 0;
    height: auto;
  }

  /* на планшете свет падает фронтально — контровой блик убираем */
  .photo__rim { opacity: 0.22; }

  /* в колонку вертикального запаса хватает — карточка становится в поток
     над плашкой и центрируется */
  .doctor {
    position: static;
    margin: 0 auto clamp(14px, 2vh, 20px);
    text-align: center;
    width: max-content;
    max-width: min(340px, calc(100vw - 40px));
  }
  .photo__img { max-height: min(48vh, 460px); }
}

@media (max-width: 720px) {
  :root { --side-pad: 20px; }

  .hero__content { padding: clamp(112px, 13vh, 130px) 0 0; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { margin-top: 26px; font-size: 15px; line-height: 1.65; }

  .btn-primary {
    margin-top: 32px;
    width: 100%;
    padding: 21px 24px;
    font-size: 19px;
    text-align: center;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 10px;
    padding: 22px 12px;
    border-radius: 16px;
  }

  .stats__item { padding: 0 6px; }
  .stats__value { font-size: 17px; padding-bottom: 9px; }
  .stats__label { font-size: 12.5px; }

  /* на мобильной — другой кроп, маску световых слоёв меняем вместе с ним,
     иначе подсветка ляжет мимо силуэта */
  .photo__grade,
  .photo__rim {
    -webkit-mask-image: url('../images/diana-mobile.webp');
            mask-image: url('../images/diana-mobile.webp');
  }

  .photo__img { max-height: min(46vh, 420px); }

  /* Только мобильная: карточка врача ложится стеклом поверх фото.
     .hero__bottom снимаем с relative, чтобы абсолют считался от .hero__inner,
     нижняя грань которого совпадает с низом фото. */
  .hero__bottom { position: static; }

  .doctor {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 22px;
    transform: translateX(-50%);
    margin: 0;
    z-index: 4;

    padding: 14px 18px;
    border-radius: 14px;
  }
  .doctor__role { font-size: 12.5px; }
  .doctor__name { font-size: 16px; margin-top: 6px; }
}

/* Совсем узкие экраны: не даём «на Яндекс.Картах» вылезти за плашку */
@media (max-width: 400px) {
  .stats { padding: 20px 10px; }
  .stats__item { padding: 0 3px; }
  .stats__value { font-size: 15.5px; }
  .stats__label { font-size: 11.5px; }
}

/* Фоллбэк для браузеров без backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stats { background: rgba(255, 255, 255, 0.72); }
}

/* ============================================================
   БЛОК 2 — ЦЕННОСТИ
   ============================================================ */
.values {
  /* запас под фиксированную шапку при переходе по якорям из меню */
  scroll-margin-top: 110px;
  background: var(--white);
  padding: clamp(64px, 7.5vw, 108px) 0 clamp(58px, 6.5vw, 96px);
}

.values__title {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(25px, 3.1vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}

.values__title-accent {
  display: inline-block;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  /* тот же приём, что в первом экране: у Great Vibes мелкий очок */
  font-size: 1.62em;
  line-height: 0.92;
  color: var(--gold);
  margin-top: 0.06em;
  padding-right: 0.12em;
}

/* Заголовок держим в три строки, пока первая строка помещается в контейнер.
   Порог подобран по факту: ниже 620px она уже не влезает и ломается на четыре,
   поэтому там принудительные переносы убираем и даём тексту течь. */
@media (max-width: 620px) {
  .values__title br { display: none; }
  .values__title { line-height: 1.28; }
}

/* ============================================================
   Dental Values Cards
   ============================================================ */
.dv-section {
  /* фон блока белый — задаётся секцией .values */
  background: transparent;
  padding: clamp(38px, 4.5vw, 64px) var(--side-pad) 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.dv-section *,
.dv-section *::before,
.dv-section *::after { box-sizing: border-box; }

.dv-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* === Card === */
.dv-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #a08555;
  border-radius: 22px;
  padding: 36px 28px 32px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.dv-card.dv-in {
  opacity: 1;
  transform: translateY(0);
}

.dv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px -12px rgba(160, 133, 85, 0.28);
  border-color: #8a6d3f;
}

/* Верхняя акцентная линия, выезжает по наведению */
.dv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent 0%, #a08555 25%, #d4b478 50%, #a08555 75%, transparent 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.dv-card:hover::before { transform: scaleX(1); }

/* Декоративное свечение */
.dv-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(160, 133, 85, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
  pointer-events: none;
}

.dv-card:hover::after {
  transform: scale(1);
  opacity: 1;
}

/* === Иконка === */
.dv-icon-wrap {
  position: relative;
  width: 64px; height: 64px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #faf6ef 0%, #f0e6d2 100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease;
  z-index: 1;
}

.dv-card:hover .dv-icon-wrap {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(135deg, #f5ecda 0%, #e8d9b5 100%);
}

.dv-icon {
  width: 38px; height: 38px;
  color: #a08555;
  transition: color 0.4s ease;
  overflow: visible;
}

.dv-card:hover .dv-icon { color: #8a6d3f; }

/* === Типографика === */
.dv-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1f2c3d;
  text-transform: uppercase;
}

.dv-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5568;
}

/* === Анимации иконок === */

/* 1. Пульс сердца */
@keyframes dv-pulse {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.12); }
  50%      { transform: scale(1); }
  75%      { transform: scale(1.08); }
}

.dv-heart {
  transform-origin: 18px 18px;
  transition: transform 0.4s ease;
}

.dv-card:hover .dv-heart { animation: dv-pulse 1.4s ease-in-out infinite; }

/* Линия ЭКГ */
.dv-ekg {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.8s ease;
}

.dv-card:hover .dv-ekg { animation: dv-ekg-draw 1.4s ease-in-out infinite; }

@keyframes dv-ekg-draw {
  0%   { stroke-dashoffset: 24; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}

/* 2. Скан глаза */
@keyframes dv-eye-scan {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2.5px); }
  75%      { transform: translateX(2.5px); }
}

.dv-pupil-group { transition: transform 0.4s ease; }

.dv-card:hover .dv-pupil-group { animation: dv-eye-scan 2.2s ease-in-out infinite; }

@keyframes dv-eye-rays {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%      { opacity: 0.6; transform: scale(1.1); }
}

.dv-eye-ray {
  transform-origin: 18px 18px;
  opacity: 0;
}

.dv-card:hover .dv-eye-ray { animation: dv-eye-rays 1.8s ease-in-out infinite; }

/* 3. Галочка на щите */
.dv-check {
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
}

.dv-card:hover .dv-check { animation: dv-check-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }

@keyframes dv-check-draw {
  0%   { stroke-dashoffset: 22; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes dv-shield-glow {
  0%, 100% { fill: rgba(160, 133, 85, 0.06); }
  50%      { fill: rgba(160, 133, 85, 0.18); }
}

.dv-card:hover .dv-shield { animation: dv-shield-glow 1.6s ease-in-out infinite; }

/* 4. Улыбка и искры */
@keyframes dv-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1.15); }
}

.dv-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.4;
}

.dv-card:hover .dv-sparkle-1 { animation: dv-twinkle 1.4s ease-in-out infinite; }
.dv-card:hover .dv-sparkle-2 { animation: dv-twinkle 1.4s ease-in-out 0.4s infinite; }
.dv-card:hover .dv-sparkle-3 { animation: dv-twinkle 1.4s ease-in-out 0.8s infinite; }

@keyframes dv-smile-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.2px); }
}

.dv-smile { transform-origin: 18px 22px; }

.dv-card:hover .dv-smile { animation: dv-smile-bounce 1.6s ease-in-out infinite; }

/* === Адаптив карточек === */
@media (max-width: 1024px) {
  .dv-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 720px) {
  .dv-grid { grid-template-columns: 1fr; gap: 16px; }
  .dv-card { padding: 30px 24px 28px; border-radius: 20px; }
  .dv-icon-wrap { width: 58px; height: 58px; margin-bottom: 18px; }
  .dv-icon { width: 34px; height: 34px; }
  .dv-title { font-size: 17px; }
  .dv-text { font-size: 14px; }

  /* на тач-устройствах :hover не срабатывает — карточки показываем сразу */
  .dv-card::before { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dv-card,
  .dv-card *,
  .dv-card::before,
  .dv-card::after { animation: none !important; transition: none !important; }
  .dv-card { opacity: 1; transform: none; }
}

/* ============================================================
   ЭТАПЫ ПРОФЕССИОНАЛЬНОЙ ГИГИЕНЫ (hygiene.html)
   ============================================================ */
.hyg-steps {
  background: #FBF6EC;
  padding: clamp(64px, 7.5vw, 108px) 0;
}

.hyg-steps__intro {
  max-width: 760px;
  margin: 0 auto clamp(36px, 4vw, 56px);
  text-align: center;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: #5a4a35;
}

.hyg-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 980px;
  margin-inline: auto;
}

.hyg-step {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid rgba(160, 133, 85, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 40px -28px rgba(80, 55, 25, 0.18);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.hyg-step:hover {
  transform: translateY(-3px);
  border-color: rgba(160, 133, 85, 0.45);
  box-shadow: 0 26px 50px -28px rgba(80, 55, 25, 0.28);
}

.hyg-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(140deg, #c9a96a 0%, #a08555 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.5px;
  box-shadow: 0 12px 24px -12px rgba(160, 133, 85, 0.55);
  position: relative;
  flex-shrink: 0;
}

.hyg-step__num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(160, 133, 85, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hyg-step__body {
  min-width: 0;
}

.hyg-step__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
  color: var(--text-dark, #2c2417);
  margin: 4px 0 12px;
  letter-spacing: -0.2px;
}

.hyg-step__lead {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: #4a3d28;
  margin: 0 0 14px;
}

.hyg-step__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.hyg-step__list li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.55;
  color: #5a4a35;
}

.hyg-step__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a96a;
  box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.18);
}

.hyg-step__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(160, 133, 85, 0.25);
  font-size: 13px;
  color: #7a6a52;
  letter-spacing: 0.2px;
}

.hyg-step__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hyg-step__meta span::before {
  content: '•';
  color: #c9a96a;
  font-size: 16px;
  line-height: 1;
}

.hyg-step__meta span:first-child::before { content: none; }

@media (max-width: 720px) {
  .hyg-step {
    grid-template-columns: 64px 1fr;
    padding: 22px 20px;
    border-radius: 18px;
  }
  .hyg-step__num {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
  .hyg-step__num::after { inset: -4px; }
  .hyg-step__list { grid-template-columns: 1fr; gap: 6px; }
  .hyg-step__title { font-size: 18px; }
  .hyg-step__lead { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hyg-step,
  .hyg-step:hover { transform: none; transition: none; }
}

/* ============================================================
   БЛОК 3 — ВРАЧИ
   ============================================================ */
.doctors {
  scroll-margin-top: 110px;
  background: #F5EEE0;
  padding: clamp(64px, 7.5vw, 108px) 0;
}

.doctors__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.doctors__title-accent {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 0.9;
  color: var(--gold);
  padding-right: 0.1em;
}

.doctors__subtitle {
  max-width: 620px;
  margin: clamp(14px, 2vw, 22px) auto 0;
  text-align: center;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}

.doctors__grid {
  max-width: 1180px;
  margin: clamp(38px, 4.5vw, 62px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ---------- карточка врача ---------- */
.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(152, 131, 81, 0.28);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.doc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(152, 131, 81, 0.55);
  box-shadow: 0 22px 44px -14px rgba(122, 106, 78, 0.30);
}

.doc-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9e2d4;
}

.doc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.doc-card:hover .doc-card__img { transform: scale(1.04); }

/* заглушка для врачей без фотографии */
.doc-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #efe7d6 0%, #e2d6bd 100%);
}

.doc-card__img--empty span {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(152, 131, 81, 0.75);
}

.doc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}

.doc-card__name {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.doc-card__role {
  margin-top: 7px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gold);
}

.doc-card__text {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.doc-card__actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 10px;
}

/* ---------- кнопки карточки ---------- */
.doc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 40px;
  font-family: 'Nunito', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

.doc-btn--ghost {
  border: 1.5px solid rgba(152, 131, 81, 0.55);
  background: transparent;
  color: var(--gold-dark);
}

.doc-btn--ghost:hover {
  background: rgba(152, 131, 81, 0.10);
  border-color: var(--gold);
}

/* Плоско-мягкая заливка без «толщины».
   Объёмный вариант, как у кнопки первого экрана, на этом размере давал
   светлую полосу сверху (внутренний блик) и тёмную снизу (0 4px 0),
   а ещё делал кнопки визуально разной высоты с соседней «Подробнее». */
.doc-btn--solid {
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #a89258 0%, #947f4d 100%);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(122, 106, 78, 0.26);
}

.doc-btn--solid:hover {
  background: linear-gradient(180deg, #b5a067 0%, #9d8853 100%);
  box-shadow: 0 10px 22px rgba(122, 106, 78, 0.34);
  transform: translateY(-2px);
}

.doc-btn--solid:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(122, 106, 78, 0.26);
}

.doc-btn:focus-visible { outline: 3px solid rgba(152, 131, 81, 0.55); outline-offset: 3px; }

/* ============================================================
   Выезжающая справа панель врача
   ============================================================ */
.doc-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(43, 38, 32, 0.45);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.doc-overlay.is-visible { opacity: 1; }

.doc-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(1020px, 100vw);
  height: 100dvh;
  background: var(--white);
  box-shadow: -24px 0 60px rgba(43, 38, 32, 0.22);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.doc-panel.is-open { transform: translateX(0); }

.doc-panel__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.16);
  transition: background-color 0.2s ease, transform 0.3s ease;
}

.doc-panel__close:hover { background: #fff; transform: rotate(90deg); }
.doc-panel__close svg { width: 20px; height: 20px; }

.doc-panel__scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 40px;
}

.doc-panel__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9e2d4;
}

.doc-panel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc-panel__name {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

.doc-panel__role {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.doc-panel__text {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-muted);
}

.doc-panel__cta {
  display: flex;
  margin: 28px 0 0;
  padding: 15px 24px;
  font-size: 16px;
}

.doc-panel__reviews {
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(152, 131, 81, 0.28);
}

.doc-panel__reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.doc-panel__reviews-head h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.doc-panel__reviews-head a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.doc-panel__reviews-head a:hover { text-decoration: underline; }

.doc-rev-list {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-rev {
  padding: 18px 20px;
  border-radius: 14px;
  background: #F5EEE0;
}

.doc-rev__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-rev__author {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
}

/* метка источника: отзыв именно об этом враче или о клинике в целом */
.doc-rev__tag {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--gold);
}

.doc-rev__tag--clinic {
  color: var(--gold-dark);
  background: rgba(152, 131, 81, 0.18);
}

.doc-rev__stars {
  margin-top: 7px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
}

.doc-rev__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.doc-rev__date {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: #9a9184;
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .doctors__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .doc-card__body { padding: 22px 20px 24px; }
  .doc-card__name { font-size: 19px; }
  .doc-card__text { font-size: 14.5px; }
}

@media (max-width: 720px) {
  .doc-panel { width: 100vw; }
  .doc-panel__name,
  .doc-panel__role,
  .doc-panel__text,
  .doc-panel__cta,
  .doc-panel__reviews { margin-left: 20px; margin-right: 20px; }
  .doc-panel__media { aspect-ratio: 3 / 2; }
}

@media (max-width: 620px) {
  .doctors__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    /* карточка по центру экрана, с полями по бокам */
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* сдвиг вверх на hover тут не нужен — на тач-экране он только мешает */
  .doc-card:hover { transform: none; box-shadow: none; }

  .doc-card__body { padding: 22px 20px 26px; }
}

@media (max-width: 380px) {
  .doc-card__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .doc-card,
  .doc-card__img,
  .doc-panel,
  .doc-overlay { transition: none !important; }
}


/* ---------- дополнительные блоки в панели врача ---------- */
.doc-panel__block {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(152, 131, 81, 0.22);
}

.doc-panel__block h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.doc-panel__list,
.doc-panel__steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.doc-panel__list { list-style: none; }

.doc-panel__list li {
  position: relative;
  padding-left: 26px;
}

.doc-panel__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.doc-panel__steps {
  counter-reset: step;
  list-style: none;
}

.doc-panel__steps li {
  position: relative;
  padding-left: 34px;
  counter-increment: step;
}

.doc-panel__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  background: var(--gold);
}

@media (max-width: 720px) {
  .doc-panel__block { margin-left: 20px; margin-right: 20px; }
}


/* ============================================================
   Панель врача: две колонки на десктопе
   ============================================================ */
@media (min-width: 721px) {
  .doc-panel__scroll {
    display: flex;
    align-items: flex-start;
  }

  /* Фотография слева целиком, в своей пропорции 3:4 — не растягиваем
     на всю высоту панели, иначе кадр обрезается. Липнет к верху при скролле. */
  .doc-panel__media {
    position: sticky;
    top: 0;
    flex: 0 0 clamp(300px, 38%, 400px);
    align-self: stretch;
    /* колонка под фото в цвете блока «Врачи» */
    background: #F5EEE0;
  }

  /* фото по центру своей колонки, в собственной пропорции 3:4 */
  .doc-panel__media .doc-panel__img,
  .doc-panel__media > span {
    display: block;
    width: min(320px, 88%);
    margin: 40px auto 0;
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(122, 106, 78, 0.20);
  }

  .doc-panel__content {
    flex: 1;
    min-width: 0;
    padding: 34px 38px 44px;
  }
}

/* Мобильная: портрет по центру, отдельным блоком, а не полосой во всю ширину */
@media (max-width: 720px) {
  .doc-panel__content { padding: 24px 20px 40px; }

  .doc-panel__media {
    width: min(280px, 68%);
    margin: 54px auto 0;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(122, 106, 78, 0.22);
  }

  .doc-panel__img { object-position: center top; }

  /* заголовок под центрированным фото тоже выравниваем по центру */
  .doc-panel__name,
  .doc-panel__role { text-align: center; }
}

/* ============================================================
   БЛОК 4 — УСЛУГИ
   ============================================================ */
.services {
  scroll-margin-top: 110px;
  background: var(--gold);
  padding: clamp(64px, 7.5vw, 108px) 0;
}

.services__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(37px, 4.4vw, 66px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--white);
}

.services__title-accent {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 0.9;
  /* на золотом фоне акцент делаем светлым, иначе он теряется */
  color: #fdf6e6;
  padding-right: 0.1em;
}

.services__subtitle {
  max-width: 820px;
  margin: clamp(18px, 2.4vw, 26px) auto 0;
  text-align: center;
  font-size: clamp(17.5px, 1.5vw, 22px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.88);
}

.services__grid {
  margin-top: clamp(38px, 4.5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---------- карточка услуги ---------- */
.srv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 28px 34px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px -16px rgba(60, 48, 24, 0.42);
}

.srv-card__icon {
  /* Картинки нормализованы: содержимое обрезано вплотную и отцентровано,
     поэтому видимый размер иконки = размеру контейнера у всех восьми. */
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.srv-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.srv-card:hover .srv-card__icon { transform: scale(1.08); }

.srv-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #1f2c3d;
}

.srv-card__subtitle {
  margin-top: 13px;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #2b3a4d;
}

.srv-card__text {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.5;
  color: #8d8578;
}

/* «Подробнее» прижата к низу, чтобы во всех карточках была на одной линии */
.srv-card__more {
  margin-top: auto;
  padding-top: 28px;
  font-size: 17.5px;
  font-weight: 500;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.srv-card__more::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 2px;
  background: currentColor;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.srv-card__more:hover,
.srv-card__more:focus-visible { color: var(--gold); }
.srv-card__more:hover::after { opacity: 1; }

.srv-card__more:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
  border-radius: 4px;
}

/* уточнение для скринридеров: «Подробнее» само по себе неинформативно */
.srv-card__more-full {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .services__grid { gap: 20px; }
  .srv-card { padding: 32px 20px 28px; }
  .srv-card__icon { width: 68px; height: 68px; }
  .srv-card__title { font-size: 20px; }
  .srv-card__subtitle { font-size: 16.5px; }
  .srv-card__text { font-size: 14.5px; }
  .srv-card__more { font-size: 16.5px; }
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .srv-card { padding: 38px 26px 32px; }
  .srv-card__icon { width: 74px; height: 74px; }
  .srv-card__title { font-size: 21px; }
  .srv-card__subtitle { font-size: 17.5px; }
}

@media (max-width: 620px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .srv-card { padding: 34px 24px 30px; }
  .srv-card:hover { transform: none; box-shadow: none; }
  .srv-card__icon { width: 68px; height: 68px; }
  .srv-card__more { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .srv-card,
  .srv-card__icon { transition: none !important; }
}


/* ---------- Призыв под карточками услуг ---------- */
.services__cta {
  margin-top: clamp(46px, 5.5vw, 78px);
  text-align: center;
}

.services__cta-title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  /* у Great Vibes мелкий очок — кегль выше, чем у обычного текста */
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.22;
  color: #fdf6e6;
}

.services__cta-text {
  /* ширины хватает, чтобы на десктопе строка не ломалась пополам */
  max-width: 860px;
  /* запас под нижние росчерки строки выше */
  margin: clamp(14px, 1.8vw, 24px) auto 0;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.services__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 19px 46px;
  border-radius: 60px;

  font-family: 'Nunito', sans-serif;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-decoration: none;

  background: var(--white);
  color: var(--gold-dark);
  box-shadow: 0 10px 26px rgba(60, 48, 24, 0.26);

  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.services__cta-btn:hover {
  transform: translateY(-3px);
  color: #7a683e;
  box-shadow: 0 16px 34px rgba(60, 48, 24, 0.34);
}

.services__cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(60, 48, 24, 0.26);
}

.services__cta-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .services__cta-btn {
    width: 100%;
    max-width: 440px;
    padding: 18px 24px;
    white-space: normal;
  }
}

/* ============================================================
   БЛОК 5 — О КЛИНИКЕ
   ============================================================ */
.about {
  position: relative;
  scroll-margin-top: 110px;
  background: var(--white);
  padding: clamp(64px, 7.5vw, 108px) 0;
  overflow: hidden;
}

/* ---------- лента фотографий ---------- */
.about__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  pointer-events: none;
}

.about__lane {
  display: flex;
  /* Дорожка — флекс-элемент внутри .about__track и по умолчанию сжимается
     до ширины трека, а от её бокса считается сдвиг. Фиксируем настоящую ширину. */
  flex: 0 0 auto;
  width: max-content;
  gap: 22px;
  padding-left: 22px;
  /* Движение — CSS-анимация: она идёт на композиторе и не зависит от
     загрузки главного потока. Плавную остановку по наведению даёт скрипт,
     мягко уводя playbackRate к нулю. */
  animation: about-scroll var(--about-duration, 60s) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.about__lane img {
  flex: 0 0 auto;
  /* высоту задаёт скрипт — фото встают вровень с текстом */
  height: var(--about-media-h, 460px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(70, 60, 40, 0.35);
}

/* ---------- текст поверх ленты ---------- */
.about__inner {
  position: relative;
  z-index: 2;
}

.about__text {
  position: relative;
  z-index: 1;
  width: min(560px, 54%);
  padding: clamp(30px, 4vw, 56px) clamp(28px, 3.4vw, 52px) clamp(30px, 4vw, 56px) 0;
}

/* Белая «штора» на всю высоту секции: фотографии заезжают под неё.
   Тянем далеко вверх/вниз и за левый край, чтобы перекрыть ленту целиком. */
.about__text::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -600px;
  bottom: -600px;
  right: 0;
  left: -100vw;
  background: var(--white);
}

/* мягкий стык: лента не обрывается по прямой, а растворяется */
.about__text::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -600px;
  bottom: -600px;
  left: 100%;
  width: clamp(60px, 9vw, 130px);
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.about__title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(46px, 5.6vw, 86px);
  line-height: 1.05;
  color: var(--gold);
}

.about__text p {
  margin-top: clamp(16px, 1.8vw, 22px);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.72;
  color: var(--text-muted);
}

.about__text p:first-of-type { margin-top: clamp(18px, 2.2vw, 28px); }

/* последняя строка — приглашение, выделяем её */
.about__closing {
  font-weight: 600;
  color: var(--gold-dark) !important;
}

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .about__text { width: min(520px, 62%); }
}

/* В колонку: лента уходит под текст сверху вниз не читается,
   поэтому текст ставим над лентой, а ленту — отдельной полосой снизу. */
@media (max-width: 720px) {
  /* лента идёт первой в разметке, поэтому порядок задаём флексом:
     сначала текст, под ним полоса фотографий */
  .about {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .about__inner { order: 1; position: static; }

  .about__track {
    order: 2;
    position: static;
    transform: none;
    margin-top: clamp(30px, 6vw, 44px);
  }

  .about__text {
    width: 100%;
    padding: 0;
  }

  .about__text::before,
  .about__text::after { display: none; }

  .about__lane { gap: 14px; padding-left: 14px; }
  .about__lane img {
    height: auto;
    width: 240px;
    border-radius: 14px;
  }
}




@keyframes about-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .about__lane { animation: none; }
}

/* ---------- пауза по наведению (только десктоп) ---------- */
@media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
  /* у трека pointer-events: none, поэтому возвращаем их дорожке —
     иначе наведение и клик по кадрам не ловятся */
  .about__lane { pointer-events: auto; }

}


/* ============================================================
   БЛОК 6 — ОТЗЫВЫ (3D-плоскость с параллаксом колонок)
   ============================================================ */
.reviews {
  scroll-margin-top: 110px;
  background: var(--white);
  padding: clamp(64px, 7.5vw, 108px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.reviews__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.reviews__title-accent {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.5em;
  line-height: 0.9;
  color: var(--gold);
  padding-right: 0.1em;
}

.reviews__subtitle {
  max-width: 680px;
  margin: clamp(14px, 2vw, 22px) auto 0;
  text-align: center;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

.reviews__link {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gold);
  text-decoration: none;
}

.reviews__link:hover { text-decoration: underline; }

/* ---------- ссылка в самом конце блока (только десктоп) ---------- */
.reviews__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.reviews__cta-btn {
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.reviews__cta-btn:hover { color: var(--gold-dark); }

/* ---------- бегущие строки отзывов (только мобильная версия) ---------- */
.reviews__marquees { display: none; }

.reviews__marquee { overflow: hidden; }
.reviews__marquee + .reviews__marquee { margin-top: 16px; }

.reviews__track {
  display: flex;
  width: max-content;
  gap: 16px;
  will-change: transform;
}
/* верхняя строка — справа налево, нижняя — слева направо
   (длительность задаёт JS от скорости; 40s — запасное значение) */
.reviews__track--rtl { animation: rv-marquee-rtl 40s linear infinite; }
.reviews__track--ltr { animation: rv-marquee-ltr 40s linear infinite; }

.reviews__track .rv-card {
  flex: 0 0 auto;
  width: 260px;
  height: 220px;
  overflow: hidden;
}
.reviews__track .rv-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes rv-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes rv-marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__track--rtl,
  .reviews__track--ltr { animation: none; }
  .reviews__marquee { overflow-x: auto; }
}

/* ---------- сцена: 3D-перспектива ---------- */
.reviews__stage {
  position: relative;
  height: 1203px;
  margin-top: clamp(30px, 4vw, 52px);
  perspective: 1500px;
  overflow: hidden;
  /* края колонок растворяются в белом фоне блока сверху и снизу */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 84%, transparent 100%);
}

.reviews__grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1180px, 118%);
  display: flex;
  justify-content: center;
  gap: clamp(16px, 1.6vw, 26px);
  transform-style: preserve-3d;

  /* переменные задаёт скрипт по прокрутке — «разворот» плоскости */
  --rx: 6deg;
  --ry: -8deg;
  --rz: 2deg;
  transform:
    translate(-50%, -50%)
    rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  will-change: transform;
  backface-visibility: hidden;
}

.reviews__col {
  flex: 1 1 0;
  min-width: 0;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
  transform: translateY(var(--cy, 0px));
  will-change: transform;
}

/* среднюю колонку приподнимаем — «стена» получается со смещением */
.reviews__col[data-col="2"] { margin-top: -8%; }

/* ---------- карточка отзыва ---------- */
.rv-card {
  padding: 24px 24px 22px;
  border-radius: 18px;
  background: #988351;
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(60, 48, 24, 0.6);
}

.rv-card__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rv-card__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dark);
  background: #fdf6e6;
}

.rv-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rv-card__name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.rv-card__stars {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #ffe6ad;
}

.rv-card__text {
  margin-top: 15px;
  font-size: 14.5px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.94);
}

.rv-card__date {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .reviews__stage { height: min(78vh, 680px); perspective: 1300px; }
  .reviews__grid { width: min(760px, 122%); }
  .reviews__col:nth-child(3) { display: none; }   /* две колонки на планшете */
}

/* Мобильная: без 3D и параллакса — обычный вертикальный список.
   Скролл-параллакс с наклоном на телефоне читается плохо. */
@media (max-width: 620px) {
  .reviews { padding-bottom: clamp(50px, 12vw, 72px); }

  /* на телефоне вместо 3D-сцены — две встречные бегущие строки */
  .reviews__stage { display: none; }
  .reviews__marquees { display: block; margin-top: clamp(26px, 7vw, 40px); }

  /* «смотреть все» из-под заголовка убираем — ссылка остаётся под строками */
  .reviews__link { display: none; }
  .reviews__cta { margin-top: clamp(22px, 6vw, 34px); }

  .reviews__grid {
    position: static;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    flex-direction: column;
    gap: 16px;
    transform: none !important;
  }

  .reviews__col {
    max-width: none;
    transform: none !important;
    gap: 16px;
  }

  .reviews__col[data-col="2"] { margin-top: 0; }
  .reviews__col:nth-child(3) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__grid { transform: translate(-50%, -50%) !important; }
  .reviews__col { transform: none !important; }
}


/* ============================================================
   БЛОК 7 — КОНТАКТЫ (карта + приглашение)
   ============================================================ */
.contacts {
  background: #F5EEE0;
  padding: clamp(56px, 8vw, 96px) var(--side-pad);
}

.contacts__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contacts__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.contacts__title-accent {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 0.9;
  color: var(--gold);
  white-space: nowrap;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  margin-top: clamp(30px, 4vw, 52px);
}

.contacts__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contacts__lead {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  color: var(--text-dark);
}

.contacts__text {
  margin-top: 16px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
}

.contacts__call {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.contacts__call-label {
  font-size: clamp(15px, 1.15vw, 18px);
  color: var(--text-muted);
}

.contacts__phone {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-dark);
  text-decoration: none;
  white-space: nowrap;
}

.contacts__phone:hover { color: var(--gold); }

.contacts__addr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.4;
  color: var(--text-dark);
}

.contacts__addr svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.contacts__btn { margin-top: clamp(28px, 4vw, 40px); }

.contacts__map {
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -26px rgba(80, 66, 38, 0.55);
  background: #e7ddc8;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

@media (max-width: 860px) {
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__info { align-items: center; text-align: center; }
  .contacts__addr { justify-content: center; }
  .contacts__map { min-height: 320px; margin-top: 6px; }
}


/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  background: #988351;
  color: rgba(255, 255, 255, 0.9);
  padding: clamp(48px, 6vw, 72px) var(--side-pad) 0;
}

.footer__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.footer__logo {
  width: 220px;
  height: auto;
  /* двухцветный логотип перекрашиваем в чистый белый */
  filter: brightness(0) invert(1);
}

.footer__about {
  margin-top: 22px;
  max-width: 460px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(24px, 4vw, 56px);
  justify-content: end;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.footer__links { list-style: none; }

.footer__links li + li { margin-top: 12px; }

.footer__links a,
.footer__phone {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

.footer__links a:hover,
.footer__phone:hover { opacity: 0.72; }

.footer__phone {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.footer__line {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.footer__bottom {
  max-width: 1200px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__about { max-width: none; }
  .footer__cols { justify-content: start; grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ссылки на юридические страницы в подвале */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__legal a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13.5px;
}
.footer__legal a:hover { color: #fff; text-decoration: underline; }


/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ — политика конфиденциальности, согласие
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(152, 131, 81, 0.18);
}

.legal-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-header__logo img { width: 186px; height: auto; }

.legal-header__home {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.legal-header__home:hover { color: var(--gold); }

.legal {
  background: #f4f1ec;
  padding: clamp(30px, 4vw, 56px) var(--side-pad) clamp(48px, 6vw, 84px);
}

.legal__inner {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: clamp(26px, 4vw, 60px);
  box-shadow: 0 26px 64px -36px rgba(80, 66, 38, 0.42);
}

.legal__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}

.legal__meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal__inner h2 {
  margin-top: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

.legal__inner h3 {
  margin-top: 20px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.legal__inner p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.72;
  color: #3a352d;
}

.legal__inner ul,
.legal__inner ol {
  margin-top: 12px;
  padding-left: 24px;
}

.legal__inner li {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #3a352d;
}

.legal__req {
  margin-top: 24px;
  padding: 20px 22px;
  background: #f6f0e4;
  border: 1px solid rgba(152, 131, 81, 0.2);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dark);
}

.legal__req strong { color: var(--gold-dark); }

.legal__note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-style: italic;
}

.legal__sign {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed #d9cfb8;
}

.legal__sign-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-muted);
}

.legal__sign-line {
  flex: 1 1 auto;
  border-bottom: 1px solid #c9bda0;
  min-height: 22px;
}

.legal__sign-cap {
  flex: 1 1 auto;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}


/* ============================================================
   ЗАПИСЬ НА ПРИЁМ — всплывающее окно (модалка)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  animation: modal-fade 0.2s ease;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: modal-pop 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

body.is-modal-open { overflow: hidden; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.modal__close svg { width: 18px; height: 18px; }

.modal__close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.appointment__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 26px;
  background: linear-gradient(160deg, #a4894f 0%, var(--gold) 55%, #7c6a40 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 30px 70px -34px rgba(80, 66, 38, 0.7);
}

.appointment__head { text-align: center; }

.appointment__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.appointment__title {
  margin-top: 4px;
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 62px);
  line-height: 1.05;
  color: #fdf6e6;
}

.appointment__subtitle {
  max-width: 440px;
  margin: 12px auto 0;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.appointment__form {
  margin-top: clamp(26px, 3.5vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field__label {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  padding-left: 2px;
}

.field__input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field__input::placeholder { color: #b3aa98; }

.field__input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.appointment__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.appointment__agree input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #6f5f37;
  cursor: pointer;
}

.appointment__agree a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.appointment__agree a:hover { color: #fdf6e6; }

.appointment__submit {
  margin-top: 8px;
  padding: 17px 28px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--gold-dark);
  background: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.appointment__submit:hover {
  transform: translateY(-2px);
  background: #2b2620;
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.45);
}

.appointment__submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.appointment__success {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14.5px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}


/* ============================================================
   ПЛАШКА COOKIE
   ============================================================ */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vw, 26px);
  transform: translateX(-50%);
  z-index: 200;
  width: min(760px, calc(100vw - 28px));
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(152, 131, 81, 0.28);
  box-shadow: 0 20px 54px -20px rgba(60, 48, 24, 0.55);
}

.cookie[hidden] { display: none; }

.cookie__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie__text {
  flex: 1 1 320px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark);
}

.cookie__text a { color: var(--gold-dark); text-decoration: underline; }
.cookie__text a:hover { color: var(--gold); }

.cookie__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.cookie__accept,
.cookie__decline {
  padding: 11px 22px;
  border-radius: 40px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cookie__accept {
  border: none;
  color: #fff;
  background: var(--gold);
}
.cookie__accept:hover { transform: translateY(-1px); background: var(--gold-dark); }

.cookie__decline {
  border: 1.5px solid rgba(152, 131, 81, 0.4);
  background: transparent;
  color: var(--text-muted);
}
.cookie__decline:hover { border-color: var(--gold); color: var(--gold-dark); }

@media (max-width: 560px) {
  .cookie {
    bottom: 10px;
    padding: 13px 15px;
    border-radius: 15px;
    width: calc(100vw - 20px);
  }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 11px; }
  /* в колоночной раскладке flex-basis задаёт высоту — сбрасываем на auto */
  .cookie__text { flex: 0 0 auto; font-size: 12.5px; line-height: 1.45; }
  .cookie__actions { gap: 9px; }
  .cookie__accept,
  .cookie__decline { flex: 1 1 0; padding: 9px 12px; font-size: 13.5px; }
}


/* ============================================================
   СТРАНИЦА УСЛУГИ (терапия и др.)
   ============================================================ */
.svc-hero {
  position: relative;
  min-height: clamp(460px, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.svc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.svc-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
    rgba(255, 253, 249, 0.97) 0%,
    rgba(255, 253, 249, 0.93) 38%,
    rgba(255, 253, 249, 0.74) 58%,
    rgba(255, 253, 249, 0.30) 78%,
    rgba(255, 253, 249, 0.06) 100%);
}

/* отступы по бокам берём из .container; здесь задаём только вертикальные */
.svc-hero__inner {
  position: relative;
  padding-top: clamp(120px, 19vh, 178px);
  padding-bottom: clamp(40px, 7vh, 74px);
}

/* ограничиваем ширину текста, чтобы он не растягивался на всю ширину */
.svc-hero .svc-breadcrumb,
.svc-hero__title { max-width: 640px; }

.svc-breadcrumb { margin-bottom: 16px; font-size: 14px; color: var(--text-muted); }
.svc-breadcrumb a { color: var(--gold-dark); text-decoration: none; }
.svc-breadcrumb a:hover { text-decoration: underline; }

.svc-hero__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.svc-hero__title-accent {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5em;
  line-height: 0.9;
  color: var(--gold);
  padding-right: 0.1em;
}

.svc-hero__subtitle {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* кнопка на первом экране — компактнее базовой */
.svc-hero .btn-primary {
  margin-top: clamp(24px, 3.4vh, 32px);
  padding: 15px 34px;
  font-size: 16px;
  border-radius: 54px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 #6b5c35,
    0 12px 22px rgba(107, 92, 53, 0.30),
    0 2px 5px rgba(0, 0, 0, 0.10);
}
.svc-hero .btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 7px 0 #6b5c35,
    0 16px 28px rgba(107, 92, 53, 0.36),
    0 2px 5px rgba(0, 0, 0, 0.10);
}

/* на телефоне вуаль плотнее и вертикальная — текст читается на любом фоне */
@media (max-width: 620px) {
  .svc-hero__veil {
    background: linear-gradient(180deg,
      rgba(255, 253, 249, 0.96) 0%,
      rgba(255, 253, 249, 0.88) 52%,
      rgba(255, 253, 249, 0.74) 100%);
  }
}

/* ---------- О направлении + галерея ---------- */
.svc-about {
  background: var(--white);
  padding: clamp(56px, 8vw, 96px) var(--side-pad);
}

.svc-about__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}

.svc-about__text h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--text-dark);
}

.svc-about__text p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.svc-about__list {
  margin-top: 22px;
  list-style: none;
  display: grid;
  gap: 12px;
}

.svc-about__list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dark);
}

.svc-about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.svc-about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.svc-about__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  box-shadow: 0 20px 44px -26px rgba(80, 66, 38, 0.5);
}

.svc-about__gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* ---------- прайс ---------- */
.svc-price {
  background: #F5EEE0;
  padding: clamp(56px, 8vw, 96px) var(--side-pad);
}

.svc-price__inner {
  max-width: 980px;
  margin: 0 auto;
}

.svc-price__title {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.18;
  color: var(--text-dark);
}

.svc-price__title .accent {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4em;
  color: var(--gold);
  padding-right: 0.08em;
}

.svc-price__note {
  max-width: 620px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.price-table {
  margin-top: clamp(28px, 4vw, 44px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 62px -38px rgba(80, 66, 38, 0.42);
}

.price-table__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px clamp(18px, 3vw, 30px);
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.price-group {
  padding: 16px clamp(18px, 3vw, 30px) 9px;
  background: #faf5ec;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  color: var(--gold-dark);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
  padding: 13px clamp(18px, 3vw, 30px);
  border-top: 1px solid #f0e9db;
}

.price-row__name {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-dark);
}

.price-row__val {
  flex: 0 0 auto;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.svc-price .btn-primary {
  display: block;
  width: max-content;
  margin: clamp(30px, 4vw, 46px) auto 0;
}

@media (max-width: 860px) {
  .svc-about__grid { grid-template-columns: 1fr; }
  .svc-about__gallery { order: -1; }
}

@media (max-width: 480px) {
  .price-table__head span:first-child { flex: 1 1 auto; }
  .price-row { gap: 14px; }
}

/* Сдвиг фото врача на первом экране (только десктоп) на 50px вниз */
@media (min-width: 1025px) {
  .photo { transform: translateY(50px); }
}
