:root {
  /* Versal-Dent — премиум бежево-золотая палитра (см. BRAND.md) */
  --c-primary: #4A3F35;        /* тёплый эспрессо */
  --c-primary-dark: #342C24;
  --c-primary-light: #6E5F4F;
  --c-primary-50: #F3ECE0;     /* кремовая подложка */
  --c-accent: #C2A14E;         /* мягкое золото (CTA, бейджи) */
  --c-accent-dark: #A8863A;
  --c-success: #7A8B6F;        /* приглушённый шалфей */
  --c-bg: #FCFAF6;             /* айвори */
  --c-bg-soft: #F5EEE2;        /* тёплый песок */
  --c-text: #2C2620;           /* эспрессо-чернила */
  --c-text-muted: #7C7367;
  --c-border: #E7DDCB;
  --c-border-dark: #D8CAB0;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(74, 63, 53, 0.06);
  --shadow: 0 6px 24px rgba(74, 63, 53, 0.09);
  --shadow-lg: 0 16px 48px rgba(74, 63, 53, 0.14);
  --container: 1200px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Страховка от горизонтального скролла на мобильных: любой случайно
   «распёртый» элемент не должен сдвигать всю страницу вбок. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-text); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--c-bg-soft); }
/* Две секции одного фона подряд — не удваиваем вертикальный отступ
   (иначе на одном цвете получается двойной пустой провал) */
.section--soft + .section--soft,
.section:not(.section--soft) + .section:not(.section--soft) { padding-top: 0; }
.section__title { text-align: center; margin-bottom: 12px; }
.section__lead { text-align: center; color: var(--c-text-muted); max-width: 720px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; color: var(--c-primary); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; line-height: 1; text-align: center; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--c-accent); color: #2C2620; }
.btn--accent:hover { background: var(--c-accent-dark); color: #2C2620; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* Top bar */
.topbar { background: var(--c-primary-dark); color: rgba(255,255,255,.92); font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.92); }
.topbar a:hover { color: #fff; }
.topbar__items { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; gap: 6px; align-items: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--c-border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo:hover { color: var(--c-text); }
.logo__mark { width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary-50); display: grid; place-items: center; padding: 4px; }
.logo__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo__name small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; gap: 22px; }
.nav a { color: var(--c-text); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.is-active { color: var(--c-primary); }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 700; font-size: 16px; color: var(--c-text); white-space: nowrap; }
.header__phone:hover { color: var(--c-primary); }
.header__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-muted); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--c-text); }

/* Hero */
.hero { position: relative; padding: 56px 0 64px; background: linear-gradient(135deg, #F3ECE0 0%, #FBF6EE 100%); overflow: hidden; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }

/* ============================================================
   Hero background — single cinematic photo with slow ken-burns,
   gentle gradient overlay for text readability, and floating
   white particles (only animation left, by user request).
   ============================================================ */
.hero__bg {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}

/* Hero photo — covers the whole hero, very slow ken-burns motion */
.hero__photo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;          /* keep the visual focus to the right */
  will-change: transform;
  animation: hero-kenburns 40s ease-in-out infinite;
  transform-origin: 70% 50%;
}
@keyframes hero-kenburns {
  0%, 100% { transform: scale(1.04) translate(0, 0); }
  50%      { transform: scale(1.10) translate(-1.5%, -1%); }
}

/* Overlay: very light wash, just to soften the photo slightly. */
.hero__photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.00) 100%);
}

/* Glassmorphism card behind the hero text — keeps the photo visible AND
   makes every line of text readable regardless of the photo's brightness. */
.hero__grid > div:first-child {
  position: relative;
  isolation: isolate;
}
.hero__grid > div:first-child::before {
  content: "";
  position: absolute;
  inset: -22px -28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 44px rgba(44, 38, 32, 0.10), 0 2px 8px rgba(44, 38, 32, 0.05);
  z-index: -1;
}
/* Fallback for browsers without backdrop-filter (older Firefox/Safari) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero__grid > div:first-child::before { background: rgba(255, 255, 255, 0.92); }
}

.hero .hero__title { color: #2C2620; }
.hero .hero__lead { color: #2C2620; font-weight: 500; }
.hero .hero__note { color: #2C2620; font-weight: 500; }
.hero .eyebrow { color: var(--c-primary-dark); font-weight: 700; }

/* Mobile — card edge-to-edge, less padding */
@media (max-width: 720px) {
  .hero__grid > div:first-child::before {
    inset: -14px -16px;
    border-radius: 16px;
    -webkit-backdrop-filter: blur(14px) saturate(130%);
            backdrop-filter: blur(14px) saturate(130%);
    background: rgba(255, 255, 255, 0.78);
  }
}

/* — Drifting micro-particles ("dust") — kept by user request — */
.hero__dust {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 8px rgba(255, 255, 255, .8), 0 0 16px rgba(194, 161, 78, .55);
  opacity: 0;
  will-change: opacity, transform;
  animation: dust-rise ease-in-out infinite;
}
.hero__dust--1 { left: 12%; bottom: 0; animation-duration: 14s; animation-delay: -2s; }
.hero__dust--2 { left: 28%; bottom: 0; animation-duration: 18s; animation-delay: -8s; }
.hero__dust--3 { left: 46%; bottom: 0; animation-duration: 12s; animation-delay: -5s; }
.hero__dust--4 { left: 64%; bottom: 0; animation-duration: 16s; animation-delay: -1s; }
.hero__dust--5 { left: 78%; bottom: 0; animation-duration: 20s; animation-delay: -12s; }
.hero__dust--6 { left: 92%; bottom: 0; animation-duration: 15s; animation-delay: -6s; }
@keyframes dust-rise {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) scale(.6); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(20px, -380px, 0) scale(1.1); }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero__photo-bg, .hero__dust { animation: none !important; }
  .hero__dust { opacity: .7; }
  .hero__photo-bg { transform: scale(1.04); }
}

/* Mobile tweaks — image shifted to bottom-right focal point, fewer particles */
@media (max-width: 720px) {
  .hero__dust--4, .hero__dust--5, .hero__dust--6 { display: none; }
  .hero__photo-bg { object-position: 65% 50%; }
  /* Make overlay nearly opaque on mobile so text never competes with the photo */
  .hero__photo-overlay {
    background:
      linear-gradient(180deg,
        rgba(243, 236, 224, 0.85) 0%,
        rgba(251, 246, 238, 0.78) 60%,
        rgba(251, 246, 238, 0.40) 100%);
  }
}
.hero__title { margin-bottom: 18px; }
.hero__lead { font-size: 18px; color: var(--c-text-muted); margin-bottom: 28px; }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--c-border); padding: 8px 14px; border-radius: 100px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); }
.hero__badge svg { color: var(--c-primary); flex-shrink: 0; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__note { font-size: 13px; color: var(--c-text-muted); }
.hero__visual { position: relative; }
.hero__offer { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); }

/* Hero promotions carousel */
.hero__carousel { position: relative; }
.hero__slides { position: relative; }
.hero__slide { transition: opacity .45s ease, transform .45s ease; }
.hero__slide:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.hero__slide:not(:first-child) { position: absolute; top: 0; left: 0; right: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; transform: none !important; }
}

.hero__carousel-nav { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--c-border-dark); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero__dot:hover, .hero__dot:focus-visible { background: var(--c-primary-light); outline: none; }
.hero__dot.is-active { background: var(--c-primary); transform: scale(1.25); }

