/* Бригада тока — стили сайта.
 *
 * Светлая инженерная тема: белые поверхности на «бумажном» фоне, один глубокий
 * бирюзовый акцент, тонкие волосяные линии, моноширинные подписи для технических
 * данных (площадь, ₽/м², номера). Задача темы — читаться как настоящая монтажная
 * компания, а не как тёмный неоновый SaaS-шаблон.
 *
 * Инлайны из прототипа в продакшн не переносим: они не кэшируются, не
 * переиспользуются и требуют 'unsafe-inline' в CSP. Адаптив — на clamp() и
 * grid auto-fit; медиа-запрос по сути один (шапка).
 */

/* ============ Токены ============ */

:root {
  /* Поверхности. Страница — прохладная бумага, карточки — белые, подвал —
   * глубокий графит (нижний якорь, привычная роль, не «вторая тема»). */
  --bg: #f4f5f7;
  --bg-soft: #eceef1;
  --bg-panel: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --bg-footer: #0f1319;

  /* Акцент — одно семейство: глубокая бирюза (производная от бренд-cyan,
   * проходит контраст AA на белом и белым по себе). Яркий cyan — только
   * как тонкая деталь (линии, точки), не как текст по белому. */
  --accent: #0e7490;
  --accent-strong: #0b5566;
  --accent-tint: #e4f2f5;
  --accent-line: #16c2dc;

  --grad-accent: linear-gradient(135deg, #0e7490, #0b5566);
  /* Оставлено ради страниц, где класс .grad-text ещё в разметке: теперь это
   * просто сплошной акцент, без градиент-текста (частый признак генерации). */
  --grad-text: none;

  /* Белый по акцентной заливке. */
  --on-accent: #ffffff;
  --error: #c0392b;
  --ok: #0e7490;

  /* Текст — чернила (не чистый чёрный) с прозрачностью для иерархии. */
  --text: #12161c;
  --text-70: rgba(18, 22, 28, .74);
  --text-60: rgba(18, 22, 28, .62);
  --text-55: rgba(18, 22, 28, .54);
  --text-45: rgba(18, 22, 28, .46);
  --text-40: rgba(18, 22, 28, .38);

  --line: rgba(18, 22, 28, .14);
  --line-soft: rgba(18, 22, 28, .09);
  --line-faint: rgba(18, 22, 28, .055);

  /* Тени тонированы под чернила, без чистого чёрного. */
  --shadow-sm: 0 1px 2px rgba(16, 22, 30, .06);
  --shadow: 0 1px 2px rgba(16, 22, 30, .05), 0 12px 30px -14px rgba(16, 22, 30, .16);
  --shadow-lg: 0 2px 6px rgba(16, 22, 30, .05), 0 30px 60px -28px rgba(16, 22, 30, .30);

  /* Один текстовый гротеск на всё. Дисплейное начертание — тот же Manrope
   * тяжёлым весом с тесным трекингом: честно и не «дизайн по умолчанию».
   * Моно — для цифр и технических подписей (инженерный сигнал). */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-text: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(44px, 6vw, 84px);
  --section-lg: clamp(60px, 8vw, 116px);

  /* Радиусы — одна система: поверхности/контролы 12px, мелкие пилюли — 999px. */
  --r: 12px;
  --r-sm: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Шрифт self-host: Google Fonts запрещены CSP (font-src 'self') и добавляют
 * сторонний домен в критический путь. Файлы — в assets/fonts/ (variable Manrope,
 * сабсеты кириллица+латиница; сайт русский, поэтому кириллица грузится первой). */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ База ============ */

* { box-sizing: border-box; }

/* hidden должен прятать ВСЕГДА: без !important его перебивает любой авторский
 * display (напр. .check-card{display:flex}), и JS-скрытие не срабатывает. */
[hidden] { display: none !important; }

/* Инлайновые SVG-иконки (Phosphor duotone) — отдельный класс `svgicon`, НЕ легаси `.ic`
 * (у него по сайту свои размеры через width/height-атрибуты; глобальный width их бы сломал).
 * Основной путь красится currentColor — цвет задаёт контекст; акцентный путь
 * (.svgicon__accent) — мягкий бренд-cyan. Единственное место, где живёт HEX иконок. */
.svgicon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}
.svgicon__accent { fill: #22d3ee; opacity: .28; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input, textarea, button, select { font-family: inherit; }
::selection { background: rgba(14, 116, 144, .18); }

/* ============ Кастомные контролы ============ */

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] { appearance: textfield; -moz-appearance: textfield; }

input[type=checkbox],
input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color .2s, background .2s;
}

input[type=checkbox] { border-radius: 6px; }
input[type=radio] { border-radius: 50%; }

input[type=checkbox]::before {
  content: '';
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform .15s var(--ease);
  background: var(--on-accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

input[type=radio]::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform .15s var(--ease);
  background: var(--accent);
}

input[type=checkbox]:checked {
  background: var(--accent);
  border-color: transparent;
}

input[type=radio]:checked { border-color: var(--accent); }
input[type=checkbox]:checked::before,
input[type=radio]:checked::before { transform: scale(1); }

input[type=checkbox]:hover,
input[type=radio]:hover { border-color: var(--accent); }

/* Бегунки: тонкий трек + плотный акцентный ползунок (без неонового ореола). */
input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  cursor: pointer;
  margin-top: -9px;
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 100px; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 100px; background: var(--bg-soft); }

/* Скроллбары под светлую тему. */
* { scrollbar-width: thin; scrollbar-color: rgba(18, 22, 28, .22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background: rgba(18, 22, 28, .2);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover { background: rgba(14, 116, 144, .5); background-clip: padding-box; }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.page { position: relative; overflow-x: clip; }

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

.section {
  position: relative;
  z-index: 1;
  padding: var(--section) 0;
  scroll-margin-top: 80px;
}

.section--lg { padding: var(--section-lg) 0; }

/* Чередование фона задаёт ритм секций без рамок-коробок. */
.section--alt { background: var(--bg-soft); }
.section--alt + .section--alt { border-top: 1px solid var(--line-faint); }

/* Свечения из тёмной темы больше нет: на светлом фоне неоновые пятна — главный
 * признак «нейросети». Класс оставлен пустым, чтобы разметка не ломалась. */
.glow { display: none; }

/* ============ Типографика ============ */

.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -.02em;
}

.h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.h2 { font-weight: 800; font-size: clamp(27px, 3.6vw, 42px); line-height: 1.08; }
.h3 { font-weight: 700; font-size: clamp(21px, 3vw, 28px); line-height: 1.14; }

/* Технический ярлык-подпись. На главной не используется (эйброу над каждой
 * секцией — шаблонный ритм), но остаётся для страниц услуг/сметы/прайса. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Раньше — градиент-текст. Теперь сплошной акцент того же начертания. */
.grad-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}

.lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-60);
  max-width: 560px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ============ Кнопки ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); box-shadow: var(--shadow); }

.btn--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover { color: var(--accent-strong); border-color: var(--accent); }

/* Тёмная графитовая кнопка — сильный вторичный акцент на светлом. */
.btn--white {
  background: var(--text);
  color: #fff;
}

.btn--white:hover { background: #000; color: #fff; }

.btn--lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }
.btn--sm { padding: 11px 18px; font-size: 14px; min-height: 42px; }

/* Бегущий блик убран (мерцающая анимация на кнопке — типичный AI-жест). */
.btn--sheen { position: relative; overflow: hidden; }

/* ============ Карточки-поверхности ============ */

