/* =========================================================
   ЗПТМ — лендинг грузовых подъёмников
   Тёмный индустриальный минимализм, единственная тема (CLAUDE.md §6).
   Mobile-first: базовые правила — мобильные, медиазапросы только вверх.
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --bg:            #0B0E14;
  --bg-alt:        #0F131B;
  --surface:       #141924;
  --surface-2:     #1B2130;
  --border:        #232B3A;
  --border-strong: #313B4F;
  --text:          #E9EEF5;
  --text-2:        #98A4B8;
  --brand:         #2E6FE0;
  --brand-soft:    rgba(46, 111, 224, .14);
  --accent:        #F5A524;
  --accent-hover:  #FFB742;
  --panel-light:   #EDF1F6;
  --ok:            #35C08A;

  /* Синий бренда на тёмном фоне даёт 4.08:1 — этого хватает крупным
     заголовкам и иконкам, но не мелкому тексту. Для текстовых ссылок
     берём осветлённый оттенок: 7.4:1, уверенный AA. */
  --brand-text:    #6FA1F5;

  --radius:    10px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-h:  62px;

  --ff-head: 'Onest', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-text: 'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;           /* страховка от горизонтального скролла */
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 500; color: var(--text); }

.sprite { display: none; }

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

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 860px; }

.section {
  padding: 56px 0;
  scroll-margin-top: var(--header-h);
}
.section--alt { background: var(--bg-alt); }

.section__head { margin-bottom: 32px; }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }

.section__title { font-size: clamp(26px, 5.2vw, 40px); }
.section__sub {
  margin-top: 14px;
  max-width: 720px;
  color: var(--text-2);
  font-size: 16px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;              /* тап-зона ≥44px (CLAUDE.md §11) */
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #0B0E14;                /* тёмный текст на янтаре — контраст ~9:1 */
}
.btn--primary:hover { background: var(--accent-hover); }

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

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  font-size: 14px;
  min-height: 44px;
  padding: 10px 18px;
}
.btn--outline:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }

.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.header.is-scrolled {
  background: rgba(11, 14, 20, .96);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.header__logo { flex: 0 0 auto; margin-right: auto; }
.header__logo img { width: 129px; height: auto; }   /* совпадает с width/height в разметке */

.header__phone, .header__cta { display: none; }

.burger {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.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); }

/* Мобильное меню: выпадает из-под шапки */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.nav.is-open { display: flex; }
.nav__link, .nav__phone {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.nav__link:hover, .nav__phone:hover { color: var(--accent); text-decoration: none; }
.nav__phone { font-family: var(--ff-head); font-weight: 700; }
.nav__cta { margin-top: 12px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 48px;
  scroll-margin-top: var(--header-h);
}
/* Подложка-чертёж: реальный синий чертёж заказчика, обрезанный до чистой сетки.
   Заметно тусклый — это фон, а не картинка. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/blueprint-grid.jpg') center / cover no-repeat;
  opacity: .28;
  z-index: 0;
}
/* Синее свечение + растворение сетки к низу секции */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 72% 38%, var(--brand-soft), transparent 70%),
    linear-gradient(180deg, rgba(11,14,20,.55) 0%, rgba(11,14,20,.82) 62%, var(--bg) 100%);
  z-index: 0;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 32px; }

.hero__title { font-size: clamp(30px, 6.4vw, 48px); }
.hero__lead {
  margin-top: 18px;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-2);
  max-width: 620px;
}
.hero__lead b { color: var(--text); font-weight: 500; }

.trust {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.trust li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  color: var(--text-2);
}
.trust svg { color: var(--ok); margin-top: 4px; }

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.hero__note { margin-top: 14px; font-size: 13px; color: var(--text-2); }

.hero__visual { display: flex; justify-content: center; }
.hero__render {
  width: auto;
  max-height: 340px;
  filter: drop-shadow(0 0 46px rgba(46, 111, 224, .38));
}

/* ---------- Полоса цифр ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  padding: 20px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
/* Разделители только внутренние. Цифр пять — последний ряд неполный на всех
   брейкпоинтах кроме десктопного, поэтому правая граница завязана на «есть ли
   соседка справа» (:last-child), а не на кратность колонок. */
.stat:nth-child(odd):not(:last-child) { border-right: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; }

.stat__num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(20px, 5.4vw, 26px);
  letter-spacing: -.02em;
  color: var(--text);
}
.stat__num b { color: var(--accent); font-weight: 800; }
.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.35;
}