.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  color: var(--c-primary);
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  z-index: 2;
}
.hero__arrow--prev { left: -18px; }
.hero__arrow--next { right: -18px; }
.hero__carousel:hover .hero__arrow,
.hero__arrow:focus-visible { opacity: 1; pointer-events: auto; }
.hero__arrow:hover { background: var(--c-primary); color: #fff; }
@media (max-width: 720px) {
  .hero__arrow { display: none; }
}
.hero__offer-tag { display: inline-block; background: var(--c-accent); color: #2C2620; font-weight: 700; padding: 4px 12px; border-radius: 100px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero__offer-title { font-size: 22px; margin-bottom: 8px; }
.hero__offer-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 18px; }
.hero__offer-price-new { font-size: 36px; font-weight: 800; color: var(--c-primary); }
.hero__offer-price-old { font-size: 18px; color: var(--c-text-muted); text-decoration: line-through; }
.hero__offer-price-note { font-size: 18px; color: var(--c-text-muted); }
.hero__offer-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14.5px; }
.hero__offer-list li { padding: 6px 0 6px 26px; position: relative; }
.hero__offer-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; background: var(--c-success); border-radius: 50%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.5 11.5L3 8l1.2-1.2L6.5 9.1l5.3-5.3L13 5z'/></svg>"); background-size: 14px; background-position: center; background-repeat: no-repeat; }

/* USPs strip */
.usps { padding: 28px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: #fff; }
.usps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary-50); display: grid; place-items: center; color: var(--c-primary); }
.usp__text strong { display: block; font-size: 15px; }
.usp__text span { font-size: 13.5px; color: var(--c-text-muted); }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.service-card__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 16px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--c-text); }
.service-card p { color: var(--c-text-muted); font-size: 14.5px; flex-grow: 1; }
.service-card__price { font-weight: 700; color: var(--c-primary); margin: 12px 0 0; font-size: 15px; }
.service-card__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.service-card__link svg { transition: transform .15s ease; }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* Doctors */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.doctor-card__photo { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--c-primary-50) 0%, #fff 100%); position: relative; overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__photo--placeholder { display: grid; place-items: center; color: var(--c-primary-light); }
.doctor-card__body { padding: 18px 20px 22px; }
.doctor-card__name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.doctor-card__role { font-size: 13.5px; color: var(--c-primary); font-weight: 600; margin-bottom: 8px; }
.doctor-card__exp { font-size: 13px; color: var(--c-text-muted); }

/* Doctors carousel (главная) — все врачи одной строкой с горизонтальным скроллом */
.doctors-carousel { position: relative; }
.doctors-carousel__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 6px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--c-border-dark) transparent;
  cursor: grab;
}
/* Перетаскивание мышью */
.doctors-carousel__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.doctors-carousel__track.is-grabbing a { pointer-events: none; }
.doctors-carousel__track img { -webkit-user-drag: none; user-select: none; }
.doctors-carousel__track > .doctor-card { flex: 0 0 clamp(210px, 23%, 248px); scroll-snap-align: start; }
.doctors-carousel__track::-webkit-scrollbar { height: 8px; }
.doctors-carousel__track::-webkit-scrollbar-track { background: transparent; }
.doctors-carousel__track::-webkit-scrollbar-thumb { background: var(--c-border-dark); border-radius: 100px; }
.doctors-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--c-primary); cursor: pointer;
  z-index: 2; transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.doctors-carousel__arrow:hover { background: var(--c-primary); color: #fff; }
.doctors-carousel__arrow--prev { left: -14px; }
.doctors-carousel__arrow--next { right: -14px; }
.doctors-carousel__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .doctors-carousel__arrow { width: 34px; height: 34px; }
  .doctors-carousel__arrow--prev { left: 2px; }
  .doctors-carousel__arrow--next { right: 2px; }
}

/* Reviews */
.reviews-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.rating-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; }
.rating-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rating-card__source { font-weight: 600; }
.rating-card__stars { color: var(--c-accent); font-size: 18px; letter-spacing: 1px; }
.rating-card__num { font-size: 42px; font-weight: 800; color: var(--c-primary); line-height: 1; }
.rating-card__meta { color: var(--c-text-muted); font-size: 14px; }
.rating-card__badge { display: inline-block; margin-top: 14px; padding: 6px 14px; background: var(--c-primary-50); color: var(--c-primary); border-radius: 100px; font-size: 13px; font-weight: 600; }

.review-quote { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; font-size: 14.5px; color: var(--c-text); }
.review-quote__author { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--c-text-muted); }
.review-quote__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; }

/* Prices snippet */
.prices-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prices-table th, .prices-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border); font-size: 14.5px; word-wrap: break-word; overflow-wrap: anywhere; }
.prices-table .prices-subhead td { background: var(--c-primary-50); color: var(--c-primary); font-weight: 700; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; padding-top: 11px; padding-bottom: 11px; text-align: left !important; white-space: normal !important; border-bottom: 0; }
.prices-table th { background: var(--c-text); color: var(--c-accent); font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.prices-table th:last-child { text-align: right; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; }
.prices-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.prices-table tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) {
  .prices-table th, .prices-table td { padding: 11px 12px; font-size: 13px; }
  .prices-table td:last-child { padding-left: 8px; }
}
/* На очень узких экранах (iPhone SE и подобное) «Стоимость» может вылезать,
   подменяем её на короткое «Стоим.» через ::after. Сами TD с ценами не
   трогаем — у них уже nowrap и right-align от правил выше. */
@media (max-width: 380px) {
  .prices-table th:last-child { font-size: 0; padding-left: 4px; }
  .prices-table th:last-child::after {
    content: "Стоим.";
    font-size: 13px;
    font-weight: 600;
    color: var(--c-primary);
    letter-spacing: .03em;
    text-transform: uppercase;
  }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 56px 18px 22px; font-size: 16px; font-weight: 600; color: var(--c-text); cursor: pointer; position: relative; font-family: inherit; }
.faq__q::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
summary.faq__q { display: block; list-style: none; }
summary.faq__q::-webkit-details-marker { display: none; }
.faq__a { padding: 0 22px 20px; color: var(--c-text-muted); font-size: 14.5px; }

/* Contact form */
/* minmax(0,1fr) — иначе <select> с длинной опцией распирает колонку,
   и на мобильных появляется горизонтальный скролл (форма шире экрана). */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.form { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.form__row { margin-bottom: 14px; }
.form__label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.form__input, .form__select, .form__textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-border-dark); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; background: #fff; color: var(--c-text); transition: border-color .15s ease, box-shadow .15s ease; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(74, 63, 53, 0.12); }
.form__textarea { min-height: 90px; resize: vertical; }
/* НЕ flex: в label текст со ссылками, flex делает куски текста
   flex-элементами в одну строку и распирает форму на узких экранах. */