/* .glass из тёмной темы теперь просто белая карточка с волосяной рамкой и мягкой
 * тенью. Имя класса сохранено — на нём висит вся разметка сайта. */
.glass {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}

.glass--hover:hover,
.glass--hover:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-70);
}

.chip--sm {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  color: var(--text-70);
  font-size: 12.5px;
}

.chip--accent {
  background: var(--accent-tint);
  border-color: transparent;
  color: var(--accent-strong);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-70);
}

.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
  animation: blink 2s infinite;
}

/* ============ Сетки ============ */

.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid--reviews { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* ============ Шапка ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 245, 247, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.logo__dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}

.nav a { color: var(--text-70); }
.nav a:hover { color: var(--text); }

/* «Мои расчёты»: на десктопе кнопка (.header__mycalc), в бургере — этот пункт. */
.nav__mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.header__phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.burger__box { display: grid; gap: 4px; }

.burger__line {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: grid; margin-left: auto; }

  /* Меню — сплошной непрозрачный фон (на iOS backdrop-контекст шапки делал его
   * полупрозрачным, герой просвечивал). Сброс backdrop у шапки — в тач-блоке ниже. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #eef2f6;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -16px rgba(16, 40, 70, .3);
    z-index: 45;
    display: none;
  }

  .nav[data-open="true"] { display: flex; }

  .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-faint);
  }

  .header__phone { display: none; }
  .header__actions { order: 3; }
  .header__mycalc { display: none; }
  .header__max { display: none; }
  .nav__mobile { display: block; }
  /* «Написать в MAX» в бургере — иконка + текст в строку. */
  .nav__mobile--max { display: inline-flex; align-items: center; gap: 8px; }
}

/* ============ Hero ============ */

/* Фон героя — светлый «чертёжный» бланк: тонкая инженерная сетка вместо неоновых
 * импульсов. Статичная, без нагрузки и без движения. */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(52px, 8vw, 92px);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  background-position: center top;
}

.hero__lines { display: none; }

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: clamp(32px, 4vw, 60px);
  flex-wrap: wrap;
  align-items: center;
}

.hero__col { flex: 1 1 460px; min-width: min(100%, 460px); }

.hero__text {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--text-60);
  max-width: 540px;
}

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__aside {
  flex: 1 1 380px;
  min-width: min(100%, 340px);
}

/* ============ Экспресс-расчёт ============ */

.express {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.express__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.express__title { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }

.express__badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  color: var(--text-55);
  font-weight: 600;
  text-transform: lowercase;
}

.express__label { font-size: 13px; color: var(--text-55); margin-bottom: 10px; }
.express__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.type-btn {
  flex: 1 1 auto;
  text-align: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-70);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.type-btn:hover { border-color: var(--accent); }

.type-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.express__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.express__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-strong);
}

.express__range { width: 100%; margin: 0 0 22px; }

.express__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.express__cap { font-size: 12px; color: var(--text-45); }

.express__sum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 30px);
  letter-spacing: -.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ============ Блок «О калькуляторе» ============ */

.calc-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 60px);
}

/* Акцентная кромка слева вместо неонового пятна. */
.calc-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.calc-block__glow { display: none; }

.calc-block__inner {
  position: relative;
  display: flex;
  gap: clamp(32px, 4vw, 64px);
  flex-wrap: wrap;
  align-items: center;
}

.calc-block__col { flex: 1 1 420px; }

.calc-block__text {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-60);
  max-width: 520px;
}

.calc-block__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.calc-block__stats {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}

/* Статы — не карточки-коробки, а поля, разделённые волосяной линией. Подъём при
 * наведении здесь ломал бы бесшовный шов сетки — гасим его. */
.calc-block__stats .stat { border-radius: 0; box-shadow: none; border: 0; background: var(--surface); }
.calc-block__stats .glass--hover:hover { transform: none; box-shadow: none; border: 0; }

.stat { padding: 22px; background: var(--surface); }

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--text);
}

.stat__label { font-size: 13px; color: var(--text-55); margin-top: 6px; line-height: 1.35; }

.calc-block__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.calc-block__ask {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 21px);
  letter-spacing: -.01em;
}

.calc-block__foot .btn { margin-left: auto; }

/* ============ Карточки ============ */

.card { padding: 26px; }

.card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -.02em;
  color: var(--accent);
}

.card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 12px; letter-spacing: -.01em; }
.card__text { font-size: 14.5px; line-height: 1.55; color: var(--text-60); margin-top: 8px; }

/* Услуги — плоский список-каталог с волосяными линиями, а не «три одинаковые
 * карточки». Наведение подсвечивает строку и стрелку. */
.service {
  display: block;
  padding: 24px 22px;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}

.service:hover { color: inherit; border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.service__num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-strong); }

.service__icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  transition: background .2s, color .2s;
}

/* Иконка внутри бейджа услуги: 20px в 32px-квадрате; цвет — accent-strong с бейджа
 * (currentColor), акцентный путь — мягкий бренд-cyan. На ховере бейдж заливается
 * акцентом, основной путь становится белым (on-accent), акцентный тает в заливке. */
.service__icon .svgicon { width: 20px; height: 20px; }

.service:hover .service__icon { background: var(--accent); color: var(--on-accent); }

.service__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.service__text { font-size: 14px; line-height: 1.55; color: var(--text-60); margin-top: 10px; }

/* ============ Галерея ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 12px;
}

/* .tile — теперь <figure>: та же плитка сетки, что и раньше (позиция/скругление/
 * граница не менялись), но фото-кнопка и подпись — отдельные слои внутри неё
 * (figcaption должен быть первым/последним ребёнком figure — раскладка ниже). */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  margin: 0;
}

.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }

/* Кнопка занимает всю плитку (как раньше сама .tile) — открывает лайтбокс. */
.tile__btn {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.tile__layer { position: absolute; inset: 0; }
.tile__layer img { width: 100%; height: 100%; object-fit: cover; }
.tile__layer--b { animation: xfade 8s ease-in-out infinite; }

.tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 12, 16, .5));
  pointer-events: none;
}

.tile__tag {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* Подпись фото (AI-caption, `media.caption`) — SSR figcaption, видимый оверлей поверх
 * тёмного низа плитки (переиспользует .tile__shade для читаемости, своего фона не
 * заводим). Есть подпись — тег-чип прячем (дублирует смысл, места на маленькой
 * плитке мало). Не абсолютным блоком «под фото» специально: плитки — фиксированная
 * сетка (grid-auto-rows), а подпись не должна ломать авто-цикл соседних кадров. */
.tile--has-cap .tile__tag { display: none; }

.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 8px 12px 9px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  pointer-events: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Заглушка, пока заказчик не прислал фото объектов: светлый чертёжный штрих
 * с моно-подписью «фото объекта». */
.ph {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-45);
  text-align: center;
  padding: 10px;
  white-space: pre-line;
  background:
    repeating-linear-gradient(135deg, rgba(18, 22, 28, .04) 0 10px, transparent 10px 20px),
    var(--bg-soft);
}

.ph--2 { background: repeating-linear-gradient(135deg, rgba(14, 116, 144, .05) 0 10px, transparent 10px 20px), var(--bg-soft); }
.ph--3 { background: repeating-linear-gradient(45deg, rgba(18, 22, 28, .04) 0 10px, transparent 10px 20px), var(--bg-soft); }

/* ============ Кейсы ============ */

.case {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
}

.case:hover { color: inherit; }
.case__cover { aspect-ratio: 16 / 10; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 22px 24px 24px; }

.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
}

