/* printer-pantum.ru — официальный дилер Pantum.
   ⚠️ Палитра НЕ общая для парка: сайт официального дилера идёт в гамме
   производителя (pantum.ru) — белый, графит/чёрный, серый и фирменный красный
   #d2232a. Снято с живого сайта 02.09.2026 (кнопки и активные точки — rgb(210,35,42),
   тёмные плашки — #333, серый текст — #64656a, рамки — #e0e0e1).
   Мягкая сине-графитовая гамма парка здесь намеренно не применяется.
   Mobile-first: базовые правила — телефон, медиа-запросы поднимают вверх. */

:root {
  --bg: #f5f5f6;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --ink: #1c1c1c;
  --muted: #64656a;
  --line: #e0e0e1;
  --brand: #262626;         /* тёмные секции, подвал */
  --brand-2: #333333;
  --accent: #d2232a;        /* фирменный красный Pantum */
  --accent-strong: #d2232a; /* ссылки и кнопки: контраст к белому 5,2 */
  --accent-hover: #b41d23;
  --accent-tint: #fdf0f0;
  /* Красный для тёмных подложек: фирменный #d2232a на графите даёт всего 2,4–3,2
     и читается как грязно-бордовый. Осветлённый вариант — 5,1 на #1f1f1f. */
  --accent-on-dark: #ff4d54;
  --ok: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .08), 0 20px 44px rgba(0, 0, 0, .12);
  --wrap: 1180px;
  --gap: clamp(16px, 4vw, 28px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Кривые движения: вход — ease-out (быстро стартует, мягко тормозит),
     уход — ease-in и короче входа примерно на четверть. */
  --ease-out-quint: cubic-bezier(.23, 1, .32, 1);
  --ease-out-cubic: cubic-bezier(.33, 1, .68, 1);
  --ease-in-cubic: cubic-bezier(.32, 0, .67, 0);
}

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

/* ⚠️ Обязательно: у .modal и .cookie задан display, а он сильнее встроенного
   правила [hidden] { display: none }. Без этой строки скрытая модалка остаётся
   растянутой на весь экран и перехватывает все клики — страница выглядит живой,
   но не нажимается ничего. Поймано прогоном Playwright на renz-shop.ru. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(28px, 6vw, 46px); }
h2 { font-size: clamp(23px, 4.4vw, 34px); }
h3 { font-size: clamp(18px, 2.6vw, 22px); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

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

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0 0 .6em;
}
.lede { font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 64ch; }

/* ─── Кнопки ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              transform .1s var(--ease-out-cubic);
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-tint); }
.btn-on-dark { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-tint); color: var(--brand); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:active { transform: scale(.97); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ─── Шапка ─────────────────────────────────────────────────────────────── */

/* Тень у шапки появляется только когда страница ушла вверх — на самом верху
   она лишняя (класс вешает site.js). */
.hdr { transition: box-shadow .2s var(--ease-out-cubic); }
.hdr.is-stuck { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
@media (prefers-reduced-motion: reduce) { .hdr { transition: none; } }

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: nowrap; }
.hdr-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.hdr-brand img { width: 92px; height: auto; }
.hdr-sep { width: 1px; height: 22px; background: var(--line); }
.hdr-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }

/* Кнопка «Отремонтировать» ведёт в квиз оценки ремонта (Андрей, 01.09.2026).
   Она и телефон прижаты вправо; на узких экранах кнопка прячется, чтобы
   шапка не ломалась на две строки — на мобильном ремонт есть в меню. */
.hdr-fix { order: 4; margin-left: 0; white-space: nowrap; flex-shrink: 0; }
/* До 1180px меню прячется в бургер: там кнопка «Отремонтировать» — пункт меню
   (`.nav-fix`), а в строке остаётся только телефон. */
@media (max-width: 939px) { .hdr-fix { display: none; } }
/* Специфичность: у `.nav a` уже задан display:flex — селектор без тега
   правило не перебивал (поймано замером 01.09.2026). */
@media (min-width: 940px) { .nav a.nav-fix { display: none; } }

/* Телефон — главная кнопка сайта: сюда звонят чаще, чем заполняют форму. */
.hdr-tel {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong);
  border: 1px solid transparent; transition: border-color .18s ease;
}
.hdr-tel:hover { border-color: var(--accent); color: var(--accent-strong); }
.hdr-tel small { opacity: 1 !important; }  /* Метрика оборачивает цифры в <small> */
.hdr-tel-i { display: flex; }

.burger {
  order: 3; margin-left: auto;
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.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 {
  order: 4; flex-basis: 100%; display: none; flex-direction: column;
  padding: 6px 0 14px; border-top: 1px solid var(--line); margin-top: 4px;
}
.nav.open { display: flex; }
.nav a {
  padding: 13px 4px; min-height: 44px; display: flex; align-items: center;
  text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line);
}
.nav a[aria-current] { color: var(--accent-strong); font-weight: 700; }
.nav .nav-fix { color: var(--accent-strong); font-weight: 700; }

