/* Ветклиника «Ковчег» */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-cyrillic.2b8fbbb33a14.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-latin.f57df9832ab8.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0b2e30;
  --text: #1d3436;
  --muted: #5b6f70;
  --teal: #1f7a75;
  --teal-dark: #0f4f52;
  --mint: #5fe0bd;
  --mint-strong: #3fd0a9;
  --mint-bg: #ddf6ee;
  --mint-soft: #eefaf6;
  --line: #d9e4e2;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(15, 79, 82, .10);
  --shadow-sm: 0 4px 18px rgba(15, 79, 82, .08);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #f6fbfa;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--mint-strong); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 30px; border-radius: 999px;
  border: 2px solid transparent; font-weight: 500; font-size: 17px; line-height: 1.2;
  text-align: center; transition: transform .15s, background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 64px; padding: 16px 36px; font-size: 20px; }
.btn--wide { width: 100%; }
.btn--primary { background: var(--mint); color: var(--ink); box-shadow: 0 8px 24px rgba(63, 208, 169, .35); }
.btn--primary:hover { background: var(--mint-strong); color: var(--ink); }
.btn--outline { background: rgba(255,255,255,.55); border-color: var(--teal-dark); color: var(--teal-dark); }
.btn--outline:hover { background: var(--teal-dark); color: var(--white); }
.btn--dark { background: var(--teal-dark); color: var(--white); }
.btn--dark:hover { background: var(--ink); color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(11,46,48,.4); font-size: 16px; }
.link-btn:hover { color: var(--teal); }

/* Шапка */
.header { position: relative; z-index: 20; padding: 28px 0 0; }
.header__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; flex-wrap: wrap; font-size: clamp(22px, 2.6vw, 38px); color: var(--ink); line-height: 1.1; padding-top: 18px; }
.logo__name { color: var(--teal); font-weight: 800; letter-spacing: .01em; }
.logo__sub { font-weight: 400; white-space: pre; }
.logo:hover { color: var(--ink); }
.logo--light .logo__name { color: var(--mint); }
.header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.header__top { display: flex; align-items: flex-start; gap: 36px; }
.address-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--teal); color: var(--white); font-size: 16px; white-space: nowrap;
}
.address-pill:hover { background: var(--teal-dark); color: var(--white); }
.header__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.header__phone { color: var(--ink); font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 6px 14px; border-radius: 999px; color: var(--ink); font-size: 17px; transition: background-color .2s; }
.nav__list a:hover { background: rgba(95, 224, 189, .3); }
.nav__list a.is-active { background: rgba(95, 224, 189, .55); }
.nav__mobile-extra, .nav__head, .nav-overlay { display: none; }
.burger { display: none; }

