/* ==========================================================================
   Шрифт Manrope — подключён локально, файлы в assets/fonts/.
   Раньше он тянулся с Google Fonts: если запрос не проходил (а в российских
   сетях это обычное дело), подставлялся системный шрифт — он шире примерно
   на 15%, и блоки, рассчитанные под метрики Manrope, разъезжались.
   Один вариативный файл на все начертания 400–800.
   ========================================================================== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Подложка на те доли секунды, пока шрифт грузится: системная гарнитура
   ужимается до метрик Manrope, поэтому текст не прыгает при подмене. */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 96%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ==========================================================================
   ПТС-ЮГ — пневмокаркасные ангары
   Основная таблица стилей
   ========================================================================== */

:root {
  --navy: #012e43;
  --navy-900: #01202f;
  --navy-800: #012e43;
  --navy-700: #06405a;
  --blue: #008efa;
  --blue-600: #0079d6;
  --blue-100: #e6f4ff;
  --ink: #12222c;
  --muted: #5d7480;
  --line: #dde5ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(1, 46, 67, .08);
  --shadow-lg: 0 18px 50px rgba(1, 46, 67, .16);
  --container: 1280px;
  --header-h: 90px;
  --font: "Manrope", "Manrope Fallback", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.section__head h2 { margin: 0; }
.section__lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 12px 0 0;
}
.section--navy .section__lead { color: rgba(255, 255, 255, .72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
}

/* --------------------------------------------------------- Кнопки -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(0, 142, 250, .32); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 12px 30px rgba(0, 142, 250, .42); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue);
}
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------- Шапка --------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar__hours { color: rgba(255, 255, 255, .5); }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 18px rgba(1, 32, 47, .25);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo img { height: 62px; width: auto; }
/* Межстрочный интервал задаём на блоке, а не на вложенном inline-элементе:
   высоту строки определяет строчный бокс родителя, и он наследовал
   line-height: 1.6 от body — из-за этого подпись растягивало по вертикали. */
.logo__text {
  display: none;
  font-size: .88rem;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  /* Небольшой сдвиг вниз: в самом знаке словесная часть «ПТС-ЮГ» прижата
     к низу, поэтому подпись, выровненная строго по центру, зрительно
     висела выше него. */
  position: relative;
  top: 6px;
}
.logo__name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.logo__tag { display: block; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, .1); }
.nav__item.is-current > .nav__link { color: var(--blue); }
.nav__caret { width: 10px; height: 10px; opacity: .6; transition: transform .2s; flex-shrink: 0; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.nav__item { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: .93rem;
  font-weight: 600;
}
.submenu a:hover { background: var(--blue-100); color: var(--navy); }

.header__cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header__phone { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.header__phone small { display: block; font-size: .7rem; font-weight: 500; color: rgba(255, 255, 255, .55); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform .22s, opacity .22s;
}
.burger::before { top: 16px; }
.burger span { top: 22px; }
.burger::after { top: 28px; }
.burger.is-active::before { transform: translateY(6px) rotate(45deg); }
.burger.is-active span { opacity: 0; }
.burger.is-active::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------- Герой --------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(120deg, #01202f 0%, #012e43 45%, #023c58 100%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; opacity: .5; }
.hero__bg > * { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 150px) 0 clamp(60px, 8vw, 120px);
  max-width: 780px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 b { color: var(--blue); font-weight: 800; }
.hero__text {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(1, 32, 47, .55);
}
.hero__fact {
  position: relative;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Разделители не доходят до краёв ячейки — ряд читается как одна плашка,
   а не как четыре состыкованных прямоугольника. */
.hero__fact + .hero__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255, 255, 255, .16);
}
/* Кегль подобран так, чтобы самое длинное значение («Без фундамента»)
   помещалось в одну строку на всей ширине, где колонок четыре.
   Верхняя граница — фиксированная: контейнер упирается в 1280px,
   поэтому привязывать её к vw нельзя. */
.hero__fact b {
  display: block;
  font-size: clamp(1.2rem, 1.95vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--blue);
}
/* Значения всегда в одну строку (см. кегль выше), поэтому подписи
   выравниваются по верхней линии — ряд читается как таблица. */
.hero__fact span {
  font-size: .84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .62);
  text-wrap: pretty;
}

/* Внутренние страницы: компактный герой */
.pagehero {
  position: relative;
  background: linear-gradient(120deg, #01202f 0%, #012e43 60%, #023c58 100%);
  color: #fff;
  overflow: hidden;
}
.pagehero__bg { position: absolute; inset: 0; opacity: .35; }
.pagehero__bg > * { width: 100%; height: 100%; object-fit: cover; }
.pagehero__inner { position: relative; z-index: 2; padding: clamp(40px, 6vw, 82px) 0 clamp(38px, 5vw, 66px); }
.pagehero h1 { margin: 0 0 14px; }
.pagehero p { max-width: 68ch; color: rgba(255, 255, 255, .78); margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* --------------------------------------------------------- Карточки ------ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); }
.card__media > img, .card__media > svg { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; font-weight: 800; margin: 0 0 10px; }
.card__text { color: var(--muted); font-size: .93rem; margin: 0 0 18px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-weight: 800; color: var(--navy); }
.card__price span { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }

/* Плитки применения (переворот) */
.flip { perspective: 1200px; min-height: 310px; }
.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 310px;
  transition: transform .6s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
}
.flip:hover .flip__inner, .flip:focus-within .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.flip__front { background: var(--navy); color: #fff; }
.flip__art { position: absolute; inset: 0; opacity: .55; }
.flip__art > * { width: 100%; height: 100%; object-fit: cover; }
.flip__front h3, .flip__front .flip__num { position: relative; z-index: 2; margin-bottom: 0; }
.flip__num { font-size: .8rem; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 8px; }
.flip__back { background: var(--blue); color: #fff; transform: rotateY(180deg); justify-content: center; }
.flip__back h3 { margin-bottom: 10px; }
.flip__back p { font-size: .93rem; color: rgba(255, 255, 255, .92); margin-bottom: 16px; }
.flip__back .link-arrow { color: #fff; }

/* Проекты */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
}
.filters button:hover { border-color: var(--blue); color: var(--navy); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.project { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; }
.project__art { aspect-ratio: 4 / 3; }
.project__art > img, .project__art > svg { width: 100%; height: 100%; object-fit: cover; }
.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(1, 32, 47, 0) 30%, rgba(1, 32, 47, .92) 100%);
}
.project__year { font-size: .8rem; font-weight: 700; color: var(--blue); }
.project__name { font-weight: 700; font-size: 1.05rem; margin: 6px 0 4px; }
.project__type { font-size: .85rem; color: rgba(255, 255, 255, .65); }
.project.is-hidden { display: none; }

/* Сравнение с капитальным зданием. Не таблица: на тёмном фоне обычная
   таблица со светлыми шапками смотрится инородно, а тут нужен тёмный блок. */
.compare { border-top: 1px solid rgba(255, 255, 255, .16); }
.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.compare__head {
  padding-top: 22px;
  padding-bottom: 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.compare__label { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.compare__us { color: var(--blue); font-weight: 700; }
.compare__them { color: rgba(255, 255, 255, .5); }
.compare__head .compare__us { color: #fff; }
/* Сноска с правовым основанием: снимает вопросы, но не спорит с макетом */
.compare__note {
  margin: 22px 0 0;
  max-width: 78ch;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .compare__head { display: none; }
  .compare__label { font-weight: 700; color: #fff; }
  .compare__us::before { content: "Пневмокаркас: "; font-weight: 400; color: rgba(255, 255, 255, .5); }
  .compare__them::before { content: "Капитальное здание: "; color: rgba(255, 255, 255, .38); }
}

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.review__quote { font-size: 2.6rem; line-height: 1; color: var(--blue); font-weight: 800; }
.review__text { color: var(--ink); font-size: .95rem; flex: 1; }
.review__author { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__author b { display: block; }
.review__author span { font-size: .85rem; color: var(--muted); }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.section--navy .feature__icon { background: rgba(0, 142, 250, .18); }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.section--navy .feature p { color: rgba(255, 255, 255, .7); }

/* Список с галочками */
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--blue);
  background-image: 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.section--navy .checklist li { color: rgba(255, 255, 255, .78); }

/* Таблица характеристик */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--navy); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* Аккордеон */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc + .acc { margin-top: 12px; }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
}
.acc__btn::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
}
.acc.is-open .acc__btn::after { transform: rotate(45deg); }
.acc__body { overflow: hidden; transition: max-height .3s ease; }
.js .acc__body { max-height: 0; }
.acc__body div { padding: 0 24px 22px; color: var(--muted); font-size: .95rem; }

/* Шаги процесса */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--line); counter-increment: s; }
.step__num { font-size: .8rem; font-weight: 800; color: var(--blue); letter-spacing: .1em; }
.step h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* 3D-модель ангара в блоке «О компании».
   Пока модуль не загрузился (или нет WebGL) — виден запасной рисунок. */
