/* ===================== Токены ===================== */
:root {
  --green-900: #145a2a;
  --green-700: #1f7a37;
  --green-600: #2e8b3e;
  --green-400: #7cbf3f;
  --green-200: #cfe8b8;
  --green-100: #e9f4e1;
  --green-50:  #f5faf1;
  --ink:       #1b2a20;
  --ink-2:     #4d5d52;
  --ink-3:     #7f8c83;
  --line:      #e3eadf;
  --white:     #ffffff;
  --red:       #c8483c;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 60, 30, .06), 0 8px 24px rgba(20, 60, 30, .06);
  --shadow-lg: 0 20px 50px rgba(20, 60, 30, .14);
  --header-h: 76px;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font: 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ===================== Кнопки ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green-600); color: var(--white); }
.btn--primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46, 139, 62, .3); }
.btn--ghost { border-color: var(--green-200); color: var(--green-700); background: var(--white); }
.btn--ghost:hover { border-color: var(--green-600); background: var(--green-50); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-400); border-radius: 2px; }

/* ===================== Шапка ===================== */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 60, 30, .05); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-600); overflow: hidden; position: relative;
}
.logo__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo__mark:has(img) { background: none; }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font: 800 19px var(--font-head); color: var(--green-700); }
.logo__sub { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav__link {
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2);
  transition: .2s;
}
.nav__link:hover { color: var(--green-700); background: var(--green-50); }
.nav__link.is-active { color: var(--green-700); background: var(--green-100); }
.nav__phone--mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.vk { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); transition: .2s; }
.vk:hover { background: #0077ff; color: var(--white); }
.vk svg { width: 24px; height: 24px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--green-50); border-radius: 12px; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--green-700); border-radius: 2px; transition: .25s;
}
.burger span { top: 21px; }
.burger span::before { content: ""; left: 0; top: -6px; }
.burger span::after { content: ""; left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ===================== Фото с заглушкой ===================== */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  aspect-ratio: 4 / 3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__ph { display: none; }
.photo.is-empty img { display: none; }
.photo.is-empty .photo__ph {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
  font-size: 12px; color: var(--green-700); opacity: .7;
  background-image: radial-gradient(circle at 20% 30%, rgba(124, 191, 63, .18) 0 18%, transparent 19%),
                    radial-gradient(circle at 80% 75%, rgba(46, 139, 62, .12) 0 22%, transparent 23%);
}
.photo--round { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; }
.photo--round.is-empty .photo__ph { font-size: 10px; }

/* ===================== Первый экран ===================== */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 72px;
  background:
    radial-gradient(900px 500px at 100% 0%, var(--green-100), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, var(--green-50), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; color: var(--green-700);
  letter-spacing: -.02em; margin-bottom: 20px;
}
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts b { font: 800 30px var(--font-head); color: var(--green-600); }
.hero__facts span { font-size: 13px; line-height: 1.3; color: var(--ink-3); }

.hero__media { position: relative; }
.collage {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-template-areas: "a a b" "a a c" "d e c"; gap: 12px; aspect-ratio: 1 / 1.02;
}
.collage__tile {
  margin: 0; overflow: hidden; border-radius: 20px; background: var(--green-100); box-shadow: var(--shadow);
  animation: tile-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.collage__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collage__tile:hover img { transform: scale(1.05); }
.collage__tile--a { grid-area: a; border-top-left-radius: 90px; box-shadow: var(--shadow-lg); }
.collage__tile--b { grid-area: b; animation-delay: .08s; }
.collage__tile--c { grid-area: c; animation-delay: .16s; border-bottom-right-radius: 70px; }
.collage__tile--d { grid-area: d; animation-delay: .24s; }
.collage__tile--e { grid-area: e; animation-delay: .32s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .collage__tile { animation: none; } }
.hero__logo {
  position: absolute; top: 27%; right: -52px; z-index: 2; width: 150px; height: 150px; padding: 0;
  border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg);
  animation: logo-float 6s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; object-fit: contain; }
@keyframes logo-float { 50% { transform: translateY(-8px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }
@media (max-width: 1320px) { .hero__logo { right: -12px; width: 130px; height: 130px; } }
.hero__badge {
  position: absolute; z-index: 2; left: -28px; bottom: -22px; background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.hero__badge b { display: block; font-family: var(--font-head); font-size: 15px; }
.hero__badge span { color: var(--ink-3); }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-400); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(124, 191, 63, .25); }
.dot--off { background: var(--ink-3); box-shadow: 0 0 0 4px rgba(127, 140, 131, .2); }

/* ===================== Направления ===================== */
.services { border-block: 1px solid var(--line); background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service { display: flex; align-items: center; gap: 14px; padding: 26px 18px; }
.service + .service { border-left: 1px solid var(--line); }
.service svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green-600); color: var(--white); flex-shrink: 0; }
.service b { display: block; font: 700 15px var(--font-head); }
.service span { font-size: 13px; color: var(--ink-3); }

/* ===================== Секции ===================== */
.section { padding: 96px 0; }
.section--tint { background: var(--green-50); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.section__lead { color: var(--ink-2); font-size: 17px; margin: 0; }
.subtitle { font-size: 24px; font-weight: 700; margin: 72px 0 24px; }

/* ===================== Адреса ===================== */
.addresses { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.branches { display: flex; flex-direction: column; gap: 16px; }

.branch {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px;
  padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--white);
  cursor: pointer; transition: .2s; text-align: left;
}
.branch:hover { border-color: var(--green-200); box-shadow: var(--shadow); }
.branch.is-active { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.branch .photo { aspect-ratio: auto; height: 100%; min-height: 150px; border-radius: var(--radius-sm); }
.branch__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.branch__name { font: 800 21px var(--font-head); }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.tag--main { background: var(--green-600); color: var(--white); }
.tag--off { background: #f1f1ef; color: var(--ink-3); }
.branch__row { display: flex; gap: 8px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 4px; }
.branch__row svg { width: 17px; height: 17px; color: var(--green-600); flex-shrink: 0; margin-top: 3px; }
.branch__row small { display: block; color: var(--ink-3); font-size: 13px; }
.branch__phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.branch__phones a { font-weight: 600; color: var(--ink); white-space: nowrap; }
.branch__phones a:hover { color: var(--green-700); }
.branch__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.branch__actions .btn { padding: 8px 14px; font-size: 13.5px; }

.map { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); height: min(640px, 78vh); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__all {
  position: absolute; top: 14px; left: 14px; border: 0; padding: 9px 16px; border-radius: 999px;
  background: var(--white); color: var(--green-700); font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.map__all:hover { background: var(--green-50); }

/* ===================== Прайс ===================== */
.price { background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.price__controls { position: sticky; top: var(--header-h); z-index: 5; background: var(--white); padding: 4px 0 20px; margin-bottom: 8px; }
.search { position: relative; display: block; margin-bottom: 16px; }
.search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); }
.search input {
  width: 100%; height: 56px; padding: 0 20px 0 54px; border-radius: 999px; border: 1.5px solid var(--line);
  font: 16px var(--font-body); color: var(--ink); background: var(--green-50); outline: none; transition: .2s;
}
.search input:focus { border-color: var(--green-600); background: var(--white); box-shadow: 0 0 0 4px var(--green-100); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  flex-shrink: 0; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: .2s;
}
.chip:hover { border-color: var(--green-200); color: var(--green-700); }
.chip.is-active { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.chip i { font-style: normal; opacity: .6; margin-left: 4px; }

.price__group { margin-top: 24px; }
.price__group h3 { font-size: 18px; font-weight: 700; color: var(--green-700); padding-bottom: 10px; border-bottom: 2px solid var(--green-100); }
.price__row { display: flex; align-items: baseline; gap: 12px; padding: 13px 4px; border-bottom: 1px dashed var(--line); }
.price__row:last-child { border-bottom: 0; }
.price__name { flex: 1; }
.price__val { font-weight: 600; white-space: nowrap; color: var(--ink); }
.price__row mark { background: var(--green-200); color: inherit; border-radius: 3px; padding: 0 2px; }
.price__empty { text-align: center; padding: 40px 0; color: var(--ink-2); }
.price__note { margin: 28px 0 0; font-size: 13px; color: var(--ink-3); }
.demo-flag { display: inline-block; font-size: 12px; font-weight: 600; background: #fff4d6; color: #8a6200; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }

/* ===================== О нас ===================== */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__text p { color: var(--ink-2); font-size: 17px; }
.about__director { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px; border-radius: var(--radius); background: var(--green-50); max-width: 440px; }
.about__director b { display: block; font-family: var(--font-head); }
.about__director span { display: block; font-size: 14px; color: var(--ink-3); }
.about__director-phone { font-weight: 600; color: var(--green-700); }
.about__gallery { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 460px; }
.about__gallery .photo { aspect-ratio: auto; }
.about__gallery .photo:first-child { grid-row: span 2; }

.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.card .photo { border-radius: 0; }
.card--doctor .photo { aspect-ratio: 4 / 4.6; }
.card__body { padding: 18px 20px 22px; }
.card__meta { font-size: 13px; color: var(--green-600); font-weight: 600; margin-bottom: 6px; }
.card__title { font: 700 18px/1.3 var(--font-head); margin-bottom: 8px; }
.card__text { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card__branch { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--green-700); }
.card__branch svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===================== Возможности клиники ===================== */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; }
.feature .photo { aspect-ratio: 4 / 3; border-radius: 0; }
.feature .photo img { transition: transform .6s ease; }
.feature:hover .photo img { transform: scale(1.04); }
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 48, 22, .88) 100%);
}
.feature__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 30px; color: var(--white); }
.feature__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: var(--green-400); color: var(--green-900); font: 800 14px var(--font-head);
}
.feature__title { font: 800 26px/1.2 var(--font-head); margin: 0 0 8px; }
.feature__text { margin: 0; max-width: 440px; font-size: 15px; color: rgba(255, 255, 255, .85); }

