/* =========================================================
   ЛИФТИНДУСТРИЯ — лендинг грузовых подъёмников
   Светлая база + полноэкранные фото-секции с тёмной вуалью.
   Токены и правила — CLAUDE.md §6. Mobile-first.

   ⚠️ Тёплого акцента на странице нет. Оранжевый занят ../LP_land/,
      янтарный — ../zptm_land/. Единственное «горячее» пятно здесь —
      насыщенный синий --brand-2 на крупных CTA. Не добавлять
      оранжевые кнопки «чтобы заметнее»: это стирает отличие от ЛП.
   ========================================================= */

:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F2F5F8;
  --surface:      #FFFFFF;
  --panel:        #EDF1F6;
  --border:       #DDE4EC;
  --graphite:     #24282C;
  --graphite-2:   #33383D;
  --text:         #14181C;
  --text-2:       #5A646F;
  --brand:        #063F6C;
  --brand-2:      #0E5C9E;
  --brand-hover:  #0A4A80;
  --brand-soft:   rgba(14, 92, 158, .10);
  --on-photo:     rgba(20, 24, 28, .62);
  --ok:           #2E9E6B;

  --font-head: 'Unbounded', 'Segoe UI', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --header-h: 62px;
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.16; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

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

/* Шапка липкая, поэтому переход по якорю из меню без этого отступа
   загонял бы заголовок секции под неё */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 860px; }

/* ============================ КНОПКИ ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);   /* подчёркнуто прямоугольные, в отличие от ЛП/ЗПТМ */
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand-2); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

.btn--onphoto {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px);
}
.btn--onphoto:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.linkbtn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-2);
  text-decoration: underline;
  cursor: pointer;
}

/* ============================ ШАПКА ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 1px 14px rgba(20, 24, 28, .10); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-top: 10px;
  padding-bottom: 10px;
  transition: min-height .2s ease;
}
.header.is-scrolled .header__inner { min-height: 54px; }

.header__logo { flex: 0 0 auto; display: block; }
.header__logo img { width: 172px; height: auto; }

.nav {
  display: none;
  margin-left: auto;
  gap: 26px;
  align-items: center;
}
.nav__link, .nav__phone {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav__link:hover { color: var(--brand-2); }
.nav__phone { display: none; }

.header__phone {
  display: none;
  margin-left: auto;
  text-align: right;
  text-decoration: none;
  color: var(--text);
}
.header__phone-num { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.header__phone-note { display: block; font-size: 11px; color: var(--text-2); }
.header__cta { display: none; }

.burger {
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--text); }

/* выпадающее меню на мобильном */
.nav.is-open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 20px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 24px rgba(20, 24, 28, .10);
}
.nav.is-open .nav__link,
.nav.is-open .nav__phone {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.nav.is-open .nav__phone {
  border-bottom: 0;
  font-family: var(--font-mono);
  color: var(--brand-2);
}

/* ============================ ПЕРВЫЙ ЭКРАН ============================ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding: 92px 0 40px;
  color: #fff;
  background: var(--graphite);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Вуаль --on-photo: без неё текст поверх фото не проходит по контрасту.
     ⚠️ Два скрима, а не один сплошной затемняющий слой: сплошной пришлось бы
     делать таким плотным, что от фотографии остался бы серый прямоугольник —
     а весь смысл концепции «фото-first» в том, что объект видно.
     - вертикальный уплотняется книзу, где лежит текстовый блок;
     - горизонтальный добавляет плотности слева и сходит на нет к 74 %,
       поэтому правая часть кадра с оборудованием остаётся читаемой.
     ⚠️ У прежнего варианта на 34 % высоты был просвет .30 — ровно туда
     попадал H1, и на светлых участках кадра (окна цеха) заголовок терялся. */
  background:
    /* «подложка» точно под текстовым блоком — левый низ кадра.
       Именно она добирает светлые пятна (окна цеха, блики на металле),
       до которых линейным градиентам не дотянуться, не сделав серым
       весь кадр */
    radial-gradient(130% 95% at 4% 80%,
      rgba(9, 13, 17, .58) 0%,
      rgba(9, 13, 17, .30) 42%,
      rgba(9, 13, 17, 0) 70%),
    linear-gradient(180deg,
      rgba(20, 24, 28, .42) 0%,
      rgba(20, 24, 28, .28) 26%,
      rgba(20, 24, 28, .52) 62%,
      rgba(20, 24, 28, .78) 100%),
    linear-gradient(90deg,
      rgba(6, 63, 108, .66) 0%,
      rgba(6, 63, 108, .32) 44%,
      rgba(6, 63, 108, 0) 78%);
}

