/* ============================================================
   Клининг Центр — основные стили
   Палитра взята с логотипа заказчика: серебристый, голубой, серый.
   Правки цветов — только через переменные в :root.
   ============================================================ */

:root {
  /* Фирменные цвета */
  --brand: #1e8fd0;
  --brand-dark: #14618f;
  --brand-light: #4fb3ea;
  --brand-pale: #e8f4fc;

  /* Тёмный (шапка, подвал, заголовки) */
  --ink: #10222f;
  --ink-soft: #24404f;

  /* Серебро и серый */
  --silver: #dfe7ed;
  --silver-light: #f2f6f9;
  --gray: #6d818f;
  --gray-light: #9aabb6;
  --line: #e2e9ee;

  --white: #ffffff;
  --success: #21a366;
  --warn: #e8833a;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(16, 34, 47, .07), 0 1px 2px rgba(16, 34, 47, .04);
  --shadow: 0 4px 16px rgba(16, 34, 47, .09);
  --shadow-lg: 0 12px 36px rgba(16, 34, 47, .14);

  --container: 1200px;
  --gap: clamp(16px, 3vw, 28px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(28px, 4.6vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--pale { background: var(--silver-light); }
.section--brand { background: var(--brand-pale); }

.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head p { color: var(--gray); font-size: 18px; margin: 0; }
.section__head--left { margin-left: 0; text-align: left; }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--white); box-shadow: 0 4px 14px rgba(30, 143, 208, .32); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); box-shadow: 0 8px 22px rgba(30, 143, 208, .4); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: var(--white); border-color: var(--white); }

.btn--outline { background: var(--white); color: var(--brand-dark); border-color: var(--silver); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn--lg { padding: 17px 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Ширина шапки ограничена контейнером (1160px полезных), а не экраном,
   поэтому запас места считаем здесь, а не в медиазапросах: логотип +
   шесть пунктов меню + блок контактов должны уместиться в эти 1160. */
.header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  min-height: 74px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo__tag { font-size: 11.5px; color: var(--gray); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav__link {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  /* Пункты меню всегда в одну строку: без этого «О компании»
     разрывается пополам, когда шапке не хватает ширины. */
  white-space: nowrap;
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--brand-pale); color: var(--brand-dark); }

.header__contacts { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Блок призыва внутри мобильного меню — на десктопе не нужен. */
.nav__cta { display: none; }
.nav__phone {
  display: block; padding: 12px; margin-bottom: 10px;
  text-align: center; font-size: 19px; font-weight: 700; color: var(--ink);
  background: var(--silver-light); border-radius: var(--radius-sm);
}
.header__phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header__phone a { font-size: 17.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone a:hover { color: var(--brand); }
.header__phone span { font-size: 12px; color: var(--gray); }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: var(--silver-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .22s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(16, 34, 47, .93) 0%, rgba(20, 97, 143, .88) 100%),
    var(--ink);
  color: var(--white);
  padding: clamp(52px, 8vw, 104px) 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 22%, rgba(79, 179, 234, .3), transparent 52%);
  pointer-events: none;
  z-index: 1;
}

/* Медиафон первого экрана: видео или фото под затемняющей заливкой.
   Затемнение задаётся переменной --hero-overlay из данных — без него
   белый текст не читается поверх светлых фотографий мебели. */
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 34, 47, var(--hero-overlay, .82)) 0%,
    rgba(20, 97, 143, calc(var(--hero-overlay, .82) - .08)) 100%
  );
}
.hero__video,
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Медленный зум оживляет статичное фото, пока нет видео. */
.hero__img { animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13); }
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero__sub { font-size: clamp(17px, 2.1vw, 20px); color: rgba(255, 255, 255, .88); margin-bottom: 26px; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.hero__points li::before {
  content: ""; width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310222f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Форма заявки ---------- */
.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.lead-form h3 { margin-bottom: 6px; font-size: 22px; }
.lead-form__note { font-size: 14.5px; color: var(--gray); margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 143, 208, .15);
}
.field textarea { resize: vertical; min-height: 88px; }
.field--error input, .field--error select { border-color: #d94040; }
.field__err { display: none; font-size: 13px; color: #d94040; margin-top: 5px; }
.field--error .field__err { display: block; }

.form__consent { font-size: 12.5px; color: var(--gray); line-height: 1.45; margin-top: 13px; }
.form__consent a { text-decoration: underline; }

.form__error {
  margin: 14px 0 0;
  padding: 12px 15px;
  background: #fdeaea;
  border: 1px solid #f2b8b8;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: #9c2c2c;
}
.form__error a { color: #9c2c2c; font-weight: 700; text-decoration: underline; }

.form__success {
  display: none;
  padding: 22px;
  background: #eaf7f0;
  border: 1.5px solid #b6e2cc;
  border-radius: var(--radius);
  text-align: center;
}
.form__success strong { display: block; font-size: 19px; margin-bottom: 6px; color: var(--success); }

/* Экран «заявка отправлена» появляется только после успешной отправки:
   класс is-sent вешает на форму скрипт. Без префикса .is-sent блок
   виден всем и сразу — форма выглядит уже отправленной. */
.is-sent .form__success { display: block; }
.is-sent .lead-form__body { display: none; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 27px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-light); color: inherit; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 15px;
  border-radius: 11px; background: var(--brand-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-dark); flex-shrink: 0;
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 15.5px; margin: 0; flex-grow: 1; }
.card__price {
  margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line);
  font-weight: 700; color: var(--brand-dark); font-size: 16.5px;
}
.card__price small { display: block; font-weight: 500; color: var(--gray); font-size: 12.5px; }

/* ---------- Преимущества ---------- */
.advantage { display: flex; gap: 15px; align-items: flex-start; }
.advantage__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--brand); color: var(--white);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.advantage__icon svg { width: 25px; height: 25px; }
.advantage h3 { font-size: 18px; margin-bottom: 5px; }
.advantage p { font-size: 15.5px; color: var(--gray); margin: 0; }

/* ---------- Этапы работы ---------- */
.steps { counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px;
  background: var(--brand); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--gray); margin: 0; }

