/* ==========================================================================
   Шрифт: раньше подключался Google Fonts "Outfit" — у него НЕТ кириллицы.
   Из-за этого весь русский текст сайта (и на ПК, и на телефоне) всегда
   отрисовывался шрифтом по умолчанию из операционной системы — просто на
   разных устройствах эти шрифты по умолчанию выглядят по-разному (отсюда и
   ощущение "на телефоне шрифт другой/не тянется"). Дополнительно у мобильных
   браузеров/веб-вью (например, встроенный браузер ВКонтакте) есть известная
   особенность: сервер Google Fonts определяет версию/формат шрифта по
   User-Agent и иногда отдаёт таким браузерам урезанный набор начертаний.
   Решение: используем шрифт Manrope — он визуально близок к Outfit
   (геометричный, современный), но поддерживает кириллицу, и грузим его
   напрямую по стабильным ссылкам jsDelivr (CDN без "угадывания" браузера),
   без обращения к Google-доменам вообще. Это разом чинит и внешний вид на
   телефоне, и его совпадение с ПК-версией. */
@font-face {
  font-family: 'Site Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/manrope:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Site Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/manrope:vf@latest/cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Site Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/manrope:vf@latest/cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ==========================================================================
   Шрифт заголовков — Mulish, самый жирный вариант (вес 900, "Black").
   Подключаем так же, как основной шрифт Site Sans выше: три файла
   (латиница/кириллица/кириллица-расширенная) напрямую с jsDelivr —
   это гарантирует, что кириллица не "отвалится" на мобильных браузерах. */
@font-face {
  font-family: 'Site Heading';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/mulish:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Site Heading';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/mulish:vf@latest/cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Site Heading';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/mulish:vf@latest/cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

:root {
  --bg: #f6f6f4;
  --paper: #ffffff;
  --ink: #111111;
  --mute: #8a8a8a;
  --line: rgba(17, 17, 17, .1);
  --dark: #1a1a1a;
  --accent: #2f97f0;
  --accent-soft: rgba(47, 151, 240, .12);
  --radius: 28px;
  --radius-lg: 80px;
  --font: "Site Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Site Heading", "Site Sans", system-ui, sans-serif;
  --h: 80px;
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; scroll-padding-top: 96px;
  overflow-x: hidden; max-width: 100%;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--h);
  transition: background .3s, box-shadow .3s;
}
.header__inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff;
}
.header.scrolled { background: rgba(246,246,244,.92); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
.header.scrolled .header__inner { color: var(--ink); }
.header.scrolled .header__phone svg { color: var(--ink); }
.header.scrolled .btn--primary.btn--sm { background: var(--accent); color: #fff; }

.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo__accent { color: var(--accent); }
.logo--footer { color: var(--ink); }
.logo--footer .logo__accent { color: var(--accent); }

.nav__list { display: flex; gap: 30px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.nav__link { opacity: .82; text-transform: uppercase; letter-spacing: .02em; }
.nav__link:hover { opacity: 1; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

.burger {
  display: none; position: relative; width: 26px; height: 16px; z-index: 50;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .25s, opacity .25s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.hero { position: relative; padding: 12px 12px 0; }
.hero__bg {
  position: absolute; inset: 12px;
  border-radius: 28px 28px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--dark);
}

.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(.4) contrast(1.05);
}
.hero__shade {
  position: absolute; inset: 0;
  /* усилено затемнение: раньше светлые участки фото (например, светлый сайдинг
     дома) сливались с белым текстом — контраста было недостаточно */
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 42%, rgba(0,0,0,.72) 100%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.3) 100%);
}

.hero__inner {
  position: relative; z-index: 1;
  min-height: min(78svh, 720px);
  display: grid; align-items: center;
  /* было: padding: 150px 0 56px — эта запись обнуляла отступы слева/справа
     и перебивала padding: 0 var(--pad) из .container, отсюда и "прилипание"
     текста к краю экрана. Теперь трогаем только верх/низ, а слева/справа
     отступ снова берётся из .container. */
  padding-top: 150px;
  padding-bottom: 56px;
  color: #fff;
}
.hero__content { max-width: 1180px; }
.hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero__title {
  /* было clamp(38px, 6vw, 84px) — после смены шрифта на Mulish Black (он
     заметно шире прежнего) длинные слова вроде "ВЕНТИЛЯЦИИ" перестали
     помещаться в колонку и ломались посимвольно. Уменьшаем размер. */
  font-size: clamp(34px, 5.2vw, 72px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.08; margin-bottom: 0;
  overflow-wrap: break-word; word-break: break-word; max-width: 100%;
}
.hero__title-line { display: block; }

.hero__title--rotator { display: grid; }
.hero__title--rotator .hero__title-line {
  grid-row: 1; grid-column: 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero__title--rotator .hero__title-line.is-active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto; position: relative; z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__title--rotator .hero__title-line { transition: opacity .01s linear; transform: none; }
}

.hero__title em {
  font-style: normal; font-weight: 800; letter-spacing: -.02em;
  font-size: 1em; color: #fff; background: var(--accent);
  padding: .06em .22em; border-radius: .16em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline;
}
.hero__aside { display: flex; flex-direction: column; }
.hero__subtitle { font-size: 18px; color: #fff; max-width: 40ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.carousel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: #111; }
.carousel__container { position: relative; width: 100%; height: 100%; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s; }
.carousel__slide:first-child { opacity: 1; pointer-events: auto; } /* видно и без JS */
.carousel__slide.active { opacity: 1; pointer-events: auto; z-index: 1; } /* активный слайд при листании (было пропущено — из-за этого галерея "не листалась") */
.carousel__photo, .carousel__photo img { width: 100%; height: 100%; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 2;
}
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .2s, transform .2s; }
.carousel__dot--active { background: #fff; transform: scale(1.25); }

.carousel__photo { width: 100%; height: 100%; cursor: zoom-in; }
.carousel__photo img { width: 100%; height: 100%; object-fit: cover; }
.carousel__caption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(17,17,17,.55); backdrop-filter: blur(6px); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.carousel--zoom .carousel__dots { bottom: auto; top: 14px; }
.carousel__zoom-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 11px; font-weight: 600; padding: 7px 12px 7px 8px; border-radius: 999px;
  pointer-events: none;
}
@media (max-width: 480px) { .carousel__zoom-hint span, .carousel__zoom-hint { font-size: 10px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10,10,10,.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox__stage { max-width: min(90vw, 720px); max-height: 86vh; }
.lightbox__img {
  max-width: 100%; max-height: 86vh; width: auto; height: auto;
  border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  object-fit: contain; margin: 0 auto;
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

.hero__stats { position: relative; z-index: 2; margin-top: -34px; padding-bottom: 34px; }
.stats-bar {
  background: #fff; border-radius: 999px; padding: clamp(18px, 2.4vw, 30px) 8px;
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0;
  box-shadow: 0 16px 50px rgba(0,0,0,.14);
}
.stats-bar__item { flex: 1; min-width: 0; text-align: center; padding: 4px clamp(6px, 1.4vw, 16px); }
.stats-bar__num {
  display: block; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(20px, 2.6vw, 34px); white-space: nowrap;
}
.stats-bar__label {
  font-weight: 400; color: var(--mute); white-space: nowrap;
  font-size: clamp(10px, 1.15vw, 14px);
}
.stats-bar__divider { width: 1px; align-self: stretch; background: var(--line); flex-shrink: 0; }

.marquee { background: var(--dark); color: #fff; padding: 16px 0; overflow: hidden; }
.marquee__track {
  display: flex; width: max-content; white-space: nowrap;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  animation: marquee 24s linear infinite;
}
.marquee__track span { flex-shrink: 0; opacity: .7; padding-right: 24px; }
.marquee__track span::after { content: "·"; margin-left: 24px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 96px 0; }
.section--gray { background: var(--paper); }
.section-header { margin-bottom: 44px; max-width: 640px; }
.section-header--center { margin: 0 auto 44px; text-align: center; }
.section-title {
  font-size: clamp(38px, 6vw, 84px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.015em; line-height: 1.02; margin-bottom: 20px;
}
.section-desc { color: var(--mute); font-size: 22px; line-height: 1.5; max-width: 56ch; }

.services__grid--simple { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; gap: 20px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.service-card__media {
  position: relative; flex: 0 0 clamp(110px, 30%, 168px);
  aspect-ratio: 3 / 4; border-radius: calc(var(--radius) - 10px);
  overflow: hidden; background: var(--bg);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  background: var(--accent); color: #fff; padding: 5px 12px; border-radius: 999px;
}
.service-card__body { flex: 1; min-width: 0; padding: 12px 8px 12px 0; display: flex; flex-direction: column; }
.service-card__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.service-card__desc { color: var(--mute); font-size: 15px; line-height: 1.5; margin-bottom: auto; padding-bottom: 14px; }
.service-card__link { font-size: 14px; font-weight: 600; }
/* цены на карточках услуг: старая (зачёркнутая, серая) + новая (крупнее, жирная, акцентная) */
.service-card__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.service-card__price-old { color: var(--mute); font-size: 14px; text-decoration: line-through; }
.service-card__price-new { color: var(--accent); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
@media (max-width: 380px) {
  .service-card { flex-direction: column; }
  .service-card__media { flex-basis: auto; width: 100%; aspect-ratio: 16/9; }
}

.documents__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }

.section-title__accent { color: var(--accent); }

.documents__promo {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent), #1f5fd6);
  color: #fff; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase;
  font-size: clamp(14px, 1.7vw, 17px); line-height: 1.25;
  padding: 14px 22px; border-radius: 999px; margin-bottom: 24px;
  box-shadow: 0 14px 34px rgba(47,151,240,.35);
  animation: promo-pulse 2.6s ease-in-out infinite;
}
.documents__promo svg { flex-shrink: 0; }
@keyframes promo-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(47,151,240,.35); }
  50% { box-shadow: 0 14px 40px rgba(47,151,240,.55); }
}
@media (prefers-reduced-motion: reduce) { .documents__promo { animation: none; } }

.price-disclaimer { font-size: 12.5px; line-height: 1.5; color: var(--mute); margin: 14px 0 20px; max-width: 60ch; }
.documents__list { margin: 0 0 28px; display: flex; flex-direction: column; }
.doc-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.doc-item:first-child { border-top: 1px solid var(--ink); }
.doc-item__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-item__body { flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.doc-item strong { display: block; font-size: 19px; margin-bottom: 4px; }
.doc-item span { font-size: 16px; line-height: 1.5; color: var(--mute); }
.doc-item__price {
  flex-shrink: 0; font-size: 17px; font-weight: 800; color: var(--accent);
  white-space: nowrap; padding-top: 1px;
}
.documents__visual .carousel { aspect-ratio: 4/5; max-width: 460px; margin-left: auto; }
@media (max-width: 1024px) { .documents__visual .carousel { margin: 0 auto; } }

.partners__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }

.hero__content, .hero__aside,
.documents__content, .documents__visual,
.partners__content, .partners__visual,
.reviews__text, .reviews__actions,
.contacts__info, .contacts__map,
.footer__brand, .footer__links, .footer__contact,
.service-card { min-width: 0; }
.partners__content p { color: var(--mute); font-size: 19px; line-height: 1.55; margin: 16px 0 22px; max-width: 50ch; }
.partners__benefits { margin-bottom: 26px; }
.partners__benefits li { padding: 8px 0 8px 22px; position: relative; font-size: 17px; }
.partners__benefits li::before { content: "→"; position: absolute; left: 0; font-weight: 700; }

.partners-promo {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); min-height: 420px;
  padding: 34px 30px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(155deg, #3aa6ff 0%, var(--accent) 42%, #1f5fd6 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.partners-promo__decor { position: absolute; inset: 0; z-index: 0; }
.partners-promo__orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  opacity: .5;
}
.partners-promo__orb--1 { width: 220px; height: 220px; top: -70px; right: -60px; opacity: .35; }
.partners-promo__orb--2 { width: 130px; height: 130px; top: 60px; right: 60px; opacity: .5; }
.partners-promo__orb--3 { width: 70px; height: 70px; top: 30px; right: 190px; opacity: .8; }
.partners-promo__icon {
  position: absolute; top: 42px; right: 56px;
  background: rgba(255,255,255,.14); border-radius: 20px; padding: 14px;
  width: 56px; height: 56px; box-sizing: content-box;
  backdrop-filter: blur(6px);
}
.partners-promo__content { position: relative; z-index: 1; }
.partners-promo__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; opacity: .8; margin-bottom: 14px;
}
.partners-promo__title {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.12; margin-bottom: 22px; overflow-wrap: break-word;
}
.partners-promo__badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0;
  background: #fff; color: var(--ink); border-radius: 16px;
  padding: 10px 18px; margin-bottom: 24px;
}
.partners-promo__badge-label { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.partners-promo__badge-value { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.partners-promo__btn { background: #111; color: #fff; }
.partners-promo__btn:hover { background: #000; }
@media (max-width: 480px) {
  .partners-promo { min-height: 360px; padding: 26px 22px; }
  .partners-promo__icon { top: 26px; right: 26px; width: 44px; height: 44px; padding: 10px; }
}

.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 26px; transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--ink); box-shadow: 0 12px 30px rgba(17,17,17,.06); }
.faq-item__question {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__chevron {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s, color .2s;
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); background: var(--accent); color: #fff; }
.faq-item__answer p { color: var(--mute); font-size: 16px; line-height: 1.55; padding-bottom: 24px; }
@media (max-width: 720px) {
  .faq__list { grid-template-columns: 1fr; }
}

.reviews__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.reviews__eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.reviews__actions { display: flex; flex-direction: column; gap: 14px; }
.reviews__link {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 20px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.reviews__link:hover { border-color: var(--ink); box-shadow: 0 12px 30px rgba(17,17,17,.06); transform: translateY(-1px); }
.reviews__link-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.reviews__link strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.reviews__link em { font-style: normal; font-size: 13px; color: var(--mute); }
.reviews__link-arrow { margin-left: auto; flex-shrink: 0; color: var(--mute); }
@media (max-width: 860px) {
  .reviews__inner { grid-template-columns: 1fr; gap: 24px; }
}

.contacts__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contacts__info { display: flex; flex-direction: column; }
.contact-items { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
}
.contact-item__icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item__label { display: block; font-size: 12px; color: var(--mute); margin-bottom: 2px; }
.contact-item strong { font-size: 15px; }

.contacts__map { display: flex; flex-direction: column; min-height: 320px; }
.contacts__map-frame {
  width: 100%; flex: 1; min-height: 320px; border: 0; border-radius: var(--radius);
  filter: grayscale(.15);
}


.footer__inner {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 32px;
  padding: 64px 0 40px; border-top: 1px solid var(--line);
}
.footer__brand p { color: var(--mute); font-size: 14px; margin-top: 14px; max-width: 30ch; }
.footer__links h4, .footer__contact h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin-bottom: 14px;
}
.footer__links ul li { margin-bottom: 8px; font-size: 14px; }
.footer__contact a, .footer__contact span { display: block; margin-bottom: 8px; font-size: 14px; }
.footer__bottom {
  border-top: 1px solid var(--line); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--mute);
}
.footer__bottom > div { display: flex; flex-wrap: wrap; gap: 16px; }

.float-phone {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* Раньше внизу на мобильных было два одинаковых по смыслу "Позвонить" —
   упростили до одной круглой голубой кнопки с трубкой (float-phone),
   стили которой переопределены в медиа-запросе ниже. */

.legal-page {
  max-width: 800px; margin: 0 auto; padding: calc(var(--h) + 56px) var(--pad) 96px;
  color: var(--ink);
}
.legal-page h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: 28px;
}
.legal-page h2 {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.01em;
  margin: 36px 0 12px;
}
.legal-page p { color: var(--mute); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 4px; }
.legal-page li {
  color: var(--mute); font-size: 16px; line-height: 1.6;
  padding-left: 20px; position: relative; margin-bottom: 6px;
}
.legal-page li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.legal-page strong { color: var(--ink); }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .legal-page__updated {
  display: inline-block; margin-top: 24px; font-size: 14px; color: var(--mute);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: gap .2s, color .2s;
}
.back-link:hover { gap: 12px; color: var(--accent); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.service-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(17,17,17,.08); border-color: transparent; }
.doc-item { transition: padding-left .25s ease; }
.doc-item:hover { padding-left: 6px; }
.carousel__photo { transition: transform .5s ease; }
.carousel__photo:hover img { transform: scale(1.04); }
.carousel__photo img { transition: transform .5s ease; }
.faq-item { transition: transform .25s ease, border-color .2s, box-shadow .2s; }
.faq-item:hover { transform: translateY(-2px); }

.cookie-banner {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: #fff; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.cookie-banner.show { display: block; }
.cookie-banner__content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.cookie-banner__buttons { display: flex; gap: 8px; }
.cookie-banner__btn { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cookie-banner__btn--accept { background: var(--ink); color: #fff; }
.cookie-banner__btn--decline { background: var(--bg); color: var(--ink); }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__aside { max-width: 520px; }
  .hero__subtitle { max-width: 60ch; }
  .documents__grid { grid-template-columns: 1fr; }
  .partners__inner { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__map { min-height: 320px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .services__grid--simple { grid-template-columns: 1fr; }
  .contact-items { grid-template-columns: 1fr; }

  /* Мобильное меню: раньше здесь стояло "display:none" без единого правила
     на случай открытия — burger.js переключал класс .open, но показать
     панель было нечем. Теперь .nav — выезжающая справа панель. */
  .nav {
    display: block;
    position: fixed; top: 0; right: 0;
    width: min(320px, 84vw); height: 100vh; height: 100dvh;
    background: var(--paper); color: var(--ink);
    padding: calc(var(--h) + 24px) 28px 32px;
    box-shadow: -24px 0 60px rgba(0,0,0,.2);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 41;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { display: flex; flex-direction: column; gap: 2px; }
  .nav__link {
    display: block; padding: 15px 2px; font-size: 16px; opacity: 1;
    color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .header.menu-open { background: rgba(246,246,244,.98); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
  .header.menu-open .header__inner { color: var(--ink); }
  .header.menu-open .burger { color: var(--ink); }
}

@media (max-width: 560px) {
  .header__phone { display: none; }
}

@media (max-width: 768px) {
  :root { --radius-lg: 40px; --h: 64px; }
  .hero__title { font-size: clamp(28px, 10.5vw, 56px); }
  .section-title { font-size: clamp(30px, 10vw, 48px); }
  .section-desc { font-size: 18px; }
  .stats-bar { border-radius: 24px; }
  /* единственная круглая голубая кнопка звонка вместо двух нижних кнопок */
  .float-phone {
    background: var(--accent);
    width: 58px; height: 58px;
    right: 18px; bottom: 18px;
    box-shadow: 0 12px 28px rgba(47,151,240,.45);
  }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* на узких экранах подписи в полосе цифр не помещаются в одну строку без переноса — разрешаем перенос */
  .stats-bar { padding: 14px 4px; }
  .stats-bar__item { padding: 2px 3px; }
  .stats-bar__label { white-space: normal; line-height: 1.15; }
}

@media (max-width: 860px) {
  .header__inner { gap: 12px; }
  .header__actions { gap: 10px; }
  .logo__text { font-size: 18px; }
}
@media (max-width: 480px) {
  :root { --pad: 16px; }
  .hero__title { font-size: clamp(24px, 8vw, 42px); }
  .hero__title em { padding: .05em .18em; }
  .documents__promo { font-size: 12.5px; padding: 12px 16px; text-align: center; }
  .partners-promo__title { font-size: clamp(21px, 7vw, 28px); }
  .service-card__title { font-size: 17px; }
  .btn--sm { padding: 0 14px; font-size: 12.5px; }
  .header__phone { display: none; }
}
/* Заголовки сайта — шрифт Mulish, самый жирный вариант.
   Правило стоит здесь (в конце файла), а не рядом с описанием каждого
   заголовка, специально: у .hero__title, .section-title и т.д. уже
   есть свой font-weight:800, заданный раньше в файле. При одинаковой
   "силе" CSS-правила побеждает то, что находится ниже — поэтому это
   правило гарантированно переопределяет вес на 900 везде. */
h1, h2, h3,
.hero__title, .hero__title em,
.section-title,
.service-card__title,
.partners-promo__title,
.legal-page h1, .legal-page h2 {
  font-family: var(--font-heading);
  font-weight: 900;
}

img, svg, video, iframe { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .btn:hover { transform: none; }
}