.hero__inner { width: 100%; }
/* Мягкая тень под текстом поверх фото. Не декоративная: она страхует те
   участки кадра, которые скрим не добирает — блики на окнах, светлый металл.
   Радиус большой, смещение почти нулевое, поэтому тень не читается как
   эффект, а просто «подкладывает» тёмное под буквы. */
.hero__title,
.hero__lead,
.hero__trust { text-shadow: 0 1px 18px rgba(9, 13, 17, .55); }
.hero__title {
  max-width: 15ch;
  font-size: clamp(28px, 7.2vw, 40px);
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(9, 13, 17, .38), 0 4px 28px rgba(9, 13, 17, .55);
}
.hero__lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 16px;
  color: rgba(255, 255, 255, .94);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
}
.hero__trust li { position: relative; padding-left: 22px; }
.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 240px; }

/* ============================ ПОЛОСА ЦИФР ============================ */
.facts { background: var(--graphite); color: #fff; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--graphite-2);
  border: 1px solid var(--graphite-2);
  padding: 0;
  max-width: 1240px;
}
.fact {
  background: var(--graphite);
  padding: 22px 18px;
  text-align: left;
}
/* Цифр ровно четыре, а не пять из §8.3: пятой была «без регистрации
   в Ростехнадзоре», и в формате «цифра + подпись» она читалась как
   «0 регистраций» — непонятно. Факт никуда не делся: он стоит строкой
   доверия в hero, отдельным пунктом 03 в «Почему завод» и вопросом в FAQ.
   Чётное число ячеек заодно убирает пустую клетку в сетке 2×N. */
.fact__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(18px, 4.6vw, 24px);
  letter-spacing: -.02em;
}
.fact__label {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .62);
}

/* ============================ СЕКЦИИ ============================ */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 760px; margin-bottom: 30px; }
.section__title { font-size: clamp(24px, 5.6vw, 34px); font-weight: 700; }
.section__sub { margin-top: 12px; color: var(--text-2); font-size: 15px; }

/* ============================ КАТАЛОГ ============================ */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__panel {
  position: relative;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
/* Фон рендеров перекрашен в --panel скриптом optimize-images.ps1,
   поэтому шва между картинкой и панелью нет по построению. */
.card__panel img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.card__flag {
  position: absolute;
  left: 0;
  top: 16px;
  padding: 6px 12px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__title { font-size: 18px; }
.card__text { margin-top: 10px; font-size: 14px; color: var(--text-2); }

.spec { margin: 16px 0 18px; border-top: 1px solid var(--border); }
.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.spec dt { color: var(--text-2); }
.spec dd { font-family: var(--font-mono); font-weight: 500; text-align: right; color: var(--text); }

/* margin-top: auto прижимает кнопку к низу карточки — тогда в ряду
   кнопки стоят на одной линии независимо от длины описания. */
.card__btn { margin-top: auto; width: 100%; }

.cards__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-2);
  max-width: 860px;
}

/* ============================ ОБЪЕКТЫ ============================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--panel);
  cursor: pointer;
  overflow: hidden;
}
/* ⚠️ height: auto обязателен везде, где кадр задаётся через aspect-ratio.
   Атрибуты width/height у <img> (они стоят против CLS) превращаются
   в презентационную подсказку height: NNNpx, а при явной высоте
   aspect-ratio просто игнорируется — картинка выходит натуральной
   высоты, и вёрстка «уезжает». */
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .35s ease;
}
.shot:hover img { transform: scale(1.04); }
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(20, 24, 28, .10);
  pointer-events: none;
}