/* ---------- Каталог ---------- */
.cards { display: grid; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

/* Светлая «продуктовая» панель: рендеры приходят на белом фоне,
   на ней он сливается с подложкой и вырезать его не требуется (CLAUDE.md §6). */
.card__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  aspect-ratio: 16 / 11;
  /* без min-height:0 панель — флекс-элемент с min-height:auto, и собственная
     высота рендера перебивает aspect-ratio: панели в ряду разъезжаются */
  min-height: 0;
  padding: 18px;
  background: var(--panel-light);
}
.card__panel img { width: auto; max-height: 100%; object-fit: contain; }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 20px;
}
.card__title { font-size: 22px; }
.card__note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--brand-text);
}
.card__desc { margin-top: 12px; color: var(--text-2); font-size: 15px; }

.specs { margin: 18px 0 0; }
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.specs dt { color: var(--text-2); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }

/* Сценарий применения переехал сюда из отдельного блока «Сферы применения»:
   он полезнее рядом с типом оборудования, чем отдельной плиткой. Заодно это
   мягкий фильтр нецелевого трафика — сценарии только грузовые (CLAUDE.md §7). */
.card__use {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.card__cta { margin-top: 20px; align-self: start; }

/* ---------- Квиз ---------- */
.quiz__box {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  min-height: 420px;
}
.quiz__box[hidden] { display: none; }

.quiz__fallback {
  margin-top: 28px;
  padding: 28px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-2);
  font-size: 15px;
}
.quiz__fallback-actions {
  display: grid;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
@media (min-width: 560px) {
  .quiz__fallback-actions { grid-auto-flow: column; }
}

/* ---------- Почему ЗПТМ ---------- */
.why { display: grid; gap: 0; }
.why__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.why__item:last-child { border-bottom: 1px solid var(--border); }
.why__num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: -.02em;
}
.why__title { font-size: 19px; }
.why__body > p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

.safety {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.safety li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  color: var(--text-2);
}
.safety svg { color: var(--ok); margin-top: 4px; }

.prod {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.prod__title { font-size: 19px; }
.prod__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.prod__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-2);
}
.prod__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Отзывы ----------
   Три цитаты крупно + полоса сканов остальных писем: блок короткий,
   без карточек-списка и без счётчика писем (CLAUDE.md §5, §8.7). */
.reviews { display: grid; gap: 16px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius-lg);
}