/* ===================== Отзывы ===================== */
.rv { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.rv__side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.rv-branch {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--white); transition: .2s;
}
.rv-branch:hover { border-color: var(--green-200); box-shadow: var(--shadow); }
.rv-branch.is-active { border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.rv-branch__name { font: 800 19px var(--font-head); color: var(--ink); }
.rv-branch__addr { grid-column: 1; font-size: 13.5px; color: var(--ink-3); }
.rv-branch__rating { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.rv-branch__rating b { font: 800 30px/1 var(--font-head); color: var(--ink); }
.rv-branch__count { grid-column: 1 / -1; font-size: 13px; color: var(--green-700); font-weight: 600; margin-top: 6px; }
.stars {
  font-size: 15px; letter-spacing: 1px; line-height: 1.4;
  background: linear-gradient(90deg, #fc0 var(--p), #dcdcd6 var(--p));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rv__panel { background: var(--green-50); border-radius: 24px; padding: 16px; max-width: 792px; }
.rv__frame { display: block; width: 100%; height: 760px; border: 0; border-radius: var(--radius); background: var(--white); }
.rv__more { display: inline-block; margin: 14px 8px 4px; font-weight: 600; color: var(--green-700); }
.rv__more:hover { text-decoration: underline; }
.rv__empty { margin: 0; padding: 40px; text-align: center; color: var(--ink-2); }

/* ===================== Подвал ===================== */
.footer { background: var(--green-900); color: #dcebd6; padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; padding-bottom: 48px; }
.footer__brand { font: 800 24px var(--font-head); color: var(--white); margin-bottom: 8px; }
.footer__muted { color: #a8c3a0; font-size: 14px; }
.footer__director { margin: 24px 0 16px; font-size: 13px; color: #a8c3a0; }
.footer__director a { display: block; font: 700 18px var(--font-head); color: var(--white); margin-top: 4px; }
.footer__vk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.footer__vk svg { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.footer__vk:hover { color: var(--green-400); }

/* ===================== Окно записи ===================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 40, 22, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.modal__dialog {
  position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px) scale(.98); transition: .2s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--green-50); color: var(--ink-2); font-size: 26px; line-height: 1;
}
.modal__close:hover { background: var(--green-100); color: var(--ink); }
.modal__title { font-size: 26px; font-weight: 800; margin-bottom: 6px; padding-right: 40px; }
.modal__lead { color: var(--ink-2); margin-bottom: 20px; }
.modal__list { display: flex; flex-direction: column; gap: 12px; }
.bk { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.bk__top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.bk__top b { font: 800 18px var(--font-head); }
.bk__addr { font-size: 14.5px; color: var(--ink-2); }
.bk__hours { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.bk__status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green-700); margin-top: 6px; }
.bk__status.is-off { color: var(--ink-3); }
.bk__status .dot { width: 8px; height: 8px; box-shadow: none; }
.bk__phones { display: flex; flex-direction: column; gap: 8px; }
.bk__phones .btn { padding: 10px 18px; font-size: 14.5px; }
.footer__branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; font-size: 14px; }
.footer__branches b { display: block; color: var(--white); font-family: var(--font-head); margin-bottom: 6px; }
.footer__branches p { margin: 0 0 4px; color: #b8d0b1; }
.footer__branches a { display: block; color: #dcebd6; }
.footer__branches a:hover, .footer__bottom a:hover { color: var(--green-400); }
.footer__bottom { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #a8c3a0; }

/* ===================== Адаптив ===================== */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service:nth-child(4) { border-left: 0; }
  .service:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; padding: 12px 20px 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 14px 8px; font-size: 17px; border-radius: 10px; }
  .nav__phone--mobile { display: block; margin-top: 12px; padding: 14px; text-align: center; border: 0; border-radius: 999px; background: var(--green-600); color: var(--white); font-weight: 600; font-size: 16px; }
  .hero { padding: 32px 0 56px; }
  .hero__inner, .addresses, .about { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { max-width: 480px; }
  .hero__badge { left: 12px; }
  .hero__logo { right: 4px; top: 27%; width: 96px; height: 96px; }
  .hero__badge { bottom: -34px; }
  .map { position: relative; top: 0; height: 420px; order: -1; }
  .rv { grid-template-columns: 1fr; }
  .rv__side { position: static; flex-direction: row; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
  .rv-branch { flex: 0 0 240px; }
  .rv__frame { height: 640px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: 16px 6px; border: 0 !important; flex-direction: column; text-align: center; gap: 8px; }
  .service b { font-size: 14px; }
  .service:last-child { grid-column: span 2; }
  .branch { grid-template-columns: 1fr; }
  .branch .photo { min-height: 0; aspect-ratio: 16 / 9; }
  .cards--3, .cards--4, .footer__branches, .features { grid-template-columns: 1fr; }
  .feature .photo { aspect-ratio: 4 / 4.2; }
  .feature__body { padding: 20px; }
  .feature__title { font-size: 22px; }
  .about__gallery { height: 320px; }
  .price { padding: 20px 16px; border-radius: 18px; }
  .price .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; scrollbar-width: none; }
  .rv__panel { padding: 8px; border-radius: 18px; }
  .hero__facts { gap: 20px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: 24px 24px 0 0; padding: 24px 18px; max-height: 92vh; }
  .modal__title { font-size: 22px; }
  .bk { grid-template-columns: 1fr; }
}
