/* ==========================================================================
   ЗМК «СВ-Строй» — завод металлоконструкций. Основная таблица стилей.
   Автор: разработка сайта, 2026
   Порядок: переменные → база → утилиты → компоненты → секции → адаптив
   ========================================================================== */

:root {
  --ink: #12161a;
  --ink-2: #1b2128;
  --steel-900: #232b33;
  --steel-800: #2d3740;
  --steel-700: #3e4a55;
  --steel-500: #6c7883;
  --steel-400: #98a3ac;
  --steel-300: #c6ced5;
  --steel-200: #dfe4e8;
  --steel-100: #eef1f3;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --accent: #c1462a;
  --accent-600: #a5371e;
  --accent-100: #fbeeea;
  --ok: #2f7a4f;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 26, .06), 0 2px 8px rgba(18, 22, 26, .05);
  --shadow: 0 8px 30px rgba(18, 22, 26, .10);
  --shadow-lg: 0 24px 60px rgba(18, 22, 26, .18);
  --container: 1240px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --t: .25s cubic-bezier(.2, .7, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--steel-900);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  line-height: 1.16;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

strong, b { font-weight: 700; color: var(--ink); }

hr {
  border: 0;
  border-top: 1px solid var(--steel-200);
  margin: 2.5rem 0;
}

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.container--narrow { max-width: 900px; }

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink-2); color: var(--steel-200); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: 56px 0; }

.section-head { max-width: 790px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--steel-700); font-size: 1.06rem; margin-bottom: 0; }
.section--dark .section-head p { color: var(--steel-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.lead { font-size: 1.12rem; color: var(--steel-700); }
.muted { color: var(--steel-500); }
.small { font-size: .88rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(193, 70, 42, .28); }
.btn--primary:hover { background: var(--accent-600); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--steel-800); color: #fff; }

.btn--ghost { border-color: var(--steel-300); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--steel-100); color: var(--ink); }

.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--ink);
  color: var(--steel-300);
  font-size: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 6px 22px;
  max-width: var(--container);
  margin: 0 auto;
}
.topbar__list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar a { color: var(--steel-200); }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; flex: none; opacity: .75; }
.topbar__note { color: var(--steel-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--steel-200);
  transition: box-shadow var(--t), border-color var(--t);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 22px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 190px; height: auto; }
.logo__text { display: none; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--steel-900);
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
}
.nav__link:hover { background: var(--steel-100); color: var(--ink); }
.nav__link.is-active { color: var(--accent); background: var(--accent-100); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header-phone a { font-weight: 800; font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.header-phone span { font-size: .74rem; color: var(--steel-500); }
.header-phone a + a { font-size: .88rem; font-weight: 700; color: var(--steel-700); }

.burger {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--steel-200);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 380px);
  background: #fff;
  z-index: 120;
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--steel-200);
}
.mobile-nav__head img { width: 150px; }
.mobile-nav__close {
  width: 42px; height: 42px;
  border: 1px solid var(--steel-200);
  border-radius: 11px;
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.mobile-nav__list { list-style: none; margin: 0; padding: 12px 12px 0; }
.mobile-nav__list li { margin: 0; }
.mobile-nav__list a {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.04rem;
}
.mobile-nav__list a:hover,
.mobile-nav__list a.is-active { background: var(--steel-100); color: var(--accent); }
.mobile-nav__foot { margin-top: auto; padding: 22px 20px 30px; border-top: 1px solid var(--steel-200); }
.mobile-nav__foot .btn { margin-bottom: 12px; }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 16, .55);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
/* Герой — исходная вёрстка сайта: фотография лежит фоном, текст поверх неё.
   Файл hero-3.jpg — новая фотография заказчика (фото/2.png, переведён в JPEG
   1920 x 722). Имя новое намеренно: прежние hero.jpg и hero-2.jpg сидят в
   кэшах браузеров до 45 дней, и подмена содержимого под тем же именем
   не сработала бы — именно на этом мы уже спотыкались.

   Затемнения на самой фотографии нет: opacity не задаётся, снимок показывается
   в полную яркость. Читаемость белого текста держит градиент .9/.68/.24 —
   слева, где стоит текст, он плотнее, справа фотография открыта. Проверено
   расчётом по самой картинке: худший контраст в зоне текста 6,7 : 1 при норме
   4,5 : 1, средний 16,5 : 1. Так выходит потому, что новая фотография тёмная:
   средняя яркость 37 % против 74 % у прежней, светлых участков всего 11 %. */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-3.jpg");
  background-size: cover;
  background-position: center 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 15, 19, .9) 0%, rgba(12, 15, 19, .68) 45%, rgba(12, 15, 19, .24) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 86px 0 76px;
  max-width: 890px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffb59f; }