.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case__more { margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* ============ Наша бригада ============ */

/* Хлебные крошки страниц раздела: тот же вид, что был инлайн у кейса/услуги
 * (class="lead" style="margin:0 0 24px"), но классом — без inline-стиля (CSP). */
.crumbs { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--text-60); }
.crumbs a { color: var(--text-70); }
.crumbs a:hover { color: var(--accent); }

.brigade-intro { max-width: 680px; margin-top: 12px; }

.grid--brigade { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* Карточка мастера — как .case: своей рамки/фона нет (лежит на .glass), кликается целиком. */
.brigade-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit;
}

.brigade-card:hover { color: inherit; }

/* Фото/заглушка-аватар мастера — квадрат сверху карточки. */
.brigade-card__ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.brigade-card__ph img { width: 100%; height: 100%; object-fit: cover; }

.brigade-card__body { padding: 20px 22px 22px; }

.brigade-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
}

.brigade-card__role { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.brigade-card__exp { margin-top: 8px; font-size: 13.5px; color: var(--text-60); }
.brigade-card__chips { margin-top: 14px; }
.brigade-card__price { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }

/* Страница мастера /brigada/{slug} */
.brigade-detail { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 36px); align-items: center; margin-top: 8px; }

.brigade-detail__photo {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(160px, 40vw, 240px);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.brigade-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.brigade-detail__photo .avatar--lg { width: 84px; height: 84px; font-size: 30px; }

.brigade-detail__main { flex: 1 1 260px; min-width: 240px; }
.brigade-detail__role { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--accent-strong); }
.brigade-detail__exp { margin-top: 8px; font-size: 15px; color: var(--text-60); }
.brigade-detail__price { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.01em; }
.brigade-detail__chips { margin-top: 18px; }

.brigade-detail__bio { max-width: 680px; margin-top: 28px; }

.brigade-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.brigade-back { margin-top: 24px; }
.brigade-back a { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ============ Отзывы ============ */

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.rating__num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--accent); letter-spacing: -.02em; }
.rating__meta { font-size: 13px; color: var(--text-60); line-height: 1.3; }

.review {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 26px;
  color: inherit;
}

.review:hover { color: inherit; }
.stars { color: #eab308; font-size: 15px; letter-spacing: 2px; }
.review__stars { margin-bottom: 16px; }
.review__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-70); }
.review__foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }

.avatar {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--on-accent);
  background: var(--accent);
}

/* Оттенки одного акцентного семейства — без синего/фиолетового разнобоя. */
.avatar--lg { width: 54px; height: 54px; font-size: 20px; flex: none; }
.avatar--a { background: linear-gradient(135deg, #0e7490, #0b5566); }
.avatar--b { background: linear-gradient(135deg, #127d94, #0e6076); }
.avatar--c { background: linear-gradient(135deg, #0b6076, #0e7490); }
.avatar--d { background: linear-gradient(135deg, #0e7490, #083f4d); }

.review__name { font-weight: 700; font-size: 15px; color: var(--text); }
.review__meta { font-size: 13px; color: var(--text-55); }
.review__link { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Шапка карточки: звёзды + бейджи «проверенный»/«видео» в один ряд. */
.review__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 16px; }
.review__top .review__stars { margin-bottom: 0; }

/* Бейдж «проверенный отзыв» — тихий акцент, деталь а не крик. */
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.review__verified .ic { flex: none; }

/* Маркер «есть видео» на карточке. */
.review__vid {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-55);
  white-space: nowrap;
}

/* Полоска фото-пруфов под текстом отзыва. Реальные <img> (SEO), тап открывает лайтбокс. */
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.review__photo {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border, rgba(0, 0, 0, .08));
  transition: transform .15s ease;
}
.review__photo:hover { transform: scale(1.04); }

.review-modal__photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.review-modal__photo {
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--border, rgba(0, 0, 0, .08));
}

/* Бейдж «проверенный» в модалке — отдельной строкой под шапкой. */
.review-modal__verified { margin: 0 0 14px; }

/* Встраиваемое видео-отзыв: адаптивный контейнер 16:9. iframe без инлайновых стилей. */
.review-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.review-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Аффорданс проверки — ссылка/кнопка «Проверить на источнике» / «Открыть пруф». */
.review-modal__verify { margin: 16px 0 4px; }
.review-modal__verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.review-modal__verify-link:hover { background: var(--accent-tint); }

/* ============ Marquee ============ */

.marquee {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  background: var(--text);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 46px;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: -.01em;
  color: #fff;
  animation: marquee 30s linear infinite;
}

.marquee__item { display: inline-flex; align-items: center; gap: 46px; }
.marquee__sep { color: var(--accent-line); }

/* ============ Подвал ============ */

.footer {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: var(--bg-footer);
  color: rgba(255, 255, 255, .78);
  border-top: 1px solid var(--line-faint);
}

.footer .logo { color: #fff; }
.footer .logo__dot { color: var(--accent-line); }
.footer .logo__mark { background: var(--accent); box-shadow: none; }

.footer__cols {
  display: flex;
  gap: clamp(28px, 4vw, 60px);
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer__brand { flex: 1 1 280px; max-width: 360px; }
.footer__about { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.footer__socials { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.footer__social {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.footer__social:hover { border-color: var(--accent-line); color: #fff; }

.footer__col-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 16px;
}

.footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer__links a { color: rgba(255, 255, 255, .78); }
.footer__links a:hover { color: #fff; }

.footer__phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 14px;
}

.footer__mail { display: block; font-size: 14.5px; color: rgba(255, 255, 255, .78); margin-bottom: 10px; }
.footer__mail:hover { color: #fff; }
.footer__max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 10px;
}
.footer__max:hover { color: var(--accent-line); }
.footer__hours { font-size: 14px; color: rgba(255, 255, 255, .5); line-height: 1.55; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .4);
}

.footer__bottom a { color: rgba(255, 255, 255, .6); }
.footer__bottom a:hover { color: #fff; }

/* ============ Согласие на cookie ============ */

/* Нижняя плашка. Скрыта [hidden] по умолчанию, показывает JS. */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}

.cookie__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cookie__text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-70);
}

.cookie__link { color: var(--accent); font-weight: 600; }
.cookie__link:hover { color: var(--accent-strong); }

.cookie__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .cookie { bottom: 0; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; }
}

/* Блок-страница при отказе: белый фуллскрин поверх всего (включая шапку). */
.cookie-block {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}

.cookie-block__box {
  width: min(520px, 100%);
  text-align: center;
}

.cookie-block__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.cookie-block__text {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-70);
}

.cookie-block__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.cookie-block__link:hover { color: var(--accent-strong); }

/* ============ Заявка с бегунками ============ */

.quote { display: flex; gap: clamp(24px, 3vw, 44px); flex-wrap: wrap; align-items: stretch; }

.quote__sliders {
  flex: 1 1 420px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.quote__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.slider { margin-bottom: 26px; }

.slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slider__label { font-size: 15.5px; font-weight: 600; }
.slider__value { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--accent); }
.slider__input { width: 100%; }

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--accent-tint);
  border: 1px solid transparent;
}

.total__cap { font-size: 13px; color: var(--accent-strong); }

.total__points {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.total__sum {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--accent-strong);
  letter-spacing: -.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.quote__form {
  flex: 1 1 360px;
  padding: clamp(26px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.form__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-bottom: 6px; letter-spacing: -.01em; }
.form__sub { margin: 0 0 22px; font-size: 14px; color: var(--text-60); }
.form__label { display: block; font-size: 13px; color: var(--text-60); margin-bottom: 7px; }

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.input::placeholder { color: var(--text-40); }
.input--area { resize: vertical; font-family: inherit; }
.input[aria-invalid="true"] { border-color: var(--error); }

.dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--line);
  background: var(--surface-2);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color .2s, background .2s;
}

.dropzone:hover, .dropzone[data-drag="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  flex: none;
}

.dropzone__text { font-size: 13.5px; color: var(--text-70); line-height: 1.4; }
.dropzone__hint { color: var(--text-45); font-size: 12px; }

.field-error { font-size: 13px; color: var(--error); margin-bottom: 10px; }

.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 600;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-60);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form__actions { display: flex; gap: 12px; margin-top: 8px; }
.form__actions .btn--primary { flex: 1; }

.form__note { margin: 14px 0 0; font-size: 12px; color: var(--text-45); text-align: center; }

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.success { margin: auto; text-align: center; padding: 20px 0; }

.success__mark {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 36px;
  box-shadow: 0 0 0 8px var(--accent-tint);
}

.success__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }

.success__text {
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-70);
  max-width: 340px;
}