.model3d {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: grab;
  background: var(--navy);
}
.model3d.is-grabbing { cursor: grabbing; }
.model3d > img,
.model3d > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}
.model3d canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.model3d.is-ready > img,
.model3d.is-ready > svg { opacity: 0; pointer-events: none; }

.model3d__hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(1, 32, 47, .6);
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.model3d.is-ready .model3d__hint { opacity: 1; }

/* Карта проезда */
.map {
  position: relative;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--blue); }
@media (max-width: 820px) {
  .map { aspect-ratio: 3 / 4; }
}

/* Галерея фотографий на странице продукции */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%;
  /* height:auto обязателен: атрибут height="800" в разметке иначе
     перебивает aspect-ratio, и плитка вытягивается по вертикали */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--navy);
}
.gallery__item figcaption {
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Медиа-блок «текст + картинка» */
.media-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.media-split__art { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); }
.media-split__art > * { width: 100%; height: auto; display: block; }

/* --------------------------------------------------------- Формы --------- */
.form-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 3.5vw, 44px);
  color: var(--ink);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 142, 250, .16);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }
.form-note a { color: var(--blue); text-decoration: underline; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--blue); display: none; }
.form-status.is-visible { display: block; }
/* Ошибка отправки должна быть видна, а не потеряться в фирменном синем */
.form-status.is-error { color: #ff9a3d; }

.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.cta-phone { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; display: inline-block; margin: 6px 0 4px; }

/* --------------------------------------------------------- Модалка ------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(1, 32, 47, .7);
}
.modal.is-open { display: flex; }
.modal__dialog { width: 100%; max-width: 460px; position: relative; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------- Подвал -------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); padding-top: clamp(48px, 6vw, 76px); font-size: .92rem; }
.footer a:hover { color: var(--blue); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer__logo img { height: 68px; margin-bottom: 18px; }
.footer__title { color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer__list li { margin-bottom: 9px; }
.footer__contacts li { margin-bottom: 14px; }
.footer__contacts b { display: block; color: #fff; font-size: 1.05rem; }
.footer__contacts small { color: rgba(255, 255, 255, .45); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .45);
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  transition: background .2s;
}
.socials a:hover { background: var(--blue); }

/* Фиксированная нижняя панель (мобильная) */
.quickbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: none;
}
.quickbar__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.quickbar button, .quickbar a {
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}

