/* =====================================================================
   ДИЗАЙН-ТОКЕНЫ — цвет акцента и шрифт меняются здесь
   (акцент также можно задать в js/config.js → theme.accent)
   ===================================================================== */
:root {
  --accent: #E31E24;
  --accent-dark: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, #fff);
  --accent-soft-2: color-mix(in srgb, var(--accent) 15%, #fff);

  --text: #1d2025;
  --text-2: #555c68;
  --muted: #8b919c;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --plate: rgba(244, 249, 252, 0.95);
  --line: #e9ecf0;
  --dark: #15171c;
  --wa: #25D366;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 33, 52, 0.07);
  --shadow-lg: 0 20px 50px rgba(22, 33, 52, 0.12);
  --header-h: 84px;
  --container: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.accent, h1 span, h2 span, h3 span { color: var(--accent); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; scroll-margin-top: calc(var(--header-h) - 1px); }
.section--alt { background: var(--bg-alt); }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 8px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: #fff; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 0; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Заголовки секций ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 17px; }

/* Красная вертикальная черта — для цитат и описаний */
.quote-line { border-left: 2px solid var(--accent); padding-left: 24px; }
.quote-line .lead { font-weight: 500; color: var(--text); margin-bottom: 14px; }
.quote-line p { color: var(--text-2); font-weight: 400; }

/* Список с красными стрелками */
.arrow-list { display: grid; gap: 14px; margin-top: 26px; }
.arrow-list li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-2); }
.arrow-list .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* Иконка в розовом квадрате */
.icon-box {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  flex: none;
}
.icon-box .icon { width: 32px; height: 32px; }