.success__text b { color: var(--accent-strong); }

.success__ticket {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* ============ Калькулятор ============ */

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.calc-badge {
  padding: 14px 20px;
  border-radius: var(--r);
  background: var(--accent-tint);
  border: 1px solid transparent;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--accent-strong);
}

.calc-badge span { color: var(--text-60); }

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 160px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-55);
  transition: border-color .3s, color .3s, background .3s;
}

.step__num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  flex: none;
}

.step[aria-current="step"] {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--text);
}

.step[aria-current="step"] .step__num {
  background: var(--accent);
  color: var(--on-accent);
}

.step[data-done="true"] { color: var(--accent-strong); border-color: var(--line); }
.step[data-done="true"] .step__num { background: var(--accent-tint); color: var(--accent-strong); }
.step[data-clickable="true"] { cursor: pointer; }

.calc-layout {
  display: flex;
  gap: clamp(24px, 3vw, 40px);
  align-items: flex-start;
  flex-wrap: wrap;
}

.calc-form {
  flex: 1 1 520px;
  min-width: min(100%, 320px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-step[hidden] { display: none; }

.calc-step__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
}

.calc-step__sub {
  margin: 32px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-strong);
}

.field { margin-bottom: 18px; }
.field .input { margin-bottom: 0; }

.field--nested {
  margin-left: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--accent-tint);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.field-row--4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }

.field__hint { font-size: 12.5px; color: var(--text-45); margin-top: 6px; line-height: 1.45; }

.suggest { position: relative; }

.suggest__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
}

.suggest__list[hidden] { display: none; }

.suggest__item {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-70);
  cursor: pointer;
  line-height: 1.4;
}

.suggest__item:hover { background: var(--accent-tint); color: var(--text); }

.calc-map { margin-top: 12px; }

.calc-map__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.calc-map__toggle:hover { border-color: var(--accent); }
.calc-map__toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-strong); }

.calc-map__pin { width: 13px; height: 13px; flex-shrink: 0; }

.calc-map__hint { font-size: 12.5px; color: var(--text-45); margin-top: 6px; line-height: 1.45; }

.calc-map__canvas {
  margin-top: 10px;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.calc-map__canvas[hidden] { display: none; }

.cable-hint {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  border: 1px solid transparent;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.cable-hint::before { content: ''; }
.cable-hint[hidden] { display: none; }
.field__error { font-size: 13px; color: var(--error); margin-top: 6px; }
.field__error[hidden] { display: none; }

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-60) 50%),
                    linear-gradient(135deg, var(--text-60) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

select.input option { background: #fff; color: var(--text); }

/* Радио и чекбоксы карточками: хит-таргет — вся карточка. */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }

.radio-card, .check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-70);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.radio-card:hover, .check-card:hover { border-color: var(--accent); }

.radio-card input, .check-card input {
  flex: none;
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.radio-card:has(input:checked), .check-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--text);
}

.radio-card:focus-within, .check-card:focus-within { border-color: var(--accent); }

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.check-card--wide { width: 100%; margin-bottom: 10px; }

.notice {
  padding: 18px 20px;
  border-radius: var(--r);
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0;
}

.notice--warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #7c2d12;
}

.notice b { color: #7c2d12; }

.calc-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.calc-nav .btn--primary { margin-left: auto; }
.calc-nav [hidden] { display: none; }

/* Живая смета */
.calc-side {
  flex: 1 1 300px;
  min-width: min(100%, 280px);
  position: sticky;
  top: 88px;
}

.calc-summary { padding: clamp(20px, 2.5vw, 28px); }

.calc-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.calc-summary__total { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }

.calc-summary__rows { margin: 18px 0 0; padding: 0; font-size: 14px; }
.calc-summary__rows[hidden] { display: none; }

.calc-summary__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.calc-summary__rows dt { color: var(--text-55); }
.calc-summary__rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.calc-summary__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-45);
}

.calc-warnings { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.calc-warnings[hidden] { display: none; }

.calc-warning {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 12.5px;
  line-height: 1.45;
  color: #7c2d12;
}

@media (max-width: 900px) {
  .calc-side { position: static; order: -1; }
  .calc-summary__rows { display: none; }
}

/* ============ Сводная смета ============ */

.sum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}

.sum-locked {
  font-size: 13.5px;
  color: var(--text-60);
  max-width: 320px;
}

.sum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.sum-card { padding: clamp(20px, 3vw, 28px); }

.sum-card__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-strong);
  letter-spacing: -.01em;
}

.sum-list { margin: 0; }

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-faint);
  font-size: 14px;
}

.sum-row:last-child { border-bottom: none; }
.sum-row dt { color: var(--text-55); flex: 0 0 auto; }
.sum-row dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.sum-table-wrap { padding: clamp(20px, 3vw, 28px); margin-bottom: 16px; }
.sum-table-scroll { overflow-x: auto; }

.sum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.sum-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-55);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.sum-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--text-70);
}

.sum-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-table tbody tr:last-child td { border-bottom: none; }

.sum-total {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 20px;
}

.sum-total__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-70);
}

.sum-total__row--grand {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.sum-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-60);
}

.sum-note__hint {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--text-45);
  margin-top: 4px;
}

/* ============ Модалки ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 19, 25, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  overflow: auto;
}

.modal[hidden] { display: none; }

.modal__box {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.modal__close {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  flex: none;
}

.modal__close:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Прайс */
.price-modal { z-index: 80; }
.price-modal .modal__box { max-width: 760px; background: var(--surface); }

.price__head {
  position: sticky;
  top: 0;
  padding: 24px clamp(20px, 3vw, 32px);
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  z-index: 2;
}

.price__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.price__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.price__updated { font-size: 12.5px; color: var(--text-45); margin-top: 4px; }
.price__search { margin-bottom: 0; }
.price__body { padding: 8px clamp(20px, 3vw, 32px) 28px; max-height: 60vh; overflow: auto; }
.price__cat { margin-top: 24px; }

.price__cat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.price__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-faint);
}

.price__name { flex: 1; font-size: 14.5px; color: var(--text-70); }
.price__unit { font-size: 12.5px; color: var(--text-45); white-space: nowrap; }

.price__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  min-width: 96px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price__empty { text-align: center; padding: 48px 0; color: var(--text-45); }