/* Ниже 720px шапка не помещается в строку: логотип + подпись + телефон + бургер.
   Подпись убираем, телефон ужимаем — номер остаётся кликабельным. */
@media (max-width: 719px) {
  .hdr-sep, .hdr-name { display: none; }
  .hdr-brand img { width: 84px; }
  .hdr-row { gap: 8px; }
  .hdr-tel { font-size: 14px; letter-spacing: -.01em; padding: 8px 12px; }
}
@media (max-width: 379px) {
  .hdr-tel { font-size: 13px; padding: 8px 10px; }
  .hdr-tel-i { display: none; }
  .hdr-brand img { width: 74px; }
}

/* Пунктов меню было семь, стало четыре (01.09.2026) — в строку помещаются
   уже с 940px, вместе с кнопкой «Отремонтировать» и телефоном. */
@media (min-width: 940px) {
  .burger { display: none; }
  .nav { order: 2; display: flex; flex-direction: row; flex-basis: auto; align-items: center;
         gap: 2px; border: 0; margin: 0; padding: 0; }
  .nav a { border: 0; padding: 8px 9px; font-size: 14.5px; white-space: nowrap;
           border-radius: var(--radius-sm); }
  .nav a:hover { background: var(--accent-tint); }
  .hdr-tel { order: 5; margin-left: 12px; }
  .nav { margin-left: auto; }
  .hdr-brand img { width: 104px; }
}

/* ─── Секции ────────────────────────────────────────────────────────────── */