/* Hero главной */
.hero {
  position: relative; margin-top: -170px; padding: 230px 0 200px;
  background: linear-gradient(180deg, var(--mint-bg), #e9f8f3);
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0 0 0 auto; width: 56%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; }
.hero__bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(227,247,240,.92) 0%, rgba(227,247,240,.55) 110px, rgba(227,247,240,0) 190px),
    linear-gradient(90deg, #e3f7f0 0%, rgba(227,247,240,.7) 16%, rgba(227,247,240,0) 42%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(34px, 5vw, 70px); font-weight: 700; max-width: 12.5em; margin-bottom: 24px; }
.hero__text { font-size: clamp(17px, 1.6vw, 22px); max-width: 34em; color: var(--text); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.hero__facts strong { color: var(--teal-dark); font-weight: 600; }

.quick-services { position: relative; z-index: 3; margin-top: -130px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.quick-card {
  display: block; background: var(--white); border-radius: var(--radius); padding: 32px 34px 34px;
  box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(15,79,82,.16); color: var(--text); }
.quick-card .icon { margin-bottom: 16px; width: 80px; height: 80px; }
.quick-card__title { font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.quick-card__text { font-size: 17px; color: var(--muted); margin: 0; }

/* Секции */
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section--tint { background: var(--mint-soft); }
.section--overlap { padding-top: 0; margin-top: -64px; position: relative; z-index: 2; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head .section__title { margin: 0; }
.section__title { font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; margin-bottom: 28px; }
.section__more { font-weight: 600; font-size: 18px; }

/* Шапки внутренних страниц */
.page-hero {
  position: relative; margin-top: -170px; padding: 220px 0 130px;
  background: linear-gradient(180deg, var(--mint-bg), #e6f7f1);
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.page-hero--plain { background: #e8f4f2; padding-bottom: 80px; border-radius: 0; }
.page-hero__title { font-size: clamp(32px, 4.6vw, 66px); font-weight: 700; max-width: 16em; margin-bottom: 16px; position: relative; z-index: 2; }
.page-hero__lead { font-size: clamp(17px, 1.7vw, 24px); max-width: 40em; margin-bottom: 0; position: relative; z-index: 2; }
.page-hero--photo { background: #e5f1ef; }
.page-hero__photo { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover; object-position: 30% 30%; opacity: .9; }
.page-hero--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #e5f1ef 0%, rgba(229,241,239,.92) 45%, rgba(229,241,239,.25) 75%, rgba(229,241,239,.5) 100%);
}
.page-hero--photo .container { position: relative; z-index: 2; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--muted); position: relative; z-index: 2; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* Карточки услуг */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  display: grid; grid-template-columns: 1fr 42%; gap: 16px; background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); min-height: 330px; transition: transform .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(15,79,82,.16); }
.svc-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0 4px 6px; }
.svc-card .icon { width: 72px; height: 72px; margin-bottom: 14px; }
.svc-card__title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.svc-card__title a { color: var(--ink); }
.svc-card__title a::after { content: ''; position: absolute; }
.svc-card__text { font-size: 16px; color: var(--text); margin-bottom: 18px; }
.svc-card__cta { margin-top: auto; background: none; border: 0; padding: 0; color: var(--teal-dark); font-weight: 600; font-size: 20px; }
.svc-card__cta:hover { color: var(--teal); }
.svc-card__img { border-radius: 18px; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .svc-card__img img { transform: scale(1.04); }
.svc-card:not(:has(.svc-card__img)) { grid-template-columns: 1fr; }

/* Цены */
.prices-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.prices-layout > *, .about-grid > *, .detail-grid > *, .contacts-grid > *, .svc-hero > * { min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; overflow-x: auto; padding: 4px 2px 22px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--teal); background: rgba(255,255,255,.7);
  color: var(--teal); font-size: 18px; white-space: nowrap; transition: background-color .2s, color .2s;
}
.tab:hover { background: var(--mint-soft); }
.tab.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.tab[data-filter="all"].is-active { background: #ececec; border-color: #ececec; color: var(--ink); }
.price-card { background: var(--white); border-radius: var(--radius); padding: 18px 38px 26px; box-shadow: var(--shadow); }
.price-card--side { padding: 26px 28px; position: sticky; top: 20px; }
.price-group + .price-group { margin-top: 18px; }
.price-group__title { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); margin: 18px 0 4px; }
.price-group.is-hidden { display: none; }
.prices-layout.is-filtered .price-group__title { display: none; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list__row { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-bottom: 1.5px solid var(--line); }
.price-list__row:last-child { border-bottom: 0; }
.price-list__name { font-size: 20px; }
.price-list__dots { flex: 1; }
.price-list__price { font-size: 22px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-list__price.is-muted { font-weight: 500; color: var(--muted); font-size: 17px; }
.price-card--side .price-list__name { font-size: 16px; }
.price-card--side .price-list__price { font-size: 18px; }
.price-card--side .price-list__row { padding: 14px 0; }

.calc-card { background: var(--mint); border-radius: var(--radius); padding: 36px 34px; color: var(--ink); position: sticky; top: 20px; }
.calc-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.calc-card__title { font-size: 32px; font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.calc-card__check { flex: none; }
.calc-card > p { font-size: 18px; }
.calc-card .btn { margin: 14px 0 0; min-height: 64px; }
.calc-card .calc-card__note { font-size: 13px; opacity: .75; margin: 16px 0 0; }

/* О клинике */
.about-grid { display: grid; grid-template-columns: 1fr 390px; gap: 32px; align-items: start; }
.gallery { display: grid; gap: 30px; margin-bottom: 30px; }
.prose + .gallery { margin-top: 32px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 39 / 35; background: var(--white); box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; bottom: 0; max-width: 90%; background: var(--white); padding: 10px 20px; font-size: 18px; line-height: 1.3;
  font-weight: 500; color: var(--ink); border-top-right-radius: 18px;
}
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.adv-card { background: var(--white); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.adv-card .icon { width: 64px; height: 64px; margin-bottom: 14px; }
.adv-card h2, .adv-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.adv-card p { font-size: 17px; margin: 0; color: var(--text); }
.about-text { margin-top: 36px; }

.contact-card { background: var(--white); border-radius: var(--radius); padding: 36px 32px 32px; box-shadow: var(--shadow); position: sticky; top: 20px; }
.contact-card__title { font-size: 38px; font-weight: 700; line-height: 1.5; margin-bottom: 22px; }
.contact-card__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 22px; }
.contact-card__list li { display: flex; gap: 14px; font-size: 19px; line-height: 1.45; color: var(--ink); }
.contact-card__list svg { flex: none; margin-top: 2px; }
.contact-card__list a { color: var(--ink); }
.contact-card .btn { margin-top: 18px; min-height: 60px; font-size: 20px; }
.map-link { display: inline-block; margin-top: 10px; font-size: 15px; }

.map { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 33 / 30; background: #eae6dc; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0;
  background:
    linear-gradient(115deg, transparent 47%, #f4d27a 47%, #f4d27a 51%, transparent 51%),
    linear-gradient(28deg, transparent 58%, #f4d27a 58%, #f4d27a 61%, transparent 61%),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(255,255,255,.7) 36px 38px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.7) 46px 48px),
    #ece7dc;
}
.map__pin { position: absolute; left: 50%; top: 46%; width: 34px; height: 34px; transform: translate(-50%, -100%) rotate(-45deg); background: var(--teal-dark); border-radius: 50% 50% 50% 0; }
.map__pin::after { content: ''; position: absolute; inset: 11px; background: var(--white); border-radius: 50%; }
.map__label { position: absolute; top: 14px; right: 14px; background: var(--white); padding: 4px 12px; border-radius: 10px; font-size: 15px; box-shadow: var(--shadow-sm); color: var(--ink); }
.map__hint { position: absolute; right: 14px; bottom: 14px; background: var(--white); padding: 4px 12px; border-radius: 10px; font-size: 16px; color: var(--ink); }

.contacts-grid { display: grid; grid-template-columns: 1fr 390px; gap: 32px; margin-top: 30px; align-items: stretch; }
.map--big { aspect-ratio: auto; min-height: 420px; }
.contacts-grid .contact-card .map, .contacts-grid .contact-card .map-link { display: none; }
.contacts-how { margin-top: 40px; max-width: 760px; }

/* Врачи */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.doc-card { background: var(--white); border-radius: var(--radius); padding: 16px 16px 24px; box-shadow: var(--shadow-sm); }
.doc-card__photo { aspect-ratio: 40 / 46; border-radius: 18px; overflow: hidden; background: var(--mint-bg); margin-bottom: 16px; display: grid; place-items: center; }
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-card__ph { font-size: 72px; font-weight: 800; color: var(--teal); }
.doc-card__name { font-size: 21px; margin-bottom: 4px; padding: 0 6px; }
.doc-card__pos { color: var(--teal); margin-bottom: 4px; padding: 0 6px; }
.doc-card__exp, .doc-card__bio { font-size: 15px; color: var(--muted); margin: 0; padding: 0 6px; }

/* Страница услуги */
.svc-hero { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; position: relative; z-index: 2; }
.svc-hero .icon { width: 80px; height: 80px; margin-bottom: 14px; }
.svc-hero .page-hero__lead { margin-bottom: 30px; }
.svc-hero__img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.prose { font-size: 18px; }
.prose h2 { font-size: 28px; margin-top: 1.2em; }
.prose p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq__item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: 0 26px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 34px 22px 0; font-size: 19px; font-weight: 600; color: var(--ink); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; color: var(--teal); }
.faq__item[open] summary::after { content: '−'; }
.faq__answer { padding-bottom: 20px; color: var(--text); }

/* CTA и формы */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: var(--teal-dark); color: #d9efec; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); }
.cta__title { color: var(--white); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; }
.cta a { color: var(--mint); white-space: nowrap; }
.cta__hours { opacity: .8; font-size: 15px; }
.cta__form { background: var(--white); border-radius: var(--radius); padding: 28px; color: var(--text); }
.cta__form a { color: var(--teal); white-space: normal; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__extra { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fbfdfd; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(95,224,189,.3); }
.field.has-error input { border-color: #d64545; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.form__error { color: #c23a3a; font-size: 14px; margin: 0; min-height: 0; }
.form__error:empty, .form__success:empty { display: none; }
.form__success { background: var(--mint-bg); color: var(--teal-dark); border-radius: 12px; padding: 14px 16px; margin: 0; font-weight: 500; }
.form.is-sent > *:not(.form__success) { display: none; }
.form button[disabled] { opacity: .6; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11, 46, 48, .55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--white); border-radius: var(--radius); padding: 36px 32px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 32px; line-height: 1; color: var(--muted); border-radius: 50%; }
.modal__close:hover { background: var(--mint-soft); }
.modal__title { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.modal__lead { color: var(--muted); margin-bottom: 20px; }
.modal.is-short .form__extra { display: none; }
body.is-locked { overflow: hidden; }

.flash { padding-top: 16px; }
.flash__item { padding: 14px 18px; border-radius: 12px; background: var(--mint-bg); color: var(--teal-dark); }
.flash__item--error { background: #fde8e8; color: #9b2c2c; }

/* Подвал */
.footer { background: var(--ink); color: #a9c4c2; padding: 64px 0 28px; font-size: 16px; }
.footer a { color: #d9efec; }
.footer a:hover { color: var(--mint); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer__title { color: var(--white); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__text { margin-top: 14px; max-width: 26em; }
.footer__phone { font-size: 20px; font-weight: 600; }
.footer address { line-height: 1.8; }
.footer__social { display: flex; gap: 16px; margin-top: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: 14px; }
.footer__bottom p { margin: 0; }

.call-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: var(--mint); color: var(--ink); place-items: center; box-shadow: 0 10px 30px rgba(15,79,82,.35);
}
.notfound { text-align: center; padding-top: 80px; }
.notfound .page-hero__title { margin: 0 auto 16px; }
.notfound__code { font-size: 120px; font-weight: 800; color: var(--mint); line-height: 1; margin-bottom: 0; }
.privacy { max-width: 860px; }
.privacy h1 { font-size: clamp(30px, 4vw, 46px); }

/* ===== Адаптив ===== */
@media (max-width: 1280px) {
  .logo__sub { display: none; }
  .svc-card { grid-template-columns: 1fr; }
  .svc-card__img { aspect-ratio: 16 / 10; order: -1; }
  .quick-services { gap: 20px; }
  .quick-card { padding: 26px; }
  .quick-card__title { font-size: 22px; }
}

@media (max-width: 1100px) {
  .header__top { gap: 20px; }
  .address-pill { font-size: 14px; padding: 8px 14px; }
  .nav__list a { padding: 6px 10px; font-size: 16px; }
  .quick-services { grid-template-columns: repeat(2, 1fr); margin-top: -110px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .prices-layout, .about-grid, .detail-grid, .contacts-grid { grid-template-columns: 1fr; }
  .calc-card, .contact-card, .price-card--side { position: static; }
  .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__bg { width: 70%; opacity: .75; }
  .cta { grid-template-columns: 1fr; gap: 28px; }
  .svc-hero { grid-template-columns: 1fr 300px; }
}

@media (max-width: 860px) {
  .header { padding: 14px 0; position: sticky; top: 0; background: #f6fbfa; box-shadow: 0 1px 0 rgba(15,79,82,.08); }
  .header__inner { align-items: center; }
  .logo { padding-top: 0; font-size: 26px; }
  .header__top { display: none; }
  .burger {
    display: grid; gap: 5px; place-content: center; width: 48px; height: 48px; border-radius: 14px;
    border: 0; background: var(--mint-bg); flex: none;
  }
  .burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header__right { position: static; }
  /* Меню выезжает справа */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(86vw, 360px);
    background: var(--white); padding: 18px 20px 40px; overflow-y: auto;
    box-shadow: -20px 0 60px rgba(11, 46, 48, .25);
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav-overlay {
    position: fixed; inset: 0; z-index: 55; background: rgba(11, 46, 48, .45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-left: 16px; }
  .nav__title { font-weight: 700; font-size: 20px; color: var(--ink); }
  .nav__close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mint-bg); font-size: 30px; line-height: 1; color: var(--ink); }
  .nav__head { display: flex; }
  .nav-overlay { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font-size: 22px; padding: 12px 16px; }
  .nav__mobile-extra { display: grid; gap: 12px; margin-top: 24px; padding: 24px 16px 0; border-top: 1px solid var(--line); }
  .nav__phone { font-size: 24px; font-weight: 700; color: var(--ink); }
  .nav__mobile-extra p { margin: 0; color: var(--muted); }

  .hero { margin-top: 0; padding: 40px 0 0; border-radius: 0; }
  .hero__bg { position: relative; width: auto; height: 300px; margin: 32px 0 0; order: 2; opacity: 1; }
  .hero__bg::before { background: linear-gradient(180deg, #e7f8f2 0%, rgba(231,248,242,0) 30%); }
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 1; }
  .quick-services { margin-top: -50px; }
  .page-hero { margin-top: 0; padding: 36px 0 90px; }
  .page-hero--plain { padding-bottom: 50px; }
  .page-hero__photo { width: 100%; opacity: .25; }
  .page-hero--photo::after { background: linear-gradient(180deg, rgba(229,241,239,.6), #e5f1ef); }
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero__img { max-height: 340px; aspect-ratio: auto; }
  .gallery--3, .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .call-fab { display: grid; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .btn--lg { min-height: 58px; font-size: 18px; }
  .hero__bg { height: 240px; }
  .quick-services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-card { padding: 18px 16px; border-radius: 18px; }
  .quick-card .icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .quick-card__title { font-size: 18px; margin-bottom: 4px; }
  .quick-card__text { display: none; }
  .svc-grid { grid-template-columns: 1fr; gap: 18px; }
  .svc-card { min-height: 0; padding: 16px; }
  .svc-card__title { font-size: 22px; }
  .price-card { padding: 6px 20px 14px; border-radius: 18px; }
  .price-list__row { flex-wrap: wrap; padding: 16px 0; gap: 4px 12px; }
  .price-list__name { font-size: 17px; flex: 1 1 60%; }
  .price-list__dots { display: none; }
  .price-list__price { font-size: 18px; margin-left: auto; }
  .tabs { flex-wrap: nowrap; }
  .tab { font-size: 15px; padding: 8px 16px; }
  .calc-card { padding: 26px 22px; }
  .calc-card__title { font-size: 26px; }
  .gallery--3 { grid-template-columns: 1fr; }
  .gallery__item { aspect-ratio: 16 / 10; }
  .adv-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 20px; }
  .contact-card__title { font-size: 28px; }
  .contact-card__list li { font-size: 17px; }
  .form__row { grid-template-columns: 1fr; }
  .cta__form { padding: 20px; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { border-radius: var(--radius) var(--radius) 0 0; padding: 28px 20px 24px; max-height: 92vh; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .map--big { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.modal.is-short .field--name { display: none; }
.modal.is-short .form__row { grid-template-columns: 1fr; }

/* Ошибка согласия */
.check.has-error { color: #c23a3a; animation: shake .35s; }
.check.has-error input { outline: 2px solid #c23a3a; outline-offset: 2px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Плашка cookie */
.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: 20px;
  background: var(--white); border-radius: 18px; padding: 16px 18px 16px 24px; box-shadow: 0 16px 50px rgba(11,46,48,.25);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 15px; color: var(--text); }
.cookie-bar .btn { min-height: 46px; padding: 10px 30px; flex: none; }
body.has-cookie-bar .call-fab { bottom: 120px; }
@media (max-width: 600px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; padding: 16px; }
  .cookie-bar p { font-size: 14px; }
  body.has-cookie-bar .call-fab { bottom: 180px; }
}

/* Слайдер фото */
.photo-slider { position: relative; padding-bottom: 44px; }
.photo-slide { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 10 / 7; background: var(--mint-bg); position: relative; }
.photo-slide img { width: 100%; height: 100%; object-fit: cover; }
.photo-slide figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--white); padding: 10px 20px; font-size: 17px;
  font-weight: 500; color: var(--ink); border-top-right-radius: 18px;
}
.photo-slider__btn {
  position: absolute; top: calc(50% - 22px); z-index: 5; transform: translateY(-50%); width: 52px; height: 52px;
  border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 34px; line-height: 1;
  box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 4px;
}
.photo-slider__btn:hover { background: var(--mint); }
.photo-slider__btn--prev { left: 12px; }
.photo-slider__btn--next { right: 12px; }
.photo-slider__btn.swiper-button-disabled { opacity: .35; pointer-events: none; }
.photo-slider__pagination { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.photo-slider .swiper-pagination-bullet { width: 10px; height: 10px; background: var(--teal); opacity: .3; }
.photo-slider .swiper-pagination-bullet-active { opacity: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.photo-grid__item { border: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mint-bg); }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid__item:hover img { transform: scale(1.05); }
@media (max-width: 600px) {
  .photo-slider__btn { display: none; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