.price__foot {
  padding: 18px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.price__foot-note { font-size: 13.5px; color: var(--text-55); }

.price-page .price__cat:first-child { margin-top: 0; }

/* Лайтбокс — тёмный оверлей для просмотра фото (это не «вторая тема», а слой
 * поверх). Текст в нём — светлый явными значениями, а не токенами. */
.lightbox {
  z-index: 90;
  background: rgba(6, 9, 13, .94);
  backdrop-filter: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox__bar {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lightbox__counter { font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, .7); }
.lightbox .modal__close { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }

.lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0b0e12;
}

.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__frame .ph { font-size: 14px; padding: 24px; color: rgba(255, 255, 255, .6); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 10px, transparent 10px 20px), #14181f; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__cap { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .8); text-align: center; }

/* Подпись текущего фото (AI-caption, только у галереи «Фото работ») — над строкой
 * тега/подсказки, крупнее и заметнее; [hidden] прячет её, когда у кадра подписи нет
 * (кейсы/отзывы — тот же движок лайтбокса, без caption). */
.lightbox__photocap {
  margin-top: 14px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}
.lightbox__hint { color: rgba(255, 255, 255, .5); }

/* Кейс */
.case-modal { z-index: 85; }
.case-modal .modal__box { max-width: 720px; }

.case-modal__cover { position: relative; aspect-ratio: 16 / 9; }
.case-modal__cover img { width: 100%; height: 100%; object-fit: cover; }

.case-modal__close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .9); }

.case-modal__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 9, 13, .35));
  pointer-events: none;
}

.case-modal__body { padding: clamp(24px, 4vw, 40px); }
.case-modal__intro { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-70); }

.case-modal__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-strong);
  margin: 26px 0 14px;
}

.bullets { display: flex; flex-direction: column; gap: 11px; }

.bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-70);
}

.bullet__mark {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  border: 1px solid transparent;
  color: var(--accent-strong);
  font-size: 12px;
}

.result {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--accent-tint);
  border: 1px solid transparent;
}

.result__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.result__text { font-size: 15.5px; line-height: 1.55; color: var(--text); }

/* Отзыв */
.review-modal { z-index: 86; }
.review-modal .modal__box { max-width: 620px; padding: clamp(24px, 4vw, 40px); }

.review-modal__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.review-modal__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -.01em; }
.review-modal__meta { font-size: 13.5px; color: var(--text-55); margin-top: 3px; }
.review-modal__full { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-70); }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pc { padding: 20px 22px; border-radius: var(--r); }
.pc--pros { background: var(--accent-tint); border: 1px solid transparent; }
.pc--cons { background: var(--surface-2); border: 1px solid var(--line-soft); }

.pc__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.pc--pros .pc__title { color: var(--accent-strong); }
.pc--cons .pc__title { color: var(--text-70); }
.pc__list { display: flex; flex-direction: column; gap: 10px; }

.pc__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
}

.pc--pros .pc__item { color: var(--text-70); }
.pc--cons .pc__item { color: var(--text-70); }
.pc__mark { flex: none; font-weight: 800; margin-top: 1px; }
.pc--pros .pc__mark { color: var(--accent); }
.pc--cons .pc__mark { color: var(--text-45); }

/* ============ Анимации ============ */

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes xfade { 0%, 42% { opacity: 1; } 52%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes driftA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -9px); } }
@keyframes driftB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -6px); } }
@keyframes driftC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, 8px); } }

.rise { opacity: 0; animation: rise .7s var(--ease) forwards; }

/* Лёгкий дрейф плиток галереи вразнобой, чтобы коллаж не «дышал» механически. */
.tile:nth-child(3n+1) { animation: driftA 10s ease-in-out infinite; }
.tile:nth-child(3n+2) { animation: driftB 12s ease-in-out infinite; }
.tile:nth-child(3n+3) { animation: driftC 14s ease-in-out infinite; }

.tile:nth-child(2) .tile__layer--b { animation-duration: 9s; animation-delay: .6s; }
.tile:nth-child(3) .tile__layer--b { animation-duration: 10s; animation-delay: 1.2s; }
.tile:nth-child(4) .tile__layer--b { animation-duration: 7s; animation-delay: 1.8s; }
.tile:nth-child(5) .tile__layer--b { animation-duration: 8s; animation-delay: 2.4s; }
.tile:nth-child(6) .tile__layer--b { animation-duration: 9s; animation-delay: 3s; }
.tile:nth-child(7) .tile__layer--b { animation-duration: 10s; animation-delay: 3.6s; }
.tile:nth-child(8) .tile__layer--b { animation-duration: 7s; animation-delay: 4.2s; }
.tile:nth-child(9) .tile__layer--b { animation-duration: 8s; animation-delay: 4.8s; }

/*
 * Бесконечные анимации гасим полностью: часть людей плохо переносит движение
 * на экране, плюс на слабом телефоне это лишняя нагрузка. .rise — мгновенным,
 * иначе контент останется opacity:0 и исчезнет.
 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .rise { opacity: 1; animation: none; }
  .tile__layer--b { opacity: 0; }
  .glass--hover:hover { transform: none; }
}

/* ============ Печать сметы ============ */
/*
 * @media print для сводной сметы: браузер печатает или сохраняет в PDF.
 * База уже светлая, поэтому правок минимум — прячем интерфейс и уплотняем.
 */