.form__check { display: block; position: relative; padding-left: 24px; font-size: 12.5px; color: var(--c-text-muted); margin: 12px 0; }
.form__check input { position: absolute; left: 0; top: 3px; margin: 0; }
.form__success { display: none; padding: 14px; background: rgba(122, 139, 111, .1); border: 1px solid var(--c-success); color: var(--c-success); border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.form__success.is-active { display: block; }
.form__input::placeholder, .form__textarea::placeholder { color: #B3A695; font-weight: 400; }
.form__select:has(option[value=""]:checked) { color: #B3A695; }
.form__required { color: #e44d56; margin-left: 3px; font-weight: 700; }

.contact-info { background: var(--c-primary); color: #fff; padding: 30px; border-radius: var(--radius); }
.contact-info h3 { color: #fff; font-size: 22px; }
.contact-info__item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-info__item svg { flex-shrink: 0; opacity: .85; }
.contact-info__item strong { display: block; font-size: 13px; opacity: .8; font-weight: 500; }
.contact-info__item a { color: #fff; font-weight: 600; }
.contact-info__item a:hover { color: rgba(255,255,255,.85); }
.contact-info__socials { display: flex; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.contact-info__socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; color: #fff; transition: background .15s ease; }
.contact-info__socials a:hover { background: rgba(255,255,255,.25); color: #fff; }

.map { width: 100%; border: 0; border-radius: var(--radius); height: 360px; margin-top: 30px; box-shadow: var(--shadow-sm); }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%); color: #fff; padding: 56px 0; }
.cta-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { opacity: .9; margin: 0; }
.cta-banner .btn--accent { white-space: nowrap; }

/* Footer */
.footer { background: #2A241E; color: rgba(255,255,255,.7); padding: 48px 0 24px; font-size: 14px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 8px; }
.footer__brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer__disclaimer { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 16px; line-height: 1.5; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.ff-credit { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border-radius: 100px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); text-decoration: none; font-size: 12.5px; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.ff-credit:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; transform: translateY(-1px); }
.ff-credit__mark { display: block; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(194, 161, 78, .35)); }
.ff-credit__brand { font-weight: 700; letter-spacing: .01em; background: linear-gradient(90deg, #EAD9B5 0%, #ffffff 50%, #C2A14E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Breadcrumbs */
.breadcrumbs { padding: 18px 0; font-size: 13.5px; color: var(--c-text-muted); }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs span { margin: 0 6px; }

/* Related services block (internal linking) */
.related { padding: 48px 0; background: var(--c-bg-soft); }
.related__title { font-size: 24px; margin-bottom: 6px; text-align: center; }
.related__lead { text-align: center; color: var(--c-text-muted); margin-bottom: 28px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.related__card {
  display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; color: var(--c-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.related__name { font-weight: 700; color: var(--c-primary); margin-bottom: 6px; }
.related__desc { font-size: 14px; color: var(--c-text-muted); }
@media (max-width: 720px) {
  .related__grid { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero { padding: 30px 0 50px; background: linear-gradient(135deg, #F3ECE0 0%, #FBF6EE 100%); text-align: center; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: var(--c-text-muted); max-width: 800px; margin-left: auto; margin-right: auto; }

/* Doctor page hero (photo + bio) — used on /doctors/*.html */
.doctor-hero { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; }
.doctor-hero__photo { border-radius: var(--radius); overflow: hidden; max-width: 300px; aspect-ratio: 4 / 5; background: var(--c-primary-50); }
.doctor-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-hero h1 { margin-bottom: 12px; }
.doctor-hero p { font-size: 16px; color: var(--c-text-muted); }
@media (max-width: 720px) {
  .doctor-hero { grid-template-columns: 1fr; gap: 20px; }
  .doctor-hero__photo { max-width: 220px; margin: 0 auto; }
  .doctor-hero h1 { font-size: 26px; text-align: center; }
  .doctor-hero .eyebrow { display: block; text-align: center; }
  .doctor-hero p { text-align: center; }
  .doctor-hero > div:last-child > div:last-child { justify-content: center; }
}

/* Article content */
/* break-word — длинные неразрывные строки (линии подчёркиваний в бланках,
   URL и т.п.) переносятся, а не растягивают страницу на мобильных. */
.article { max-width: 800px; margin: 0 auto; overflow-wrap: break-word; }
.article h2 { margin: 32px 0 14px; }
.article h3 { margin: 24px 0 10px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 16px; }
.article li { margin-bottom: 6px; }
.article blockquote { border-left: 4px solid var(--c-primary); background: var(--c-primary-50); padding: 14px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; color: var(--c-text); font-style: italic; }

/* Disclaimer strip */
.disclaimer { background: var(--c-primary-50); color: var(--c-primary-dark); text-align: center; padding: 14px 20px; font-size: 13.5px; border-radius: var(--radius-sm); margin: 30px auto; max-width: 900px; border: 1px dashed var(--c-primary-light); }

/* Sticky CTA mobile */
.sticky-cta { display: none; position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 40; background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg); gap: 8px; border: 1px solid var(--c-border); }
.sticky-cta .btn { flex: 1; padding: 12px; font-size: 14px; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(44, 38, 32, 0.6); z-index: 100; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal.is-open { display: flex; }
.modal__card { background: #fff; border-radius: var(--radius); padding: 32px; max-width: 440px; width: 100%; position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; cursor: pointer; color: var(--c-text-muted); padding: 6px; }
.modal__close:hover { color: var(--c-text); }
.modal h3 { margin-bottom: 6px; }
.modal__sub { color: var(--c-text-muted); font-size: 14px; margin-bottom: 18px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .usps__grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 44px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 20px; border-bottom: 1px solid var(--c-border); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .header__cta .btn { display: none; }
  .header__phone small { display: none; }
  .topbar { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .usps__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}
/* Сверхузкие экраны (320–360px): компактная шапка, иначе лого + телефон +
   бургер шире экрана и страницу можно сдвинуть вбок. */
@media (max-width: 359px) {
  .container { padding: 0 16px; }
  .header__inner { gap: 10px; }
  .logo { gap: 8px; font-size: 17px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__name small { display: none; }
  .header__phone { font-size: 13.5px; }
  .header__cta { gap: 6px; }
  .burger { padding: 4px; }
}

/* ============================================================
   Doctor Portfolio (cases "до/после")
   ============================================================ */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.pf-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; cursor: pointer; }
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.pf-card__images { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--c-border); position: relative; }
.pf-card__images::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--c-primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .04em; box-shadow: var(--shadow-sm); content: "→"; }
.pf-img { margin: 0; position: relative; background: var(--c-primary-50); overflow: hidden; aspect-ratio: 4 / 3; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.pf-card:hover .pf-img img { transform: scale(1.03); }
.pf-img figcaption { position: absolute; left: 10px; top: 10px; background: rgba(44,38,32,.78); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.pf-img--after figcaption { background: var(--c-primary); }
.pf-img__ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; color: var(--c-primary); background: linear-gradient(135deg, var(--c-primary-50) 0%, #fff 100%); font-size: 12.5px; font-weight: 600; line-height: 1.35; box-sizing: border-box; }
.pf-img__ph svg { color: var(--c-primary-light); opacity: .85; }
.pf-img--placeholder { aspect-ratio: 4 / 3; }
.pf-lightbox__images figure { min-height: 220px; }
.pf-lightbox__images figure.is-placeholder img { display: none; }
.pf-lightbox__images figure:not(.is-placeholder) .pf-img__ph { display: none; }
.pf-lightbox__images figure.is-placeholder { background: linear-gradient(135deg, var(--c-primary-50) 0%, #fff 100%); border-radius: var(--radius-sm); aspect-ratio: 4 / 3; }
.pf-lightbox__images figure.is-placeholder .pf-img__ph { width: 100%; height: 100%; }
.pf-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.pf-card__title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3; }
.pf-card__desc { color: var(--c-text-muted); font-size: 14px; margin: 0; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tag { background: var(--c-primary-50); color: var(--c-primary); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; }
.pf-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--c-text-muted); font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--c-border); }
.pf-meta__item { display: inline-flex; align-items: center; gap: 4px; }
/* Кейс проиллюстрирован типичной картиной, а не фото пациента: говорим
   об этом на самой карточке — честнее, чем сноской под всем разделом. */
.pf-meta__item--illu { padding: 2px 8px; border: 1px dashed currentColor;
  border-radius: 999px; opacity: .8; font-size: .92em; }

.pf-empty { text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed var(--c-border-dark); border-radius: var(--radius); color: var(--c-text-muted); grid-column: 1 / -1; }
.pf-empty svg { color: var(--c-primary-light); margin: 0 auto 12px; display: block; }
.pf-empty p { max-width: 460px; margin: 0 auto; font-size: 14.5px; }

.pf-lightbox { display: none; position: fixed; inset: 0; background: rgba(44,38,32,.85); z-index: 110; padding: 24px; overflow: auto; backdrop-filter: blur(6px); }
.pf-lightbox.is-open { display: block; }
.pf-lightbox__inner { max-width: 1000px; margin: 24px auto; background: #fff; border-radius: var(--radius); padding: 28px; }
.pf-lightbox__images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.pf-lightbox__images figure { margin: 0; position: relative; }
.pf-lightbox__images img { width: 100%; border-radius: var(--radius-sm); display: block; }
.pf-lightbox__images figure:not(.is-placeholder) img { cursor: zoom-in; }
.pf-lightbox__images figcaption { position: absolute; left: 12px; top: 12px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.pf-lightbox__images figure:first-child figcaption { background: rgba(44,38,32,.85); }
.pf-lightbox h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.pf-lightbox p { margin: 0; color: var(--c-text-muted); }
.pf-lightbox__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--c-text); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.pf-lightbox__close:hover { background: #fff; }

/* Расширенный лайтбокс: заголовок, теги, мета */
.pf-lightbox__header { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.pf-lightbox__desc { font-size: 15.5px; line-height: 1.55; color: var(--c-text) !important; margin: 0 0 12px !important; }
.pf-lightbox__tags { margin-top: 10px; }
.pf-lightbox__meta { margin-top: 12px; border-top: 0 !important; padding-top: 0 !important; font-size: 13.5px; }

/* Подробные секции */
.pf-lightbox__section { margin: 22px 0; }
.pf-lightbox__section[hidden] { display: none; }
.pf-lightbox__h { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--c-primary); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.pf-lightbox__h::before { content: ""; display: inline-block; width: 6px; height: 18px; background: var(--c-primary); border-radius: 3px; }
.pf-lightbox__section p { font-size: 15px; line-height: 1.6; color: var(--c-text); }

/* Галерея «Ещё фото работы» + просмотрщик кадра */
.pf-lightbox__gallery { margin: 2px 0 18px; }
.pf-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 9px 7px; font-size: 12px; line-height: 1.25; color: #fff; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.pf-shot--graphic img { filter: blur(16px); transform: scale(1.08); }
.pf-shot--graphic.is-revealed img { filter: none; transform: none; transition: filter .3s ease; }
.pf-shot__veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; color: #fff; background: rgba(44,38,32,.68); padding: 8px; }
.pf-shot--graphic.is-revealed .pf-shot__veil { display: none; }
.pf-shot__veil-t { font-weight: 700; font-size: 13px; }
.pf-shot__veil-s { font-size: 11px; opacity: .92; line-height: 1.25; }
.pf-shot-viewer { position: fixed; inset: 0; z-index: 120; background: rgba(20,16,12,.93); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pf-shot-viewer[hidden] { display: none; }
.pf-shot-viewer figure { margin: 0; display: flex; flex-direction: column; gap: 10px; max-width: min(1100px, 94vw); }
.pf-shot-viewer img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: var(--radius-sm); display: block; margin: 0 auto; }
.pf-shot-viewer figcaption { color: #fff; text-align: center; font-size: 14px; opacity: .92; }
.pf-shot-viewer figcaption[hidden] { display: none; }
.pf-shot-viewer__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) { .pf-shots { grid-template-columns: repeat(2, 1fr); } }

/* Этапы лечения — нумерованный список с круглыми бейджами */
.pf-lightbox__steps { list-style: none; counter-reset: pf-step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-lightbox__step { counter-increment: pf-step; display: flex; align-items: flex-start; gap: 14px; background: var(--c-primary-50); border-radius: var(--radius-sm); padding: 12px 14px 12px 12px; }
.pf-lightbox__step::before { content: counter(pf-step); flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pf-lightbox__step-text { font-size: 14.5px; line-height: 1.5; color: var(--c-text); padding-top: 5px; }

/* CTA-блок «Записаться» */
.pf-lightbox__cta { margin-top: 28px; padding: 22px 24px; background: linear-gradient(135deg, var(--c-primary-50), #fff); border: 1px solid var(--c-primary-light); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pf-lightbox__cta-text { margin: 0 !important; max-width: 560px; color: var(--c-text) !important; font-size: 15px; line-height: 1.5; }
.pf-lightbox__cta[hidden] { display: none; }

@media (max-width: 720px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 18px; }
  .pf-lightbox__images { grid-template-columns: 1fr; }
  .pf-lightbox__inner { padding: 18px; margin: 0; border-radius: 0; }
  .pf-lightbox { padding: 0; }
  .pf-lightbox h3 { font-size: 19px; padding-right: 40px; }
  .pf-lightbox__section { margin: 18px 0; }
  .pf-lightbox__h { font-size: 15px; }
  .pf-lightbox__section p { font-size: 14.5px; }
  .pf-lightbox__step { padding: 10px 12px; gap: 11px; }
  .pf-lightbox__step::before { flex: 0 0 28px; width: 28px; height: 28px; font-size: 13px; }
  .pf-lightbox__step-text { font-size: 14px; padding-top: 3px; }
  .pf-lightbox__cta { padding: 18px 16px; }
  .pf-lightbox__close { top: 8px; right: 10px; width: 40px; height: 40px; font-size: 26px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   Scroll-reveal animations (lightweight, no library)
   ============================================================ */
.js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.js-reveal.is-visible { opacity: 1; transform: none; }
/* Stagger inside grids — slight delay per neighbour */
.services-grid .js-reveal:nth-child(2), .doctors-grid .js-reveal:nth-child(2), .related__grid .js-reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .js-reveal:nth-child(3), .doctors-grid .js-reveal:nth-child(3), .related__grid .js-reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .js-reveal:nth-child(4), .doctors-grid .js-reveal:nth-child(4) { transition-delay: .18s; }
.services-grid .js-reveal:nth-child(5), .doctors-grid .js-reveal:nth-child(5) { transition-delay: .22s; }
.services-grid .js-reveal:nth-child(6), .doctors-grid .js-reveal:nth-child(6) { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Reading progress bar (top of viewport)
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 60; pointer-events: none; }
.scroll-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%); transition: width .12s ease-out; }

/* ============================================================
   Floating contact button (FAB) — desktop visible, mobile too
   Lower-right corner, WhatsApp/Telegram/Phone
   ============================================================ */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; opacity: 0; transform: translateY(20px) scale(.85); transition: opacity .35s ease, transform .35s ease; }
.fab.is-ready { opacity: 1; transform: none; }
.fab__toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--c-primary); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(74,63,53,.35); transition: transform .2s ease, background .2s ease; position: relative; }
.fab__toggle:hover { background: var(--c-primary-dark); transform: scale(1.05); }
.fab__toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c-primary); opacity: .5; animation: fab-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes fab-pulse {
  0% { transform: scale(.9); opacity: .6; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.fab.is-open .fab__toggle::after { animation: none; opacity: 0; }
.fab__icon-open, .fab__icon-close { transition: transform .25s ease, opacity .25s ease; position: absolute; }
.fab__icon-close { opacity: 0; transform: rotate(-45deg); }
.fab.is-open .fab__icon-open { opacity: 0; transform: rotate(45deg); }
.fab.is-open .fab__icon-close { opacity: 1; transform: rotate(0); }
.fab__menu { position: absolute; right: 0; bottom: calc(100% + 14px); display: flex; flex-direction: column; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(10px) scale(.9); transform-origin: bottom right; transition: opacity .25s ease, transform .25s ease; }
.fab.is-open .fab__menu { opacity: 1; pointer-events: auto; transform: none; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; background: #fff; color: var(--c-text); border-radius: 100px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(44,38,32,.18); white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid var(--c-border); }
.fab__item:hover { transform: translateX(-2px); box-shadow: 0 10px 26px rgba(44,38,32,.22); color: var(--c-text); }
.fab__item-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.fab__item-icon--wa { background: #25D366; }
.fab__item-icon--tg { background: #229ED9; }
.fab__item-icon--phone { background: var(--c-primary); }
@media (max-width: 720px) {
  /* Avoid overlap with sticky-cta on mobile — shift FAB up */
  .fab { right: 14px; bottom: 86px; }
  .fab__toggle { width: 54px; height: 54px; }
  .fab__item { padding: 9px 14px 9px 12px; font-size: 13.5px; }
  /* Push cookie toggle out of the way too */
  .cookie-toggle ~ .fab { bottom: 86px; }
}

/* ============================================================
   Hero image accent (optional — when hero__visual contains a photo)
   ============================================================ */
.hero__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--c-primary-50); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 12s ease-out; }
.hero__photo:hover img { transform: scale(1.05); }
.hero__photo-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); color: var(--c-text); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 100px; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 8px; }
.hero__photo-badge svg { color: var(--c-success); }

/* Section image header (services & inner pages) */
.section-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; margin: 0 auto 36px; max-width: 900px; background: var(--c-primary-50); }
.section-photo img { width: 100%; height: 100%; object-fit: cover; }
.section-photo--page { aspect-ratio: 21 / 9; max-width: 100%; margin: 0 0 28px; }
/* Portrait variant — for vertical photographs (e.g. lounge with aquarium). */
.section-photo--portrait { aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto 28px; }
@media (max-width: 720px) {
  .section-photo--portrait { max-width: 100%; aspect-ratio: 3 / 4; }
}

/* About section with photo — two columns */
.about-with-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-with-photo__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-primary-50); box-shadow: var(--shadow); }
.about-with-photo__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .about-with-photo { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Cookie consent ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: #ffffff;
  color: #2C2620;
  border: 1px solid #EFE7D8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(44, 38, 32, .18), 0 4px 14px rgba(44, 38, 32, .08);
  padding: 16px 18px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  pointer-events: none;
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 360px;
  font-size: 14px;
  line-height: 1.5;
  color: #4A3F35;
}
.cookie-banner__text a {
  color: #4A3F35;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__actions .btn {
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}

/* Persistent "Cookies" mini-toggle (bottom-left) */
.cookie-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 8800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .96);
  color: #4A3F35;
  border: 1px solid #E7DDCB;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(44, 38, 32, .12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cookie-toggle:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44, 38, 32, .16);
}
.cookie-toggle svg { display: block; }

@media (max-width: 640px) {
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start; /* сбрасываем space-between с десктопа */
    gap: 10px;
  }
  /* На десктопе у текста flex: 1 1 360px — это минимальная ширина в row-режиме.
     В column-режиме flex-basis превращается в МИНИМАЛЬНУЮ ВЫСОТУ и раздувает
     блок до 360px пустого пространства. Сбрасываем на auto. */
  .cookie-banner__text { flex: 0 1 auto; font-size: 13.5px; line-height: 1.45; }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
  }
  .cookie-toggle {
    left: 10px;
    bottom: 82px;
    padding: 7px 10px;
    font-size: 12px;
  }
}
/* Пока куки-баннер открыт, он перекрывает нижнюю панель CTA —
   прячем её, чтобы не было «слоёного пирога» из кнопок. */
.cookie-banner.is-visible ~ .sticky-cta,
.cookie-banner.is-visible ~ .fab { opacity: 0; pointer-events: none; }
.sticky-cta { transition: opacity .3s ease; }

/* ── Пометка «Акция» рядом с ценой в прайс-таблицах ── */
.badge-promo { display: inline-block; background: var(--c-accent); color: #2C2620; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 9px; border-radius: 100px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
/* Бейдж «Акция» в прайсе: переносится ровно по левому краю строки (как Angel) */
.prices-table .cell-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.prices-table .cell-promo .badge-promo { margin-left: 0; }
.service-card__price .badge-promo { margin-left: 0; }
.prices-table .price-was { display: block; font-size: 12px; font-weight: 500; color: var(--c-text-muted); text-decoration: line-through; }
.prices-table .price-now { color: var(--c-primary); }

/* ── Плашка с действующей акцией под прайсом услуги ── */
.promo-note { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; margin: 18px auto 0; padding: 14px 18px; background: var(--c-primary-50); border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 14.5px; line-height: 1.5; }
.promo-note__icon { flex: 0 0 auto; font-size: 20px; line-height: 1.3; }
.promo-note strong { color: var(--c-primary); }
.promo-note a { color: var(--c-primary); font-weight: 600; }


/* ============================================================
   VERSAL-DENT — премиум-полировка базового облика.
   Без смены структуры: золотые акценты и мягкие детали,
   делающие тот же макет дороже и аккуратнее.
   ============================================================ */

/* Выделение текста и видимый фокус — в фирменном золоте */
::selection { background: rgba(194,161,78,.25); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Eyebrow — золотой акцент бренда (и в hero тоже) */
.eyebrow { color: var(--c-accent-dark); letter-spacing: .14em; }
.hero .eyebrow { color: var(--c-accent-dark); }

/* Заголовки секций — тонкая золотая черта по центру */
.section__title { padding-bottom: 18px; }
.section__title::after {
  content: ""; display: block; width: 52px; height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-dark));
  margin: 14px auto 0; border-radius: 2px;
}

/* Акцентная (золотая) кнопка — мягкий объём и тёплая тень */
.btn--accent {
  background: linear-gradient(180deg, #CDAE5C 0%, var(--c-accent) 100%);
  box-shadow: 0 4px 14px rgba(194,161,78,.26);
}
.btn--accent:hover {
  background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  box-shadow: 0 9px 24px rgba(194,161,78,.34);
}

/* Карточки — тёплая золотистая граница при наведении */
.service-card:hover, .related__card:hover, .doctor-card:hover { border-color: var(--c-accent); }

/* Карточка-оффер в hero — тонкий золотой акцент сверху */
.hero__offer { border-top: 3px solid var(--c-accent); }

/* Hero-заголовок — чуть крупнее и выразительнее */
.hero__title { font-size: clamp(32px, 4.6vw, 50px); }

/* Лёгкая золотая подсветка под «липкой» шапкой */
.header { box-shadow: 0 1px 0 rgba(194,161,78,.18); }

/* Бейджи hero — золотые иконки */
.hero__badge svg { color: var(--c-accent-dark); }

/* Цитаты в статьях — золотая акцентная линия */
.article blockquote { border-left-color: var(--c-accent); }

/* Аватары/иконки услуг — мягкий тёплый контур для премиальности */
.service-card__icon { box-shadow: inset 0 0 0 1px rgba(194,161,78,.18); }


/* ============================================================
   VERSAL — центрированный редакционный hero + промо-полоса
   (другая композиция первого экрана, не как у Angel)
   ============================================================ */
.hero--center { text-align: center; padding: 78px 0 60px; }
.hero--center .hero__inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.hero--center .eyebrow { display: inline-block; }
.hero--center .hero__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 6px 0 18px; }
.hero--center .hero__lead { font-size: 18px; color: var(--c-text-muted); max-width: 720px; margin: 0 auto 28px; }
.hero--center .hero__cta { justify-content: center; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: center; padding: 0; margin: 32px 0 0; }
.hero__facts li { position: relative; padding-left: 25px; font-weight: 600; font-size: 14.5px; color: var(--c-text); }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; border-radius: 50%; background: var(--c-accent); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6.5 11.5L3 8l1.2-1.2L6.5 9.1l5.3-5.3L13 5z'/></svg>"); background-size: 13px; background-position: center; background-repeat: no-repeat; }

.promo-strip { background: var(--c-primary); color: #fff; }
.promo-strip__inner { display: flex; align-items: center; justify-content: center; gap: 16px 28px; flex-wrap: wrap; padding: 15px 0; text-align: center; }
.promo-strip__text { font-size: 16px; }
.promo-strip__text b { color: var(--c-accent); font-size: 20px; font-weight: 800; }
.promo-strip__text s { opacity: .6; margin-left: 6px; font-size: 14px; white-space: nowrap; }
.promo-strip__text b { white-space: nowrap; }
.promo-strip__tag { display: inline-block; background: var(--c-accent); color: #2C2620; font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-right: 8px; vertical-align: middle; }
.promo-strip__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.promo-strip .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.promo-strip .btn--ghost:hover { background: #fff; color: var(--c-primary); }
/* Мобильная промо-полоса: бейдж — отдельной строкой по центру, текст по
   центру, кнопки одинаковой ширины на всю строку — без «рваных» краёв. */
@media (max-width: 600px){
  .promo-strip__inner{ flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; }
  .promo-strip__tag{ display: block; width: max-content; margin: 0 auto 10px; }
  .promo-strip__text{ font-size: 15px; line-height: 1.45; }
  .promo-strip__text b{ font-size: 18px; }
  .promo-strip__actions{ width: 100%; flex-direction: column; gap: 10px; }
  .promo-strip__actions .btn{ width: 100%; }
}


/* ============================================================
   VERSAL — индивидуальный стиль страниц (page-hero варианты),
   единый бренд, но у каждого раздела свой характер.
   ============================================================ */
.page-hero { position: relative; overflow: hidden; }

/* Технологии — тёмный премиум */
.page-hero--tech { background: linear-gradient(135deg,#342C24 0%, #4A3F35 100%); }
.page-hero--tech h1 { color: #fff; }
.page-hero--tech p  { color: rgba(255,255,255,.82); }

/* Акции — золотой оффер-фон */
.page-hero--promo { background: linear-gradient(135deg,#CDAE5C 0%, #B8923D 100%); }
.page-hero--promo h1 { color: #2C2620; }
.page-hero--promo p  { color: #3a3127; }
.page-hero--promo h1::after { background: #2C2620; }

/* Цены — песочный фон + золотая кайма сверху */
.page-hero--ceny { background: var(--c-bg-soft); border-top: 4px solid var(--c-accent); }

/* Гарантии — акцентная золотая полоса слева */
.page-hero--trust .container { border-left: 4px solid var(--c-accent); padding-left: 24px; }

/* Этапы — крупный фоновый счётчик */
.page-hero--steps::before { content: "1 · 2 · 3 · 4 · 5"; position: absolute; right: 28px; bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 64px; color: rgba(194,161,78,.14); pointer-events: none; white-space: nowrap; }
@media (max-width:720px){ .page-hero--steps::before { display:none; } }

/* Шапки разделов — единый формат: заголовок и подзаголовок по центру
   (как section__title и hero главной), ряды кнопок в шапке — по центру. */
.page-hero h1::after { left: 50%; transform: translateX(-50%); }
.page-hero div[style*="flex"] { justify-content: center; }

/* Акции — отдельный стиль карточек предложений */
.promo-grid .service-card { position: relative; border-top: 3px solid var(--c-accent); background: linear-gradient(180deg,#ffffff 0%, #FBF6EE 100%); }
.promo-grid .service-card .hero__offer-tag { position: absolute; top: 14px; right: 14px; margin: 0; }


/* Галерея интерьера клиники (реальные фото) */
.clinic-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.clinic-gallery img{ width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--radius); border:1px solid var(--c-border); box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease; }
.clinic-gallery img:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
@media (max-width:720px){ .clinic-gallery{ grid-template-columns:1fr 1fr; gap:10px; } }


/* Hero cover — реальное фото клиники под текстом первого экрана */
.hero--center{
  background-image:
    linear-gradient(rgba(252,250,246,.74), rgba(251,246,238,.82)),
    url("../img/clinic/clinic-1.webp");
  background-size: cover;
  background-position: center;
  padding: 96px 0 84px;
}
.hero--center .hero__inner{
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
          backdrop-filter: blur(6px) saturate(140%);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 44px rgba(44,38,32,.10);
  padding: 38px 40px;
}
@media (max-width:600px){ .hero--center{ padding:64px 0 56px; } .hero--center .hero__inner{ padding:26px 20px; } }


/* Картинка-обложка в карточке услуги (вместо иконки) */
.service-card__media{ display:block; margin:-26px -26px 16px; aspect-ratio:16/10; overflow:hidden; border-radius:var(--radius) var(--radius) 0 0; border-bottom:1px solid var(--c-border); background:var(--c-primary-50); }
.service-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.service-card:hover .service-card__media img{ transform:scale(1.05); }

/* Акции: бейдж скидки не должен перекрывать заголовок */
.promo-grid .service-card h3{ padding-right:0; }


/* Ровный отступ над кнопками-CTA внутри контента (все страницы) */
.section p:has(> .btn){ margin-top: 28px; }
.article p:has(> .btn){ margin-top: 24px; }
.promo-note + p:has(> .btn){ margin-top: 22px; }


/* Фон портретов врачей — тёплый бежевый «студийный» (см. BRAND.md) */
:root{ --c-portrait-bg: #ECE2CF; }
.doctor-card__photo,
.doctor-card__photo--placeholder,
.doctor-hero__photo{
  background: linear-gradient(165deg, #ECE2CF 0%, #F7F1E6 100%);
}
.doctor-card__photo--placeholder{ display:grid; place-items:center; }
.doctor-card__photo--placeholder img,
.doctor-card__photo img[src$="placeholder.svg"]{ filter: sepia(.25) saturate(1.1) hue-rotate(-8deg) brightness(.96); opacity:.85; }

/* Бейдж акции — поверх картинки карточки */
.promo-grid .service-card{ position:relative; }
.promo-grid .service-card .hero__offer-tag{ position:absolute; top:14px; right:14px; margin:0; z-index:2; box-shadow:0 4px 12px rgba(44,38,32,.25); }

/* --- Компактный cookie-баннер на мобильном (не перекрывает CTA) --- */
@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 12px; }
  .cookie-banner__inner { gap: 10px; flex-wrap: nowrap; flex-direction: row; align-items: center; }
  .cookie-banner__text { flex: 1 1 auto; font-size: 11.5px; line-height: 1.35; }
  .cookie-banner__actions .btn { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

/* --- Логотип в шапке: тёмная подложка, чтобы серебряный зуб не сливался с айвори --- */
.header .logo__mark { background: linear-gradient(160deg, #3a322a 0%, #2C2620 100%); border: 1px solid #C2A14E33; }

/* --- Форма контактов: не даём инпутам распирать грид (гориз. скролл на мобильном) --- */
.contact-grid > * { min-width: 0; }

/* === Документы врача (дипломы, сертификаты) ==========================
   Единый формат для трёх клиник: светлая карточка-рамка, миниатюра
   внутри. На странице только миниатюра (lazy, с width/height — без
   скачков вёрстки), полный скан подгружается по клику. Цвета берём из
   токенов темы, поэтому блок сам подстраивается под каждый сайт. */
.docs { list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.doc { display: block; text-decoration: none; color: inherit; }
/* display:block обязателен: это <span>, и строчный контейнер с блочной
   картинкой внутри фрагментируется — его отступы рисовались пустыми
   белыми полосками над карточками (баг, замечен владельцем 22.08.2026) */
.doc__frame { display: block; background: #fff; padding: 8px; border-radius: 12px;
  border: 1px solid var(--c-border, var(--c-tint, #e6e6e6));
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .16s ease, box-shadow .16s ease; }
.doc:hover .doc__frame, .doc:focus-visible .doc__frame {
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.11); }
.doc img { display: block; width: 100%; height: auto; border-radius: 8px; }
.doc__cap { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4;
  color: var(--c-text-muted, var(--c-muted, #667)); }

/* Просмотрщик: светлый лист по центру, документ целиком, без обрезки */
/* Выше cookie-баннера (9000) и всех липких панелей — иначе документ
   открывается, а нижняя часть просмотрщика уезжает под баннер. */
.docview { position: fixed; inset: 0; z-index: 9500; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(24, 22, 20, .74); opacity: 0; transition: opacity .18s ease; }
.docview.is-open { opacity: 1; }
.docview__box { position: relative; background: #fff; border-radius: 14px;
  padding: 14px; max-width: min(1080px, 94vw); max-height: 94vh;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.docview__box img { max-width: 100%; max-height: 78vh; width: auto; height: auto;
  margin: 0 auto; display: block; border-radius: 8px; object-fit: contain; }
.docview__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: space-between; }
.docview__cap { font-size: 14px; line-height: 1.4; color: var(--c-text, #23282e); }
.docview__open { font-size: 14px; text-decoration: underline;
  color: var(--c-accent-dark, var(--c-terra-deep, var(--c-lagoon, #55606b))); }
.docview__close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: #fff; color: #333; font-size: 26px;
  line-height: 36px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
@media (max-width: 640px) {
  /* На телефоне — горизонтальная лента вместо двух рядов: экономит
     ~половину высоты. Чистый CSS (scroll-snap), документы остаются в
     DOM — для поисковика ничего не меняется. Ширина карточки 44%, чтобы
     следующая выглядывала краем — видно, что ленту можно листать. */
  .docs { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 8px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; }
  .docs > li { flex: 0 0 44%; scroll-snap-align: start; }
  .docview { padding: 12px; }
  .docview__box { padding: 10px; max-width: 96vw; }
  .docview__close { top: -10px; right: -6px; width: 34px; height: 34px; line-height: 32px; }
}

/* Кнопка «Показать все документы». Сворачиванием заведует JS: он считает,
   сколько карточек помещается в строку, и оставляет две полные строки —
   поэтому в разметке видны все документы (поисковик получает полный
   список), а браузер не тянет скрытые миниатюры: у элементов с [hidden]
   картинки с loading="lazy" не загружаются. */
.docs > li[hidden] { display: none; }
.docs-more { display: block; margin: 18px auto 0; padding: 11px 24px;
  border: 1px solid rgba(0,0,0,.16); border-radius: 999px; background: #fff;
  font: inherit; font-weight: 600; color: inherit; cursor: pointer;
  transition: background .15s ease, border-color .15s ease; }
.docs-more:hover { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.28); }
.docs-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Услуга с отдельной страницей кликабельна прямо из прайса: фирменный
   цвет и полужирное начертание вместо подчёркивания (владелец, 25.08.2026
   — без подчёркивания выглядит чище); подчёркивание появляется только
   при наведении. */
.prices-table td a { color: var(--c-accent-dark); text-decoration: none; font-weight: 600; }
.prices-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Вертикальные видео из клиники: беззвучно по кругу, грузятся при прокрутке (28.10.2026) */
.video-reel { max-width: 340px; margin: 8px auto 28px; }
.video-reel video { display: block; width: 100%; aspect-ratio: 464 / 848; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #000; }
.video-reel figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--c-text-muted); text-align: center; }

/* Текст и вертикальное видео рядом; на телефоне видео под текстом (28.10.2026) */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; margin: 0 0 8px; }
.media-split .video-reel { margin: 6px 0 0; max-width: 240px; }
@media (max-width: 760px) { .media-split { grid-template-columns: 1fr; gap: 16px; } .media-split .video-reel { margin: 0 auto 20px; } }

/* equip: блок «Оборудование клиники» на главной (13.11.2026) */
.equip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:8px}
.equip-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--c-border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);color:inherit;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.equip-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--c-border-dark)}
.equip-card__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--c-primary-50)}
.equip-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.equip-card:hover .equip-card__media img{transform:scale(1.05)}
.equip-card__tag{position:absolute;left:14px;top:14px;background:rgba(255,255,255,.92);color:var(--c-primary);font-size:12.5px;font-weight:700;letter-spacing:.02em;padding:6px 12px;border-radius:999px;box-shadow:var(--shadow-sm)}
.equip-card__body{display:flex;flex-direction:column;gap:10px;padding:22px 24px 24px;flex:1}
.equip-card__body h3{margin:0;font-size:20px;line-height:1.25}
.equip-card__body p{margin:0;color:var(--c-text-muted);font-size:15px;line-height:1.55}
.equip-card__list{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.equip-card__list li{background:var(--c-primary-50);color:var(--c-primary-dark);font-size:13px;font-weight:600;padding:5px 10px;border-radius:999px}
.equip-card__link{margin-top:auto;padding-top:6px;color:var(--c-primary);font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:6px}
@media (max-width:900px){
  .equip-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;margin:8px -16px 0;padding:4px 16px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .equip-grid::-webkit-scrollbar{display:none}
  .equip-card{flex:0 0 82%;scroll-snap-align:start}
}
@media (min-width:600px) and (max-width:900px){ .equip-card{flex-basis:46%} }

/* a11y:begin — версия для слабовидящих. Генерирует
   Angel-Dent-site/scripts/a11y-sync.py — руками не править. */
:root { --a11y-accent: var(--c-primary); --a11y-bottom: 24px; --a11y-left: 18px; --a11y-size: 48px; }
@media (max-width: 720px) { :root { --a11y-bottom: 91px; --a11y-left: 14px; --a11y-size: 44px; } }

.a11y { position: fixed; left: var(--a11y-left); bottom: var(--a11y-bottom); z-index: 50; font-size: 15px; line-height: 1.35; }
.a11y__toggle { width: var(--a11y-size); height: var(--a11y-size); padding: 0; border-radius: 50%; border: 2px solid var(--a11y-accent); background: #fff; color: var(--a11y-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: transform .2s ease; }
.a11y__toggle:hover { transform: scale(1.06); }
html.a11y-on .a11y__toggle { background: var(--a11y-accent); color: #fff; }
.a11y__panel { position: absolute; left: 0; bottom: calc(100% + 12px); width: 312px; max-width: calc(100vw - 2 * var(--a11y-left)); max-height: calc(100vh - var(--a11y-bottom) - var(--a11y-size) - 28px); max-height: calc(100dvh - var(--a11y-bottom) - var(--a11y-size) - 28px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; background: #fff; color: #1b1b1b; border: 1px solid rgba(0,0,0,.14); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 14px 16px 16px; text-align: left; }
.a11y__panel[hidden] { display: none; }
.a11y, .a11y * { -webkit-text-fill-color: currentColor; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.a11y__title { font-size: 16px; font-weight: 700; color: #1b1b1b; }
.a11y__close { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f1f1f1; color: #1b1b1b; display: grid; place-items: center; cursor: pointer; }
.a11y__group { margin: 0 0 12px; }
.a11y__label { font-size: 13.5px; font-weight: 700; color: #444; margin: 0 0 6px; }
.a11y__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y__opts--2 { grid-template-columns: repeat(2, 1fr); }
.a11y__opt { min-height: 48px; margin: 0; padding: 6px 4px; border: 2px solid #d4d4d4; border-radius: 10px; background: #fff; color: #1b1b1b; font: inherit; font-size: 13px; line-height: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; text-align: center; }
.a11y__opt:hover { border-color: #9a9a9a; }
.a11y__opt[aria-pressed="true"] { border-color: var(--a11y-accent); box-shadow: inset 0 0 0 1px var(--a11y-accent); font-weight: 700; }
.a11y__glyph { font-weight: 700; line-height: 1; }
.a11y__glyph--0 { font-size: 15px; } .a11y__glyph--1 { font-size: 20px; } .a11y__glyph--2 { font-size: 25px; }
.a11y__swatch { display: inline-block; min-width: 34px; padding: 2px 6px; border-radius: 6px; font-weight: 700; font-size: 15px; border: 1px solid #bbb; }
.a11y__swatch--0 { background: #fff; color: var(--a11y-accent); }
.a11y__swatch--1 { background: #fff; color: #000; border-color: #000; }
.a11y__swatch--2 { background: #000; color: #fff; border-color: #000; }
.a11y__reset { width: 100%; min-height: 46px; margin: 2px 0 0; padding: 8px 12px; border: 2px solid var(--a11y-accent); border-radius: 10px; background: #fff; color: var(--a11y-accent); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.a11y__toggle:focus-visible, .a11y__close:focus-visible, .a11y__opt:focus-visible, .a11y__reset:focus-visible { outline: 3px solid #1b1b1b; outline-offset: 2px; }
.a11y__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print { .a11y { display: none !important; } }

/* --- Любой включённый режим: без анимаций, всё сразу видно --- */
html.a11y-on *, html.a11y-on *::before, html.a11y-on *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.a11y-on .js-reveal { opacity: 1 !important; transform: none !important; }

/* --- Крупный текст ---
   Размеры ставит JS (a11yScale в main.js): каждый текст увеличивается от
   СВОЕГО размера — мелкий до минимума 20/24 px, крупный (заголовки, цены)
   на +5/+9 px. Уменьшаться ничего не может. Здесь — только раскладка. */
html.a11y-fs { --font-head: var(--font); }
/* overflow-wrap: anywhere — длинное слово в узкой колонке (шаги, карточки)
   переносится, только если целиком не помещается, и не распирает сетку. */
html.a11y-fs body :where(*):not(.a11y, .a11y *, .fab, .fab *, .sticky-cta, .sticky-cta *, .cookie-banner, .cookie-banner *, .logo, .logo *) { overflow-wrap: anywhere; hyphens: auto; }
/* Шапка в крупном режиме не липнет к верху (не отнимает экран) и
   переносит меню на отдельную строку, а не за край. */
html.a11y-fs .header { position: relative !important; top: auto !important; }
html.a11y-fs .header__inner { flex-wrap: wrap; row-gap: 8px; }
@media (min-width: 721px) {
  html.a11y-fs .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-left: 0; }
}
/* Кнопки с длинной надписью переносят текст, а не вылезают за экран. */
html.a11y-fs .btn:not(.a11y *, .fab *, .sticky-cta *) { white-space: normal !important; max-width: 100%; min-width: 0; height: auto; }
/* Строки «название + звёзды» и подобные переносятся целиком. */
html.a11y-fs .rating-card__head { flex-wrap: wrap; gap: 4px 12px; }
/* Плашки «Акция», «Выгода от …» тоже переносятся. */
html.a11y-fs body [class*="badge"]:not(.a11y *, .fab *, .sticky-cta *, .logo *) { white-space: normal !important; max-width: 100%; }
/* Таблица цен на телефоне: строка «услуга — цена» становится карточкой
   (название, под ним цена), шапка «Услуга / Стоимость» не нужна. */
@media (max-width: 720px) {
  html.a11y-fs .prices-table, html.a11y-fs .prices-table tbody, html.a11y-fs .prices-table tr, html.a11y-fs .prices-table td { display: block; width: auto !important; }
  html.a11y-fs .prices-table thead { display: none; }
  html.a11y-fs .prices-table td { text-align: left !important; white-space: normal !important; }
  html.a11y-fs .prices-table tr:not(.prices-subhead) td:not(:last-child) { border-bottom: 0 !important; padding-bottom: 2px !important; }
  html.a11y-fs .prices-table tr:not(.prices-subhead) td:last-child:not(:first-child) { padding-top: 0 !important; }
}

/* --- Чёрным по белому --- */
html.a11y-c1 { color-scheme: light; }
html.a11y-c1 body, html.a11y-c1 body :where(*):not(.a11y, .a11y *) { background-color: #fff !important; background-image: none !important; color: #000 !important; -webkit-text-fill-color: #000 !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-c1 body :where(*):not(.a11y *)::before, html.a11y-c1 body :where(*):not(.a11y *)::after { color: #000 !important; border-color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-c1 body ::placeholder { color: #555 !important; -webkit-text-fill-color: #555 !important; opacity: 1; }

/* --- Белым по чёрному --- */
html.a11y-c2 { color-scheme: dark; }
html.a11y-c2 body, html.a11y-c2 body :where(*):not(.a11y, .a11y *) { background-color: #000 !important; background-image: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-c2 body :where(*):not(.a11y *)::before, html.a11y-c2 body :where(*):not(.a11y *)::after { color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important; }
html.a11y-c2 body ::placeholder { color: #bbb !important; -webkit-text-fill-color: #bbb !important; opacity: 1; }

html.a11y-c1 body a:not(.a11y *), html.a11y-c2 body a:not(.a11y *) { text-decoration: underline !important; text-underline-offset: 3px; }
/* Контейнеры плавающих виджетов — прозрачные (иначе виден невидимый
   список FAB прямоугольником поверх страницы). */
html.a11y-c1 body :is(.fab, .fab__list, .fab__menu), html.a11y-c2 body :is(.fab, .fab__list, .fab__menu) { background-color: transparent !important; }
/* Круглые и плавающие кнопки без рамки иначе сливаются с фоном. */
html.a11y-c1 body :is(.fab__toggle, .fab__item, .sticky-cta .btn, .burger, .modal__close, .pf-lightbox__close) { border: 2px solid #000 !important; }
html.a11y-c2 body :is(.fab__toggle, .fab__item, .sticky-cta .btn, .burger, .modal__close, .pf-lightbox__close) { border: 2px solid #fff !important; }
html.a11y-c1 body :focus-visible:not(.a11y *) { outline: 3px solid #000 !important; outline-offset: 2px; }
html.a11y-c2 body :focus-visible:not(.a11y *) { outline: 3px solid #fff !important; outline-offset: 2px; }

/* --- Без изображений (логотип оставляем) --- */
html.a11y-noimg body :is(img, picture, video):not(.a11y *, .logo *, .header *) { display: none !important; }
/* a11y:end */