.videos__title { margin: 44px 0 18px; font-size: clamp(19px, 4.4vw, 22px); }
.videos { display: grid; grid-template-columns: 1fr; gap: 12px; }

.video { position: relative; background: var(--graphite); }
.video__stub {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #fff;
}
.video__stub img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video__stub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 28, .12) 40%, rgba(20, 24, 28, .84) 100%);
}
.video__play {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: var(--brand-2);
  transition: transform .2s ease, background-color .2s ease;
}
.video__play::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 19px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.video__stub:hover .video__play { transform: scale(1.08); background: var(--brand-hover); }

.video__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
}
.video__name { font-size: 14px; font-weight: 500; }
.video__time { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, .72); }

.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ============================ ФОТО-ПОЛОСА С CTA ============================ */
.band {
  position: relative;
  padding: 64px 0;
  color: #fff;
  background: var(--brand);
  isolation: isolate;
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 63, 108, .90) 0%, rgba(20, 24, 28, .70) 100%);
}
.band__text {
  max-width: 34ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 4.6vw, 27px);
  line-height: 1.25;
}
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.band__actions .btn { flex: 1 1 240px; }

/* ============================ ПОЧЕМУ ЗАВОД ============================ */
.why { display: grid; grid-template-columns: 1fr; gap: 26px; }
.why__list { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.why__item { background: var(--bg); padding: 22px 20px; }
.why__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.why__item h3 { font-size: 17px; }
.why__item p { margin-top: 9px; font-size: 14px; color: var(--text-2); }

.ticks { margin-top: 11px; display: grid; gap: 7px; }
.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.prod { border: 1px solid var(--border); background: var(--bg); }
.prod__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.prod__body { padding: 22px 20px; }
.prod__title { font-size: 17px; }
.prod__body p { margin-top: 9px; font-size: 14px; color: var(--text-2); }
.prod__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.prod__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 26px;
  color: var(--brand);
}
.prod__cap { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--text-2); }

/* ============================ ПИСЬМА ============================ */
/* Полные сканы (≈600 КБ на все) не грузятся, пока письмо не открыли. */
.letters__strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.letter {
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .16s ease;
}
.letter:hover { border-color: var(--brand-2); }
.letter img { width: 132px; height: 180px; object-fit: cover; object-position: top center; }

/* ============================ FAQ ============================ */
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-right: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.faq__body { padding-bottom: 20px; }
.faq__body p { font-size: 15px; color: var(--text-2); max-width: 72ch; }