@media print {
  .header, .footer, .glow, .sum-actions, .marquee { display: none !important; }

  body { background: #fff; color: #111; }
  .page { overflow: visible; }
  .section { padding: 0; }

  .glass, .sum-card, .sum-table-wrap, .sum-total {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .sum-card__title, .eyebrow { color: #0b5566 !important; }
  .h1, .h2, .sum-row dd, .sum-total__row--grand, .sum-table td { color: #111 !important; }
  .sum-row dt, .lead, .sum-table th { color: #555 !important; }
  .calc-badge { background: #f2f8fa !important; border-color: #cbd5e1 !important; color: #111 !important; }
  .calc-warning { background: #fff7ed !important; border-color: #fdba74 !important; color: #7c2d12 !important; }
  .chip, .chip--sm { border: 1px solid #cbd5e1 !important; color: #333 !important; background: #f8fafc !important; }

  a { color: #111 !important; text-decoration: none; }
  .sum-table { min-width: 0; }
}

/* ============================================================================
 * Liquid glass: живой фон + матовые панели + скролл-слои
 * ----------------------------------------------------------------------------
 * Эффект стекла виден только когда за ним есть цвет и глубина. Поэтому под
 * контентом лежит фиксированное поле мягких брендовых «пятен света» (тёплое
 * вкраплено намеренно: холод/тепло за матом и создаёт ощущение преломления),
 * секции прозрачны, а панели — полупрозрачное frosted-стекло с внутренней
 * подсветкой кромки. Всё на CSS-переменных; параллакс и reveal — из site.js.
 * ==========================================================================*/

:root {
  /* Стекло чуть прозрачнее и «сатурированнее», чтобы цвет фона проступал сквозь
   * мат — иначе на почти-белом эффект не читается. Формам — плотнее (strong). */
  --glass-bg: rgba(255, 255, 255, .5);
  --glass-bg-strong: rgba(255, 255, 255, .66);
  --glass-brd: rgba(255, 255, 255, .78);
  --glass-blur: blur(22px) saturate(1.9);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(16, 22, 30, .05);
  --glass-shadow: 0 26px 54px -26px rgba(16, 40, 70, .45);
}

/* Светлая воздушная база: цвет дают мягкие затухающие пятна поверх, не плотный фон. */
body { background: #eef2f6; }

/* Фон-поле. Строго фиксировано (inset:0) — прозрачное поле поверх светлой base.
 * Легко и воздушно: цвет дают мягкие затухающие пятна, а не плотный слой.
 * Параллакс двигает только пятна (mesh как таковой убран — кромке нечему съезжать).
 * По самому низу — бегущая молния (эффект «тока», на бренд). */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Мягкие цветные пятна синева→циан с затуханием (radial → transparent). Много
 * числом, низкой прозрачности — воздушно, не плотно. Параллакс — через отдельное
 * свойство translate (складывается с drift-анимацией на transform); у каждого свой
 * коэффициент глубины --pf → слои едут с разной скоростью. */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  translate: 0 calc(var(--sy, 0) * var(--pf, 1) * -0.05px);
}

.blob--1 { --pf: .30; width: 40vw; height: 40vw; left: -6vw;  top: -8vw;    opacity: .34; background: radial-gradient(circle, #2f6bed, transparent 70%); animation: drift1 26s ease-in-out infinite; }
.blob--2 { --pf: .55; width: 36vw; height: 36vw; right: -6vw; top: -4vw;    opacity: .30; background: radial-gradient(circle, #2ba6f2, transparent 70%); animation: drift2 30s ease-in-out infinite; }
.blob--3 { --pf: .80; width: 34vw; height: 34vw; left: 24vw;  top: 18vh;    opacity: .26; background: radial-gradient(circle, #38bdf8, transparent 72%); animation: drift3 28s ease-in-out infinite reverse; }
.blob--4 { --pf: .45; width: 42vw; height: 42vw; right: -8vw; top: 30vh;    opacity: .30; background: radial-gradient(circle, #22d3ee, transparent 70%); animation: drift1 32s ease-in-out infinite; }
.blob--5 { --pf: 1.10;width: 30vw; height: 30vw; left: -4vw;  top: 46vh;    opacity: .24; background: radial-gradient(circle, #14cfe9, transparent 72%); animation: drift2 27s ease-in-out infinite; }
.blob--6 { --pf: .70; width: 38vw; height: 38vw; left: 40vw;  top: 52vh;    opacity: .28; background: radial-gradient(circle, #4fd8ec, transparent 72%); animation: drift3 33s ease-in-out infinite; }
.blob--7 { --pf: .95; width: 44vw; height: 44vw; right: -6vw; bottom: 2vh;  opacity: .30; background: radial-gradient(circle, #2f8fe6, transparent 70%); animation: drift1 30s ease-in-out infinite reverse; }
.blob--8 { --pf: .55; width: 34vw; height: 34vw; left: -6vw;  bottom: -6vh; opacity: .26; background: radial-gradient(circle, #22d3ee, transparent 72%); animation: drift2 29s ease-in-out infinite; }
.blob--9 { --pf: 1.25;width: 28vw; height: 28vw; left: 52vw;  bottom: 4vh;  opacity: .22; background: radial-gradient(circle, #7fe3f4, transparent 74%); animation: drift3 25s ease-in-out infinite reverse; }

/* Бегущая молния по низу фона: тонкая ломаная «жила» + светящийся импульс, бегущий
 * по ней (stroke-dashoffset). Держится у нижней кромки экрана, над мобильной панелью
 * действий. pathLength=100 нормирует штрих независимо от растяжения по ширине. */
.bolt-run {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom));
  width: 100%;
  height: 56px;
}

.bolt-run__wire { fill: none; stroke: rgba(14, 116, 144, .16); stroke-width: 1.4; }

.bolt-run__spark {
  fill: none;
  stroke: #22d3ee;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 93;
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, .9)) drop-shadow(0 0 11px rgba(34, 211, 238, .45));
  animation: boltRun 4.2s linear infinite;
}

@keyframes boltRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 5vh) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5vw, 4vh) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3vw, -5vh) scale(1.06); } }

/* Контент выше поля. */
/* Контент выше фон-поля. Шапку НЕ трогаем: у неё своя sticky + z-index:40 (иначе
 * она падает до z-1, герой рисуется поверх и ломает выпадающее меню). */
main, .footer, .marquee { position: relative; z-index: 1; }

/* Секции прозрачны — поле светится сквозь них и фростится панелями. */
.section--alt { background: transparent; }
.hero { background-color: transparent; }

/* Матовые панели. Единый набор селекторов — вся «стеклянная» поверхность сайта. */
.glass,
.express,
.calc-block,
.quote__sliders,
.quote__form,
.rating,
.service,
.chip,
.badge {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}

/* Формам и карточке-герою — плотнее фон ради читаемости поверх ярких пятен. */
.express, .quote__form, .calc-block { background: var(--glass-bg-strong); }

/* Мелкие пилюли — своя тонкая тень. */
.chip, .badge { box-shadow: var(--glass-hi), var(--shadow-sm); }
.chip--accent { background: rgba(14, 116, 144, .16); border-color: transparent; }

/* Итог заявки и подсказки — стекло с акцентной подложкой. */
.total {
  background: rgba(14, 116, 144, .16);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(14, 116, 144, .24);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}

/* Статы калькулятора — снова отдельные стеклянные плитки, а не бесшовный грид. */
.calc-block__stats { background: none; border: 0; gap: 12px; border-radius: 0; overflow: visible; }
.calc-block__stats .stat { border-radius: var(--r); background: var(--glass-bg); border: 1px solid var(--glass-brd); box-shadow: var(--glass-hi), var(--shadow-sm); }
.calc-block__stats .glass--hover:hover { transform: translateY(-4px); border: 1px solid var(--glass-brd); box-shadow: var(--glass-hi), var(--glass-shadow); }

/* Услуги — тоже стекло, наведение усиливает кромку акцентом. */
.service { box-shadow: var(--glass-hi), var(--shadow-sm); }
.service:hover { border-color: var(--accent); box-shadow: var(--glass-hi), var(--glass-shadow); }

/* Наведение по стеклу: чуть выше и глубже тень (ощущение подъёма слоя). */
.glass--hover:hover,
.glass--hover:focus-visible {
  border-color: var(--glass-brd);
  box-shadow: var(--glass-hi), 0 34px 64px -26px rgba(16, 22, 30, .5);
}

/* Шапка — матовое стекло. */
.header {
  background: rgba(244, 245, 247, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
}

/* Модалка прайса — тоже стекло (лайтбокс/остальные оставляем плотными). */
.price-modal .modal__box {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.price__head { background: transparent; }

/* ============ Появление при скролле ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

/* ============ Запасные варианты ============ */

/* Нет backdrop-filter — панели становятся плотными белыми (без «грязного» полупрозрачного фона). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .express, .calc-block, .quote__sliders, .quote__form, .rating, .service, .header, .price-modal .modal__box { background: #fff; }
  .total { background: var(--accent-tint); }
}

/* Пользователь просит меньше прозрачности — уважаем: плотный фон. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .express, .calc-block, .quote__sliders, .quote__form, .rating, .service, .header, .price-modal .modal__box {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Меньше движения — поле статично, блоки не выезжают (иначе останутся невидимыми,
 * поэтому reveal раскрываем сразу). Класс .reveal навешивает JS только когда
 * движение разрешено, но подстрахуемся и здесь. */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; translate: none !important; }
  .bolt-run__spark { animation: none !important; opacity: 0; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media print { .bg-field { display: none !important; } }

/* ============ Иконки (замена эмодзи) ============ */

.ic { display: inline-block; vertical-align: -.15em; flex: none; }
.logo__mark .ic { color: var(--on-accent); }

/* Метка в подсказке кабеля — акцентный штрих (эмодзи-молнию убрали). */
.cable-hint::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: currentColor;
  border-radius: 2px;
}

/* ============ FAQ (частые вопросы) ============ */

.faq { display: grid; gap: 12px; max-width: 880px; }

.faq__item { padding: 0; overflow: hidden; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15.5px, 2vw, 17px);
  letter-spacing: -.01em;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

/* Плюс, схлопывающийся в минус при раскрытии. */
.faq__mark { position: relative; width: 16px; height: 16px; flex: none; }
.faq__mark::before,
.faq__mark::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
.faq__mark::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__mark::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__mark::after { transform: scaleY(0); opacity: 0; }

.faq__a {
  padding: 0 22px 20px;
  color: var(--text-70);
  line-height: 1.65;
  font-size: 15px;
  max-width: 68ch;
}

/* ============ Липкая панель действий (мобильный) ============ */

.cta-bar { display: none; }

.cta-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-70);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cta-bar__item:hover { color: var(--text); }
.cta-bar__item--call { color: var(--accent-strong); }
.cta-bar__item--max { color: var(--accent); }

@media (max-width: 860px) {
  .cta-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, .74);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-brd);
    box-shadow: 0 -10px 28px -14px rgba(16, 40, 70, .28);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Пять действий (добавлен «MAX») — на узких экранах подпись короткая, влезает. */
  .cta-bar--5 { grid-template-columns: repeat(5, 1fr); }
  .cta-bar--5 .cta-bar__item { padding-left: 2px; padding-right: 2px; }

  /* Панель не должна перекрывать подвал/последний экран. */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

@media print { .cta-bar { display: none !important; } }

/* ============ Плавность на тач-устройствах (iPhone) ============ */
/*
 * На телефонах режем самое дорогое: сильный blur пятен, число пятен, matte-blur
 * стекла, дрейф-блик карточек (mix-blend + анимация на десятках элементов) и
 * двойное свечение молнии. Наклон карточек на тач и так выключен (только мышь),
 * параллакс отключается в JS. Визуально почти то же, но кадры не проседают.
 */
@media (hover: none) and (pointer: coarse) {
  /* Матовость стекла тоньше — одно значение меняет все backdrop-filter разом. */
  body { --glass-blur: blur(10px) saturate(1.3); }

  /* Шапка без backdrop-filter: чинит непрозрачность бургер-меню на iOS и снимает
   * блюр-нагрузку при скролле. Правило идёт ПОСЛЕ стеклянного .header — выигрывает. */
  .header {
    background: #eef2f6;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .blob { filter: blur(42px); }
  .blob--7, .blob--8, .blob--9 { display: none; }

  /* Дрейфующий блик и его mix-blend-mode — самый дорогой per-card эффект; на тач
   * наклона нет, поэтому просто убираем. */
  [data-tilt]::after { display: none; }

  .bolt-run__spark { filter: drop-shadow(0 0 4px rgba(34, 211, 238, .8)); }
}

/* ============ Мои расчёты / привязка к MAX ============ */

.check-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.check-form .input { flex: 1 1 240px; margin-bottom: 0; font-family: var(--font-mono); text-transform: uppercase; }
.check-form .btn { flex: none; }

.my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.my-item { display: block; padding: 20px 22px; color: inherit; }
.my-item:hover { color: inherit; }
.my-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.my-item__num { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }
.my-item__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.my-item__sum { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.my-item__date { font-size: 13px; color: var(--text-45); }
.my-item__flags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.max-link__result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.max-link__hint { margin: 0 0 10px; font-size: 14px; color: var(--text-70); }

.max-link__code {
  display: block;
  width: fit-content;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: .14em;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--accent-tint);
  color: var(--accent-strong);
  user-select: all;
}

.max-link__result .btn { margin-top: 14px; }
.max-link__ttl { margin: 14px 0 0; font-size: 12.5px; color: var(--text-45); }

.max-link__ok {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-70);
}

.max-link__ok-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 6px var(--accent-tint);
}

.my-item__badges { display: inline-flex; gap: 6px; align-items: center; }
.my-item__max { background: var(--accent); border-color: transparent; color: var(--on-accent); }

/* Мини-список расчётов браузера на 1 шаге калькулятора. */
.calc-prev {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}

.calc-prev__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-60);
}

.calc-prev__all { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.calc-prev__list { display: grid; gap: 8px; }

.calc-prev__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line-soft);
  color: inherit;
  transition: border-color .15s;
}

.calc-prev__row:hover { border-color: var(--accent); color: inherit; }
.calc-prev__num { font-family: var(--font-mono); font-weight: 700; font-size: 13px; flex: 1; min-width: 0; }
.calc-prev__sum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-prev__status { font-size: 12px; color: var(--text-55); white-space: nowrap; }

/* Мобильный: бегунки и форма заявки — единым блоком (одна карточка вместо двух). */
@media (max-width: 820px) {
  .quote { gap: 0; }
  .quote__sliders {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
    background: var(--glass-bg-strong);
  }
  .quote__form {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

/* ============ Объём и наклон карточек ============ */

/* Объём: чуть глубже тень + скрытый оверфлоу под блик. Наклон задаёт JS инлайном
 * (perspective + rotateX/Y + translateZ) — инлайн перебивает :hover-трансформы. */
[data-tilt] {
  overflow: hidden;
  box-shadow: var(--glass-hi), 0 12px 28px -14px rgba(16, 40, 70, .32);
}

/* Блик-глянец «стекло ловит свет». По умолчанию медленно дрейфует — это и есть
 * микродвижение (работает везде, дёшево: псевдоэлемент, не backdrop-filter).
 * При наведении ярче и следует за курсором (--mx/--my из JS). */
[data-tilt]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(150px circle at var(--mx, 30%) var(--my, 6%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%);
  opacity: .2;
  mix-blend-mode: screen;
  transition: opacity .3s;
  animation: sheenDrift 9s ease-in-out infinite;
}

[data-tilt]:hover::after { opacity: .7; animation: none; }

/* Разнобой дрейфа, чтобы блики не «дышали» синхронно. */
[data-tilt]:nth-child(2n)::after { animation-duration: 11s; animation-delay: -3s; }
[data-tilt]:nth-child(3n)::after { animation-duration: 10s; animation-delay: -6s; }

@keyframes sheenDrift {
  0%, 100% { transform: translate3d(-7%, -6%, 0); }
  50%      { transform: translate3d(9%, 7%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-tilt]::after { animation: none !important; opacity: .12; }
}

/* ============ Мобильное меню — окончательная версия ============ */
/*
 * Главная причина бага была в z-index шапки (см. правило контента выше поля):
 * шапка падала до z-1, и герой рисовался поверх меню. Это исправлено там. Здесь
 * закрепляем: шапка сплошная и без backdrop-filter (на iOS backdrop-контекст
 * тоже подъедал непрозрачность), меню — обычная выпадающая панель со сплошным
 * фоном. Блок в конце файла + !important — перебивает более ранние .header/.nav.
 */
@media (max-width: 860px) {
  .header {
    background: #eef2f6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 8px var(--gutter) 22px !important;
    background: #eef2f6 !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 18px 30px -16px rgba(16, 40, 70, .3) !important;
    display: none !important;
  }

  .nav[data-open="true"] { display: flex !important; }

  .nav a {
    padding: 15px 2px !important;
    font-size: 17px !important;
    border-bottom: 1px solid var(--line-faint) !important;
  }
}


/* ============ Страница-визитка /links (как Linktree) ============ */
/*
 * Центрированная «визитка»: аватар с молнией, название компании и колонка крупных
 * кнопок-ссылок (контакты + соцсети). Бренд-акцент кнопки — через локальные
 * --brand/--brand-tint на модификаторе .link-btn--<brand>; фон кнопки белый,
 * читаемый на светлой теме. Инлайновых стилей нет — только классами.
 */
.linkcard-section { padding-top: clamp(32px, 6vw, 64px); }

.linkcard {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.linkcard__ava {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--on-accent);
  background: var(--grad-accent);
  box-shadow: var(--shadow), 0 0 0 6px var(--accent-tint);
}

.linkcard__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.linkcard__sub {
  color: var(--text-60);
  font-size: 15px;
  margin: 0 0 28px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.link-btn {
  --brand: var(--accent);
  --brand-tint: var(--accent-tint);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.link-btn__ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-tint);
}

.link-btn__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
}

.link-btn__go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--text-40);
  transition: color .18s var(--ease);
}

.link-btn:hover .link-btn__go { color: var(--brand); }

.linkcard__copy {
  text-align: center;
  color: var(--text-45);
  font-size: 13px;
  margin: 30px 0 0;
}

/* Бренд-акценты. Фон-чип светлый под каждый бренд, сам цвет — на иконке/hover. */
.link-btn--phone,
.link-btn--site      { --brand: var(--accent);      --brand-tint: var(--accent-tint); }
.link-btn--max       { --brand: var(--accent-line);  --brand-tint: #e2f8fb; }
.link-btn--whatsapp  { --brand: #1fa855;             --brand-tint: #e3f8ec; }
.link-btn--telegram  { --brand: #1c93d2;             --brand-tint: #e4f4fd; }
.link-btn--vk        { --brand: #0077ff;             --brand-tint: #e3eefe; }
.link-btn--youtube   { --brand: #e60000;             --brand-tint: #ffe6e6; }
.link-btn--tiktok    { --brand: #111111;             --brand-tint: #ececee; }
.link-btn--instagram { --brand: #d62f52;             --brand-tint: #fce7eb; }
.link-btn--dzen      { --brand: #111111;             --brand-tint: #ececee; }

/* ============ Блог: список, статья, комментарии ============ */

/* Узкая колонка для читаемости длинного текста статьи. */
.container--narrow { max-width: 760px; }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }

.blog-card__excerpt {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-60);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Статья --- */
.article__meta { margin: 8px 0 0; font-size: 14px; color: var(--text-60); }

.article__cover {
  margin: 24px 0 8px;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  background: var(--bg-soft);
}
.article__cover img { display: block; width: 100%; height: auto; }

.article__body { margin-top: 24px; }
.article__body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.article__figure { margin: 26px 0; }
.article__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius, 16px);
  background: var(--bg-soft);
}
.article__figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-60);
  text-align: center;
}

/* --- Комментарии --- */
.comments { margin-top: 48px; border-top: 1px solid var(--line-faint); padding-top: 32px; }
.comments__title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.comments__count {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-soft);
  border-radius: 100px;
  padding: 2px 10px;
}
.comments__empty { margin: 0 0 24px; }

.comments__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.comment {
  background: var(--surface);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius, 16px);
  padding: 16px 18px;
}
.comment__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment__author { font-weight: 700; color: var(--text); }
.comment__date { font-size: 13px; color: var(--text-60); }
.comment__body { font-size: 15px; line-height: 1.6; color: var(--text-70); }

.comment-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  padding: 24px;
}
.form__ok {
  font-size: 14px;
  color: var(--accent);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* --- Статья: типографика Markdown-тела --- */
.article__body h3 { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); line-height: 1.2; margin: 28px 0 12px; color: var(--text); }
.article__body h4 { font-family: var(--font-display); font-size: clamp(17px, 2.4vw, 21px); line-height: 1.25; margin: 22px 0 10px; color: var(--text); }
.article__body ul,
.article__body ol { margin: 0 0 18px; padding-left: 24px; }
.article__body li { margin: 0 0 8px; font-size: 17px; line-height: 1.65; color: var(--text); }
.article__body blockquote {
  margin: 20px 0; padding: 8px 0 8px 18px;
  border-left: 3px solid var(--accent);
  color: var(--text-70); font-size: 17px; line-height: 1.6;
}
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article__body strong { font-weight: 700; }
.article__body em { font-style: italic; }

/* --- Комментарии: ответы и пометка администрации --- */
.comment__badge {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: var(--accent);
  border-radius: 100px; padding: 2px 8px;
}
.comment--admin { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.comment__reply {
  margin-top: 8px; border: none; background: none; cursor: pointer;
  color: var(--accent); font-size: 13px; font-weight: 600; padding: 0;
}
.comment__replies { margin: 12px 0 0 24px; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--line-faint); padding-left: 14px; }
.reply-ctx {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px;
  font-size: 14px; color: var(--text-70);
}
.reply-ctx__cancel { margin-left: auto; border: none; background: none; cursor: pointer; color: var(--text-60); font-size: 15px; }

/* Заголовки Markdown-тела: h2/h5/h6 в дополнение к h3/h4. */
.article__body h2 { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.18; margin: 30px 0 14px; color: var(--text); }
.article__body h5 { font-family: var(--font-display); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.3; margin: 20px 0 8px; color: var(--text); }
.article__body h6 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; color: var(--text-70); }

/* --- Компактные комментарии + сворачиваемые ветки --- */
.comments__list { gap: 8px; }
.comment { padding: 10px 12px; border-radius: 12px; }
.comment__head { margin-bottom: 3px; gap: 8px; }
.comment__author { font-size: 14px; }
.comment__date { font-size: 12px; }
.comment__body { font-size: 14px; line-height: 1.5; }
.comment__badge { font-size: 10px; padding: 1px 7px; }
.comment__reply { margin-top: 5px; font-size: 12px; }
.comment__replies { margin: 8px 0 0 14px; padding-left: 12px; gap: 8px; }
details.comment__replies { border-left: 2px solid var(--line-faint); }
.comment__toggle {
  cursor: pointer; list-style: none; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 4px 0;
}
.comment__toggle::-webkit-details-marker { display: none; }
.comment__toggle::before { content: '▸ '; }
details[open] > .comment__toggle::before { content: '▾ '; }
.comment__replies-inner { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ============ Гео-посадочные /elektromontazh (хаб + страница района) ============ */

/* Хаб: карточки районов — та же вёрстка, что у кейсов (.case/.case__cover/...),
 * только своя сетка (чуть шире минимум колонки под длинные названия городов). */
.grid--geo { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.geo-hub__empty { padding: clamp(24px, 4vw, 40px); margin-top: 32px; }

/* Кнопки «Рассчитать смету» / «Оставить заявку» внизу страницы — тот же паттерн,
 * что .hero__cta/.brigade-cta, отдельным классом (см. CLAUDE.md: без inline style). */
.geo-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Подраздел внутри страницы района (услуги, FAQ) — отступ от предыдущего блока. */
.geo-section { margin-top: 48px; }

/* FAQ, показанный не отдельным блоком-секцией (как site/blocks/faq.php), а
 * внутри страницы после заголовка «Частые вопросы» — нужен свой отступ сверху. */
.faq--inline { margin-top: 24px; }

/* Карточка услуги в разделе «Услуги в этом районе» — как .service, плюс цена
 * снизу (мирроринг .brigade-card__price). */
.service__price { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }

/* .review__name/.review__foot info-обёртка использовались с inline style="display:block"/
 * "flex:1" на каждой из трёх страниц с отзывами (главная, услуга, район) — снимаем это в
 * классы: display:block на .review__name безопасен (так было ВСЕГДА, во всех вызовах). */
.review__name { display: block; }
.review__info { flex: 1; }