.review__quote {
  margin: 0;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.review__quote::before { content: '«'; }
.review__quote::after  { content: '»'; }

.review__sign {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.review__org {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.review__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }

/* Полоса сканов: горизонтальная прокрутка на узких экранах, перенос — на широких */
.letters { margin-top: 28px; }
.letters__label { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }

.letters__strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.letter-chip {
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.letter-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.letter-chip img { display: block; width: auto; height: 96px; }

/* ---------- FAQ ---------- */
.faq { display: grid; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  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(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__item summary:hover { color: var(--accent); }

.faq__answer { padding-bottom: 20px; color: var(--text-2); font-size: 15px; max-width: 760px; }

/* ---------- Заявка и контакты ---------- */
.lead__grid { display: grid; gap: 32px; }
.lead__title { font-size: clamp(24px, 5vw, 34px); }
.lead__sub { margin-top: 12px; color: var(--text-2); }

.lead-form { margin-top: 24px; display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.req { color: var(--accent); }
.opt { color: var(--text-2); font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--ff-text);
  font-size: 16px;               /* 16px — иначе iOS зумит при фокусе */
  transition: border-color .18s ease, background-color .18s ease;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6C7891; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-2);
}
.field.has-error input, .field.has-error textarea { border-color: #E2574C; }

.error {
  display: none;
  font-size: 13px;
  color: #FF8B82;
}
.error.is-visible { display: block; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent .error { grid-column: 2; }
.consent.has-error span > a { color: #FF8B82; }

.contacts {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contacts__title { font-size: 19px; }
.contacts__list { display: grid; gap: 18px; margin-top: 18px; }
.contacts__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}
.contacts__list svg { color: var(--brand-text); margin-top: 3px; }
.contacts__label {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 2px;
}
.contacts__list a { color: var(--text); }
.contacts__list a:hover { color: var(--accent); }

.map {
  position: relative;
  margin-top: 20px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__stub {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  width: 100%; height: 100%;
  padding: 16px;
  background: var(--surface-2);
  border: 0;
  color: var(--text-2);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.map__stub:hover { color: var(--accent); background: #202839; }

/* ---------- Подвал ---------- */
.footer {
  padding: 44px 0 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__grid { display: grid; gap: 28px; }
.footer__brand img { width: 152px; height: auto; }
.footer__about { margin-top: 14px; font-size: 14px; color: var(--text-2); max-width: 380px; }

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__col p { font-size: 14px; color: var(--text-2); margin-bottom: 7px; }
.footer__col a { color: var(--text-2); }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: 32px;
  padding-block: 18px;
  border-top: 1px solid var(--border);
}
.footer__bottom p { font-size: 13px; color: var(--text-2); }

/* ---------- Липкая панель на мобильном ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 20, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.mobile-cta .btn { min-height: 46px; font-size: 14px; padding: 10px 12px; }
/* чтобы панель не перекрывала подвал */
body { padding-bottom: 72px; }

/* ---------- Модалки ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .72);
  backdrop-filter: blur(3px);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.modal__box--sm { max-width: 400px; text-align: center; }
.modal__box--wide { max-width: 860px; padding: 44px 16px 16px; }

.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
}
.modal__close:hover { background: var(--surface-2); color: var(--text); }

.modal__title { font-size: 23px; padding-right: 32px; }
.modal__box--sm .modal__title { padding-right: 0; }
.modal__sub { margin-top: 10px; font-size: 14px; color: var(--text-2); }

.thanks { display: grid; justify-items: center; gap: 12px; }
.thanks__mark {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(53, 192, 138, .14);
  color: var(--ok);
}
.thanks p { color: var(--text-2); font-size: 15px; }
.thanks__phone a { color: var(--accent); font-weight: 500; }
.thanks .btn { margin-top: 6px; }

.letter__img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Появление блоков ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }


/* =========================================================
   ≥ 560px — плитки в две колонки
   ========================================================= */
@media (min-width: 560px) {
  /* 3 колонки: ряды 1–3 и 4–5 */
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:not(:nth-child(3n)):not(:last-child) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
}


/* =========================================================
   ≥ 768px — каталог 2×2, липкая панель больше не нужна
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 74px; }

  .container { padding: 0 32px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }

  .hero { padding: 64px 0 72px; }
  .hero__render { max-height: 420px; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card__body { padding: 26px 24px 24px; }

  /* Цитат три — на планшете они остаются в колонку, полоса сканов переносится
     в стену вместо горизонтальной прокрутки */
  .letters__strip { flex-wrap: wrap; overflow-x: visible; gap: 12px; }
  .letter-chip img { height: 110px; }

  .why__item { grid-template-columns: 72px 1fr; gap: 24px; padding: 28px 0; }
  .why__num { font-size: 28px; }
  .why__title { font-size: 21px; }

  .prod { padding: 32px; }
  .prod__list { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }

  .contacts { padding: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .mobile-cta { display: none; }
  body { padding-bottom: 0; }

  .modal__box { padding: 36px 32px 32px; }
}


/* =========================================================
   ≥ 1024px — десктоп: две колонки в hero и в блоке заявки
   ========================================================= */
@media (min-width: 1024px) {
  .header__logo { margin-right: 32px; }
  .burger { display: none; }

  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    margin-right: auto;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav__link {
    min-height: auto;
    border: 0;
    font-size: 15px;
    color: var(--text-2);
  }
  .nav__link:hover { color: var(--text); }
  .nav__phone, .nav__cta { display: none; }

  .header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    white-space: nowrap;
  }
  .header__phone:hover { color: var(--accent); text-decoration: none; }
  .header__phone svg { color: var(--brand-text); }
  .header__cta { display: inline-flex; min-height: 44px; padding: 11px 20px; }

  .hero { padding: 80px 0 88px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 48px;
  }
  .hero__render { max-height: min(560px, 62vh); }

  /* 5 колонок: все цифры в один ряд */
  .stats__grid { grid-template-columns: repeat(5, 1fr); }
  .stat { border-bottom: 0; border-right: 0; padding: 26px 10px; }
  .stat:not(:last-child) { border-right: 1px solid var(--border); }

  .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  /* 100px по высоте — все сканы укладываются в одну строку на 1200px контейнере */
  .letter-chip img { height: 100px; }

  .lead__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }

  .faq__item summary { font-size: 18px; padding: 22px 0; }
}


/* =========================================================
   ≥ 1240px — только запас по воздуху
   ========================================================= */
@media (min-width: 1240px) {
  .section { padding: 88px 0; }
  .hero { padding: 92px 0 100px; }
}
