/*
  Параметры сняты с референса Lightspeed (lightspeedhq.com/pos/retail):
  текст rgb(25,21,19), фон первого экрана rgb(246,244,243), акцент rgb(232,28,28),
  кнопки 60px / радиус 30px / 18px bold, H2 34px medium по центру, текст 18px/1.4,
  карточки с рамкой 1px и радиусом 8px; коллажи из вырезанных фото и кусочков интерфейса.
  Шрифт у них FF Real Text (платный) — здесь Golos Text как ближайший с кириллицей.
*/

/* Golos Text (SIL OFL 1.1, лицензия в assets/fonts/OFL.txt). Вариативный файл: один на все начертания 400–700.
   latin-ext нужен ради знака ₽ (U+20BD). */
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #191513;
  --muted: #5e5855;
  --grey: #f6f4f3;
  --plate: #e9e5e2;
  --line: #e4e0dd;
  --red: #e81c1c;
  --red-dark: #c41414;
  --draft: #ffe27a;
  --ui-shadow: 0 2px 4px rgba(25, 21, 19, .06), 0 10px 28px rgba(25, 21, 19, .12);
  --font: "Golos Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 18px/1.400 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(1000px, 100% - 48px); }
.center { text-align: center; margin-inline: auto; }

h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(34px, 3.500vw, 48px); line-height: 1.160; font-weight: 500; letter-spacing: -.012em; }
h2 { font-size: clamp(26px, 2.500vw, 35px); line-height: 1.280; font-weight: 500; letter-spacing: -.008em; max-width: 24em; }
h3 { font-size: 20px; line-height: 1.300; font-weight: 500; }
.lead { margin-top: 24px; max-width: 40em; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }

