/* Mont Blank, Липецк — эстетическая стоматология.
   Направление (unslop):
   продукт — камерная клиника в центре Липецка, главный врач-универсал, своя зуботехническая лаборатория;
   характер — спокойно и элегантно, «белое всегда в моде»;
   мир — белый мрамор, хрустальные люстры, чёрный круглый логотип, заснеженные вершины с их баннеров;
   моменты — акции с датами, главврач лично, полный прайс, работы до/после, отзывы;
   подпись — силуэт вершины из логотипа: линия хребта и верх главного фото. */

:root {
  /* Цвета клиники */
  --night: #172639;       /* тёмно-синий их баннеров (пиксели) — кнопки, тёмный блок; белый текст 15:1 */
  --slate: #44556B;       /* сланцевый фон баннера хирургии */
  --ink: #15181E;         /* чёрный логотипа на стене */
  /* Свои добавки */
  --night-2: #22364F;     /* наведение */
  --snow: #F3F5F8;        /* холодный светлый фон секций */
  --ice: #E4E9F0;         /* подложки фото врачей, линии */
  --ink-2: #3E4654;       /* вторичный текст, 9:1 */
  --mute: #5F6877;        /* мета, 5.5:1 */
  --frost: #9FB3CB;       /* линия хребта на тёмном */
  --gold: #B08D57;        /* звёзды рейтинга */
  --line: rgba(21, 24, 30, .1);
  --line-strong: rgba(21, 24, 30, .18);
  --shadow: 0 1px 2px rgba(21, 24, 30, .05), 0 14px 36px rgba(21, 24, 30, .08);

  --font: "Fira Sans", system-ui, sans-serif;
  --serif: "Prata", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 152px);
  --r: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--night); color: #fff; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--mute); }
.small { font-size: 14px; color: var(--mute); }
mark.stub { background: #FFF1C9; color: #6B4E00; padding: 0 4px; border-radius: 3px; }

/* ---------- Типографика: антиква только в крупных заголовках ---------- */
.eyebrow { font-size: 15px; font-weight: 500; color: var(--slate); letter-spacing: .01em; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.2vw, 92px); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-size: clamp(21px, 1.8vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head.row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.sec-note { color: var(--mute); font-size: 16px; max-width: 28em; text-align: right; }
.role { font-size: 14px; font-weight: 500; color: var(--slate); letter-spacing: .02em; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 6px; border: solid var(--slate); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-2px); }

/* ---------- Кнопки: прямоугольные с мягким скруглением, как плашки на их баннерах ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: var(--r);
  background: var(--night); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn svg.i { transition: transform .5s var(--ease); }
.btn:hover { background: var(--night-2); }
.btn:hover svg.i { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { background: var(--snow); border-color: var(--night); }
.btn-line:hover svg.i { transform: none; }
.btn-white { background: #fff; color: var(--night); }
.btn-white:hover { background: var(--ice); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm svg.i { width: 18px; height: 18px; }
.btn-wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btns.center { justify-content: center; margin-top: 48px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--night); text-align: left; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .35s var(--ease); }
.link svg.i { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link:hover { border-color: var(--night); }
.link:hover svg.i { transform: translateX(2px); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .35s var(--ease); }
.hdr.is-solid { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(21, 24, 30, .05); }
.hdr-in { height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.brand small { font-size: 12px; color: var(--mute); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: var(--r); transition: background-color .3s var(--ease), color .3s var(--ease); }
.nav a:hover { background: var(--snow); color: var(--night); }
.hdr-contact { display: grid; text-align: right; line-height: 1.25; }
.hdr-phone { font-weight: 600; font-size: 16px; white-space: nowrap; transition: color .3s var(--ease); }
.hdr-phone:hover { color: var(--slate); }
.hdr-contact span { font-size: 13px; color: var(--mute); white-space: nowrap; }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); flex: none; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.burger:hover { background: var(--snow); border-color: var(--night); }
.burger i { position: absolute; left: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease); }
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }
/* меню выпадает поверх страницы, а не раздвигает sticky-шапку — иначе браузер сдвигает прокрутку */
.mnav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 32px rgba(21, 24, 30, .12); border-top: 1px solid var(--line); background: #fff; }
body.menu-open { overflow: hidden; }
.mnav nav { display: grid; padding-block: 12px 24px; }
.mnav nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 22px; transition: color .3s var(--ease); }
.mnav nav > a:hover { color: var(--slate); }
.mnav-foot { display: grid; gap: 8px; padding-top: 20px; font-weight: 500; }
.mnav-foot span { font-weight: 400; color: var(--mute); font-size: 15px; }