/* ============================ ЗАЯВКА + КОНТАКТЫ ============================ */
.lead__grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.lead__form-wrap { background: var(--surface); border: 1px solid var(--border); padding: 26px 20px; }
.lead__title { font-size: clamp(21px, 4.8vw, 27px); }
.lead__sub { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.lead-form { margin-top: 22px; display: grid; gap: 14px; }
.lead__note { margin-top: 4px; font-size: 13px; color: var(--text-2); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field label span { color: var(--brand-2); margin-left: 2px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand-2); outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #9AA5B1; }

.field__err { display: none; font-size: 12px; color: #C0392B; }
.field__err.is-visible { display: block; }
.has-error input, .has-error textarea { border-color: #C0392B; background: #FDF4F3; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
}
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand-2); }
.consent .field__err { grid-column: 2; }
.consent.has-error > span:first-of-type { color: #C0392B; }

.contacts { background: var(--brand); color: #fff; padding: 26px 20px; }
.contacts__title { font-size: 19px; }
.contacts__desc { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .70); }
.contacts__list { margin-top: 22px; display: grid; gap: 16px; }
.contacts__list dt { font-size: 12px; color: rgba(255, 255, 255, .62); }
.contacts__list dd { margin-top: 3px; font-size: 16px; }
.contacts__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.contacts__list a:hover { border-color: #fff; }
.contacts__geo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  color: rgba(255, 255, 255, .74);
}

/* ============================ ПОДВАЛ ============================ */
.footer { background: var(--graphite); color: rgba(255, 255, 255, .78); padding: 44px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer__brand img { width: 200px; height: auto; }
.footer__legal { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .58); }
.footer__cap { font-size: 12px; color: rgba(255, 255, 255, .48); margin-bottom: 10px; }
.footer__col p { font-size: 14px; margin-bottom: 6px; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.footer a:hover { border-color: #fff; }
.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--graphite-2);
  font-size: 12px;
  color: rgba(255, 255, 255, .46);
}

/* ============================ ЛИПКАЯ ПАНЕЛЬ ============================ */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.stickybar a, .stickybar button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.stickybar__call { background: #fff; color: var(--text); }
.stickybar__calc { background: var(--brand-2); color: #fff; }
body { padding-bottom: 55px; }

/* ============================ МОДАЛКИ ============================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 24, 28, .70); }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
}
.modal__box--sm { max-width: 400px; text-align: center; }
.modal__title { font-size: 21px; }
.modal__sub { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.modal__box--sm .btn { margin-top: 20px; }

.modal__close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 3;
}
.modal__close::before, .modal__close::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }

.modal--media .modal__box { background: none; padding: 0; max-width: min(92vw, 780px); overflow: visible; }
.modal--media .modal__close { right: -6px; top: -46px; }
.modal--media .modal__close::before,
.modal--media .modal__close::after { background: #fff; }
.modal__box--media img { width: 100%; max-height: 84vh; object-fit: contain; background: #fff; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  background: rgba(20, 24, 28, .55);
  border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
  z-index: 3;
}
.lightbox__nav::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.lightbox__nav--prev { left: -8px; }
.lightbox__nav--prev::before { transform: rotate(-45deg); }
.lightbox__nav--next { right: -8px; }
.lightbox__nav--next::before { left: 13px; transform: rotate(135deg); }

/* ============================ ПОЯВЛЕНИЕ БЛОКОВ ============================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================ ≥ 700 px ============================ */
@media (min-width: 700px) {
  .section { padding: 72px 0; }
  .hero { min-height: 640px; padding: 120px 0 56px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .band__actions .btn { flex: 0 0 auto; }

  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .video--lead { grid-column: 1 / -1; }
  .why__list { grid-template-columns: repeat(2, 1fr); }
  .prod { display: grid; grid-template-columns: 260px 1fr; }
  .prod__photo { height: 100%; aspect-ratio: auto; }
  .lead__form-wrap, .contacts { padding: 32px 30px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .letter img { width: 152px; height: 208px; }
  .modal__box { padding: 34px 32px 30px; }
}

/* ============================ ≥ 1024 px ============================ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .stickybar { display: none; }

  .burger { display: none; }
  .nav { display: flex; }
  .header__phone { display: block; margin-left: 24px; }
  .header__cta { display: inline-flex; }
  .header__logo img { width: 200px; }
  .nav { margin-left: auto; }

  .section { padding: 88px 0; }
  .hero { min-height: min(88vh, 780px); padding: 150px 0 68px; }
  .hero__title { font-size: clamp(38px, 3.6vw, 52px); max-width: 17ch; }
  .hero__lead { font-size: 18px; }
  .hero__trust { gap: 10px 30px; font-size: 14px; margin-top: 26px; }

  .fact { padding: 26px 22px; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .videos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .video--lead { grid-column: 1 / -1; }

  .why { grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
  .why__list { grid-template-columns: repeat(2, 1fr); }
  .prod { grid-template-columns: 1fr; }
  /* height: auto снимает height: 100% из блока ≥700 px: в одноколоночной
     сетке высота строки автоматическая, и процент от неё не разрешается */
  .prod__photo { height: auto; aspect-ratio: 4 / 3; }

  .band { padding: 96px 0; }
  .band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .band__actions { margin-top: 0; flex-shrink: 0; }

  .lead__grid { grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
}

/* ============================ ≥ 1240 px ============================ */
@media (min-width: 1240px) {
  .videos { grid-template-columns: repeat(3, 1fr); }
  .video--lead { grid-column: 1 / -1; }
}
