/* ============================================================
   Общий стиль лендингов СЭС. Мобильный-first, без фреймворков.
   Палитра (утверждена): тёмно-синий + оранжевый CTA.
   ============================================================ */

:root {
  --ink: #10201f;        /* основной текст */
  --muted: #5b6b6a;      /* вторичный текст */
  --bg: #f4faf9;         /* фон секций */
  --paper: #ffffff;      /* фон карточек */
  --accent: #2caea5;     /* синий акцент */
  --accent-dark: #1f8d86;
  --cta: #2caea5;        /* кнопка (палитра 7 (бирюзовая)) */
  --cta-hover: #1f8d86;
  --cta-ink: #ffffff;
  --ok: #2e8b57;         /* успешные отметки */
  --line: #d3e6e3;       /* границы */
  --radius: 12px;
  --shadow: 0 6px 24px rgba(14, 42, 42, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Шрифт Golos Text (OFL, Paratype) — самохостинг из /fonts/ ---------- */
/* Вариативный шрифт: файлы одинаковые для всех весов 400–800 */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/golos-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/golos-cyrillic.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 800;
  font-display: swap;
  src: url('../fonts/golos-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/golos-latin.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;
}

body {
  margin: 0;
  font: 17px/1.6 "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased; /* сглаживание, как на референсе */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 .8em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.section { padding: 40px 0; }
.section--tint { background: var(--bg); }
.section__lead { color: var(--muted); max-width: 640px; }

/* Кнопки */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 14px 26px;
  text-align: center;
  transition: background .15s;
}
.btn--cta { background: var(--cta); color: var(--cta-ink); }
.btn--cta:hover { background: var(--cta-hover); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 12px 24px; }
.btn--ghost:hover { background: rgba(44, 174, 165, .08); text-decoration: none; }
.btn--block { display: block; width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px; /* на узких экранах телефон не должен вылезать за край */
  /* 16px по бокам обязательны: это правило идёт после .container (padding: 0 16px)
     и при записи «10px 0» перекрывало его — элементы шапки прижимались к краям
     экрана (баг со скринов пользователя 05.10, искали причину трижды) */
  padding: 10px 16px;
}
/* Длинный город («Городская СЭС Санкт-Петербурга») свободно переносится на вторую
   строку; min-width:0 позволяет тексту сжиматься, телефон (nowrap) всегда целиком.
   Отступы от краёв экрана даёт padding строки (10px 16px) — настоящий фикс 05.10 */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: none; font-weight: 400; font-size: .72rem; color: var(--muted); } /* мобильный: подпись убрана, чтобы номер помещался */
.brand em { font-style: normal; color: var(--cta); } /* запас для акцента в названии */
.brand i { font-style: normal; } /* город в шапке: «Городская СЭС Санкт-Петербурга» (data-region-gen) */
.header__tel { font-weight: 700; white-space: nowrap; font-size: .88rem; }
.header__tel small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); text-align: right; }
.header__btn { display: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #e8f6f4 0%, var(--paper) 100%); padding: 36px 0 44px; }
.hero__grid { display: grid; gap: 24px; }
.hero h1 { font-size: 2rem; margin-bottom: .4em; }
.hero__sub { font-size: 1.1rem; }
.hero__bullets { list-style: none; padding: 0; margin: 16px 0 0; }
.hero__bullets li { margin: 6px 0; padding-left: 26px; position: relative; }
.hero__bullets li::before {
  content: "✔";
  position: absolute; left: 0; color: var(--ok); font-weight: 700;
}

/* Hero с фото-подложкой: тёмная вуаль для читаемости.
   Значения --hero-img/--hero-img-mob объявлены ЗДЕСЬ, а не в инлайн-стиле секции
   (исправление 07.10.2026): Chromium резолвит url() внутри кастомного свойства
   относительно CSS-файла, где var() используется, а не относительно страницы —
   инлайн url('img/…') на главной превращался в css/img/… (404, фото пропадало).
   Из style.css путь ../img/… верен для всех страниц сайта. */
.hero--photo {
  --hero-img: url(../img/hero/common.jpg?v=1);
  --hero-img-mob: url(../img/hero/common-mob.jpg?v=1);
  position: relative;
  background-color: #10201f;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 42, 42, .74) 0%, rgba(14, 42, 42, .6) 100%);
}
.hero--photo .container { position: relative; } /* контент выше вуали */
.hero--photo h1 { color: #fff; }
.hero--photo .hero__sub { color: #d5dee8; }
.hero--photo .hero__bullets li { color: #e8f6f4; }
.hero--photo .hero__bullets li::before { color: #a8e3dd; }
.hero--photo .form-card__alt { color: var(--muted); }
.hero--photo .form-card__alt a { color: var(--accent); font-weight: 800; }
/* Узкие экраны (одна колонка, до 960px): общая подложка — пейзажный кадр, в cover
   на высокой секции он масштабируется в высоту, и специалист (нижняя часть кадра)
   уезжает под карточку формы. Поэтому до 960px фоном служит мобильный портретный
   кроп --hero-img-mob: специалист у верха кадра, виден между заголовком и плашкой,
   cover заполняет секцию целиком — без полос и зазоров, низ кропа уходит в цвет
   фона. Десктоп (≥960px) использует общий кадр, как раньше. */
@media (max-width: 959px) {
  .hero--photo {
    background-image: var(--hero-img-mob, var(--hero-img));
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

/* ---------- Акция (промо-CTA в середине страницы, после блока «Как проходит») ---------- */
.promo {
  background: linear-gradient(135deg, #1f8d86 0%, #2caea5 55%, #5fc9c1 100%);
  color: #fff;
  padding: 44px 0;
}
.promo__grid { display: grid; gap: 24px; align-items: center; }
.promo__title { font-size: 1.75rem; font-weight: 800; margin-bottom: .3em; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.promo__title .promo__month { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.promo__sub { font-size: 1.08rem; color: #e3f4f2; margin: 0; max-width: 480px; }
.promo__form { background: #fff; box-shadow: 0 10px 34px rgba(14, 42, 42, .3); }
.promo__form .form-card__title { color: var(--ink); }

/* ---------- Наши дезинфекторы ---------- */
.masters { display: grid; gap: 14px; margin-top: 26px; }
.masters__title { margin: 30px 0 0; font-size: 1.3rem; }
.master {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.master__photo {
  flex: 0 0 auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2caea5, #1f8d86);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.5rem;
}
.master__photo img { width: 100%; height: 100%; object-fit: cover; }
.master h4 { margin: 0 0 4px; font-size: 1.05rem; }
.master p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Фото работ ---------- */
.works__title { margin: 30px 0 0; font-size: 1.3rem; }
.works { display: grid; gap: 14px; margin-top: 16px; }
.work {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work figcaption {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- Форма ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.form-card__title { margin-bottom: 4px; }
.form-card__note { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.form-card input[type="text"],
.form-card input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  font: inherit;
  border: 1px solid #b5bec7;
  border-radius: 8px;
  background: #fff;
}
.form-card input:focus-visible { outline: 3px solid #9ad6d0; outline-offset: 1px; }
.form-card .consent { display: flex; gap: 8px; font-size: .78rem; color: var(--muted); margin: 0 0 14px; }
.form-card .consent input { flex: 0 0 auto; }
.form-msg { min-height: 1.3em; font-size: .9rem; margin: 10px 0 0; }
.form-msg.is-error { color: #e60000; font-weight: 800; font-size: .98rem; text-shadow: 0 0 1px rgba(230, 0, 0, .25); }
.form-card__alt { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Карточки-сетки ---------- */
.cards { display: grid; gap: 14px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card__icon { font-size: 1.6rem; margin-bottom: 6px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Главная: карточка-ссылка в сетке услуг — кликабельна вся карточка */
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 6px 18px rgba(44, 174, 165, .12); }
.card--link .card__more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); }

/* ---------- Шаги ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { position: relative; padding: 16px 16px 16px 64px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 800; border-radius: 50%;
}
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; gap: 14px; align-items: stretch; }
.tariff {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.tariff--hot { border: 2px solid var(--cta); box-shadow: var(--shadow); }
.tariff__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cta); color: var(--cta-ink);
  font-size: .72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.tariff__name { margin-bottom: .2em; }
.tariff__price { font-size: 1.3rem; font-weight: 800; margin: 6px 0 10px; }
.tariff__price small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 16px; flex: 1 1 auto; }
.tariff li { padding-left: 24px; position: relative; margin: 6px 0; font-size: .92rem; }
.tariff li::before { content: "✔"; position: absolute; left: 0; color: var(--ok); }
.tariff .btn { margin-top: auto; }

/* ---------- Доверие ---------- */
.trust__facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact__icon { flex: 0 0 auto; width: 42px; height: 42px; }
.fact h3 { margin-bottom: .15em; font-size: 1rem; }
.fact p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Гарантии ---------- */
.guarantees { display: grid; gap: 14px; }
.guarantee { background: var(--paper); border-left: 4px solid var(--ok); border-radius: 8px; padding: 16px; }
.guarantee h3 { font-size: 1rem; margin-bottom: .2em; }
.guarantee p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 14px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: #e3f4f2; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); }
.review__name { font-weight: 700; }
.review__meta { font-size: .78rem; color: var(--muted); }
.review p { margin: 0 0 8px; font-size: .94rem; }
.review__result { color: var(--ok); font-weight: 600; font-size: .9rem; }
.stars { color: #f0a500; letter-spacing: 2px; }

/* Синее выделение слова в заголовке (блок качества) */
.accent { color: var(--accent); }

/* ---------- Лента (сертификаты, отзывы-скрины) ---------- */
/* Нативный скролл + snap: на мобильных — свайп, на десктопе — стрелки (js/slider.js) */
.slider { position: relative; margin-top: 18px; }
.slider__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px; /* место для теней карточек */
  scrollbar-width: none; /* прячем полосу — листают свайпом/стрелками */
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 auto; scroll-snap-align: start; }
.slider__item img {
  display: block;
  height: 300px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.certs .slider__item img { height: 325px; }
a.slider__item { cursor: zoom-in; }

/* Стрелки: показываются только когда лента переполнена (класс is-overflow из js/slider.js)
   и только с 960px — на мобильных листают свайпом */
.slider__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 42, 42, .25);
}
.slider__nav:hover { background: var(--accent); color: #fff; }
.slider__nav--prev { left: -10px; }
.slider__nav--next { right: -10px; }

/* ---------- Лайтбокс для скринов отзывов ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 42, 42, .88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--cta); }

/* ---------- Контакты + карта ---------- */
.contacts__list { margin: 14px 0 20px; display: grid; gap: 12px; }
.contacts__list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.contacts__list dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.contacts__map { margin-top: 22px; }
.contacts__map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }

/* ---------- Финальный CTA ---------- */
.final { background: var(--ink); color: #fff; }
.final h2 { color: #fff; }
.final .section__lead { color: #c4ced8; }
.final .form-card { background: #1f8d86; border-color: #1d544f; }
.final .form-card input { background: #fff; }
.final .form-card .consent { color: #c4ced8; }
.final .form-card__note { color: #c4ced8; }
.final .phone-big { font-size: 1.5rem; font-weight: 800; color: #fff; display: inline-block; margin-top: 8px; }

/* ---------- Подвал ---------- */
.footer { background: #10201f; color: #8f9ba8; padding: 28px 0; font-size: .85rem; }
.footer a { color: #c4ced8; }
.footer__row { display: grid; gap: 10px; }
/* Реквизиты мелким шрифтом (ООО, ИНН, ОГРН, адрес) */
.footer__req { margin-top: 6px; font-size: .75rem; color: #7a8897; }

/* ---------- Липкая мобильная кнопка ---------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex;
}
.sticky-call a {
  flex: 1;
  background: var(--cta);
  color: var(--cta-ink);
  text-align: center;
  font-weight: 800;
  padding: 14px;
  text-decoration: none;
}
.sticky-call a:hover { background: var(--cta-hover); text-decoration: none; }
body { padding-bottom: 48px; } /* место под липкую кнопку */

/* ---------- Страница «Спасибо» ---------- */
.thanks { text-align: center; padding: 60px 16px 40px; } /* 16px по бокам: иначе перекрывает .container, контент прижат к краям (как в шапке) */
.thanks__icon { font-size: 3rem; color: var(--ok); }

/* ---------- Модалка «Заявка принята» (строит js/forms.js; без ухода со страницы) ---------- */
.thanks-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120; /* выше липкой кнопки (60) и лайтбокса (100) */
  background: rgba(14, 42, 42, .78);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.thanks-modal.is-open { display: flex; }
.thanks-modal__card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  padding: 30px 24px 24px;
  max-width: 430px;
  width: 100%;
  text-align: center;
}
.thanks-modal__icon { font-size: 3rem; color: var(--ok); }
.thanks-modal__card h2 { margin: .2em 0 .4em; }
.thanks-modal__card p { color: var(--muted); margin: 0 0 18px; }
.thanks-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e8f6f4;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.thanks-modal__close:hover { background: var(--cta); color: var(--cta-ink); }

/* ---------- Плашка «не знаете, какую обработку выбрать» (под тарифами) ---------- */
.tariffs__help {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #eefaf8; /* светлый оранжевый — цвет CTA */
  border: 2px dashed var(--cta);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tariffs__help strong { display: block; margin-bottom: 2px; }
.tariffs__help span { color: var(--muted); font-size: .92rem; }

/* ---------- Фото офиса в «Контактах» ---------- */
.contacts__photo { margin: 22px 0 0; max-width: 320px; }
.contacts__photo img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contacts__photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.contacts__photo--wide { max-width: 340px; } /* на месте карты (карта временно отключена): компактное фото рядом с текстом */
.contacts__photo--wide img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }

/* ---------- Модалка с формой «Получить консультацию» (строит js/forms.js) ---------- */
.consult-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120; /* как у «Спасибо»: выше липкой кнопки (60) и лайтбокса (100) */
  background: rgba(14, 42, 42, .78);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.consult-modal.is-open { display: flex; }
.consult-modal__card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  padding: 24px 16px 16px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto; /* на маленьких экранах форма прокручивается внутри окна */
}
.consult-modal__x {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e8f6f4;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.consult-modal__x:hover { background: var(--cta); color: var(--cta-ink); }
/* Форма внутри окна: без собственной рамки и отступов карточки */
.consult-modal .form-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
.consult-modal .form-card__title { padding-right: 36px; } /* не залезать под крестик */

/* ============ Широкий мобильный: шапка как была ============ */
@media (min-width: 480px) {
  .brand { font-size: 1.05rem; gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .header__tel { font-size: .95rem; }
}

/* ============ Планшет ============ */
@media (min-width: 640px) {
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.2rem; }
  .hero h1 { font-size: 2.4rem; }
  .promo__title { font-size: 2rem; }
  .brand small { display: block; } /* подпись бренда возвращается */
  .header__row { gap: 12px; }
  .header__tel { font-size: inherit; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__facts { grid-template-columns: repeat(2, 1fr); }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .footer__row { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* ============ Десктоп ============ */
@media (min-width: 960px) {
  .section { padding: 60px 0; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2.05rem; }
  h3 { font-size: 1.28rem; }
  .header__btn { display: inline-block; }
  .header__tel small { display: inline; margin-left: 8px; }
  .hero { padding: 60px 0 68px; }
  .hero__grid { grid-template-columns: 1.55fr 1fr; align-items: center; gap: 40px; }
  .hero h1 { font-size: 2.55rem; }
  .hero__bullets li { font-size: .98rem; }
  .promo { padding: 58px 0; }
  .promo__grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
  .promo__title { font-size: 2.3rem; }
  .masters { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps .step { padding: 20px 16px 20px 16px; text-align: center; }
  .steps .step::before { position: static; margin: 0 auto 10px; }
  .tariffs { grid-template-columns: repeat(4, 1fr); }
  .trust__facts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .slider.is-overflow .slider__nav { display: block; } /* стрелки только на десктопе */
  .contacts__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
  .contacts__grid .section__lead { max-width: none; } /* подзаголовок — в 2 строки */
  .contacts__map { margin-top: 0; justify-self: end; } /* фото прижато к правому краю */
  .contacts__photo--wide { margin-top: 0; }
  .contacts__map iframe { height: 400px; }
  .sticky-call { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Страница политики конфиденциальности (/legal/) ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: 1.7rem; margin-bottom: .2em; }
.legal__meta { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 1.7em 0 .5em; }
.legal h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.legal li { margin: 4px 0; }
.legal p { color: #33445c; }
.legal .note {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Блок «Работаем по самым доступным ценам» (синий, после первого экрана) ---------- */
.price { background: var(--accent); color: #fff; padding: 36px 0 40px; }
.price__title { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 .6em; }
.price__title em { font-style: normal; background: #fce54a; color: #ffffff; padding: 0 .3em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.price__lead { margin: 0 0 22px; max-width: 980px; color: #e3f4f2; font-size: 1.1rem; line-height: 1.6; }
@media (min-width: 960px) { .price__lead { font-size: min(1.15rem, calc((100vw - 32px) / 58)); max-width: none; } }
.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.price__list li { background: #fff; color: #5b6b6a; border-radius: 10px; padding: 16px 18px; line-height: 1.45; }
.price__list li b { color: #10201f; }
@media (min-width: 640px) { .price__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .price { padding: 44px 0 50px; } .price__title { font-size: min(1.8rem, calc((100vw - 32px) / 40)); white-space: nowrap; } .price__list { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Карточки услуг строками (вариант 2): иконка в круге слева, текст, стрелка справа ---------- */
.cards--rows { gap: 12px; grid-template-columns: 1fr; }
.cards--rows .card { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; padding: 14px 18px; }
.cards--rows button.card { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cards--rows .card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(44, 174, 165, .12); text-decoration: none; }
.cards--rows a.card { color: inherit; }
.cards--rows .card__icon { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; background: #e3f4f2;
  display: grid; place-items: center; font-size: 1.7rem; margin: 0; }
.cards--rows .card h3 { grid-column: 2; margin: 0 0 2px; font-size: 1.08rem; align-self: end; }
.cards--rows .card p { grid-column: 2; grid-row: 2; font-size: .9rem; align-self: start; }
.cards--rows .card__arrow { grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-size: 1.4rem; font-weight: 800; }
@media (min-width: 760px) { .cards--rows { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .cards--rows { grid-template-columns: repeat(3, 1fr); }
  .cards--rows a.card:last-child { grid-column: 1 / -1; } /* «Другая проблема?» — на всю ширину последней строкой */
}

/* ---------- Окно услуги: описание над формой ---------- */
.consult-modal--svc .consult-modal__card { max-width: 560px; }
.svc-modal__text { padding-right: 34px; }
.svc-modal__text h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .6em; }
.svc-modal__text p { margin: 0 0 .7em; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.svc-modal__text p b { color: var(--ink); }
.svc-modal__text { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Блок «Мы всегда отвечаем за качество»: галерея слева, гарантия справа (как в Д7) ---------- */
.guar__title { text-align: center; max-width: 860px; margin: 0 auto; font-size: 1.45rem; line-height: 1.35; }
.guar__body { display: grid; gap: 28px; margin: 28px auto 0; max-width: 980px; align-items: center; }
.guar-slider { margin: 0; min-width: 0; }
.guar-slider .slider__item { width: calc((100% - 12px) / 2); } /* телефон: 2 фото, листаются свайпом */
@media (min-width: 640px) { .guar-slider .slider__item { width: calc((100% - 24px) / 3); } }
.guar-slider .slider__item img { width: 100%; height: auto; border-radius: 4px; }
.guar-slider .slider__nav { display: block; top: 50%; margin-top: -18px; }
.guar-slider .slider__nav--prev { left: -12px; }
.guar-slider .slider__nav--next { right: -12px; }
.guar__lead { font-size: 1.2rem; font-weight: 800; line-height: 1.4; margin: 0; }
.guar__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.guar__list li { position: relative; padding-left: 24px; line-height: 1.4; color: var(--muted); }
.guar__list li b { color: var(--ink); }
.guar__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
@media (min-width: 760px) {
  .guar__title { font-size: 1.8rem; }
  .guar__body { grid-template-columns: 470px 1fr; gap: 0; max-width: 1040px; }
  .guar__info { padding-left: 64px; } /* текст сдвинут вправо от ленты */
  .guar__lead { font-size: 1.3rem; }
}

/* ---------- Карточки услуг (Д11, вариант 3): иконка на жёлтой плашке сверху, текст ниже ---------- */
.cards--rows .card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; }
.cards--rows .card__icon { grid-row: auto; width: 48px; height: 48px; border-radius: 11px; background: var(--cta);
  display: grid; place-items: center; font-size: 1.6rem; margin: 0 0 8px; }
.cards--rows .card h3 { margin: 0; font-size: 1.12rem; align-self: auto; }
.cards--rows .card p { margin: 0; align-self: auto; }
@media (min-width: 960px) {
  .cards--rows a.card:last-child { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; }
  .cards--rows a.card:last-child .card__icon { grid-row: 1 / span 2; margin: 0; }
  .cards--rows a.card:last-child h3 { grid-column: 2; align-self: end; }
  .cards--rows a.card:last-child p { grid-column: 2; grid-row: 2; align-self: start; }
}

/* ---------- «О нас»: факты в один столбец, справа фото мастера без фона ---------- */
.trust__top { display: grid; gap: 18px; }
.trust__top .trust__facts { grid-template-columns: 1fr; gap: 22px; align-content: center; }
.trust__photo { display: flex; align-items: center; justify-content: center; }
.trust__photo img { display: block; height: 240px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 760px) {
  .trust__top { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: end; } /* низ фото = низ текста */
  .trust__top .trust__facts { align-content: end; }
  .trust__photo { justify-content: flex-end; align-items: flex-end; }
  .trust__photo img { height: 288px; }
}

/* ---------- Карточки гарантий внутри «О нас» (под фактами, над мастерами) ---------- */
.guarantees--inline { margin: 28px 0 0; }
.guarantees--inline .guarantee { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--ok); }

/* ---------- Блок «Как понять, что это …»: фото в карточках признаков ---------- */
.cards--signs .card__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0 0 12px; background: var(--bg); }
@media (min-width: 760px) { .cards.cards--signs { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Окно услуги на компьютере: описание слева, форма справа — всё окно помещается в экран ---------- */
@media (min-width: 900px) {
  .consult-modal--svc .consult-modal__card { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 36px; align-items: start; padding: 30px 30px 26px; }
  .consult-modal--svc .consult-modal__x { z-index: 2; }
  .consult-modal--svc .svc-modal__text { margin: 0; padding: 0; border: 0; }
  .consult-modal--svc .svc-modal__text h3 { font-size: 1.35rem; }
  .consult-modal--svc .consult-modal__card form.form-card { margin: 0; padding-top: 4px; }
  .consult-modal--svc .form-card__title { font-size: 1.55rem; }
}