.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(233, 236, 240, .6);
}

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__group { display: flex; align-items: center; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item .icon { width: 16px; height: 16px; color: var(--accent); }
.topbar a.topbar__item:hover { color: var(--accent); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 33, 52, .08); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: inline-flex; flex-direction: column; line-height: 1; flex: none; }
.logo img { max-height: 52px; width: auto; }
.logo__name { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: #3a3d42; }
.logo__name span { color: var(--accent); font-weight: 600; font-style: italic; }
.logo__sub { margin-top: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .42em; color: var(--accent); text-transform: lowercase; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.header__phone strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
.header__phone small { font-size: 12px; color: var(--muted); }
.header__phone:hover strong { color: var(--accent); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; align-items: center; justify-content: center; margin-left: auto; }
.burger .icon { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a.mobile-menu__link { font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__contacts { margin-top: 24px; display: grid; gap: 12px; }
.mobile-menu__contacts .topbar__item { font-size: 15px; color: var(--text-2); }
.mobile-menu .btn { margin-top: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #eef2f5; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 62%); }
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero__plate {
  max-width: 600px; padding: 48px 48px 40px;
  background: var(--plate); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__plate h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; letter-spacing: -0.02em; }
.hero__plate h1 span { display: block; font-weight: 700; }
.hero__text { margin-top: 22px; color: var(--text-2); font-size: 17px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__badge strong { display: block; font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.hero__badge span { font-size: 13px; color: var(--text-2); line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Преимущества ---------- */
.advantages { padding: 0; position: relative; z-index: 2; margin-top: -56px; }
.advantages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage { padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.advantage h3 { font-size: 18px; font-weight: 600; }
.advantage p { font-size: 14.5px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }

/* ---------- Услуги ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { position: relative; padding: 34px 30px 28px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.service::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover::before { transform: scaleX(1); }
.service h3 { font-size: 20px; font-weight: 600; margin-top: 24px; }
.service p { color: var(--text-2); font-size: 15px; margin-top: 12px; flex: 1; }
.service__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.service__price { font-weight: 700; font-size: 18px; color: var(--text); white-space: nowrap; }
.service__price small { font-weight: 500; font-size: 14px; color: var(--muted); margin-right: 4px; }

/* ---------- Прайс ---------- */
.prices__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.prices__tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: all .25s var(--ease);
}
.prices__tab:hover { border-color: var(--accent); color: var(--accent); }
.prices__tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-panel { display: none; }
.price-panel.is-active { display: block; animation: fadeIn .35s var(--ease); }
.price-panel__head { display: none; }
.price-panel__body { padding: 10px 36px; }
.price-row { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row__name { flex: 1; color: var(--text); }
.price-row__dots { flex: 1; border-bottom: 1px dashed #d6dae0; min-width: 20px; transform: translateY(-4px); }
.price-row__value { font-weight: 700; white-space: nowrap; }
.price-row__value.is-free { color: var(--accent); }
.prices__note { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ---------- Сплит-блок (текст + фото) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split__text h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.split__text .btn { margin-top: 34px; }
.split__media-badge {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 16px 22px 16px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px; line-height: 1.35;
}
.split__media-badge .icon-box { width: 48px; height: 48px; border-radius: 12px; }
.split__media-badge .icon-box .icon { width: 24px; height: 24px; }

/* ---------- Врачи ---------- */
.doctors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor__photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--bg-alt); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); }
.doctor:hover .doctor__photo img { transform: scale(1.04); }
.doctor__exp { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--accent); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.doctor__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.doctor__body h3 { font-size: 20px; font-weight: 600; }
.doctor__role { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.doctor__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; flex: 1; align-content: flex-start; }
.tag { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- О клинике ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 72px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 20px; bottom: 20px; background: var(--plate); padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; padding: 40px 20px; }
.stat { text-align: center; padding: 0 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: 14.5px; }

/* ---------- Технологии ---------- */
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tech:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tech__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.tech__media img { width: 100%; height: 100%; object-fit: cover; }
.tech__media .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.tech__body { padding: 24px 24px 28px; }
.tech__body h3 { font-size: 18px; font-weight: 600; }
.tech__body p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Этапы ---------- */
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 6px; }
.step__num {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); color: var(--accent);
  font-weight: 700; font-size: 18px; position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: 72px; right: -16px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent-soft-2) 0 8px, transparent 8px 14px);
}
.step h3 { font-size: 19px; font-weight: 600; margin-top: 22px; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ---------- Отзывы ---------- */
.reviews__layout { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.reviews__media { position: relative; }
.reviews__media img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.rating-card {
  position: absolute; right: -24px; bottom: 32px; width: 240px;
  background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.rating-card__value { font-size: 44px; font-weight: 700; line-height: 1; }
.rating-card__source { font-weight: 600; margin-top: 10px; font-size: 15px; }
.rating-card__count { font-size: 13px; color: var(--muted); }
.rating-card .link-arrow { margin-top: 12px; }
.stars { display: inline-flex; gap: 3px; color: #F5B301; margin-top: 8px; }
.stars .icon { width: 18px; height: 18px; }

.reviews__slider { min-width: 0; }
.reviews__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; padding: 12px 4px 28px; margin: -12px -4px 0;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(440px, 88%); scroll-snap-align: start; padding: 32px 32px 28px; display: flex; flex-direction: column; }
.review__quote { color: var(--accent-soft-2); width: 40px; height: 40px; }
.review__text { margin-top: 10px; color: var(--text-2); flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.review__name { font-weight: 600; line-height: 1.3; }
.review__service { font-size: 13px; color: var(--muted); }
.review .stars { margin: 0 0 0 auto; }
.review .stars .icon { width: 15px; height: 15px; }
.slider-nav { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--text); transition: all .25s var(--ease); }
.slider-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.slider-btn:disabled { opacity: .4; cursor: default; }
.slider-btn .icon { width: 20px; height: 20px; }

/* ---------- Баннер-призыв ---------- */
.promo { position: relative; padding: 110px 0; overflow: hidden; }
.promo__bg { position: absolute; inset: 0; }
.promo__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo__bg::after { content: ""; position: absolute; inset: 0; background: rgba(240, 244, 247, .35); }
.promo .container { position: relative; }
.promo__plate { max-width: 780px; background: rgba(255, 255, 255, .9); border-radius: var(--radius); padding: 52px 56px; box-shadow: var(--shadow-lg); }
.promo__plate h2 { font-size: clamp(28px, 3.6vw, 44px); }
.promo__plate h2 span { display: block; }
.promo__plate p { margin-top: 18px; font-size: 17px; color: var(--text-2); max-width: 600px; }
.promo__plate .btn { margin-top: 30px; }
.promo__contacts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 26px; font-size: 15px; }
.promo__contacts b { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { padding: 0; overflow: hidden; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; font-weight: 600; font-size: 17px; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__toggle { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s; }
.faq__toggle .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__answer { padding: 0 28px 26px; }
.faq__answer p { border-left: 2px solid var(--accent); padding-left: 20px; color: var(--text-2); }

/* ---------- Запись ---------- */
.booking__card { display: grid; grid-template-columns: 5fr 7fr; overflow: hidden; }
.booking__media { position: relative; min-height: 100%; }
.booking__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booking__perks { position: absolute; left: 24px; right: 24px; bottom: 24px; background: var(--plate); border-radius: 14px; padding: 22px 24px; }
.booking__perks .arrow-list { margin-top: 0; gap: 10px; }
.booking__perks .arrow-list li { font-size: 14.5px; color: var(--text); font-weight: 500; }
.booking__form-wrap { padding: 56px 56px 52px; }
.booking__form-wrap h2 { font-size: clamp(28px, 3.2vw, 38px); }
.booking__form-wrap > p { margin-top: 14px; color: var(--text-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid #dde1e7; border-radius: var(--radius-sm); background: #fff;
  font-size: 15px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555c68' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error select { border-color: var(--accent); }
.field__error { display: none; font-size: 12.5px; color: var(--accent); }
.field.has-error .field__error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; cursor: pointer; }
.consent a { color: var(--accent); text-decoration: underline; }
.consent.has-error { color: var(--accent); }
.form .btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .28); }
.form .btn--wa:hover { background: #1fb457; transform: translateY(-2px); }
.form__success { display: none; grid-column: 1 / -1; padding: 16px 20px; border-radius: var(--radius-sm); background: #eafaf0; color: #157a3e; font-size: 14.5px; font-weight: 500; }
.form__success.is-visible { display: block; animation: fadeIn .35s var(--ease); }

/* ---------- Контакты ---------- */
.contacts__layout { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; }
.contacts__info { display: grid; gap: 16px; align-content: start; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.contact-item .icon-box { width: 52px; height: 52px; border-radius: 12px; }
.contact-item .icon-box .icon { width: 24px; height: 24px; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-item strong, .contact-item a { display: block; font-weight: 600; line-height: 1.45; }
.contact-item a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.social { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--text); transition: all .25s var(--ease); }
.social:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social .icon { width: 20px; height: 20px; }
.map { position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eef1f4; }
.map__canvas { position: absolute; inset: 0; }
.map__art { position: absolute; inset: 0; }
.map__art svg { display: block; width: 100%; height: 100%; }
.map.is-loaded .map__art { display: none; }
.map__pin { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -100%); color: var(--accent); filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--accent) 35%, transparent)); animation: pinBounce 2.4s var(--ease) infinite; }
.map__pin .icon { width: 54px; height: 54px; fill: var(--accent); stroke: #fff; stroke-width: 1.4; }
.map__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 22px; height: 8px; margin-left: -11px; border-radius: 50%; background: rgba(0, 0, 0, .18); animation: pinShadow 2.4s var(--ease) infinite; }
@keyframes pinBounce { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }
@keyframes pinShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }
.map__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .95); border-radius: 14px; padding: 16px 16px 16px 22px; box-shadow: var(--shadow-lg); }
.map__addr small { display: block; font-size: 12.5px; color: var(--muted); }
.map__addr strong { font-weight: 600; font-size: 15px; }
.map__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); font-size: 14.5px; padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer .logo__name { color: #fff; }
.footer__about { margin-top: 22px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 22px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a:hover, .footer__contacts a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 14px; }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer .socials { margin-top: 22px; }
.footer .social { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #fff; }
.footer .social:hover { background: var(--accent); border-color: var(--accent); }
.footer__disclaimer { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; text-align: center; font-size: clamp(16px, 2.2vw, 24px); font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Плавающие элементы ---------- */
.float-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease);
}
.float-wa:hover { transform: scale(1.08); }
.float-wa .icon { width: 30px; height: 30px; }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.2s infinite; }
.to-top {
  position: fixed; right: 32px; bottom: 100px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top .icon { width: 20px; height: 20px; }
.mobile-bar { display: none; }

/* ---------- Анимации ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .nav a { font-size: 14px; }
  .header__phone small { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav, .header__actions .btn, .header__phone { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: inline-flex; margin-left: 0; }
  .logo__name { font-size: 26px; }

  .section { padding: 80px 0; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid, .doctors__grid { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2)::after { display: none; }
  .split { gap: 48px; }
  .split__media-badge { left: 16px; }
  .reviews__layout { gap: 40px; }
  .rating-card { right: 16px; }
  .booking__form-wrap { padding: 44px 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar__group--secondary { display: none; }
  .split, .reviews__layout, .contacts__layout { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { order: -1; }
  .reviews__media { max-width: 520px; }
  .booking__card { grid-template-columns: 1fr; }
  .booking__media { min-height: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(2) { border-right: 0; }
  .map { min-height: 380px; }
  .map__bar { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  .map__btns { width: 100%; flex-wrap: nowrap; }
  .map__btns .btn { flex: 1; padding: 0 12px; }

  /* Прайс: вкладки превращаются в аккордеон */
  .prices__tabs { display: none; }
  .price-panel, .price-panel.is-active { display: block; animation: none; margin-bottom: 12px; }
  .price-panel__head {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; background: none; border: 0; font-weight: 600; font-size: 17px; text-align: left;
  }
  .price-panel__head .icon { width: 20px; height: 20px; color: var(--accent); transition: transform .3s var(--ease); }
  .price-panel.is-open .price-panel__head .icon { transform: rotate(180deg); }
  .price-panel__body { display: none; padding: 0 22px 8px; }
  .price-panel.is-open .price-panel__body { display: block; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 15.5px; }
  .topbar { display: none; }

  .hero { display: block; min-height: 0; background: #fff; }
  .hero__bg { position: relative; height: 300px; }
  .hero__bg img { object-position: 72% center; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.6) 100%); }
  .hero .container { padding-top: 0; padding-bottom: 0; margin-top: -70px; }
  .hero__plate { padding: 30px 22px 26px; background: #fff; }
  .hero__buttons .btn { flex: 1 1 100%; }
  .hero__badges { gap: 10px; }
  .hero__badge strong { font-size: 17px; }
  .hero__badge span { font-size: 12px; }
  .hero__text { font-size: 15.5px; }

  .advantages { margin-top: 40px; }
  .advantages__grid, .services__grid, .doctors__grid, .tech__grid, .steps__grid, .gallery { grid-template-columns: 1fr; }
  .advantages__grid { gap: 14px; }
  .advantage { flex-direction: row; align-items: flex-start; padding: 22px 20px; gap: 16px; }
  .advantage p { margin-top: 6px; }
  .advantage .icon-box { width: 54px; height: 54px; }
  .advantage .icon-box .icon { width: 28px; height: 28px; }
  .services__grid, .doctors__grid, .tech__grid { gap: 20px; }
  .service { padding: 28px 22px 22px; }
  .doctor__photo { aspect-ratio: 1 / 1; }
  .steps__grid { row-gap: 30px; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding-top: 0; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .step p { grid-column: 2; margin-top: 6px; }
  .step::after { display: block !important; content: ""; position: absolute; left: 29px; top: 66px; bottom: -26px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--accent-soft-2) 0 8px, transparent 8px 14px); }
  .step:last-child::after { display: none !important; }

  .split { gap: 32px; }
  .split__media-badge { left: 12px; bottom: 12px; padding: 12px 16px 12px 12px; font-size: 13px; }
  .quote-line { padding-left: 18px; }
  .gallery { gap: 16px; margin-top: 40px; }
  .stats { margin-top: 40px; padding: 28px 8px; }
  .stat span { font-size: 13px; }

  .rating-card { position: relative; right: auto; bottom: auto; width: auto; margin: -50px 16px 0; }
  .review { padding: 26px 22px 22px; }

  .promo { padding: 0; }
  .promo__bg { position: relative; height: 200px; }
  .promo .container { margin-top: -50px; padding-bottom: 64px; }
  .promo__plate { padding: 30px 22px; background: #fff; }
  .promo__plate p { font-size: 15.5px; }
  .promo__plate .btn { width: 100%; }

  .faq__item summary { padding: 20px; font-size: 15.5px; }
  .faq__answer { padding: 0 20px 22px; }

  .booking__media { min-height: 0; height: 320px; }
  .booking__perks { left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; }
  .booking__form-wrap { padding: 32px 20px 28px; }
  .form { grid-template-columns: 1fr; gap: 16px; }
  .field input, .field select, .field textarea { font-size: 16px; } /* без зума на iOS */

  .price-row { flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; }
  .price-row__dots { display: none; }
  .price-row__name { flex: 1 1 100%; font-size: 14.5px; }

  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer__bottom .container { flex-direction: column; }

  .float-wa { display: none; }
  .to-top { right: 16px; bottom: 88px; }

  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); box-shadow: 0 -6px 24px rgba(22,33,52,.1);
  }
  .mobile-bar__icon { width: 52px; height: 52px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); background: #fff; }
  .mobile-bar__icon--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
  .mobile-bar__icon .icon { width: 24px; height: 24px; }
  .mobile-bar .btn { flex: 1; min-height: 52px; }
}

@media (max-width: 380px) {
  .hero__badges { grid-template-columns: 1fr; }
  .hero__badge { display: flex; align-items: baseline; gap: 10px; }
  .hero__badge span { margin: 0; }
}