/* ---------- Прайс ---------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table caption {
  text-align: left; font-weight: 700; font-size: 21px;
  padding: 26px 0 13px; color: var(--ink);
}
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--silver-light); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); font-weight: 600; }
.price-table tbody tr:hover { background: var(--silver-light); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.price-table__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.price-note { font-size: 14.5px; color: var(--gray); margin-top: 14px; }

.notice {
  padding: 15px 19px; border-radius: var(--radius-sm);
  background: #fff6e9; border: 1px solid #f2d5ab;
  font-size: 15px; color: #7a5320; margin-bottom: 22px;
}
.notice strong { color: #5e3f18; }

/* Honeypot: убираем из виду, но оставляем в DOM и доступным для ботов. */
.field-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Зона выезда ---------- */
.coverage { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 34px); align-items: start; }
.coverage__map { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.coverage__cities { display: grid; gap: 14px; }
.coverage__city {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.coverage__city h3 { font-size: 18px; margin-bottom: 4px; }
.coverage__city--muted { background: var(--silver-light); }
.coverage__note { font-size: 14.5px; color: var(--gray); margin: 0 0 11px; }
.coverage__districts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.coverage__districts li {
  padding: 5px 11px;
  background: var(--brand-pale);
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--brand-dark);
  white-space: nowrap;
}
.coverage__city--muted .coverage__districts li { background: var(--white); color: var(--gray); }

/* ---------- Плашка промокода ---------- */
.promo {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(120deg, #fff6e6 0%, #ffeccd 100%);
  border: 1px solid #f3d9a8;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.promo__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #f0a63c; color: #fff;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.promo__icon svg { width: 23px; height: 23px; }
.promo__body { display: flex; flex-direction: column; gap: 3px; }
.promo__title { font-size: 18px; color: #6b4410; }
.promo__text { font-size: 15.5px; color: #7a5320; }
.promo__code {
  display: inline-block;
  padding: 1px 9px; margin: 0 2px;
  background: #6b4410; color: #fff;
  border-radius: 6px;
  font-weight: 700; letter-spacing: .06em;
}
.form__promo {
  margin: 14px 0 0;
  padding: 11px 14px;
  background: #fff6e6;
  border: 1px dashed #e8bd7a;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: #7a5320;
  text-align: center;
}

/* ---------- Отзывы ---------- */
.review {
  margin: 0;
  padding: clamp(20px, 2.4vw, 27px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.review__stars { color: #f2a933; font-size: 16px; letter-spacing: 2px; margin-bottom: 11px; }
.review__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  flex-grow: 1;
}
.review__meta { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__name { font-weight: 700; font-size: 15.5px; }
.review__sub { font-size: 13.5px; color: var(--gray); }
.reviews__source { text-align: center; margin-top: 24px; font-size: 15px; color: var(--gray); }

/* ---------- Работы до/после ---------- */
/* Коллажи бывают квадратные (из ВК) и вертикальные (с Диска). Обрезать
   их нельзя — потеряется половина «до» или «после», поэтому карточки
   держим по верху и разрешаем разную высоту. */
.works { align-items: start; }
.work {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work__img { width: 100%; height: auto; display: block; background: var(--silver-light); }
.work__cap { padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 5px; }
.work__cap strong { font-size: 16.5px; }
.work__cap span { font-size: 14.5px; color: var(--gray); line-height: 1.5; }

/* Реквизиты: подпись поля и значение. */
.req__key { width: 38%; color: var(--gray); }
.req__val { text-align: left !important; font-weight: 600; color: var(--ink); word-break: break-word; }

/* ---------- Аккордеон FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; padding: 20px 44px 20px 0;
  background: none; border: none; text-align: left;
  font-size: 17.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; position: relative; font-family: inherit; line-height: 1.4;
}
.faq__q::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .22s;
}
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { display: none; padding: 0 30px 22px 0; color: var(--gray); font-size: 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__q[aria-expanded="true"] + .faq__a { display: block; }

/* ---------- Список «что входит» ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e8fd0' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 15px 0; font-size: 14px; color: var(--gray); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: 7px; color: var(--gray-light); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--brand); }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 7px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 17px; }

/* ---------- Услуги: страница ---------- */
.service-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.service-aside { position: sticky; top: 96px; }
.service-content h2 { margin-top: 1.6em; }
.service-content h2:first-child { margin-top: 0; }

.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px; padding: 21px; margin: 26px 0;
  background: var(--silver-light); border-radius: var(--radius);
}
.spec__item strong { display: block; font-size: 21px; color: var(--brand-dark); }
.spec__item span { font-size: 13.5px; color: var(--gray); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: clamp(40px, 5vw, 62px) 0 26px; font-size: 15px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gap); margin-bottom: 34px; }
.footer h4 { color: var(--white); font-size: 15.5px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__logo .logo__name { color: var(--white); }
.footer__logo .logo__tag { color: rgba(255, 255, 255, .55); }
.footer__about { margin-top: 15px; font-size: 14.5px; line-height: 1.55; }
.footer__socials { display: flex; gap: 10px; margin-top: 17px; }
.footer__socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.footer__socials a:hover { background: var(--brand); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px; display: flex; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .55);
}

/* ---------- Нижняя панель действий (моб.) ----------
   Круглая кнопка поверх контента закрывала текст при прокрутке,
   поэтому вместо неё панель во всю ширину: она не перекрывает
   содержимое, а забирает нижнюю полосу экрана (за это body
   получает нижний отступ). */
.actionbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(16, 34, 47, .1);
}
.actionbar .btn { flex: 1; padding: 14px 12px; font-size: 15.5px; }
.actionbar__call {
  background: var(--success); color: var(--white);
  box-shadow: 0 4px 14px rgba(33, 163, 102, .3);
}
.actionbar__call:hover { background: #1c8d58; color: var(--white); }
.actionbar svg { width: 19px; height: 19px; }

/* ---------- Вспомогательное ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   Адаптив
   ============================================================ */
/* Шапке с шестью пунктами меню тесно уже на 1360px: логотип с подписью,
   меню и блок контактов вместе перебирают ширину контейнера. Ужимаем
   отступы и прячем подпись под логотипом, пока не ушли в бургер. */
@media (max-width: 1360px) {
  .header__bar { gap: 12px; }
  .nav__link { padding: 9px 9px; font-size: 15px; }
  .logo__tag { display: none; }
  .header__contacts { gap: 10px; }
  .header__contacts .btn { padding: 12px 18px; font-size: 15px; }
}

@media (max-width: 1150px) {
  .nav__link { padding: 8px 7px; font-size: 14.5px; }
  .header__phone a { font-size: 16.5px; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .header__phone span { display: none; }
}

/* Ниже 1000px шесть пунктов меню в строку не помещаются — уходим в бургер. */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 12px; font-size: 16.5px; }

  /* Шапка остаётся липкой и на мобильном: иначе, прокрутив страницу вниз,
     до меню уже не добраться. Выпадающий список позиционируется от неё. */
  .header__bar { position: relative; }

  /* Кнопка призыва уезжает в меню и в плавающую кнопку —
     в шапке для неё нет места рядом с бургером. */
  .header__contacts { margin-left: auto; order: -1; }
  .header__contacts .btn { display: none; }
  .burger { margin-left: 12px; }
  .nav__cta { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  /* Остаётся только логотип и бургер: связаться можно
     через плавающую кнопку и блок в открытом меню. */
  .header__contacts { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  /* Таблицы превращаются в карточки: три колонки в 375px не помещаются,
     и колонка со стоимостью уезжала за экран — а это главное, что ищут. */
  .price-table__wrap { overflow-x: visible; border: none; background: none; border-radius: 0; }
  .price-table { display: block; }
  .price-table thead { display: none; }
  .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  /* display:block у таблицы схлопывает caption по содержимому —
     возвращаем ему полную ширину, иначе подпись сжимается в столбик. */
  .price-table caption { display: block; width: 100%; padding: 24px 0 12px; font-size: 19px; }
  .price-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 13px 15px;
    margin-bottom: 10px;
  }
  .price-table tr:hover { background: var(--white); }
  /* nowrap нужен колонке цены на десктопе, но в карточке он режет
     длинные значения вроде полного наименования и адреса. */
  .price-table td {
    border: none; padding: 3px 0;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-light);
    margin-bottom: 1px;
  }
  /* У первой ячейки подпись не нужна — там и так название услуги. */
  .price-table td:first-child::before { display: none; }
  .price-table td:first-child { font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
  /* Селектор td:last-child специфичнее, чем просто td, поэтому nowrap
     из десктопных стилей приходится снимать здесь же. */
  .price-table td:last-child {
    color: var(--brand-dark); font-weight: 700; font-size: 16.5px;
    white-space: normal;
  }

  /* Реквизиты — тот же принцип: значение под подписью, а не в колонке. */
  .req__key { width: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
  .req__val { font-size: 16px; }

  /* Панель действий занимает низ экрана — освобождаем под неё место,
     чтобы она не накрывала последний блок страницы. */
  .actionbar { display: flex; }
  body { padding-bottom: 84px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }

  /* Ссылки подвала были 19px в высоту — мимо такой мишени легко
     промахнуться пальцем. Делаем их блочными с запасом по высоте. */
  .footer ul { gap: 0; }
  .footer ul a {
    display: block;
    padding: 11px 0;
    min-height: 44px;
    line-height: 22px;
  }
  .footer__bottom { gap: 14px; line-height: 1.7; }
  .footer__bottom a { display: inline-block; padding: 11px 0; min-height: 44px; line-height: 22px; }

  .coverage { grid-template-columns: 1fr; }
  .promo { flex-direction: column; text-align: center; gap: 12px; padding: 18px; }
  .cta-band { flex-direction: column; text-align: center; align-items: stretch; }
  .cta-band .btn { width: 100%; }
  .header__phone a { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Печать ---------- */
@media print {
  .header, .footer, .fab, .lead-form, .cta-band { display: none; }
  body { font-size: 12pt; }
}

/* ---------- Вопрос об услуге перед звонком ----------
   Звонок приходит без контекста: телефон звонит, а с чем человек
   обращается — неизвестно. Один быстрый вопрос перед набором номера
   экономит минуту разговора и попадает в панель вместе с отметкой. */
.calldlg {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(16, 34, 47, .55);
  padding: 0;
  animation: calldlg-in .16s ease-out;
}
@keyframes calldlg-in { from { opacity: 0; } to { opacity: 1; } }

.calldlg__box {
  position: relative;
  width: 100%; max-width: 520px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto;
}
.calldlg__close {
  position: absolute; top: 12px; right: 14px;
  width: 38px; height: 38px;
  border: 0; background: transparent;
  font-size: 30px; line-height: 1; color: var(--gray);
  cursor: pointer; border-radius: 10px;
}
.calldlg__title { margin: 0 0 6px; font-size: 21px; font-weight: 700; padding-right: 40px; }
.calldlg__sub { margin: 0 0 18px; font-size: 15px; color: var(--gray); line-height: 1.45; }

.calldlg__grid { display: grid; gap: 9px; }
.calldlg__item {
  width: 100%;
  padding: 15px 17px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 52px;
}
.calldlg__item:active { transform: scale(.985); background: var(--silver-light); }
.calldlg__item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.calldlg__skip {
  width: 100%; margin-top: 14px;
  padding: 14px;
  border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--gray);
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 640px) {
  .calldlg { align-items: center; padding: 20px; }
  .calldlg__box { border-radius: 18px; }
  .calldlg__grid { grid-template-columns: 1fr 1fr; }
  .calldlg__skip { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .calldlg { animation: none; }
  .calldlg__item:active { transform: none; }
}

/* ---------- Галерея работ внутри услуги ----------
   Не «до/после», а съёмка с объектов: показываем то, что на фотографиях
   есть на самом деле. Подписи обязательны — без них снимок остаётся
   картинкой, а с подписью становится доводом. */
.worksgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}
.workshot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.workshot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--silver-light);
}
.workshot figcaption {
  padding: 11px 14px 13px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gray);
}