.hero__lead {
  font-size: 1.16rem;
  color: #e7ebee;
  max-width: 700px;
  margin-bottom: 26px;
}
.hero__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  max-width: 720px;
}
.hero__list li {
  position: relative;
  padding-left: 32px;
  margin: 0;
  color: #eef1f3;
  font-size: 1rem;
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.hero__note { margin-top: 22px; font-size: .9rem; color: var(--steel-300); }

/* Страничный герой (внутренние страницы) */
.page-hero {
  position: relative;
  background: var(--ink-2);
  color: #fff;
  padding: 62px 0 56px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(120deg, #000 0%, transparent 78%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 900px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--steel-300); margin-bottom: 0; font-size: 1.08rem; max-width: 760px; }

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0;
  font-size: .84rem;
  color: var(--steel-400);
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li::after { content: "/"; color: var(--steel-500); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--steel-300); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Показатели ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat { background: #fff; padding: 26px 22px; }
.stat__num {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__num span { color: var(--accent); }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--steel-500); }
.section--dark .stats { background: rgba(255, 255, 255, .12); }
.section--dark .stat { background: var(--steel-900); }
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: var(--steel-300); }

/* ---------- Карточки ---------- */
.card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--steel-300); }
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-100);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .95rem; }
.card--flat { box-shadow: none; }
.card--dark { background: var(--steel-900); border-color: rgba(255, 255, 255, .1); color: var(--steel-200); }
.card--dark h3 { color: #fff; }

.card-list { list-style: none; margin: 0; padding: 0; }
.card-list li { position: relative; padding-left: 24px; margin-bottom: .5em; color: var(--steel-700); }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.section--dark .card-list li { color: var(--steel-300); }

/* ---------- Плитки продукции ---------- */
.tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 16, .1) 0%, rgba(10, 13, 16, .55) 55%, rgba(10, 13, 16, .9) 100%);
}
.tile__body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 260px; }
.tile__body h3 { color: #fff; margin-bottom: .35em; }
.tile__body p { margin: 0; font-size: .95rem; color: var(--steel-200); }
.tile--tall { min-height: 340px; }
.tile--tall .tile__body { min-height: 340px; }

/* ---------- Преимущества ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35em; }
.feature p { margin-bottom: 0; color: var(--steel-700); font-size: .98rem; }
.section--dark .feature__icon { background: var(--accent); }
.section--dark .feature p { color: var(--steel-300); }

/* ---------- Этапы ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .4em; font-size: 1.14rem; }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.step ul { color: var(--steel-700); }

/* ---------- Таблица ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .96rem;
}
table.data caption {
  caption-side: top;
  text-align: left;
  padding: 18px 22px 6px;
  font-weight: 700;
  color: var(--ink);
}
table.data th,
table.data td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--steel-200);
  vertical-align: top;
}
table.data thead th {
  background: var(--steel-100);
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
table.data tbody tr:hover { background: #fafbfc; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll-hint { font-size: .82rem; color: var(--steel-500); margin-top: 10px; }

/* ---------- Проекты ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__media img { transform: scale(1.05); }
.project__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(18, 22, 26, .82);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.project__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-size: 1.1rem; margin-bottom: .5em; }
.project__body p { font-size: .95rem; color: var(--steel-700); }
.project__specs {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--steel-200);
  display: grid;
  gap: 6px;
  font-size: .9rem;
}
.project__specs li { margin: 0; display: flex; justify-content: space-between; gap: 14px; }
.project__specs dt, .project__specs span:first-child { color: var(--steel-500); }
.project__specs strong { white-space: nowrap; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--steel-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 13, .92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .25); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.review__mark { font-size: 2.6rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; margin-bottom: 6px; }
.review blockquote { margin: 0 0 18px; font-size: .99rem; color: var(--steel-800); }
.review__author { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--steel-200); font-size: .92rem; }
.review__author strong { display: block; }
.review__author span { color: var(--steel-500); }

/* ---------- Клиенты ---------- */
.clients { display: flex; flex-wrap: wrap; gap: 10px; }
.client-chip {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--steel-800);
}
.section--dark .client-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--steel-200); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--bg-soft); }
.faq__answer { padding: 4px 22px 20px; color: var(--steel-700); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Формы ---------- */
.form {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.form--dark { background: var(--steel-900); border-color: rgba(255, 255, 255, .12); color: var(--steel-200); }
.form--dark h3 { color: #fff; }
.form--dark .form__hint { color: var(--steel-400); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form--dark .field label { color: var(--steel-200); }
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--steel-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(193, 70, 42, .14);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d33; background: #fff7f7; }
.field__error { color: #c62828; font-size: .82rem; margin-top: 6px; display: none; }
.field.has-error .field__error { display: block; }
.field--file input { padding: 11px 13px; background: var(--bg-soft); }
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--steel-700);
  margin-bottom: 18px;
}
.form--dark .checkbox { color: var(--steel-300); }
.checkbox input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__hint { font-size: .84rem; color: var(--steel-500); margin: 14px 0 0; }
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #eaf6ef; color: #1e5c39; border: 1px solid #bfe0cd; }
.form-status--err { background: #fdeceb; color: #8f2620; border: 1px solid #f3c5c1; }
.form--dark .form-status--ok { background: rgba(47, 122, 79, .18); color: #b7e6c9; border-color: rgba(47, 122, 79, .5); }
.form--dark .form-status--err { background: rgba(193, 70, 42, .18); color: #ffc9bb; border-color: rgba(193, 70, 42, .5); }
.form--dark .field input,
.form--dark .field select,
.form--dark .field textarea {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.form--dark .field input::placeholder,
.form--dark .field textarea::placeholder { color: var(--steel-400); }
.form--dark .field select option { color: #111; }

/* Прогресс-шаги формы */
.form-steps { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.form-step-pill {
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--steel-100);
  color: var(--steel-500);
}
.form-step-pill.is-active { background: var(--accent); color: #fff; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 46px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 70, 42, .55), transparent 68%);
}
.cta-band h2 { color: #fff; margin-bottom: .4em; position: relative; }
.cta-band p { color: var(--steel-300); position: relative; margin-bottom: 0; }
.cta-band__actions { position: relative; display: grid; gap: 14px; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.08rem; margin-bottom: .6em; }
.contact-card address { font-style: normal; color: var(--steel-700); }
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { margin-bottom: .5em; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--steel-200); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.contact-list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-500); font-weight: 700; }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-200);
  background: var(--steel-100);
  min-height: 380px;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-fallback { padding: 34px; }

/* ---------- Документы ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.doc-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.doc-list strong { display: block; }
.doc-list span { color: var(--steel-500); font-size: .9rem; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--steel-300); padding: 60px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer a { color: var(--steel-200); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding-bottom: 44px;
}
.footer-logo {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: inline-block;
  max-width: 100%;
  margin-bottom: 18px;
}
.footer-logo img { width: 287px; }
.footer-contacts { list-style: none; margin: 0; padding: 0; }
.footer-contacts li { margin-bottom: .6em; display: flex; gap: 10px; }
.footer-contacts svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 4px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .55em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--steel-400);
}
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t);
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 22px; height: 22px; }

/* Плавающая кнопка звонка на мобильных */
.call-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(193, 70, 42, .38);
  font-size: .95rem;
}
.call-fab svg { width: 18px; height: 18px; }
.call-fab:hover { color: #fff; background: var(--accent-600); }

/* ---------- Состояния формы: отправка, успех, ошибка ---------- */
.form.is-sending .field input,
.form.is-sending .field select,
.form.is-sending .field textarea { opacity: .65; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zmk-spin .7s linear infinite;
}

.btn--success,
.btn--success:hover,
.btn--success:disabled {
  background: var(--ok);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 122, 79, .28);
  opacity: 1;
  transform: none;
  cursor: default;
}

@keyframes zmk-spin { to { transform: rotate(360deg); } }

/* Кнопка во время отправки: цвет меняется сразу, нажатие видно */
.btn.is-loading {
  background: var(--steel-800);
  color: #fff;
  border-color: var(--steel-800);
  box-shadow: 0 10px 24px rgba(18, 22, 26, .22);
  animation: zmk-pulse 1.1s ease-in-out infinite;
}
.btn--primary.is-loading:hover { background: var(--steel-800); }
.btn--success.is-loading { background: var(--ok); animation: none; }

@keyframes zmk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* Всплывающий информатор: «отправляем», «отправлено», «не отправилось» */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  max-width: min(92vw, 540px);
  padding: 15px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--info { background: var(--steel-800); }
.toast--ok { background: var(--ok); }
.toast--err { background: #8f2620; }

@media print { .toast { display: none !important; } }

.form-status--info {
  background: #eef4fb;
  color: #1d4e79;
  border: 1px solid #cfe0f2;
}

.form-status--ok {
  position: relative;
  padding: 22px 24px 22px 62px;
  font-size: 1.02rem;
  font-weight: 600;
}
.form-status--ok::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f7a4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

.form-status__again {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: underline;
}

.form--dark .form-status--info {
  background: rgba(29, 78, 121, .25);
  color: #cfe4f7;
  border-color: rgba(120, 170, 220, .45);
}

/* ---------- Cookie-уведомление ---------- */
.cookie-note {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: .9rem;
  max-width: 940px;
  margin: 0 auto;
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--steel-700); }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .project:hover, .tile:hover { transform: none; }
}

/* ---------- Хлебные крошки и текстовые блоки ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul li, .prose ol li { color: var(--steel-800); }
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--info { border-color: var(--steel-700); background: var(--steel-100); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1400px) {
  .logo img { width: 168px; }
}

@media (max-width: 1240px) {
  .header-phone { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions { margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 34px; }
  .call-fab { display: inline-flex; }
  .cookie-note { bottom: 86px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .hero__inner { padding: 56px 0 52px; }
  .hero__list { grid-template-columns: minmax(0, 1fr); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .projects, .reviews { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px; }
  .topbar__list { gap: 12px; font-size: .8rem; }
  .topbar__note { display: none; }
  .logo img { width: 148px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .to-top { right: 16px; bottom: 80px; }
  .cookie-note { padding: 16px; }
}

@media (max-width: 420px) {
  .logo img { width: 132px; }
  .btn { padding: 13px 20px; font-size: .95rem; }
  .stat { padding: 20px 16px; }
}

/* На узких экранах основное действие переносится в мобильное меню
   и плавающую кнопку звонка, чтобы шапка не переполнялась */
@media (max-width: 640px) {
  .header-actions .btn { display: none; }
  .header-actions { gap: 10px; }
  .site-header__inner { gap: 12px; }
  .topbar__inner { justify-content: flex-start; }
  .topbar__list { gap: 6px 18px; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .topbar, .mobile-nav, .overlay, .to-top, .call-fab, .cookie-note, .cta-band { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero, .page-hero { background: #fff !important; color: #000; }
  .hero::after, .hero__bg { display: none; }
  .hero h1, .page-hero h1, .card h3, .section--dark h2 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 18px 0; }
}
