/* =========================================================
   ЛИФТПРОМ — лендинг грузовых подъёмников
   Палитра снята с lift-prom.ru и logo.svg (см. CLAUDE.md §5)
   ========================================================= */

:root {
  --white:        #FFFFFF;
  --bg-soft:      #F4F8FD;
  --bg-callout:   #EAF2FC;
  --text:         #1A2233;
  --muted:        #5B6676;
  --blue:         #1C5FB0;
  --blue-dark:    #164C8E;
  --navy:         #16244C;
  /* Оранжевый взят из logo.svg (#EC691F). В брифе был указан #F39200 —
     если нужен тот оттенок, поменяйте две строки ниже. */
  --accent:       #EC691F;
  --accent-dark:  #D0551A;
  --border:       #E2E8F1;

  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 8px rgba(22, 36, 76, .06);
  --shadow:       0 8px 28px rgba(22, 36, 76, .10);
  --shadow-lg:    0 18px 46px rgba(22, 36, 76, .14);

  --header-h:     76px;
  --font-head:    "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text:    "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ------------------------- База ------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

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

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

/* якоря не уезжают под липкую шапку */
section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.icon {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0 0;
}
.note--center { text-align: center; max-width: 720px; margin-inline: auto; }

/* ------------------------- Кнопки ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, box-shadow .18s, transform .18s, border-color .18s;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(236, 105, 31, .28);
}
.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 10px 26px rgba(236, 105, 31, .38);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--navy); border-color: var(--blue); }

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

.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--blue-dark); }

/* ------------------------- Шапка ------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo { display: block; flex: 0 0 auto; line-height: 0; }
.logo__img { width: auto; height: 46px; }
.logo__img--light { display: none; }

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.header__phone:hover { color: var(--blue); text-decoration: none; }
.header__phone .icon { stroke: none; fill: currentColor; width: 18px; height: 18px; }

/* тёмная шапка при скролле */
.header.is-scrolled {
  background: var(--navy);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.header.is-scrolled .logo__img--dark { display: none; }
.header.is-scrolled .logo__img--light { display: block; }
.header.is-scrolled .nav__link,
.header.is-scrolled .header__phone { color: #fff; }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .header__phone:hover { color: #fff; opacity: .8; }
.header.is-scrolled .burger span { background: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s, background-color .25s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- Секции ------------------------- */
/* Вертикальные отступы завязаны и на ширину, и на высоту окна:
   на «низких» ноутбучных экранах блок целиком попадает в вид (правка №9) */
.section { padding: clamp(40px, 5.2vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(24px, 3.2vw, 44px);
  text-align: center;
}
.section__title { font-size: clamp(26px, 3.1vw, 40px); margin-bottom: 12px; }
.section__lead { font-size: clamp(15px, 1.2vw, 17px); color: var(--muted); margin: 0; }

/* ------------------------- Квиз Marquiz ------------------------- */
.quiz-embed {
  max-width: 1024px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.quiz-embed iframe { display: block; border: 0; width: 100%; }

/* ------------------------- Hero ------------------------- */
/* Первый экран: контент + изображение целиком помещаются в высоту окна
   (правки №1, №4, №5, №9). Отступ сверху минимальный — без «дыры» под шапкой.
   Секция занимает ровно остаток окна под шапкой (1px — её граница), поэтому
   следующая тёмная полоса с цифрами начинается точно за краем экрана и не
   торчит обрезанной. Содержимое центрируется по вертикали (grid + align-items). */
.hero {
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100svh - var(--header-h) - 1px);
  display: grid;
  align-items: center;
  padding: clamp(16px, 2.2vh, 40px) 0 clamp(24px, 3.4vh, 56px);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--bg-callout) 0%, rgba(234, 242, 252, 0) 60%),
    var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
}
.hero__title {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 12px;
}

/* Дескриптор — под заголовком, мелко (правка №2) */
.hero__meta {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero__trust {
  list-style: none;
  margin: 0 0 clamp(18px, 2.6vh, 28px);
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero__trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.hero__trust .icon { color: var(--blue); margin-top: 2px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 620px;
}
.hero__actions .btn { flex: 1 1 250px; }

.hero__phone-line {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.hero__phone-line a {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
}
.hero__phone-line a:hover { color: var(--blue); }

.hero__filter {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 clamp(16px, 2.4vh, 26px);
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-callout);
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
}
.hero__filter b { color: var(--text); }
.hero__filter .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; }

/* Изображение показываем целиком: ширина подстраивается под ограниченную высоту,
   поэтому кадр не обрезается и не выходит за первый экран (правка №4) */
.hero__media { display: flex; justify-content: center; align-items: center; }
.hero__media img {
  width: auto;
  max-width: 100%;
  /* высота ограничена и экраном, и разумным потолком — чтобы колонка с картинкой
     не была намного выше текстовой и над заголовком не появлялась «дыра» (правка №1) */
  max-height: min(calc(100vh - var(--header-h) - 120px), 620px);
  max-height: min(calc(100svh - var(--header-h) - 120px), 620px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------- Цифры ------------------------- */
.stats { background: var(--navy); color: #fff; padding: clamp(28px, 3.5vw, 44px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.stat__value b { font-weight: 800; color: #fff; }
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .7);
}

/* ------------------------- Карточки каталога ------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d7e2f0; }

/* фон белый: часть рендеров с непрозрачной белой подложкой */
.card__media {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px;
}
.card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

.badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__title { font-size: 21px; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.card__spec {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.card__cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.card__cta:hover { color: var(--accent-dark); }

.card--cta {
  justify-content: center;
  padding: 32px;
  background: var(--bg-callout);
  border-color: #d7e2f0;
  text-align: center;
}
.card--cta .card__text { margin-bottom: 22px; }
/* В трёхколоночной сетке типов подъёмников три штуки, поэтому карточка-CTA
   растягивается на всю ширину — иначе висит одна в ряду. */
@media (min-width: 901px) {
  .card--cta { grid-column: 1 / -1; }
}
.card__phone {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.card__phone:hover { color: var(--blue); }

/* ------------------------- Сферы применения ------------------------- */
.apps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.app {
  position: relative;
  grid-column: span 2;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy);
}
.app--wide { grid-column: span 3; }
.app img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s;
}
.app:hover img { transform: scale(1.04); }
.app figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 20px 18px;
  background: linear-gradient(to top, rgba(10, 18, 40, .92) 0%, rgba(10, 18, 40, .68) 45%, rgba(10, 18, 40, 0) 100%);
  color: #fff;
}
.app figcaption b {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}
.app figcaption span { display: block; font-size: 14px; color: rgba(255, 255, 255, .82); }

/* ------------------------- Преимущества ------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bg-callout);
  color: var(--blue);
}
.feature__icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__title { font-size: 18px; margin-bottom: 8px; }
.feature__text { font-size: 15px; color: var(--muted); margin: 0; }

/* CTA-полоса */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy) 0%, #1d3468 100%);
  color: #fff;
}
.cta-band__title { font-size: clamp(21px, 2.2vw, 27px); margin-bottom: 6px; color: #fff; }
.cta-band__text { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------- Характеристики ------------------------- */
.specs {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.specs__text .section__title { font-size: clamp(26px, 3vw, 38px); }
.specs__text .section__lead { margin-bottom: 26px; }

.specs__table dl {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { font-weight: 600; color: var(--text); }
.spec-row dd { margin: 0; color: var(--muted); }

/* ------------------------- О компании ------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about__list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  color: var(--muted);
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-callout) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C5FB0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.about__list b { color: var(--text); font-weight: 600; }

.docs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.doc {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  border: 1px dashed #c9d7ea;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

/* ------------------------- Видео с производства ------------------------- */
.video {
  max-width: 900px;
  margin: clamp(36px, 5vw, 60px) auto 0;
  text-align: center;
}
.video__title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}
.video__lead {
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 640px;
}

/* Фасад плеера: до клика — статичный кадр, iframe подставляется скриптом */
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.video__frame img,
.video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__frame img { object-fit: cover; }

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 20px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  background: linear-gradient(to top, rgba(10, 18, 40, .78) 0%, rgba(10, 18, 40, .28) 55%, rgba(10, 18, 40, .38) 100%);
  transition: background .25s;
}
.video__play:hover { background: rgba(10, 18, 40, .5); }
.video__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-lg);
  transition: transform .25s, background .25s;
}
.video__play-icon svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.video__play:hover .video__play-icon { transform: scale(1.07); background: var(--accent-dark); }
.video__play-text {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(10, 18, 40, .6);
}
.video__play-text b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}

/* ------------------------- Отзывы ------------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Превью письма — кнопка: открывает полный скан в модалке */
.review__scan {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  align-self: start;
  transition: box-shadow .2s, transform .2s;
}
.review__scan img { display: block; width: 100%; height: auto; }
.review__scan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: 0;
  transition: opacity .2s;
}
.review__scan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review__scan:hover::after { opacity: .55; }

.review__body { margin: 0; display: flex; flex-direction: column; }
.review__text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.review__meta { display: grid; gap: 2px; margin-top: auto; }
.review__org {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.review__who { font-size: 13px; color: var(--muted); }
.review__date { font-size: 13px; color: var(--blue); }

/* Модалка с полным сканом письма — стили лежат ниже, рядом с .modal__box:
   правила .modal__box идут дальше по файлу и перебили бы модификатор. */

/* ------------------------- Контакты ------------------------- */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}
.contacts__info {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contacts__item { display: grid; gap: 4px; }
.contacts__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.contacts__value {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
a.contacts__value:hover { color: var(--blue); }
.contacts__value--big { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.contacts__note { font-size: 14px; color: var(--muted); }
.contacts__note--link { color: var(--blue); text-decoration: none; }
.contacts__note--link:hover { text-decoration: underline; }

/* Карта: заглушка до клика, iframe виджета подставляется скриптом */
.map {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__stub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  color: var(--text);
  /* лёгкая «сетка кварталов», чтобы заглушка читалась как карта */
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 46px 100%,
    var(--bg-soft);
  transition: background-color .25s;
}
.map__stub:hover { background-color: var(--bg-callout); }
.map__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: var(--shadow);
}
.map__pin svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map__stub-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.map__stub-text { font-size: 14px; color: var(--muted); }

/* ------------------------- FAQ ------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  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;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq__answer { padding: 0 22px 20px; font-size: 15px; color: var(--muted); }

/* ------------------------- Формы ------------------------- */
.lead-form {
  padding: 24px;
  color: var(--text); /* важно: форма лежит на тёмной секции, наследование сбрасываем */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lead-form--solid { padding: clamp(24px, 3vw, 34px); }
.lead-form--solid .lead-form__title { margin-bottom: 20px; }
.lead-form__title { font-size: 22px; margin-bottom: 8px; color: var(--navy); }
.lead-form__note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.lead-form__alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.field__opt { color: var(--muted); font-weight: 400; }
.req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa5b4; }
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 95, 176, .14);
  outline: none;
}
.field.has-error input,
.field.has-error textarea { border-color: #d94a3d; }

.field__error {
  display: none;
  margin-top: 5px;
  font-size: 13px;
  color: #d94a3d;
}
.field__error.is-visible,
.field.has-error .field__error { display: block; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.consent.has-error { color: #d94a3d; }

/* Финальный блок заявки */
.lead {
  padding: clamp(56px, 7vw, 96px) 0;
  background: linear-gradient(140deg, var(--navy) 0%, #1b3163 60%, #24437f 100%);
  color: #fff;
}
.lead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.lead__title { font-size: clamp(27px, 3.2vw, 40px); color: #fff; margin-bottom: 16px; }
.lead__lead { color: rgba(255, 255, 255, .82); font-size: 17px; margin-bottom: 22px; }
.lead__benefits { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.lead__benefits li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .9);
}
.lead__benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 12px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EC691F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lead__phone {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: #fff;
}
.lead__phone:hover { color: #fff; text-decoration: underline; }
.lead__hours { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.lead__hours a { color: inherit; }

/* ------------------------- Подвал ------------------------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .78); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.footer__logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer__about { font-size: 14px; line-height: 1.6; margin: 0; }
.footer__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer__link {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, .78);
}
.footer__link:hover { color: #fff; }
.footer__link--big { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; }
.footer__link--inline { display: inline; margin: 0; text-decoration: underline; }
.footer__line { font-size: 14px; margin: 0 0 10px; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer__bottom p { margin: 0; }
.footer__muted { color: rgba(255, 255, 255, .55); }

/* ------------------------- Модалка «спасибо» ------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(12, 22, 46, .6); }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 36px 32px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop .22s ease-out;
}

/* Модалка с формой расчёта — текст слева, без внутренней рамки формы */
.modal__box--form { max-width: 480px; padding: 0; text-align: left; }
.lead-form--modal {
  padding: clamp(24px, 3vw, 32px);
  border: 0;
  box-shadow: none;
  border-radius: var(--radius);
}
/* Модалка с полным сканом благодарственного письма */
/* Ширину задаёт сам скан, а не модалка: иначе портретное письмо болталось бы
   в белом поле на всю ширину бокса, и крестик уезжал от края листа. */
.modal__box--letter {
  width: auto;
  max-width: min(760px, 94vw);
  padding: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}
.letter__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(760px, 94vw);
  max-height: 86vh;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
/* на прозрачной подложке крестик нужен на своём фоне — иначе теряется на скане */
.modal__box--letter .modal__close {
  top: -6px; right: -6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text);
}

@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 40px; height: 40px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }
.modal__icon { display: flex; justify-content: center; margin-bottom: 14px; }
.modal__icon svg {
  width: 56px; height: 56px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal__title { font-size: 24px; margin-bottom: 10px; }
.modal__text { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.modal__text--muted { font-size: 14px; margin-bottom: 22px; }

/* ------------------------- Анимация появления ------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .app img, .card, .btn { transition: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */

/* --- Низкие экраны ноутбуков (1366×768, 1440×900 и т.п.) ------------------
   Основная причина «блоки не помещаются»: вертикальные отступы и типографика
   были завязаны только на ширину окна. Здесь ужимаем их по высоте (правка №9). */
@media (min-width: 861px) and (max-height: 900px) {
  :root { --header-h: 68px; }
  .section { padding: clamp(32px, 4.4vh, 64px) 0; }
  .section__head { margin-bottom: clamp(20px, 3vh, 36px); }
  .section__title { font-size: clamp(24px, 3.4vh, 34px); }
  .hero__title { font-size: clamp(26px, 5vh, 44px); }
  .hero__trust { gap: 8px; }
  .hero__trust li { font-size: 14px; }
  .cards, .features, .apps { gap: 18px; }
  .card__body { padding: 18px 20px 20px; }
  .card__text { margin-bottom: 10px; }
  .feature { padding: 20px 20px; }
  .feature__icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .spec-row { padding: 11px 20px; }
  .lead { padding: clamp(32px, 4.4vh, 64px) 0; }
  .lead__lead { font-size: 16px; margin-bottom: 16px; }
  .lead__benefits { margin-bottom: 18px; }
  .faq__item summary { padding: 14px 20px; font-size: 16px; }
  .quiz-embed iframe { max-height: calc(100vh - var(--header-h) - 40px); }
}

@media (min-width: 861px) and (max-height: 760px) {
  .hero__meta { margin-bottom: 10px; font-size: 12px; }
  .hero__filter { padding: 9px 13px; font-size: 13px; }
  .hero__actions .btn { min-height: 48px; font-size: 15px; }
  .hero__phone-line { font-size: 14px; }
  .section { padding: clamp(28px, 4vh, 52px) 0; }
}

/* Шапка на ноутбучных ширинах (1280–1440): меню + телефон + CTA не влезали
   в строку и кнопка уезжала за край экрана (правка №9) */
@media (max-width: 1400px) {
  .header__inner { gap: 16px; }
  .nav { gap: 20px; }
  .nav__link { font-size: 14px; }
  .header__actions { gap: 10px; }
}
/* Номер сворачиваем в иконку только когда строка действительно переполняется */
@media (max-width: 1180px) {
  .header__phone span { display: none; }
  .header__phone { padding: 10px; }
  .header__phone .icon { width: 22px; height: 22px; }
}

@media (max-width: 1200px) {
  .nav { gap: 16px; }
  .nav__link { font-size: 13.5px; }
  .logo__img { height: 40px; }
}

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .specs { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .lead__inner { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .app, .app--wide { grid-column: span 1; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .map iframe { min-height: 340px; }
}

@media (max-width: 860px) {
  /* мобильное меню */
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .28s ease-out;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__link {
    padding: 14px 4px;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav__phone {
    display: block;
    padding: 16px 4px 4px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
  }
  .nav__cta { display: flex; margin-top: 14px; }
  .header.is-scrolled .nav__link { color: var(--text); }

  /* CTA переезжает в бургер-меню, чтобы шапка не переполнялась */
  .header__actions > .btn { display: none; }
  .header__inner { gap: 12px; }
  .header__phone { margin-left: auto; }

  /* на мобильном: сначала заголовок и кнопки, изображение — под ними */
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }
  .hero__content { order: 1; }
  .hero__media { order: 2; }
  .hero__media img { max-height: 46vh; }
  .hero__filter, .hero__actions { max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__trust { margin-bottom: 22px; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .logo__img { height: 38px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-row dt { font-size: 14px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .review { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .review__text { font-size: 14px; }
  .video__play-icon { width: 58px; height: 58px; }
  .video__play-icon svg { width: 24px; height: 24px; }
  .video__play-text { font-size: 15px; }
  .map, .map iframe { min-height: 300px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .lead-form { padding: 20px 18px; }
  .modal__box { padding: 30px 20px 26px; }
}