/* ───────── Кнопки и ссылки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 232px; height: 60px; padding: 0 24px;
  border: 2px solid var(--red); border-radius: 30px; background: var(--red); color: #fff;
  font-size: 18px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--sm { min-width: 0; height: 36px; padding: 0 18px; font-size: 14px; letter-spacing: 0; }
.btn--block { width: 100%; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; }
.more::after { content: ""; width: 8px; height: 8px; border-right: 2.500px solid; border-top: 2.500px solid; rotate: 45deg; transition: translate .15s; }
.more:hover::after { translate: 4px 0; }
.more--dark { color: var(--ink); }

/* ───────── Кирпичики коллажей: белая карточка интерфейса и квадратная кнопка ───────── */
.ui { background: #fff; border-radius: 8px; box-shadow: var(--ui-shadow); padding: 12px 14px; }
.ui i { display: block; height: 6px; border-radius: 3px; background: #ddd8d4; }
.ui i + i { margin-top: 8px; }
.ui small { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; line-height: 1.200; color: var(--muted); }
.sq { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: #fff; flex: none; }
.sq svg { width: 22px; height: 22px; }
.sq--red { background: var(--red); }
.sq--sm { width: 28px; height: 28px; border-radius: 6px; }
.sq--sm svg { width: 16px; height: 16px; }
.bar { height: 8px; border-radius: 4px; background: #e6e1dd; overflow: hidden; }
.bar span { display: block; width: 88%; height: 100%; background: var(--red); border-radius: 4px; }
/* фото товара на белом фоне: multiply убирает белый, получается «вырезанный» объект */
.cut { position: absolute; max-width: none; mix-blend-mode: multiply; }
.cut--plain { mix-blend-mode: normal; }
/* фото с настоящим прозрачным фоном: без смешивания, с мягкой тенью под объектом */
.cut--real { mix-blend-mode: normal; height: auto; filter: drop-shadow(0 22px 26px rgba(25, 21, 19, .2)); }

/* ───────── Шапка: белая полоса + чёрная полоса разделов ───────── */
.top { position: sticky; top: 0; z-index: 20; }
.header { background: #fff; }
.header__in { display: flex; align-items: center; gap: 28px; height: 68px; font-size: 14px; }
.logo { font-size: 25px; font-weight: 700; letter-spacing: -.03em; margin-right: 12px; }
.header__meta { font-weight: 600; }
.header__status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; }
.header__status i { width: 8px; height: 8px; border-radius: 50%; background: #b3aca8; }
.header__status.is-open i { background: #1f9d55; }
.header__phone { margin-left: auto; color: var(--red); font-size: 15px; font-weight: 700; white-space: nowrap; }
.subnav { background: var(--ink); color: #fff; }
.subnav__in { display: flex; justify-content: center; gap: 40px; height: 56px; align-items: center; font-size: 14px; font-weight: 500; }
.subnav a { opacity: .78; }
.subnav a:hover { opacity: 1; }
/* кнопка меню и кнопка внутри меню нужны только на телефоне */
.menu-btn, .subnav__cta { display: none; }
.menu-btn { position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; width: 22px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .2s, background .2s; }
.menu-btn span { left: 11px; top: 21px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.is-menu-open .menu-btn span { background: transparent; }
.is-menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.is-menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ───────── Первый экран: объекты вылезают за плашку ───────── */
.hero { background: var(--grey); padding: 84px 0 96px; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.hero h1 { margin-top: 28px; }
.hero__text { margin-top: 32px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__media { position: relative; aspect-ratio: 1.240; }
/* касса вырезана и выходит за левый и нижний край плашки, как терминал у Lightspeed */
.hero__panel { position: absolute; inset: 0 0 6% 7%; border-radius: 26px; background: var(--plate); }
.hero__kkt { left: -9%; bottom: -3%; width: 84%; height: auto; }
.hero__fn { right: -2%; bottom: -6%; width: 25%; }
.hero__card { position: absolute; right: 5%; top: 7%; padding: 16px 20px; }
.hero__card small { font-size: 13px; margin-bottom: 6px; }
.hero__card b { font-size: 26px; line-height: 1.100; font-weight: 500; letter-spacing: -.02em; margin-right: 8px; }
.hero__card s { font-size: 14px; color: var(--muted); }

/* ───────── Секции ───────── */
.section { padding: 100px 0; }
.section--tight { padding-top: 20px; }
.section--stats { padding: 72px 0 80px; }
.section--grey { background: var(--grey); }

/* ───────── Цифры ───────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.stats li { display: flex; flex-direction: column; min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.stats b { font-size: 46px; line-height: 1.100; font-weight: 500; letter-spacing: -.02em; }
.stats span { margin-top: auto; padding-top: 24px; font-size: 16px; max-width: 17em; }

/* ───────── Тёмная секция со свечением ───────── */
.band { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 84px 0 72px; text-align: center; }
.band h2 { max-width: none; }
.band > .wrap > p { margin: 32px auto 32px; font-weight: 500; }
/* плашка с градиентом внутри сетки, предмет вылезает за её верхний край */
.band__art { position: relative; height: 430px; margin-top: 40px; }
.band__glow { position: absolute; inset: 96px 0 0; border-radius: 10px; overflow: hidden; background: #2a2421; }
.band__glow::before {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(44% 90% at 12% 58%, rgb(74, 132, 190), transparent 72%),
    radial-gradient(40% 95% at 58% 82%, rgb(232, 28, 28), transparent 72%),
    radial-gradient(32% 80% at 92% 62%, rgba(214, 226, 240, .95), transparent 70%);
  filter: blur(30px);
}
.band__fn { position: absolute; left: 50%; top: 0; width: 290px; height: auto; translate: -50% 0; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .45)); }
.band__pill { position: absolute; left: calc(50% + 134px); top: 160px; padding: 12px 22px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 30px; background: rgba(25, 21, 19, .55); backdrop-filter: blur(8px); font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.band__card { position: absolute; left: calc(50% - 360px); top: 214px; width: 250px; padding: 22px 24px; text-align: left; color: var(--ink); }
.band__card small { font-size: 14px; margin-bottom: 12px; }
.band__card .bar { height: 10px; border-radius: 5px; }
.band__card em { display: block; margin-top: 12px; font-style: normal; font-size: 20px; font-weight: 600; color: var(--red); }

/* ───────── Фото с накладкой + текст ───────── */
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split__media { position: relative; border-radius: 6px; aspect-ratio: 1.420; }
.split__media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.split__media--plate { background: var(--plate); border-radius: 10px; }
.split__media > .split__kkt { right: -5%; bottom: -9%; width: 64%; height: auto; border-radius: 0; }
.overlay { position: absolute; }
.overlay--list { left: 7%; top: 12%; display: grid; gap: 14px; padding: 20px 22px; font-size: 15px; font-weight: 600; }
.overlay--list li { display: flex; align-items: center; gap: 12px; }
.overlay--chat { right: 6%; top: 14%; width: 230px; padding: 16px; font-size: 14px; }
.overlay--chat b { display: block; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: -.02em; }
.overlay--chat p { margin: 12px 0; font-weight: 500; }
.overlay--chat span { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: #9a938f; }
.chip { display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--grey); font-size: 15px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.split .chip + h2 { margin-top: 36px; }
.split__lead { margin-top: 28px; }
.points { margin: 24px 0 32px; display: grid; gap: 22px; }
.points dt { font-weight: 700; }

/* ───────── Списки с галочками и разделителями ───────── */
.list { border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.list svg { width: 18px; height: 18px; flex: none; }
.list li > span { flex: 1; }
.list li > b { font-weight: 600; white-space: nowrap; }
.list--plain { margin: 28px 0 36px; }
.list--plain b { font-weight: 700; }

/* ───────── Цены: три колонки ───────── */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; margin-top: 72px; }
.duo { width: 96px; height: 75px; margin-bottom: 36px; }
.cols article > p { margin-top: 18px; min-height: 2.800em; }
.cols .list { margin: 20px 0 32px; }

.brands__title { margin-top: 110px; text-align: center; font-size: 17px; font-weight: 600; }
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; width: min(1100px, 100%); margin: 36px auto 0; }
.brands li { display: grid; place-items: center; height: 92px; border: 1px solid var(--line); border-radius: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.brands li:nth-child(2) { font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: 17px; }
.brands li:nth-child(4) { font-weight: 600; font-style: italic; }

/* ───────── Шесть коллажей ───────── */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 80px; margin-top: 64px; }
.feats h3 { margin-top: 36px; }
.feats p { margin: 18px 0 24px; max-width: 19em; }
.art { position: relative; height: 250px; }
.art > * { position: absolute; }
.art__base { border-radius: 10px; background: var(--plate); }
.art__base--dark { background: #2b2623; }
.art__photo { overflow: hidden; }
.art__photo img { width: 100%; height: 100%; object-fit: cover; }
.art__matrix { color: #fff; aspect-ratio: 1; }
.art .ui { padding: 14px; }
.ui--doc b { display: block; margin-bottom: 14px; font-size: 11px; line-height: 1.250; font-weight: 600; }
.ui--doc .num { position: absolute; left: 14px; bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ui--receipt { border-radius: 4px 4px 0 0; padding-top: 22px; }
.ui--receipt .qr { position: absolute; left: 14px; bottom: 18px; width: 52px; height: 52px; }
.art .ui--label { padding: 12px; }
.ui--label svg { display: block; width: 100%; aspect-ratio: 1; color: var(--ink); }
.ui--row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ui--row i { flex: 1; }
.ui--row .ico { width: 20px; height: 20px; flex: none; }
.ui--chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.ui--chart .sq { align-self: flex-start; margin-right: 4px; }
.ui--chart em { flex: 1; background: var(--ink); border-radius: 1px; }

/* ───────── Оборудование ───────── */
/* minmax(0, …): иначе фото с заданной высотой и пропорциями распирает колонку на узком экране */
.goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.goods article { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.goods__pic { height: 220px; margin-bottom: 24px; }
.goods__pic img { width: 100%; height: 100%; object-fit: contain; }
.goods article > p { margin-top: 10px; font-size: 16px; }
.goods .goods__price { margin: auto 0 16px; padding-top: 24px; }
.goods__price b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-right: 10px; }
.goods__price s { color: var(--muted); }

/* ───────── Вопросы: рамки и чёрная квадратная кнопка ───────── */
.faq { margin-top: 48px; display: grid; gap: 22px; }
details { border: 1px solid var(--line); border-radius: 6px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px 16px 24px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .sq { transition: rotate .2s; }
details[open] summary .sq { rotate: 180deg; }
details p { padding: 4px 80px 24px 24px; }

/* ───────── Заявка ───────── */
.request__in { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: start; }
.contacts { margin-top: 40px; border-top: 1px solid #d9d4d0; }
.contacts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 16px 4px; border-bottom: 1px solid #d9d4d0; font-size: 16px; }
.contacts dt { color: var(--muted); }
.contacts a { font-weight: 700; }
.contacts a:hover { color: var(--red); }

.form { display: grid; gap: 18px; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form label i { font-style: normal; font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #c9c3bf; border-radius: 4px; background: #fff; font-size: 16px; font-weight: 400; }
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.form__err { color: var(--red); font-weight: 500; }
.form__err a { color: inherit; text-decoration: underline; white-space: nowrap; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* ловушка для ботов */
.form .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; line-height: 1.400; color: var(--muted); cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--red); }
.form .check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form .check a:hover { color: var(--red); }
.form[hidden] { display: none; }
.form--done { padding: 56px 36px; }
.form--done h3 { font-size: 28px; }
.form--done a { color: var(--red); font-weight: 700; white-space: nowrap; }

/* ───────── Подвал ───────── */
.footer { padding: 40px 0; background: var(--ink); color: #b8b1ad; font-size: 14px; }
.footer__in { display: flex; align-items: center; gap: 40px; }
.footer b { color: #fff; font-size: 16px; }
.footer nav { display: flex; gap: 28px; margin-left: auto; }
.footer a:hover { color: #fff; }
.footer__legal { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 12px; font-size: 13px; line-height: 1.500; color: #958e8a; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Страница документа (политика, согласие) ───────── */
.doc { padding: 72px 0 100px; }
.doc .wrap { width: min(820px, 100% - 48px); }
.doc h1 { font-size: clamp(28px, 3vw, 40px); }
.doc__meta { margin-top: 16px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 56px; font-size: 24px; max-width: none; }
.doc p, .doc ul { margin-top: 16px; font-size: 17px; line-height: 1.550; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.doc a.btn { color: #fff; text-decoration: none; }
.nowrap { white-space: nowrap; }
.doc .eyebrow + h1 { margin-top: 20px; }
.doc table { margin-top: 20px; width: 100%; border-collapse: collapse; font-size: 16px; }
.doc td { padding: 12px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 1px solid var(--line); }
.doc td:first-child { width: 220px; color: var(--muted); }

/* ───────── Страницы услуг (собираются tools/build.mjs) ───────── */
.subnav a[aria-current] { opacity: 1; font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; }
.crumbs a:hover { color: var(--red); }
.svc-hero .hero__copy .eyebrow { margin: 0; }
.svc-hero__art { height: 420px; }
.svc-hero__art .ui { padding: 18px; }
.svc-hero__art .ui small { font-size: 13px; }
.two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.two .lead { margin-top: 20px; }
.two > div > .list--plain { margin: 32px 0 0; }
.points--rows { margin: 0; gap: 0; border-top: 1px solid var(--line); }
.points--rows > div { padding: 20px 4px; border-bottom: 1px solid var(--line); }
.points--rows dd { margin-top: 6px; font-size: 16px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; counter-reset: step; }
.steps li { padding: 28px; border: 1px solid var(--line); border-radius: 8px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; }
.steps li:last-child::before { background: var(--red); }
.steps p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.price-card { padding: 36px; border: 1px solid var(--line); border-radius: 8px; }
.price-card .list { margin: 20px 0 0; }
.price-card__note { margin: 20px 0 28px; font-size: 14px; color: var(--muted); }
.prose { max-width: 820px; }
.prose p { margin-top: 18px; }
.prose h2 + p { margin-top: 24px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.goods--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(820px, 100%); margin-inline: auto; }
.goods--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.goods--4 article { padding: 24px; }
.goods--4 .goods__pic { height: 180px; }
.goods article > p + .more { margin-top: auto; padding-top: 20px; }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.related a { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s; }
.related a:hover { border-color: var(--ink); }
.related b { font-size: 19px; font-weight: 500; }
.related span { font-size: 15px; color: var(--muted); }
.related .more { margin-top: auto; padding-top: 8px; font-style: normal; }
.brands a:hover { color: var(--red); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 14px; }

.dock { display: none; }

/* ───────── Подсветка черновых значений: ?draft в адресе ───────── */
.show-draft [data-draft] { background: var(--draft); color: var(--ink); box-shadow: 0 0 0 3px var(--draft); }
.show-draft [data-stock] { outline: 6px solid var(--draft); outline-offset: -6px; }

/* ───────── Адаптив ───────── */
@media (max-width: 1100px) {
  .header__meta:not(.header__status) { display: none; }
  .hero__in, .split { gap: 48px; }
  .cols, .feats { gap: 56px 40px; }
  .request__in { grid-template-columns: 1fr; gap: 48px; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .band__card { left: calc(50% - 320px); width: 220px; }
  .subnav__in { gap: 24px; }
  .two { gap: 48px; }
  .steps, .related, .goods--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 17px; padding-bottom: 76px; }
  .wrap, .wrap--narrow { width: calc(100% - 40px); }
  .header__status, .header .btn { display: none; }
  /* меню как у Lightspeed на телефоне: белая панель под шапкой, крупные пункты с разделителями */
  .menu-btn { display: block; }
  .subnav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
  .is-menu-open .subnav { display: block; }
  /* затемнение страницы под меню; тап по нему закрывает меню (см. main.js) */
  .is-menu-open::after { content: ""; position: fixed; inset: 60px 0 0; z-index: -1; background: rgba(25, 21, 19, .45); }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .dock { display: none; }
  .subnav__in { flex-direction: column; align-items: stretch; gap: 0; height: auto; padding: 4px 0 24px; font-size: 18px; }
  .subnav a:not(.subnav__cta) { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--line); opacity: 1; }
  .subnav a:not(.subnav__cta)::after { content: ""; width: 8px; height: 8px; border-right: 2px solid; border-top: 2px solid; rotate: 45deg; margin-right: 4px; }
  .subnav a[aria-current] { color: var(--red); }
  .subnav .subnav__cta { display: flex; margin-top: 24px; opacity: 1; }
  .header__in { gap: 14px; }
  .logo { white-space: nowrap; margin-right: 0; }
  .header { border-bottom: 1px solid var(--line); }
  .header__in { height: 60px; }
  .logo { font-size: 22px; }
  .hero { padding: 40px 0 56px; }
  .hero__in, .split, .split--rev { grid-template-columns: 1fr; gap: 40px; }
  .eyebrow, .chip { font-size: 13px; letter-spacing: .2em; }
  .hero h1 { margin-top: 20px; }
  .hero__text { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__media { margin-left: 4%; }
  .hero__card { padding: 12px 16px; }
  .hero__card b { font-size: 22px; }
  .btn { min-width: 0; width: 100%; height: 56px; }
  .section { padding: 64px 0; }
  .section--tight { padding-top: 8px; }
  .section--stats { padding: 56px 0; }
  .stats, .cols, .goods, .feats { grid-template-columns: minmax(0, 1fr); }
  .stats { margin-top: 32px; gap: 16px; }
  .stats li { min-height: 0; padding: 24px; }
  .stats b { font-size: 38px; }
  .stats span { padding-top: 16px; }
  .band { padding: 56px 0 48px; }
  .band h2 br { display: none; }
  .band__art { height: 330px; margin-top: 28px; }
  .band__glow { top: 72px; }
  .band__fn { width: 170px; left: 62%; }
  .band__pill { left: auto; right: 4%; top: auto; bottom: 20px; padding: 9px 16px; font-size: 13px; }
  .band__card { left: 4%; top: 150px; width: 190px; padding: 16px 18px; }
  .band__card small { font-size: 12px; margin-bottom: 10px; }
  .band__card em { font-size: 17px; }
  .split--rev .split__media { order: -1; }
  .split .chip + h2 { margin-top: 24px; }
  .overlay--chat { width: 190px; padding: 12px; font-size: 13px; }
  .overlay--list { padding: 14px 16px; gap: 10px; font-size: 14px; }
  .cols { margin-top: 48px; gap: 56px; }
  .cols article > p { min-height: 0; }
  .duo { margin-bottom: 24px; }
  .brands__title { margin-top: 72px; }
  .brands { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brands li { height: 72px; font-size: 18px; }
  .feats { margin-top: 40px; gap: 56px; }
  .feats h3 { margin-top: 24px; }
  .feats p { max-width: none; margin: 12px 0 18px; }
  .art { max-width: 360px; height: 230px; }
  .goods { margin-top: 36px; }
  .crumbs { margin-bottom: 20px; font-size: 13px; }
  .svc-hero__art { max-width: 440px; height: 300px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps, .related, .goods--2 { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 32px; }
  .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px; }
  .steps li::before { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
  .steps p { margin-top: 0; }
  .goods--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .goods--4 article { padding: 16px; }
  .goods--4 .goods__pic { height: 110px; margin-bottom: 16px; }
  .goods--4 h3 { font-size: 17px; }
  .goods--4 article > p { font-size: 14px; }
  .price-card { padding: 24px 20px; }
  .related a { padding: 22px; }
  .faq { gap: 12px; margin-top: 32px; }
  summary { font-size: 17px; padding: 14px 14px 14px 18px; }
  details p { padding: 0 18px 20px; }
  .contacts div { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 24px 20px; }
  .footer__in { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer nav { margin-left: 0; flex-wrap: wrap; gap: 12px 24px; }
  .footer__in > p { margin-left: 0 !important; }
  .doc { padding: 40px 0 64px; }
  .doc .wrap { width: calc(100% - 40px); }
  .doc h2 { margin-top: 40px; font-size: 21px; }
  .doc td { display: block; padding: 0 0 12px; border: 0 !important; }
  .doc td:first-child { width: auto; padding: 12px 0 2px; border-top: 1px solid var(--line) !important; font-size: 14px; }

  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.200fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .dock a { display: grid; place-items: center; height: 48px; border: 2px solid var(--ink); border-radius: 24px; font-size: 15px; font-weight: 700; }
  .dock .dock__main { background: var(--red); border-color: var(--red); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
