/* ============================================================
   Переменные и база
   ============================================================ */
:root {
  /* фирменная палитра AIVA CLINIC */
  --green: #72ba45;        /* светло-зелёный (травяной) */
  --green-dark: #3c7857;   /* тёмно-зелёный */
  --yellow: #ffe666;       /* жёлтый */
  --mint: #73bfb2;         /* бирюзовый (мятный) */
  --peach: #ffdcb8;        /* персиковый */

  --green-2: #9fd27c;
  --green-light: #e3f1da;
  --green-pale: #f3f9ee;
  --green-deco: #e3f2ef;
  --peach-pale: #fff4e8;
  --contacts: var(--green-dark);
  --text: #585758;
  --muted: #d8d8d8;
  --ink: #24493a;
  --line: #e7e7e7;
  --gray-bg: #f6f6f6;
  --radius: 30px;
  --side: max(20px, calc((100% - 1200px) / 2));   /* поля по бокам: контент не шире 1200px */
  --grad: linear-gradient(90deg, #3c7857 0%, #72ba45 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 1200px; }
.section { position: relative; padding: 70px 0; }
.center { text-align: center; }

.eyebrow { font-size: 20px; text-align: center; margin-bottom: 8px; }
.eyebrow-left { text-align: left; }
.h2 {
  font-size: 46px; line-height: 1.2; font-weight: 700;
  text-transform: uppercase; text-align: center; margin-bottom: 40px; color: var(--green-dark);
}
.h2-left { text-align: left; }
.h2-sm { font-size: 36px; line-height: 1.25; }

/* декоративные фигуры */
.deco { position: absolute; pointer-events: none; color: var(--green-deco); z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 40px; font-weight: 500; white-space: nowrap;
  transition: transform .2s ease, box-shadow .3s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: scale(1.02); }
.btn-lg { height: 64px; padding: 0 44px; font-size: 18px; min-width: 221px; }
.btn-sm { height: 45px; padding: 0 26px; font-size: 14px; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-light { background: var(--yellow); color: var(--ink); font-weight: 600; }
.btn-light:hover { background: #ffdf3d; }
.btn-solid { background: var(--green-dark); color: #fff; font-weight: 600; }
.btn-outline {
  height: 60px; padding: 0 36px; font-size: 18px; font-weight: 500;
  color: #fff; border: 1.5px solid #fff; min-width: 360px;
}
.btn-outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-outline svg { width: 24px; height: 24px; }
/* свечение под кнопкой: появляется при наведении */
.glow { box-shadow: 0 18px 40px -12px rgba(114, 186, 69, 0); }
.glow:hover, .glow-on { box-shadow: 0 22px 44px -10px rgba(114, 186, 69, .65); }

/* ============================================================
   Логотип (заглушка: текст + треугольный знак)
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 4px; font-size: 26px; font-weight: 600; line-height: 1; color: var(--green); letter-spacing: -.01em; }
.logo b { font-weight: 600; color: var(--text); }
.logo-mark { width: 30px; height: 34px; background: var(--grad); clip-path: polygon(0 8%, 100% 0, 62% 100%); border-radius: 4px; }
.logo-light b { color: #fff; }
.logo img { display: block; height: 46px; width: auto; }
.footer .logo img { height: 52px; }

/* ============================================================
   Шапка
   ============================================================ */
.topbar {
  display: flex; align-items: center; gap: 20px;
  height: 80px; padding: 0 var(--side); background: #fff;
}
.topbar .logo { margin-right: 10px; }
.top-info { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.top-info span { display: flex; flex-direction: column; }
.top-info strong { font-weight: 500; color: #000; white-space: nowrap; }
.top-info u, .top-info small { font-size: 12px; color: var(--text); white-space: nowrap; }
.top-ico { width: 38px; height: 38px; color: var(--green); flex: none; }
.top-cta { margin-left: auto; width: 210px; }
.top-social { display: flex; gap: 8px; margin: 0 6px; }
.soc-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid var(--green); border-radius: 12px; color: var(--green);
  transition: background-color .2s, color .2s, transform .2s;
}
.soc-btn-wide { width: 60px; }
.soc-btn svg { width: 26px; height: 26px; }
.soc-btn-wide svg { width: 32px; }
.soc-btn:hover { background: var(--green); color: #fff; transform: scale(1.04); }

.burger {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px;
  width: 46px; height: 46px; padding: 0 10px; border-radius: 10px; background: var(--grad); flex: none;
  transition: transform .2s;
}
.burger:hover { transform: scale(1.05); }
.burger span { display: block; height: 2.500px; border-radius: 2px; background: #fff; width: 100%; }
.burger span:nth-child(1) { width: 85%; }
.burger span:nth-child(3) { width: 70%; }

/* полоса филиалов */
.branchbar {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.8fr auto; align-items: center; gap: 20px;
  min-height: 58px; padding: 10px var(--side); font-size: 12px;
  background: var(--green-pale); border-top: 1px solid #dcedd2; border-bottom: 1px solid #dcedd2;
}
.branchbar-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.branchbar-item { display: flex; align-items: center; gap: 8px; }
.branchbar-item span { margin-right: 4px; }
.branchbar-all { font-weight: 700; color: var(--green-dark); }
.branchbar-all:hover { text-decoration: underline; }

.chip {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; font-weight: 700; font-style: normal; color: #fff; flex: none; transition: transform .2s;
}
a.chip:hover { transform: scale(1.15); }
.chip-g { background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); }
.chip-y { background: #e5484d; }
.chip-2 { background: #53b257; }
.chip-i { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }

/* липкое меню */
/* строка меню: на компьютере видна сразу под шапкой и прилипает к верху при прокрутке */
.stickynav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  height: 80px; padding: 0 var(--side); background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  transition: transform .35s ease;
}
.stickynav nav { display: flex; gap: 34px; margin-left: auto; font-size: 17px; font-weight: 500; color: #1e1e1e; }
.stickynav nav a { position: relative; padding: 6px 0; }
.stickynav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.stickynav nav a:hover { color: var(--green-dark); }
.stickynav nav a { white-space: nowrap; }
.stickynav nav a:hover::after { transform: scaleX(1); }
.stickynav .burger { display: none; }

/* выезжающее меню: фирменный зелёный фон, эмблема-орнамент, контакты и кнопки */
.menu { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(25, 43, 27, .45); opacity: 0; transition: opacity .3s; }
.menu.is-open .menu-backdrop { opacity: 1; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow: hidden auto;
  display: flex; flex-direction: column; padding: 96px 44px 40px; color: #fff;
  background: linear-gradient(170deg, #3c7857 0%, #2f6448 100%);
  transform: translateX(100%); transition: transform .35s ease, visibility .35s;
}
.menu.is-open .menu-panel { transform: none; }
.menu-ornament {
  position: absolute; right: -120px; top: 32%; width: 420px; height: 420px; opacity: .10; pointer-events: none;
  filter: brightness(0) invert(1);
}
.menu-panel > *:not(.menu-ornament) { position: relative; z-index: 1; }
.menu-panel nav { display: flex; flex-direction: column; gap: 14px; font-size: 30px; font-weight: 400; line-height: 1.25; }
.menu-panel nav a { transition: color .2s, transform .2s; }
.menu-panel nav a:hover { color: var(--yellow); transform: translateX(4px); }
.menu-footer { margin-top: auto; padding-top: 48px; }
.menu-slogan { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
.menu-contact { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.menu-contact a { font-size: 18px; font-weight: 600; color: #fff; }
.menu-soc { display: flex; gap: 12px; margin-bottom: 24px; }
.menu-soc a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green-dark); transition: transform .2s, background-color .2s; }
.menu-soc a:hover { background: var(--yellow); transform: scale(1.06); }
.menu-soc svg { width: 24px; height: 24px; }
.menu-btn {
  display: flex; align-items: center; justify-content: center; width: fit-content; min-width: 220px; height: 60px; padding: 0 36px; margin-bottom: 12px;
  border-radius: 40px; background: #fff; color: var(--green-dark); font-size: 18px; font-weight: 700; transition: transform .2s, background-color .2s;
}
.menu-btn:hover { background: var(--yellow); transform: scale(1.03); }
.menu-panel .menu-close { position: absolute; top: 28px; right: 28px; width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, .14); transition: background-color .2s; }
.menu-close:hover { background: rgba(255, 255, 255, .26); }
.menu-close::before, .menu-close::after { content: ''; position: absolute; left: 12px; right: 12px; top: 22px; height: 2.5px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }

/* ============================================================
   1. Главный экран
   ============================================================ */
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  min-height: 700px; padding: 60px var(--side); overflow: hidden;
}
.hero-text { position: relative; z-index: 2; flex: none; }
.hero h1 { color: var(--green-dark); font-size: 52px; line-height: 57px; font-weight: 700; text-transform: uppercase; }
.hero-sub { margin-top: 18px; font-size: 26px; line-height: 31px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 19px; margin-top: 40px; }
.hero-btns .btn-grad { min-width: 321px; }

.hero-photos {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; max-width: 640px; aspect-ratio: 5 / 4;
  border-radius: var(--radius); overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateX(105%); transition: transform .6s ease-in-out;
}
.hero-slide.is-active { transform: none; }
.hero-slide.is-leaving { transform: translateX(-105%); }

.deco-hero-1 { width: 133px; height: 150px; right: max(10px, calc(50% - 720px)); top: 110px; transform: rotate(150deg); }
.deco-hero-2 { width: 313px; height: 277px; right: max(-110px, calc(50% - 800px)); top: 330px; }

/* покачивание: +5° и обратно при появлении на экране */
@keyframes rock { 0% { rotate: 0deg; } 50% { rotate: 5deg; } 100% { rotate: 0deg; } }
.rock.in-view { animation: rock 2s ease-in-out; }

/* ============================================================
   Появление блоков при прокрутке (снизу вверх)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(100px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* увеличение фото при наведении */
.zoom { overflow: hidden; border-radius: var(--radius); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zoom:hover img { transform: scale(1.06); }

/* ============================================================
   2. Карточка-акция
   ============================================================ */
.promo-card {
  display: grid; grid-template-columns: 513px 1fr; align-items: center; gap: 46px;
  padding: 30px 92px; background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
}
.promo-img { height: 356px; }
.promo-body h2 { font-size: 28px; line-height: 36px; font-weight: 700; text-transform: uppercase; color: var(--green-dark); margin-bottom: 22px; max-width: 475px; }
.promo-body p { max-width: 475px; margin-bottom: 14px; line-height: 1.4; }
.promo-body .btn { margin-top: 14px; min-width: 321px; }

/* ============================================================
   3. О нас
   ============================================================ */
.about-card {
  position: relative; overflow: hidden; padding: 56px 42px 60px;
  background: var(--gray-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 15px 60px rgba(219, 206, 206, .1);
}
.about-card > *:not(.deco) { position: relative; z-index: 1; }
.deco-about { width: 520px; height: 520px; right: -40px; top: -140px; color: #e6f1ec; }
.about-card .h2 { font-size: 36px; margin-bottom: 18px; }
.about-lead { max-width: 760px; margin-bottom: 40px; line-height: 1.5; }
.about-grid { display: grid; grid-template-columns: 1fr 593px; gap: 40px; align-items: start; }
.about-list { padding-left: 12px; }
.about-list li { cursor: pointer; margin-bottom: 30px; color: var(--muted); transition: color .4s ease; max-width: 440px; }
.about-list li.is-active, .about-list li:hover { color: var(--text); }
.about-list h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.about-list p { font-size: 14px; line-height: 22px; }
.tri { width: 26px; height: 24px; flex: none; color: var(--muted); transform: rotate(-90deg); transition: color .4s ease; }
.about-list li.is-active .tri { color: var(--green); }
.about-photos { position: relative; aspect-ratio: 593 / 566; border-radius: 10px; overflow: hidden; }
.about-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease; }
.about-photos img.is-active { opacity: 1; transform: none; }

/* ============================================================
   Короткие блоки главной страницы и внутренние страницы
   ============================================================ */
.teaser-gray { background: var(--gray-bg); }
.teaser-text { max-width: 760px; margin: -10px auto 32px; text-align: center; font-size: 18px; line-height: 1.6; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.cat {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 22px; background: #fff; border: 1px solid var(--green); border-radius: 22px;
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.cat:hover { box-shadow: 0 20px 44px -22px rgba(114, 186, 69, .7); }
.cat h3 { font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--green-dark); }
.cat p { font-size: 13px; line-height: 1.45; flex: 1; }
.cat span { font-size: 14px; font-weight: 600; color: var(--green); }
.offers-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.offer-mini {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 24px; background: #fff; border: 1px solid var(--green); border-radius: 22px;
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.offer-mini:hover { box-shadow: 0 20px 44px -22px rgba(114, 186, 69, .7); }
.offer-mini h3 { font-size: 20px; font-weight: 700; color: var(--green-dark); }
.offer-mini p { font-size: 14px; line-height: 1.45; flex: 1; }
.offer-mini b { font-size: 22px; font-weight: 700; color: var(--green-dark); }
.contacts-short { padding: 50px 0; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-row h2 { font-size: 30px; line-height: 1.2; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.contact-row p { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.contact-row p svg { width: 24px; height: 24px; flex: none; }
.contact-row-btns { display: flex; flex-direction: column; gap: 12px; }
.contact-row-btns .btn-outline { min-width: 320px; }
.page-inner main > .section:first-child, .page-inner main > .contacts:first-child { padding-top: 70px; }
.stickynav nav a.is-active, .menu-panel nav a.is-active { color: var(--green); }
.stickynav nav a.is-active::after { transform: scaleX(1); }
.menu-panel nav a.is-active { color: var(--yellow); }

/* компактные блоки внутренних страниц */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio-item {
  padding: 28px 28px 30px; background: #fff; border: 1px solid var(--green); border-radius: 22px;
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.trio-item:hover { box-shadow: 0 20px 44px -22px rgba(114, 186, 69, .7); }
.trio-item .tri { display: block; width: 28px; height: 26px; margin-bottom: 14px; color: var(--green); transform: rotate(-90deg); }
.trio-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--green); color: #fff; font-size: 18px; font-weight: 700; }
.trio-item h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 10px; color: var(--green-dark); }
.trio-item p { font-size: 14px; line-height: 1.55; }
.stats-row { display: flex; justify-content: center; gap: 24px; margin-bottom: 30px; }
.stat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 280px; padding: 22px 16px; text-align: center; background: #fff; border: 1px solid var(--green); border-radius: 20px; }
.stat-card b { font-size: 46px; line-height: 1.1; font-weight: 700; color: var(--green); }
.stat-card span { font-size: 16px; line-height: 1.3; }
.cta-mini { padding-top: 0; }
.cta-mini-card {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 48px;
  background: var(--gray-bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.cta-mini-card h2 { font-size: 28px; line-height: 1.2; font-weight: 700; text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px; }
.cta-mini-card p:last-child { font-size: 16px; max-width: 520px; }
.cta-mini-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: none; }
.offer .zoom { aspect-ratio: 2 / 1; }

/* ============================================================
   Наши врачи
   ============================================================ */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor {
  padding: 18px 18px 26px; text-align: center; background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.doctor:hover { box-shadow: 0 24px 50px -24px rgba(114, 186, 69, .7); }
.doctor .zoom { aspect-ratio: 3 / 4; border-radius: 20px; margin-bottom: 18px; }
.doctor h3 { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.doctor p { font-size: 14px; line-height: 1.4; }

/* ============================================================
   Акции
   ============================================================ */
.offers { background: var(--peach-pale); }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.offer {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.offer:hover { box-shadow: 0 24px 50px -24px rgba(114, 186, 69, .7); }
.offer .zoom { border-radius: 0; }
.offer-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 26px 30px; font-size: 14px; line-height: 1.5; }
.offer h3 { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--green-dark); }
.offer-body ul:not(.offer-list) li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.offer-body ul:not(.offer-list) b { white-space: nowrap; font-size: 16px; color: var(--green-dark); }
.offer-body s { margin-right: 6px; font-size: 13px; font-weight: 400; color: #9a9a9a; }
.offer-list li { position: relative; padding-left: 18px; margin-bottom: 4px; }
.offer-list li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.offer-price { font-size: 26px; font-weight: 700; color: var(--green-dark); }
.offer-price s { margin-right: 8px; font-size: 18px; font-weight: 500; color: #9a9a9a; }
.offer-bonus { font-weight: 600; color: var(--green-dark); }
.offer-note { font-size: 13px; color: #8a8a8a; }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* ============================================================
   4. Отзывы: фото, цифры, рейтинги
   ============================================================ */
.reviews { overflow: hidden; }
.deco-rev-1 { width: 240px; height: 240px; left: -150px; top: 420px; color: var(--peach-pale); transform: rotate(40deg); }
.deco-rev-2 { width: 200px; height: 200px; right: -110px; top: 520px; color: var(--peach-pale); transform: rotate(-30deg); }
.reviews-visual { position: relative; width: 890px; max-width: 100%; margin: 0 auto; }
.reviews-photo { aspect-ratio: 890 / 505; }
.stat {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 280px; min-height: 140px; padding: 14px; text-align: center;
  background: #fff; border: 1px solid var(--green); border-radius: 20px;
}
.stat b { font-size: 46px; line-height: 1.1; font-weight: 700; color: var(--green); }
.stat span { font-size: 18px; line-height: 1.2; }
.stat-left { left: -155px; top: 135px; }
.stat-right { right: -155px; bottom: 65px; }

.ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.rating strong { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--green-dark); text-align: center; }
.rating {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 220px; padding: 80px 20px 34px; background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.rating:hover { box-shadow: 0 18px 40px -18px rgba(114, 186, 69, .6); }
.rating-logo {
  position: absolute; left: 0; top: 26px; padding: 8px 46px 8px 44px; font-size: 26px; font-weight: 700; color: #2b2b2b;
  background: linear-gradient(90deg, #eef7e8, #fff);
}
/* фирменные цвета в названиях площадок */
.rating-logo i { font-style: normal; }
.c-gis { color: #2fb34a; }
.c-ya { color: #fc3f1d; }
.c-insta { background: linear-gradient(90deg, #f9a825 0%, #ee2a7b 50%, #6228d7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating p { font-size: 26px; }
.rating b { font-size: 56px; line-height: 1; font-weight: 700; color: var(--green); margin-right: 6px; }
.rating u { font-size: 13px; margin-top: 6px; }

/* ============================================================
   5. Слайдер отзывов
   ============================================================ */
.review-slider { padding-top: 60px; }
.rs { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 44px; max-width: 1010px; margin: 0 auto 80px; }
.rs-viewport { overflow: hidden; border-radius: 12px; }
.rs-track { display: flex; transition: transform .5s ease; }
.rs-card { flex: 0 0 100%; padding: 24px 20px 30px; background: #fff; border-bottom: 2px solid #f2f2f2; }
.rs-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rs-card header div { display: flex; flex-direction: column; line-height: 1.3; }
.rs-card strong { font-size: 18px; color: #2b2b2b; }
.rs-card small { font-size: 13px; color: #8a8a8a; }
.rs-ava { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); font-weight: 700; flex: none; }
.stars { display: flex; gap: 2px; margin-left: auto; color: #f5c518; }
.stars svg { width: 22px; height: 22px; }
.rs-card p { font-size: 18px; line-height: 1.6; font-weight: 500; color: #3a3a3a; }
.rs-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; transition: transform .2s, background-color .2s; }
.rs-arrow:hover { transform: scale(1.1); background: var(--green-dark); }
.rs-arrow svg { width: 20px; height: 20px; }
.rs-prev svg { transform: rotate(180deg); }

/* ============================================================
   6. Услуги
   ============================================================ */
.services { overflow: hidden; padding-bottom: 150px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 15px; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 28px 50px; background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
  transition: opacity 1s ease, transform 1s ease, box-shadow .3s;
}
.card:hover { box-shadow: 0 24px 50px -24px rgba(114, 186, 69, .7); }
.card .zoom { width: 100%; aspect-ratio: 333 / 270; margin-bottom: 22px; }
.card:hover .zoom img { transform: scale(1.06); }
.card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.4; max-width: 290px; }
.deco-serv-1 { width: 90px; height: 100px; left: 55px; bottom: 30px; transform: rotate(200deg); }
.deco-serv-2 { width: 260px; height: 250px; right: -70px; bottom: -90px; transform: rotate(20deg); }

/* ============================================================
   7. Первый приём
   ============================================================ */
.step { display: grid; grid-template-columns: 1fr 582px; align-items: center; gap: 100px; margin-bottom: 80px; }
.step:last-child { margin-bottom: 0; }
.step-rev { grid-template-columns: 582px 1fr; }
.step-rev .step-text { order: 2; }
.step-img { aspect-ratio: 582 / 325; }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.step h3 svg { width: 52px; height: 14px; color: var(--green); flex: none; }
.step p { font-size: 18px; line-height: 1.6; max-width: 520px; }

/* ============================================================
   8. Вопросы и ответы
   ============================================================ */
.price-note { max-width: 760px; margin: -16px auto 36px; text-align: center; font-size: 16px; line-height: 1.5; }
.acc { border-top: 1px solid #b9dca2; }
.acc-item { border-bottom: 1px solid #b9dca2; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 0; font-size: 24px; font-weight: 500; text-align: left; color: #3d3d3d; }
.acc-head i { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #e9e9e9; flex: none; transition: transform .3s ease, background-color .3s; }
.acc-head i::before, .acc-head i::after { content: ''; position: absolute; left: 11px; right: 11px; top: 19.500px; height: 1px; background: var(--green); }
.acc-head i::after { transform: rotate(90deg); }
.acc-head:hover i { background: var(--green-light); }
.acc-item.is-open .acc-head i { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { font-size: 14px; line-height: 1.6; max-width: 1040px; }

.acc-body strong { font-weight: 600; color: var(--ink); }
.acc-body ul { max-width: 1040px; }
.acc-body > div > :last-child { padding-bottom: 36px; }
.acc-body h4 { margin: 28px 0 6px; font-size: 18px; font-weight: 700; color: var(--green-dark); scroll-margin-top: 100px; }
.acc-body h4:first-child { margin-top: 0; }
.acc-body li { position: relative; padding-left: 20px; margin-top: 10px; font-size: 14px; line-height: 1.6; }
.acc-body li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.acc-body p + ul { margin-top: 2px; }

/* ============================================================
   9. Запись
   ============================================================ */
.cta-card {
  position: relative; display: grid; grid-template-columns: 1fr 520px; overflow: hidden; min-height: 640px;
  background: var(--gray-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 15px 60px rgba(219, 206, 206, .1);
}
.cta-body { position: relative; z-index: 1; padding: 74px 0 80px 78px; }
.cta-body .h2 { margin-bottom: 18px; }
.cta-lead { max-width: 460px; margin-bottom: 34px; font-size: 18px; line-height: 1.45; }
.cta-note { font-size: 15px; font-weight: 500; margin: 0 0 16px 42px; }
.cta-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 0 22px 94px; }
.cta-body > .btn-grad { min-width: 244px; }
.cta-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.cta-visual img { position: relative; z-index: 1; width: 400px; max-width: 80%; aspect-ratio: 10 / 13; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.deco-cta { width: 480px; height: 480px; left: 0; top: 40px; color: #ffe9d2; }

/* ============================================================
   10. Большое фото с подписью
   ============================================================ */
.family-card { position: relative; aspect-ratio: 1200 / 626; }
.family-caption {
  position: absolute; left: 22px; bottom: 100px; padding: 24px 26px;
  font-size: 26px; line-height: 1.3; font-weight: 700; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .28); border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 20px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ============================================================
   11. Соцсети + вкладки
   ============================================================ */
.social { overflow: hidden; padding-bottom: 20px; }
.deco-soc-1 { width: 250px; height: 230px; right: max(10px, calc(50% - 540px)); top: 110px; color: #dcecd3; transform: rotate(12deg); }
.deco-soc-2 { width: 560px; height: 520px; right: max(-140px, calc(50% - 760px)); top: 470px; color: #dcecd3; transform: rotate(196deg); }

.tabs-head { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabs-head button {
  padding: 14px 10px 16px; font-size: 20px; font-weight: 600; text-transform: uppercase; color: #9a9a9a;
  border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s;
}
.tabs-head button:hover { color: var(--text); }
.tabs-head button.is-active { color: var(--green); border-bottom: 2px solid var(--green); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; animation: paneIn .5s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.social-pane { position: relative; display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 100px; padding: 70px 90px 80px; }

/* телефон с профилем: аватар, ник, кнопка и сетка фото клиники */
.sphone {
  display: block; width: 360px; max-width: 100%; margin: 0 auto; padding: 22px 20px 20px;
  background: #fff; border: 9px solid #555; border-radius: 58px;
  box-shadow: 0 46px 70px -36px rgba(0, 0, 0, .35); transition: transform .4s ease, box-shadow .4s ease;
}
.sphone:hover { transform: translateY(-8px); box-shadow: 0 56px 80px -36px rgba(0, 0, 0, .4); }
.sphone > span { display: block; }
.sphone-notch { width: 140px; height: 28px; margin: 0 auto 26px; border-radius: 20px; background: #555; }
.sphone .sphone-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sphone-ava { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--green-light); flex: none; }
.sphone-ava img { width: 44px; height: 44px; }
.sphone-head strong { display: block; font-size: 17px; line-height: 1.3; color: var(--text); word-break: break-word; }
.sphone-head small { font-size: 14px; color: #8a8a8a; }
.sphone .sphone-follow {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-bottom: 18px;
  border-radius: 12px; background: var(--green); color: #fff; font-size: 15px; font-weight: 600;
}
.sphone-follow svg { width: 20px; height: 20px; }
.sphone .sphone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sphone-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; transition: transform .4s ease; }
.sphone:hover .sphone-grid img { transform: scale(1.03); }
.sphone-bar { width: 120px; height: 5px; margin: 26px auto 0; border-radius: 3px; background: #555; }

.social-text p { max-width: 470px; margin-bottom: 36px; font-size: 22px; line-height: 1.65; }
.social-text .btn svg { width: 24px; height: 24px; }

/* ============================================================
   13. Контакты
   ============================================================ */
.contacts { padding: 70px 0 60px; background: var(--contacts); color: #fff; }
.tabs-white .tabs-head { max-width: 1160px; margin: 0 auto; }
.tabs-white .tabs-head button { font-size: 18px; color: rgba(255, 255, 255, .5); border-bottom-color: rgba(255, 255, 255, .5); }
.tabs-white .tabs-head button:hover { color: #fff; }
.tabs-white .tabs-head button.is-active { color: #fff; border-bottom-color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 680px; gap: 40px; padding-top: 50px; }
.contact-single { padding-top: 0; }
.contact-license { font-size: 14px !important; opacity: .85; margin-top: 22px; }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; padding-top: 10px; }
.contact-info h2 { font-size: 36px; line-height: 1.2; font-weight: 700; text-transform: uppercase; margin-bottom: 28px; }
.contact-info p { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 18px; }
.contact-info p svg { width: 28px; height: 28px; flex: none; }
.contact-info .btn { margin-top: 16px; }
.contact-map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 680 / 466; background: #e9efe0; }
.contact-map img, .contact-map iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ============================================================
   14. Филиалы на картах
   ============================================================ */
.maps { padding: 44px 0 36px; background: var(--green-pale); }
.maps-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.maps-head h2 { font-size: 24px; font-weight: 700; color: var(--ink); }
.maps-head a { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.maps-head a:hover { text-decoration: underline; }
.maps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.maps-card p { font-size: 13px; line-height: 1.6; color: var(--ink); }
.maps-card { padding: 16px 16px 18px; background: #fff; border: 1px solid #dcedd2; border-radius: 14px; }
.maps-card strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.maps-card > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid #e3e8da; border-radius: 30px; transition: border-color .2s, transform .2s; }
.pill:hover { border-color: var(--green); transform: translateY(-2px); }

/* ============================================================
   Футер
   ============================================================ */
.footer { padding: 70px 0 110px; background: #2b4a3a; color: #d5e2da; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { font-size: 13px; color: #fff; margin: 8px 0 34px; }
.footer-soc { display: flex; gap: 10px; margin-bottom: 30px; }
.footer-soc a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #a9c4b5; color: #2b4a3a; transition: background-color .2s, transform .2s; }
.footer-soc a:hover { background: var(--green); transform: scale(1.1); }
.footer-soc svg { width: 16px; height: 16px; }
.footer small { display: block; font-size: 12px; line-height: 1.6; margin-bottom: 6px; }
.footer h4 { font-size: 16px; font-weight: 700; color: #9fc0ae; margin-bottom: 18px; }
.footer-grid > div:not(.footer-brand) a { display: block; margin-bottom: 14px; transition: color .2s; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--yellow); }

/* плавающая кнопка WhatsApp */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.200s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1340px) {
  .stat-left { left: -60px; }
  .stat-right { right: -60px; }
}
@media (max-width: 1180px) {
  .topbar .top-info-addr { display: none; }
}
@media (max-width: 1200px) {
  .hero h1 { font-size: 42px; line-height: 48px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-sub { font-size: 22px; line-height: 28px; }
  .h2 { font-size: 38px; }
  .promo-card { grid-template-columns: 1fr 1fr; padding: 30px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .step, .step-rev { grid-template-columns: 1fr 1fr; gap: 50px; }
  .cta-card { grid-template-columns: 1fr 400px; }
  .cta-body { padding-left: 40px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .btn-outline { min-width: 0; width: 100%; }
  .stickynav nav { gap: 20px; font-size: 15px; }
}
@media (max-width: 960px) {
  .section { padding: 50px 0; }
  .topbar { gap: 14px; }
  .topbar .top-info, .top-social { display: none; }
  .branchbar { grid-template-columns: 1fr 1fr; padding: 12px 20px; }
  .branchbar-title, .branchbar-all { display: none; }
  /* на телефоне строка меню появляется только при прокрутке, чтобы не дублировать шапку */
  .stickynav { position: fixed; inset: 0 0 auto 0; padding: 0 20px; height: 64px; transform: translateY(-110%); }
  .stickynav.is-visible { transform: none; }
  .stickynav nav { display: none; }
  .stickynav .burger { display: flex; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 50px 20px 0; gap: 40px; }
  .hero-photos { flex: none; width: 100%; max-width: none; border-radius: 0 var(--radius) 0 0; margin-left: -20px; }
  .deco-hero-1 { top: 40px; right: -20px; }
  .deco-hero-2 { top: 130px; right: -150px; }

  .h2 { font-size: 30px; margin-bottom: 30px; }
  .h2-sm, .about-card .h2 { font-size: 26px; }
  .eyebrow { font-size: 16px; }
  .promo-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .promo-img { height: auto; aspect-ratio: 513 / 356; }
  .about-card { padding: 34px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-list li { max-width: none; }
  .stat { position: static; width: auto; margin-top: 14px; min-height: 0; }
  .stat b { font-size: 36px; }
  .ratings { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .rs { grid-template-columns: 32px 1fr 32px; gap: 10px; margin-bottom: 40px; }
  .rs-arrow { width: 32px; height: 32px; }
  .rs-card p { font-size: 15px; }
  .rs-card header { flex-wrap: wrap; }
  .stars { margin-left: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; align-items: center; }
  .cta-mini-card { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .cta-mini-card h2 { font-size: 22px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .offers-compact { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; align-items: stretch; }
  .contact-row h2 { font-size: 24px; }
  .contact-row-btns .btn-outline { min-width: 0; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .services { padding-bottom: 90px; }
  .step, .step-rev { grid-template-columns: 1fr; gap: 20px; margin-bottom: 50px; }
  .step-rev .step-text { order: 0; }
  .step p { font-size: 16px; }
  .acc-head { font-size: 18px; padding: 18px 0; }
  .cta-card { grid-template-columns: 1fr; min-height: 0; }
  .cta-body { padding: 40px 20px 20px; }
  .cta-note, .cta-btns { margin-left: 0; }
  .cta-visual img { width: 300px; margin-top: 10px; }
  .family-card { aspect-ratio: 4 / 3; }
  .family-caption { left: 14px; bottom: 14px; font-size: 18px; padding: 16px; }
  .social-pane { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; text-align: center; }
  .social-text p { margin-left: auto; margin-right: auto; font-size: 18px; }
  .deco-soc-1, .deco-soc-2 { display: none; }
  .maps-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding-top: 30px; }
  .contact-info h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .logo { font-size: 22px; }
  .logo img { height: 38px; }
  .top-cta { display: none; }
  .topbar .burger { margin-left: auto; }
  .branchbar { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 30px; line-height: 36px; }
  .hero-sub { font-size: 18px; line-height: 24px; }
  .hero-sub br, .hero h1 br { display: none; }
  .hero-btns { align-items: stretch; }
  .hero-btns .btn, .hero-btns .btn-grad { width: 100%; min-width: 0; }
  .btn-lg { height: 58px; padding: 0 28px; font-size: 16px; }
  .promo-body .btn { width: 100%; min-width: 0; }
  .promo-body h2 { font-size: 22px; line-height: 28px; }
  .h2 { font-size: 24px; }
  .h2 br { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .tabs-head button { font-size: 14px; padding-left: 4px; padding-right: 4px; }
  .sphone { width: 320px; border-radius: 50px; }
  .social-text .btn { width: 100%; }
  .cta-btns { align-items: stretch; }
  .cta-body > .btn-grad { width: 100%; }
  .btn-outline { height: 54px; font-size: 16px; padding: 0 20px; }
  .maps-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .js .reveal { transform: translateY(50px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .rock.in-view, .wa-float::before { animation: none; }
  .hero-slide, .zoom img, .about-photos img { transition: none; }
}