.section { padding: clamp(44px, 7vw, 86px) 0; }
.section-top { padding-top: clamp(24px, 3vw, 40px); }
/* Заголовок раздела идёт по ширине блока (Андрей, 01.09.2026): при 64ch он
   переносился на две строки, хотя карточки под ним занимали всю ширину.
   Читаемую ширину оставляем только пояснению под заголовком. */
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head .lede, .section-head > p { max-width: 64ch; }
.section-alt { background: var(--surface-2); }
.section-dark { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #bdbdbf; }
.section-dark .lede { color: #cfcfd1; }
.section-dark a { color: #e4e4e6; }
/* ⚠️ Правило выше красило и белую кнопку: на светлом фоне текст становился
   почти белым и пропадал (Андрей, 01.09.2026). Возвращаем тёмный. */
.section-dark a.btn-light, .hero a.btn-light { color: var(--brand); }

/* ─── Первый экран ──────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(155deg, #1f1f1f 0%, var(--brand) 45%, var(--brand-2) 100%);
  color: #fff; padding: clamp(28px, 4.2vw, 52px) 0 clamp(30px, 4.4vw, 56px);
  position: relative; overflow: hidden;
}
/* Мягкая «страница», выезжающая из-за первого экрана: намёк на отпечаток,
   без стоковой фотографии. Чисто декоративно, к содержанию отношения не имеет. */
.hero::after {
  content: ""; position: absolute; inset: auto -14% -50% auto; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(149, 173, 233, .26), transparent 68%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(26px, 5vw, 52px); align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lede { color: #cfcfd1; margin-bottom: 1.15em; max-width: 46ch; }
.hero-badge {
  display: inline-flex; align-items: center; margin-bottom: 14px;
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #e4e4e6; background: rgba(255, 255, 255, .07);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-marks { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
/* Плашка «Леком с 1992 года» вместо перечня под кнопками (Андрей, 01.09.2026).
   Файл собран из фирменного логотипа: assets/img/lekom-since-1992.png. */
/* Плашка «с 1992 года»: один короткий блик при загрузке. Полосу света ведём
   transform'ом, а форму плашки повторяем маской из той же картинки — иначе блик
   вылезал бы за скруглённые углы прямоугольником. */
/* ⚠️ width: min(...) и min-width: 0 у колонки — обязательны. У элемента сетки
   min-width по умолчанию auto, и жёсткие 431px растягивали всю текстовую колонку
   первого экрана: на 390px кнопка «Скачать драйвер» и сама плашка уезжали
   за край (поймано замером 02.09.2026). */
.hero-since { position: relative; display: block; margin: 26px 0 0;
  width: min(431px, 100%); overflow: hidden;
  -webkit-mask-image: url(/assets/img/lekom-since-1992.png);
  mask-image: url(/assets/img/lekom-since-1992.png);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hero-since img { display: block; width: 100%; height: auto; }
.hero-since { transition: transform .2s var(--ease-out-cubic); }
.hero-since:hover { transform: translateY(-2px); }
.hero-since:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-since { transition: none; } .hero-since:hover { transform: none; }
}
.hero-since-glint { position: absolute; top: -25%; bottom: -25%; left: -50%;
  width: 34%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%,
              rgba(255,255,255,.34) 35%, rgba(255,255,255,.92) 50%,
              rgba(255,255,255,.34) 65%, rgba(255,255,255,0) 100%);
  transform: translateX(0) skewX(-14deg);
  animation: pp-glint 6.5s cubic-bezier(.42, 0, .38, 1) .7s infinite backwards; }
/* Сам проезд занимает 15 % цикла (≈0,95 с), остальное — пауза: полоса ждёт
   за правым краем и в кадр не попадает, поэтому возврат в начало не виден. */
@keyframes pp-glint {
  0%   { transform: translateX(0) skewX(-14deg); }
  15%  { transform: translateX(420%) skewX(-14deg); }
  100% { transform: translateX(420%) skewX(-14deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-since-glint { display: none; } }
.hero-marks li { font-size: 14.5px; color: #cfcfd1; }
.hero-marks b { color: #fff; font-weight: 700; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: .92fr 1.08fr; }
  .hero-marks { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
}

/* ─── Первый экран: снимок аппарата ─────────────────────────────────────── */
/* Фотографии Pantum сняты на белом фоне — прозрачности у них нет. На тёмном
   градиенте голая картинка читалась как приклеенный белый прямоугольник,
   поэтому оформляем её карточкой: поля, скругление, мягкая тень. */

.hero-text { min-width: 0; }
.hero-figure { display: grid; place-items: center; }
.hero-figure::before {
  content: ""; grid-area: 1 / 1; width: min(112%, 600px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(163, 186, 240, .24), transparent 66%);
  border-radius: 50%;
}
.hero-figure img {
  grid-area: 1 / 1; position: relative;
  width: min(100%, 400px); height: auto; padding: clamp(18px, 3vw, 34px);
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 24px 44px rgba(11, 16, 30, .38);
}
/* Товар с вырезанным студийным фоном лежит прямо на секции: ни плашки,
   ни рамки — только собственная тень. */
.hero-figure img.cut {
  background: none; padding: 0; border-radius: 0; box-shadow: none;
  width: min(100%, 360px);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .5));
}

/* ─── Карточки ──────────────────────────────────────────────────────────── */

.cards { display: grid; gap: clamp(16px, 2.6vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .24s var(--ease-out-quint), border-color .24s var(--ease-out-quint),
              transform .24s var(--ease-out-quint);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #d6d6d8; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
/* Картинку держим в окне фиксированной пропорции: у товаров фотографии разной
   формы (1000×1000 и 529×336), и при height:100% окно подстраивалось под
   картинку — заголовки карточек в одном ряду разъезжались на 120 px
   (замерено 01.09.2026). Абсолютное позиционирование делает высоту жёсткой. */
.card-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(170deg, #fbfbfb, var(--surface-2));
  border-bottom: 1px solid var(--line);
}
.card-media img {
  position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px);
  object-fit: contain;
}
.card-media.cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-icon { width: 74px; height: 74px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  align-self: flex-start; margin-bottom: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--accent-tint); color: var(--accent-strong);
}
.card h3 { margin-bottom: .4em; font-size: 19px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }
.card-lead { font-size: 15px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-more { font-weight: 700; font-size: 15px; text-decoration: none; }
.card-price { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ─── Вопросы ───────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq details[open] { border-color: #d6d6d8; box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 18px 18px; color: var(--muted); font-size: 16px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ─── Шапка внутренней страницы ─────────────────────────────────────────── */

.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 6px; color: #b0b0b4; }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--muted); }

.pagehead { padding: clamp(20px, 3.4vw, 34px) 0 0; }
.pagehead h1 { margin-bottom: .35em; }
.pagehead .lede { margin-bottom: 0; }

/* ─── Текстовая страница ────────────────────────────────────────────────── */

.doc { max-width: 76ch; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: clamp(21px, 3vw, 27px); margin-top: 1.7em; }
.doc h3 { font-size: clamp(18px, 2.4vw, 21px); margin-top: 1.5em; }
.doc p { color: #333333; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1.2em; color: #333333; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--accent); }
.doc figure { margin: 1.8em 0; }
.doc figure img { border-radius: var(--radius); border: 1px solid var(--line); }
/* Врезка «результат» — выделяем то, что на старом сайте набрано капслоком. */
.doc .out {
  margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.doc .out p:last-child { margin-bottom: 0; }
.doc .out b { color: var(--brand); }

/* Плитка категорий — список из 12 видов техники со страницы «Оргтехника». */
.tiles { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tiles li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 17px; font-size: 15.5px; font-weight: 600; display: flex; gap: 10px; align-items: center;
}
.tiles li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
}

/* ─── Контакты ──────────────────────────────────────────────────────────── */

.offices { display: grid; gap: 16px; margin: 0 0 clamp(24px, 4vw, 38px); }
@media (min-width: 760px) { .offices { grid-template-columns: 1fr 1fr; } }
.office {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.office h2 { font-size: 21px; margin-bottom: .5em; }
.office p { margin: 0 0 .5em; font-size: 15.5px; color: var(--muted); }
.office p:last-child { margin-bottom: 0; }
.office .office-addr { color: var(--ink); font-weight: 600; font-size: 17px; }
.office a { font-weight: 600; }

.reqs {
  background: var(--surface-2); border-radius: var(--radius); padding: 22px 26px;
  font-size: 15.5px; color: var(--muted);
}
.reqs h2 { font-size: 19px; margin-bottom: .6em; color: var(--ink); }
.reqs p { margin: 0 0 .4em; }
.reqs p:last-child { margin-bottom: 0; }

/* ─── Форма ─────────────────────────────────────────────────────────────── */

.form-sec { background: var(--surface-2); }
.form-grid { display: grid; gap: clamp(24px, 4vw, 44px); }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.form-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.form-facts li { font-size: 15.5px; color: var(--muted); display: flex; gap: 10px; }
.form-facts li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}
.form-alt { margin-top: 22px; font-size: 15px; color: var(--muted); }

.lead-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3.4vw, 30px); box-shadow: var(--shadow);
}
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; }
.fld .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  font: 400 16px/1.5 var(--sans);  /* не меньше 16px — иначе iOS зумит страницу */
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fld textarea { resize: vertical; min-height: 92px; }
.fld input:focus, .fld textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: #a01319; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent-strong); }
.form-note { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; }
.form-note.ok { color: var(--ok); font-weight: 600; }
.form-note.err { color: #a01319; }

/* ─── Подвал ────────────────────────────────────────────────────────────── */

.ftr { background: var(--brand); color: #cfcfd1; padding: clamp(38px, 6vw, 62px) 0 26px; font-size: 15px; }
.ftr-grid { display: grid; gap: clamp(24px, 4vw, 36px); }
@media (min-width: 700px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
/* Пять колонок с 01.09.2026: из шапки убраны «Материалы», «Сертификаты»
   и «О Pantum» — они живут здесь. */
@media (min-width: 1000px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; } }
.ftr-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.ftr-col a { color: #cfcfd1; text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
.ftr-col a:hover { color: #fff; text-decoration: underline; }
.ftr-h { font-weight: 700; color: #fff; margin: 0 0 4px; font-size: 15px; }
.ftr-about { color: #a8a8ac; font-size: 14.5px; margin: 14px 0 0; max-width: 40ch; }
.ftr-soc { margin: 6px 0 0; }
.ftr-tel { font-weight: 700; font-size: 17px; color: #fff !important; }
.ftr-addr { color: #a8a8ac; margin: 0; font-size: 14.5px; }

.ftr-bottom {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.ftr-copy { margin: 0; font-size: 13.5px; color: #9a9a9e; }
/* Слоган — нейтральный серо-синий, не зелёный (решение 24.08.2026) */
.slogan {
  background: none; border: 0; cursor: pointer; padding: 6px 2px;
  font-family: Caveat, cursive; font-weight: 500; font-size: 25px; color: #c3c3c6;
}
.slogan:hover { color: #fff; }

/* ─── Cookie и модалка ──────────────────────────────────────────────────── */

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 18px;
}
.cookie p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.cookie .btn { flex: none; }
@media (min-width: 700px) { .cookie { left: auto; right: 20px; bottom: 20px; max-width: 430px; } }

.modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px;
  background: rgba(0, 0, 0, .55);
}
.modal-box {
  position: relative; width: min(100%, 460px); max-height: 84vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px;
}
.modal-x {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-h { font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.modal-p { color: var(--muted); font-size: 15px; }
#admin-pass {
  width: 100%; padding: 12px 14px; min-height: 48px; margin-bottom: 12px;
  font: 400 16px/1.5 var(--sans); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.admin-list li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.admin-list span { color: var(--muted); }
.admin-list b { font-weight: 600; text-align: right; }

/* ─── Появление блоков при прокрутке ────────────────────────────────────── */
/* Порог по доле блока не годится: длинный блок выше экрана 22% видимости
   не набирает и остаётся невидимым — только rootMargin. */
.reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .38s var(--ease-out-quint), transform .38s var(--ease-out-quint); }
.reveal.in { opacity: 1; transform: none; }

/* Карточки внутри блока въезжают друг за другом — «лесенкой», не все разом.
   Задержка маленькая: 60 мс на карточку, потолок шесть, иначе последние
   в длинной сетке ждут слишком долго. */
.reveal.in > .card, .reveal.in > .hit, .reveal.in > .office, .reveal.in > .review,
.reveal.in > .drv-item {
  /* `backwards`, а не `both`: с `both` анимация удерживает `transform: none`
     после завершения и перебивает подъём карточки при наведении — курсор
     наводишь, а ничего не происходит (поймано замером 01.09.2026). */
  animation: pp-rise .42s var(--ease-out-quint) backwards;
}
.reveal.in > :nth-child(1) { animation-delay: 0ms; }
.reveal.in > :nth-child(2) { animation-delay: 60ms; }
.reveal.in > :nth-child(3) { animation-delay: 120ms; }
.reveal.in > :nth-child(4) { animation-delay: 180ms; }
.reveal.in > :nth-child(5) { animation-delay: 240ms; }
.reveal.in > :nth-child(n+6) { animation-delay: 300ms; }

@keyframes pp-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in > * { animation: none; }
}

/* ─── Пальцем, а не мышью ───────────────────────────────────────────────── */
/* На телефоне всё, во что тыкают, должно быть не ниже 44px — иначе промах. */
/* Замер Playwright на 390px показал 34–36px у крошек, заголовков карточек
   и ссылок «Читать →» — палец мимо. Поднимаем до 44, вид на десктопе не трогаем. */
@media (max-width: 1179px) {
  .hdr-brand, .hdr-tel { min-height: 44px; display: inline-flex; align-items: center; }
  .btn-sm { min-height: 44px; }
  .ftr-col a { min-height: 44px; }
  .ftr-col { gap: 2px; }
  .cookie .btn { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs li { display: flex; align-items: center; }
  .card h3 a { display: flex; align-items: center; min-height: 44px; }
  .card-more { display: inline-flex; align-items: center; min-height: 44px; }
  .card-foot { align-items: center; }
  .office a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Иллюстрация в тёмной секции «Две модели обслуживания» */
.models-figure { margin-top: clamp(22px, 3vw, 32px); }
.models-figure img { width: min(100%, 340px); height: auto; }
@media (max-width: 939px) { .models-figure { display: none; } }

/* Иллюстрация в шапке внутренней страницы */
.pagehead-grid { display: grid; gap: clamp(20px, 3.4vw, 40px); align-items: center; }
@media (min-width: 900px) { .pagehead-grid { grid-template-columns: 1.2fr .8fr; } }
.pagehead-figure img { width: 100%; height: auto; }
@media (max-width: 899px) { .pagehead-figure { max-width: 320px; } }

/* ─── Хиты на главной ───────────────────────────────────────────────────── */

.hits { display: grid; gap: clamp(16px, 2.6vw, 24px); }
@media (min-width: 700px) { .hits { grid-template-columns: 1fr 1fr; } }
.hit {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.hit-media { flex: 0 0 108px; }
.hit-media img { width: 108px; height: 108px; object-fit: contain; }
.hit h3 { font-size: 19px; margin-bottom: .4em; }
.hit p { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.hit .card-more { font-weight: 700; font-size: 15px; text-decoration: none; }

/* ─── Драйверы ──────────────────────────────────────────────────────────── */
/* Их больше сотни, и на старом сайте они лежали постраничной лентой: чтобы
   найти свою модель, надо было листать. Поэтому поиск сверху и плотная сетка. */

.drv-teaser { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 940px) { .drv-teaser { grid-template-columns: .85fr 1.15fr; } }

.finder { max-width: 720px; margin: 0 auto clamp(22px, 3.4vw, 32px); }
.finder-label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
#find {
  width: 100%; padding: 12px 14px 12px 42px; min-height: 48px;
  font: 400 16px/1.5 var(--sans);   /* не меньше 16px — иначе iOS зумит страницу */
  color: var(--ink); background: #fff no-repeat 14px 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235a6374' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E");
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
#find:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  min-height: 34px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 var(--sans);
  /* Невыбранные фильтры — нейтрально-серые, как у производителя; красным
     горит только выбранный. С красной подложкой у всех разом рябило. */
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  transition: border-color .16s ease, background-color .16s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip[aria-pressed="true"] { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }
.finder-none { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

.drv-list { display: grid; gap: 10px; max-height: 560px; overflow: auto; padding-right: 4px; }
.drv-list.wide { max-height: none; overflow: visible; padding: 0; }
@media (min-width: 620px) { .drv-list.wide { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .drv-list.wide { grid-template-columns: repeat(3, 1fr); } }
.drv-item {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color .16s ease, box-shadow .16s ease;
}
.drv-item:hover { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.drv-item[hidden] { display: none !important; }
.drv-item-os {
  display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent-strong);
}
.drv-item-name { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.drv-item-meta { display: block; font-size: 13.5px; color: var(--muted); }

.drv-page { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 940px) { .drv-page { grid-template-columns: 1.25fr .75fr; } }
.drv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.drv-card h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: .7em; }
.drv-meta { display: grid; gap: 12px; margin: 0 0 26px; }
@media (min-width: 560px) { .drv-meta { grid-template-columns: repeat(3, 1fr); } }
.drv-meta div { border-top: 1px solid var(--line); padding-top: 11px; }
.drv-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.drv-meta dd { margin: 0; font-size: 17px; font-weight: 700; }
.dl { text-decoration: none; }
.dl-src { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.dl-none {
  margin: 0; padding: 15px 18px; border-radius: var(--radius-sm);
  background: #fff8ec; border: 1px solid #f3e2c4; color: #6b5426; font-size: 15px;
}
.drv-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.drv-side {
  background: var(--surface-2); border-radius: var(--radius); padding: 24px 26px;
  font-size: 15px; color: var(--muted);
}
.drv-side h2 { font-size: 19px; color: var(--ink); margin-bottom: .6em; }
.drv-side ol { padding-left: 1.2em; margin: 0 0 1em; }
.drv-side li { margin-bottom: .5em; }
.drv-side-links { font-weight: 600; }

/* ─── Товар ─────────────────────────────────────────────────────────────── */

.prod-sec { padding: clamp(20px, 4vw, 36px) 0 clamp(30px, 5vw, 56px); }
.prod { display: grid; gap: clamp(22px, 4vw, 44px); }
@media (min-width: 860px) { .prod { grid-template-columns: 1fr 1fr; align-items: start; } }
.prod-media {
  display: grid; gap: 12px;
  background: linear-gradient(170deg, #fff, var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.4vw, 24px);
}
.prod-media img { width: 100%; height: auto; object-fit: contain; }
.prod-main {
  border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%;
}
.prod-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.prod-thumb {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 6px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease;
}
.prod-thumb:hover { border-color: #d6d6d8; }
.prod-thumb.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Просмотр фото во весь экран */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0, 0, 0, .88); padding: clamp(16px, 4vw, 48px);
  animation: pp-fade-in .2s var(--ease-out-cubic) both;
}
/* Уход короче входа — так закрытие ощущается отзывчивым. */
.lightbox.is-closing { animation: pp-fade-out .15s var(--ease-in-cubic) both; }
.lightbox img { animation: pp-zoom-in .24s var(--ease-out-quint) both; }
.lightbox.is-closing img { animation: pp-zoom-out .15s var(--ease-in-cubic) both; }

@keyframes pp-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes pp-fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes pp-zoom-in  { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: none } }
@keyframes pp-zoom-out { from { opacity: 1; transform: none } to { opacity: 0; transform: scale(.98) } }

/* Смена кадра миниатюрой — короткий кроссфейд, без прыжка. */
.prod-main img { transition: opacity .18s var(--ease-out-cubic); }
.prod-main.is-swap img { opacity: 0; }

/* Фильтр каталога: показавшаяся карточка не появляется рывком. */
#cat-grid .card.just-shown { animation: pp-rise .3s var(--ease-out-quint) backwards; }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img, .lightbox.is-closing, .lightbox.is-closing img,
  #cat-grid .card.just-shown { animation: none; }
  .prod-main img { transition: none; }
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1100px); max-height: 86vh; width: auto; height: auto; }
.lightbox-close, .lightbox-nav {
  position: absolute; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 999px; cursor: pointer; font-size: 22px; line-height: 1;
  width: 46px; height: 46px; display: grid; place-items: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 559px) { .lightbox-nav { width: 40px; height: 40px; } }
.prod h1 { margin-bottom: .3em; }
.prod-lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); }
.prod-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.prod-price .price { font-size: clamp(28px, 5vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.prod-price .price-none { font-size: clamp(20px, 3vw, 26px); font-weight: 700; }
.prod-price .price-label { font-size: 14px; color: var(--muted); flex-basis: 100%; }
.prod-buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.prod-notice {
  margin: 22px 0 0; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font-size: 13.5px;
}
.fits { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.fits-h { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.fits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.fits li {
  padding: 4px 11px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface-2); color: var(--ink);
}

.spec-wrap { overflow-x: auto; }
.spec {
  width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-weight: 600; color: var(--muted); width: 42%; background: #fbfbfb; }
.spec td { font-weight: 600; }

/* ─── Сервис на главной ─────────────────────────────────────────────────── */

.serv-grid { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (min-width: 940px) { .serv-grid { grid-template-columns: 1.1fr .9fr; } }
/* Раньше справа стоял список услуг плашками — они читались как поля ввода
   (Андрей, 01.09.2026). Теперь там карта с адресом сервисного центра. */
.serv-map {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); overflow: hidden;
}
.serv-map iframe { display: block; width: 100%; height: 240px; border: 0; }
.serv-map-body { padding: 16px 20px 18px; }
.serv-map-body p { margin: 0 0 4px; font-size: 15px; color: #cfcfd1; }
.serv-map-body p b { color: #fff; }
.serv-map-body .serv-map-cta { margin-top: 12px; }

/* Пальцем, а не мышью */
@media (max-width: 1179px) {
  .chip { min-height: 44px; padding: 10px 15px; }
  .drv-item { padding: 15px 16px; }
  .hit .card-more { display: inline-flex; align-items: center; min-height: 44px; }
  .hit { flex-direction: column; }
  .hit-media { flex: none; }
}


/* ─── Карточки документов (сертификаты) ─────────────────────────────────── */

.doc-cards { display: grid; gap: 12px; max-width: 760px; }
.doc-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; color: inherit;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.doc-card:hover { box-shadow: var(--shadow-lg); border-color: #d6d6d8; }
.doc-ico {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 10px; background: #fdeaea; color: #a01319;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.doc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.doc-name { font-weight: 700; }
.doc-num { font-size: 14px; color: var(--muted); }
.doc-go { flex: none; font-weight: 700; color: var(--accent-strong); font-size: 15px; }
@media (max-width: 559px) { .doc-go { display: none; } }


/* ─── Первый экран: витрина из трёх аппаратов ───────────────────────────── */
/* Кадры в три четверти с вырезанным фоном стоят на «студийном полу»:
   мягкое световое пятно + эллипс тени. Позиции в процентах от сцены,
   поэтому композиция не рассыпается на планшете. Состав — HERO_STAGE
   в build.py; поменяете снимки — проверьте посадку. */

.stage {
  position: relative; grid-area: 1 / 1;      /* иначе ложится ПОД световой круг */
  /* Витрина крупнее колонки и заходит за правый край секции (Андрей,
     01.09.2026). Обрез делает `.hero { overflow: hidden }` — горизонтальной
     прокрутки не появляется. */
  width: min(116%, 820px); aspect-ratio: 4 / 3;
  justify-self: end; margin-right: clamp(-150px, -8vw, -50px);
}
.stage::before {                       /* световое пятно студии */
  content: ""; position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: 92%; height: 86%;
  background: radial-gradient(ellipse at 50% 40%, rgba(180, 200, 245, .30), transparent 66%);
  pointer-events: none;
}
.stage::after {                        /* тень-подложка под техникой */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 4%; height: 16%;
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 9, 18, .55), transparent 72%);
  filter: blur(9px); pointer-events: none;
}
.stage img.cut {
  position: absolute; width: auto; height: auto; background: none; padding: 0;
  border-radius: 0; box-shadow: none;
}
.stage img.stage-main {
  width: 68%; left: 18%; bottom: 13%; z-index: 3;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .55))
          drop-shadow(0 6px 6px rgba(0, 0, 0, .38));
}
.stage img.stage-back {
  width: 47%; left: 2%; bottom: 32%; z-index: 1; opacity: .96;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .45))
          drop-shadow(0 5px 5px rgba(0, 0, 0, .3));
}
.stage img.stage-front {
  width: 39%; right: -3%; bottom: 4%; z-index: 4;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55))
          drop-shadow(0 5px 5px rgba(0, 0, 0, .4));
}

@media (max-width: 899px) {
  .stage { aspect-ratio: 4 / 3; width: min(100%, 560px); }
  .stage img.stage-back { opacity: .9; }
}
@media (max-width: 519px) {
  /* На телефоне витрина съедала весь экран — оставляем два аппарата и меньше. */
  .stage { width: min(100%, 420px); aspect-ratio: 5 / 4; }
  .stage img.stage-back { display: none; }
  .stage img.stage-main { width: 72%; left: 6%; bottom: 18%; }
  .stage img.stage-front { width: 40%; right: 0; bottom: 6%; }
}


/* ─── Каталог на главной ────────────────────────────────────────────────── */

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 24px; }
.cat-chips .chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.cat-none { color: var(--muted); margin-top: 16px; }
.sec-more { margin-top: clamp(22px, 3vw, 32px); }


/* ─── Цитата коммерческого директора ───────────────────────────────────── */
/* Тот же блок, что на lekom.ru (`igor-quote-sec`): портрет и слова о том,
   зачем всё это. Стоит перед формой заявки — последним доводом. */

.quote-sec { padding-top: clamp(30px, 4vw, 44px); }
.quote {
  display: grid; gap: clamp(20px, 3vw, 34px); align-items: center; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px);
}
.quote blockquote {
  margin: 0; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; color: var(--ink);
}
.quote blockquote::before { content: "«"; }
.quote blockquote::after { content: "»"; }
.quote figcaption { margin-top: 18px; display: grid; gap: 3px; }
.quote figcaption b { font-size: 16px; }
.quote figcaption span { font-size: 14.5px; color: var(--muted); }
/* Портрет вертикальный (343×463): круг с обрезкой по центру срезал макушку
   и подбородок. Держим пропорцию кадра и кадрируем по верхней трети. */
.quote-photo img {
  width: 190px; height: 240px; border-radius: 14px; object-fit: cover;
  object-position: 50% 18%; background: var(--surface-2); margin-inline: auto;
}
@media (min-width: 760px) {
  .quote { grid-template-columns: 1fr auto; }
  .quote-photo { order: 2; }
  .quote-photo img { width: 220px; height: 280px; }
}


/* ─── Офисы на карте и отзывы ───────────────────────────────────────────── */

.offices { display: grid; gap: clamp(16px, 2.6vw, 24px); }
@media (min-width: 820px) {
  .offices { grid-template-columns: repeat(2, 1fr); }
  .offices-one { grid-template-columns: 1fr; }
  .offices-one .office { flex-direction: row; }
  .offices-one .office-map { flex: 0 0 46%; border-bottom: 0; border-right: 1px solid var(--line); }
  .offices-one .office-map iframe { height: 100%; min-height: 280px; }
}
.office {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.office-map { line-height: 0; border-bottom: 1px solid var(--line); }
.office-map iframe { display: block; width: 100%; border: 0; }
.office-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.office h3 { font-size: 18px; margin-bottom: .5em; }
.office-addr { font-weight: 600; margin-bottom: 6px; }
.office-meta, .office-note { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.office-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }

.reviews { display: grid; gap: clamp(16px, 2.6vw, 22px); }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px;
}
.review p { font-size: 15px; line-height: 1.55; margin: 0; }
.review-stars { color: #f0a500; letter-spacing: .08em; font-size: 15px; }
.review-author { margin-top: auto; font-weight: 700; font-size: 15px; }
.review-author span { display: block; font-weight: 400; font-size: 13.5px; color: var(--muted); }


/* ─── Врезка квиза ──────────────────────────────────────────────────────── */
/* Виджет сам подгоняет высоту через postMessage; здесь только рамка и фон,
   чтобы iframe не висел на голой странице. */

.quiz-embed {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(8px, 1.4vw, 16px); overflow: hidden;
}
.quiz-embed iframe { display: block; width: 100%; border: 0; }


/* ─── «Что ещё пригодится»: миниатюры ───────────────────────────────────── */

.prod-links { margin-top: 20px; }
.minis { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 520px) { .minis { grid-template-columns: repeat(2, 1fr); } }
.mini {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 8px 12px 8px 8px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mini:hover { border-color: #d6d6d8; box-shadow: var(--shadow); }
.mini-pic {
  flex: none; width: 58px; height: 46px; display: grid; place-items: center;
  background: var(--surface-2); border-radius: 6px; overflow: hidden;
}
.mini-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.mini-ico {
  flex: none; width: 58px; height: 46px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-strong);
  border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
}
.mini-b { display: grid; gap: 2px; min-width: 0; }
.mini-t { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.mini-p { font-size: 13.5px; color: var(--muted); }

/* ─── Плашка «подобрать картридж» (раздел «Драйверы») ────────────────────── */
.section-tight { padding-block: clamp(18px, 3vw, 28px); }
.pitch {
  display: grid; gap: 14px; align-items: center;
  padding: clamp(16px, 3vw, 22px) clamp(16px, 3vw, 24px);
  background: var(--accent-tint); border: 1px solid #f0cccd;
  border-radius: var(--radius);
}
.pitch-i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
  background: #fff; color: var(--accent-strong); border: 1px solid #f0cccd;
}
.pitch-h { margin: 0 0 4px; font-weight: 700; font-size: 17px; color: var(--ink); }
.pitch-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pitch-btn { justify-self: start; white-space: nowrap; }
@media (min-width: 760px) {
  .pitch { grid-template-columns: auto 1fr auto; gap: 18px; }
  .pitch-btn { justify-self: end; }
}

/* ─── «Как установить драйвер» — шаги и колонка помощи ───────────────────── */
.howto { display: grid; gap: clamp(18px, 3vw, 30px); }
.howto-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto-steps li {
  position: relative; padding: 0 0 0 46px; margin: 0 0 16px;
  color: var(--muted); font-size: 15.5px; line-height: 1.6;
}
.howto-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent-strong);
  border: 1px solid #f0cccd; font-weight: 700; font-size: 14px;
}
.howto-steps b { color: var(--ink); }
.howto-side {
  padding: clamp(16px, 3vw, 22px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.howto-h { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.howto-side ul { margin: 0; padding-left: 18px; }
.howto-side li { margin: 0 0 9px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.howto-note {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; line-height: 1.55;
}
@media (min-width: 900px) { .howto { grid-template-columns: 1.15fr .85fr; align-items: start; } }

/* Вторая строка заголовка первого экрана — фирменным красным (Андрей, 02.09.2026:
   «на первом блоке красного не хватает»). Перенос строки задан разметкой, чтобы
   красной была ровно одна строка, а не случайный кусок после переноса. */
.hero-accent { color: var(--accent-on-dark); }
@media (min-width: 561px) {
  /* Со своей строки — чтобы красной была ровно одна строка, а не случайный
     кусок после переноса. ⚠️ Именно display:block, а не <br> в разметке:
     на узком экране <br> пришлось бы прятать, и слова слипались без пробела. */
  .hero-accent { display: block; }
}

/* Кнопки первого экрана — красные, текст белый (Андрей, 02.09.2026).
   Главная сплошная, вторая обводкой того же красного: так обе читаются
   фирменным цветом, но остаётся понятно, какая главная.
   ⚠️ На графите сплошную заливку берём фирменную #d2232a (белый текст 5,2),
   а не осветлённую #ff4d54 — на ней белый текст даёт всего 3,3. */
.hero .btn-primary { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.hero .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline-red {
  background: transparent; color: #fff;
  border-color: var(--accent-on-dark);
}
.btn-outline-red:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