.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--night); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.socials a:hover { background: var(--night); border-color: var(--night); color: #fff; }
.socials svg { width: 19px; height: 19px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; pointer-events: none; }
.ridge path { fill: none; stroke: var(--ice); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.hero.is-in .ridge path { stroke-dashoffset: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-points { display: grid; gap: 4px; font-size: 19px; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 14px; }
.hero-points li::before { content: ""; width: 18px; height: 1.5px; background: var(--slate); flex: none; }
.rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.rating:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.rating b { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--ink); line-height: 1; }
.rating small { color: var(--mute); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
/* верх фото — силуэт вершины, как гора в логотипе */
.hero-photo { position: relative; aspect-ratio: 4 / 4.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; clip-path: polygon(0 18%, 24% 6%, 34% 12%, 52% 0, 70% 13%, 80% 8%, 100% 20%, 100% 100%, 0 100%); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 500; color: var(--night); }

/* ---------- Акции ---------- */
.offers-sec { background: var(--snow); }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; border-radius: var(--r); background: #fff; }
.offer img { width: 100%; height: 100%; object-fit: cover; }
.offer-body { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); }
.offer-body p { color: var(--ink-2); font-size: 16px; }
.offer .price { display: flex; align-items: baseline; gap: 12px; }
.offer .price b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--night); }
.offer .price s { color: var(--mute); font-size: 17px; }
.offer .link { justify-self: start; margin-top: 6px; }