/* Появление при скролле — только если JS доступен, иначе контент виден сразу */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- Адаптив ------- */
@media (min-width: 1400px) {
  .logo__text { display: block; }
}

@media (max-width: 1200px) {
  .nav__link { padding: 10px 10px; font-size: .9rem; }
  .header__phone { font-size: .95rem; }
  .header__cta .btn { display: none; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__fact:nth-child(odd)::before { display: none; }
  .hero__fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .media-split { grid-template-columns: 1fr; }

  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: var(--navy);
    padding: 90px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .3);
    margin: 0;
    z-index: 70;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { justify-content: space-between; padding: 14px 12px; font-size: 1rem; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    display: none;
    margin: 4px 0 8px;
    min-width: 0;
  }
  .nav__item.is-open .submenu { display: block; }
  .submenu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .header__cta { margin-left: auto; }
  .quickbar { display: block; }
  body { padding-bottom: 62px; }
}

@media (max-width: 820px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .topbar__hours, .topbar__extra { display: none; }
}

@media (max-width: 600px) {
  .grid--4 { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__fact::before { display: none; }
  .hero__fact + .hero__fact { border-top: 1px solid rgba(255, 255, 255, .14); }
  .field-row { grid-template-columns: 1fr; }
  .header__phone { display: none; }
  .logo img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