/* ---------- Врачи ---------- */
.doctors-sec .h2#doctors-title { margin-bottom: clamp(40px, 5vw, 64px); }
.lead-dr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; border-radius: var(--r); background: var(--night); color: #fff; overflow: hidden; position: relative; }
.lead-dr::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(68, 85, 107, .5)); pointer-events: none; }
.dr-photo { position: relative; z-index: 1; display: grid; justify-items: center; align-self: end; }
.dr-photo img { width: 100%; max-width: 380px; }
.lead-dr-copy { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; padding-bottom: clamp(28px, 4vw, 56px); }
.lead-dr .role { color: var(--frost); }
.lead-dr .intro { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.lead-dr .intro small { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .55); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .16); }
.facts li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 16px; }
.facts b { font-weight: 500; }
.dr-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-top: 20px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0; border-radius: var(--r); background: var(--snow); }
.dr-card > div { display: grid; gap: 12px; padding-bottom: clamp(24px, 3vw, 40px); }
.dr-card .ticks { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.dr-photo.sm img { max-width: 220px; }

/* ---------- Цены ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-bottom: 32px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 12px 20px; border-radius: var(--r); border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.tabs button:hover { border-color: var(--night); background: var(--snow); }
.tabs button[aria-selected="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.prices { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.panel { min-width: 0; }
.panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.price-list { border-top: 1px solid var(--line-strong); }
.price-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list span { font-size: 16px; line-height: 1.45; }
.price-list small { display: block; font-size: 14px; color: var(--mute); margin-top: 2px; }
.price-list b { font-weight: 500; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list li.hot b { color: var(--night); font-weight: 600; }
.price-list li.hot span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--slate); vertical-align: middle; }
.prices-side { position: sticky; top: 108px; display: grid; gap: 16px; justify-items: start; padding: 32px; border-radius: var(--r); background: var(--snow); }
.side-mark { width: 44px; height: 44px; color: var(--slate); }
.prices-side p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.prices-side .small { font-size: 13px; color: var(--mute); }
.side-phone { font-size: 20px; font-weight: 600; transition: color .3s var(--ease); }
.side-phone:hover { color: var(--slate); }

/* ---------- Работы ---------- */
.works-sec { background: var(--snow); }
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.works figure { position: relative; overflow: hidden; border-radius: var(--r); background: #fff; }
.works img { width: 100%; height: 100%; object-fit: cover; }
.works figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .94); font-size: 13px; font-weight: 500; }
.w1 { grid-column: span 4; grid-row: span 3; }
.case { grid-column: span 8; grid-row: span 3; display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: #fff; }
.case-lead { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }
.case dl { display: grid; gap: 16px; }
.case dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.case dt { font-size: 14px; font-weight: 500; color: var(--slate); padding-top: 2px; }
.case dd { font-size: 16px; color: var(--ink-2); }
.case dd .ticks { gap: 6px; }
.case dd b { color: var(--ink); font-weight: 600; }
.w2 { grid-column: span 4; grid-row: span 2; }
.w3 { grid-column: span 5; grid-row: span 2; }
.w4 { grid-column: span 3; grid-row: span 2; }

/* ---------- Клиника ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 560px; }
.chips li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.gallery figure { overflow: hidden; border-radius: var(--r); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g1 { grid-column: span 7; grid-row: span 2; }
.g2 { grid-column: span 5; }
.g3 { grid-column: span 5; }
.g4 { grid-column: span 8; grid-row: span 2; }
.g5 { grid-column: span 4; grid-row: span 2; }
.g5 img { object-position: 50% 25%; }

/* ---------- Отзывы ---------- */
.reviews-sec { background: var(--snow); }
.rev-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.rev-score { display: flex; gap: 40px; align-items: center; padding: 20px 28px; border-radius: var(--r); background: #fff; }
.score { display: grid; gap: 4px; justify-items: start; }
.score b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.score small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.aspects { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.aspects li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.aspects b { font-weight: 600; color: var(--ink); }
.reviews { columns: 3 320px; column-gap: 16px; }
.rev { break-inside: avoid; display: grid; gap: 12px; margin-bottom: 16px; padding: 28px; border-radius: var(--r); background: #fff; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.rev header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 4px; }
.rev header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rev header div { display: grid; line-height: 1.3; }
.rev header b { color: var(--ink); font-weight: 600; }
.rev time { font-size: 14px; color: var(--mute); }

/* ---------- Контакты ---------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r); background: var(--night); color: #fff; }
.cta p { margin-top: 14px; color: rgba(255, 255, 255, .8); }
.cta-actions { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: end; }
.cta-phone { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; white-space: nowrap; transition: color .3s var(--ease); }
.cta-phone:hover { color: var(--frost); }
.cta-ridge { position: absolute; right: 0; bottom: 0; width: 60%; height: 160px; pointer-events: none; }
.cta-ridge path { fill: none; stroke: rgba(159, 179, 203, .35); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .3s; }
.cta.is-in .cta-ridge path { stroke-dashoffset: 0; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 6vw, 88px); align-items: stretch; }
.contact-list { display: grid; border-top: 1px solid var(--line-strong); align-content: start; }
.contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--mute); font-size: 15px; padding-top: 2px; }
.contact-list dd { font-size: 17px; font-weight: 500; line-height: 1.55; }
.contact-list small { display: block; font-weight: 400; font-size: 14px; color: var(--mute); margin-top: 4px; }
.contact-list dd > a { transition: color .3s var(--ease); }
.contact-list dd > a:hover { color: var(--slate); }
.map { position: relative; overflow: hidden; min-height: 400px; border-radius: var(--r); background: var(--snow); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.92) brightness(1.04); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 44px; height: 54px; transform: translate(-50%, -100%); color: var(--night); filter: drop-shadow(0 6px 12px rgba(21, 24, 30, .3)); }
.map-label { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); font-size: 15px; line-height: 1.35; }

/* ---------- Подвал ---------- */
.ftr { padding: clamp(64px, 8vw, 96px) 0 32px; background: var(--night); color: rgba(255, 255, 255, .78); font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; }
.ftr .brand { color: #fff; }
.ftr .brand small { color: rgba(255, 255, 255, .6); }
.ftr-brand { display: grid; gap: 20px; align-content: start; }
.ftr h4 { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.ftr nav, .ftr-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.ftr nav a, .ftr-col > a, .ftr-col button { transition: color .3s var(--ease); text-align: left; }
.ftr nav a:hover, .ftr-col > a:hover, .ftr-col button:hover { color: #fff; }
.ftr .socials { margin-top: 8px; }
.ftr .socials a { color: #fff; border-color: rgba(255, 255, 255, .22); }
.ftr .socials a:hover { background: #fff; color: var(--night); border-color: #fff; }
.plates { display: flex; flex-wrap: wrap; gap: 8px; }
.plate { display: grid; gap: 2px; padding: 10px 14px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; line-height: 1.3; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.plate:hover { border-color: var(--frost); background: rgba(159, 179, 203, .08); }
.plate b { color: #fff; font-weight: 600; }
.plate span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .7); }
.plate svg { width: 13px; height: 13px; color: var(--gold); }
.ftr-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ftr-legal .warn { font-size: 15px; color: rgba(255, 255, 255, .78); }

/* ---------- Модалки ---------- */
.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r); color: var(--ink); box-shadow: 0 24px 64px rgba(21, 24, 30, .3); }
.modal::backdrop { background: rgba(23, 38, 57, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-in { position: relative; display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); }
.modal-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--snow); color: var(--night); transition: background-color .3s var(--ease), color .3s var(--ease); }
.modal-x:hover { background: var(--night); color: #fff; }
.modal .h3 { padding-right: 48px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.field input, .field select { height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-strong); font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172639' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 20px; }
.field input:hover, .field select:hover { border-color: var(--slate); }
.field input:focus, .field select:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(68, 85, 107, .2); }
.field input.err { border-color: #B3413A; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--night); cursor: pointer; }
.check.err span { color: #B3413A; }
.check button { color: var(--night); text-decoration: underline; text-underline-offset: 2px; transition: color .3s var(--ease); }
.check button:hover { color: var(--slate); }
.note { font-size: 13px; color: var(--mute); text-align: center; }
.done { display: grid; justify-items: center; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--snow); text-align: center; color: var(--ink-2); font-size: 15px; }
.done svg.i { width: 32px; height: 32px; color: var(--night); }
.done b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.modal.docm { width: min(680px, calc(100% - 24px)); }
.modal.docm p { color: var(--ink-2); }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ridge path, .cta-ridge path { stroke-dashoffset: 0; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .hdr-in { gap: 18px; }
}
@media (max-width: 1100px) {
  .nav, .hdr-contact { display: none; }
  .burger { display: block; }
  .hdr-in .btn { margin-left: auto; }
  .hero-grid, .contacts { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 620px; aspect-ratio: 4 / 3.4; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .prices { grid-template-columns: minmax(0, 1fr); }
  .prices-side { position: static; }
  .lead-dr { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .rev-head { grid-template-columns: minmax(0, 1fr); }
  .rev-score { justify-self: start; }
  .works .w1 { grid-column: span 5; }
  .case { grid-column: span 7; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { justify-items: start; }
}
@media (max-width: 900px) {
  .sec-head.row { grid-template-columns: minmax(0, 1fr); }
  .sec-note { text-align: left; }
  .chips { justify-content: flex-start; }
  .lead-dr { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .lead-dr .dr-photo { order: 2; }
  .lead-dr-copy { padding-bottom: 0; }
  .dr-card { grid-template-columns: minmax(0, 1fr); }
  .dr-card .dr-photo { order: 2; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .works .w1, .works .w2, .works .w3, .works .w4 { grid-column: span 1; grid-row: auto; height: 380px; }
  .case { grid-column: 1 / -1; grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .g1, .g4 { grid-column: 1 / -1; grid-row: span 2; }
  .g2, .g3, .g5 { grid-column: span 1; grid-row: span 1; }
  .g5 { grid-column: 1 / -1; grid-row: span 2; }
  .rev-score { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 650px) {
  body { font-size: 16px; }
  .hdr-in { height: 68px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 11px; }
  .hero-points { font-size: 17px; }
  .btns .btn { flex: 1 1 auto; }
  .offer { grid-template-columns: minmax(0, 1fr); }
  .offer img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .case dl > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .works .w1, .works .w2, .works .w3, .works .w4 { grid-column: 1 / -1; height: 300px; }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: 1 / -1; grid-row: span 1; }
  .aspects { grid-template-columns: minmax(0, 1fr); }
  .rev { padding: 22px; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .map { min-height: 320px; }
  .map-label { flex-direction: column; align-items: stretch; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .price-list li { gap: 14px; }
}
@media (max-width: 400px) {
  .hdr-in { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand b { font-size: 14px; }
  .lead-dr .btn { white-space: normal; height: auto; min-height: 56px; padding-block: 12px; text-align: left; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 29px; }
  .brand small { display: none; }
  .hdr-in .btn { padding: 0 12px; height: 40px; font-size: 14px; }
  .burger { width: 40px; height: 40px; }
  .burger i { left: 11px; }
  .burger i:first-child { top: 15px; }
  .burger i:last-child { top: 21px; }
}
