/* Вариант A — «Тёмный индастриал»: графит, сталь, сигнальный оранжевый. */

:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --bg-3: #1a1e25;
  --bg-4: #222730;
  --line: #2b313b;
  --line-2: #3a414d;
  --ink: #f3f4f6;
  --ink-2: #c9ced6;
  --muted: #8f98a6;
  --accent: #ff6a13;
  --accent-hi: #ff8a3d;
  --accent-ink: #1a0d03;
  --plate: #eef0f3;
  --plate-2: #dfe3e8;
  --ok: #3ecf8e;
  --err: #ff6b6b;
  --r: 14px;
  --r-s: 9px;
  --wrap: 1280px;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: .01em; line-height: 1.08; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
main { display: block; min-height: 100vh; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-s); background: var(--bg-4); color: var(--ink);
  font: 600 15px/1 var(--body); letter-spacing: .01em; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(255, 106, 19, .28); }
.btn--accent:hover { background: var(--accent-hi); box-shadow: 0 10px 30px rgba(255, 106, 19, .42); }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-2); background: rgba(255, 255, 255, .04); }
.btn--line { background: transparent; border-color: var(--accent); color: var(--accent-hi); }
.btn--line:hover { background: var(--accent); color: var(--accent-ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.link { color: var(--accent-hi); text-decoration: underline; text-decoration-color: rgba(255, 138, 61, .4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(13, 15, 18, .86); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); min-height: 73px; }
.hdr__row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 40px; height: 40px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.logo__mark svg { width: 26px; height: 26px; stroke-width: 2; }
.logo__name { font: 600 21px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.logo__tag { display: block; margin-top: 5px; font: 500 10.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 500 15px/1 var(--body); transition: color .15s, background .15s; }
.nav > a, .nav__drop > a, .hdr__phone a, .hdr__phone span { white-space: nowrap; }
.nav a:hover, .nav button:hover, .nav [aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav .ic { width: 16px; height: 16px; }
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 620px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { height: auto; padding: 11px 12px; justify-content: space-between; color: var(--ink); }
.nav__menu a span:last-child { color: var(--muted); font-size: 13px; }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hdr__phone { text-align: right; line-height: 1.15; }
.hdr__phone a { font: 600 18px/1 var(--head); letter-spacing: .03em; }
.hdr__phone a:hover { color: var(--accent-hi); }
.hdr__phone span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.hdr__burger, .hdr__call { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 9px; background: none; place-items: center; }
.mnav { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 20px; overflow: auto; display: none; }
.mnav.is-open { display: block; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mnav a.mnav__link { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.mnav a.mnav__link span { font: 400 13px/1 var(--body); color: var(--muted); letter-spacing: 0; text-transform: none; }
.mnav__sub { margin: 22px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- общие блоки ---------- */
.sec { padding: 88px 0; }
.sec--tight { padding: 56px 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.h2 { font-size: clamp(30px, 3.6vw, 48px); }
.lead { color: var(--ink-2); font-size: 18px; max-width: 62ch; }
.muted { color: var(--muted); }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #15181d 14px 28px); opacity: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(255, 106, 19, .16), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.12; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 24px; font-size: 18.5px; color: var(--ink-2); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 44px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 600 30px/1 var(--head); letter-spacing: .02em; }
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 18ch; }
.hero__shot { position: relative; }
.hero__frame { position: relative; aspect-ratio: 896 / 1200; max-height: 640px; margin-left: auto; border-radius: 22px; overflow: hidden; background: var(--plate); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag { display: grid; gap: 4px; margin-top: 16px; padding: 16px 20px; background: var(--bg-3); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); }
.hero__tag small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__tag b { font: 600 22px/1.1 var(--head); letter-spacing: .02em; }
.hero__tag a { font-size: 13.5px; color: var(--accent-hi); }

/* быстрый подбор */
.picker { margin-top: -1px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.picker__row { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 14px; align-items: end; padding: 22px 0; }
.picker__title { font: 600 19px/1.15 var(--head); letter-spacing: .04em; text-transform: uppercase; padding-bottom: 12px; padding-right: 10px; }
.fld { display: grid; gap: 7px; }
.fld > span, .fld > label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inp, .sel, .txt {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.txt { padding: 12px 14px; min-height: 104px; resize: vertical; line-height: 1.5; }
.inp::placeholder, .txt::placeholder { color: #68717e; }
.inp:hover, .sel:hover, .txt:hover { border-color: #55606e; }
.inp:focus, .sel:focus, .txt:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 19, .22); }
.inp[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 107, 107, .16); }
.sel { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f98a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }

/* ---------- плитки категорий ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.cat:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.cat__img { aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--plate), var(--plate-2)); display: grid; place-items: center; overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; transition: transform .3s; }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__img.is-scene img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.cat__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.cat__name { font: 600 17px/1.15 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.cat__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cat__meta b { color: var(--ink-2); font-weight: 600; }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 22px 44px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--plate), var(--plate-2)); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; transition: transform .3s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__img.is-scene img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.card:hover .card__line { transform: scaleX(1); }
.card__cat { position: absolute; top: 10px; left: 10px; padding: 6px 9px; border-radius: 6px; background: rgba(13, 15, 18, .84); color: var(--ink-2); font: 600 10.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; flex: 1; }
.card__title { font: 600 15.5px/1.35 var(--body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card__title:hover { color: var(--accent-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; color: var(--accent-hi); }
.card__foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 4px; }
.card__foot .btn { width: 100%; }
.price { font: 600 23px/1 var(--head); letter-spacing: .02em; white-space: nowrap; }
.price small { font: 500 12px/1 var(--body); color: var(--muted); margin-right: 6px; text-transform: none; letter-spacing: 0; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: #5d6673; padding: 8px; }
.ph svg { width: 100%; height: 100%; }

/* ---------- каталог ---------- */
.pagehead { padding: 26px 0 30px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 85% 0%, rgba(255, 106, 19, .1), transparent 65%), var(--bg-2); }
.pagehead h1 { font-size: clamp(34px, 4.4vw, 56px); margin-top: 16px; }
.pagehead p { margin-top: 14px; color: var(--ink-2); max-width: 70ch; }
.pagehead__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; min-height: 40px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); }
.tag b { color: var(--ink); }
.catbar { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; min-height: 66px; }
.catbar::-webkit-scrollbar { display: none; }
.catbar a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: border-color .15s, color .15s, background .15s; }
.catbar a:hover { border-color: var(--ink-2); color: var(--ink); }
.catbar a.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.catbar a span { font-size: 12px; opacity: .7; }
.shop { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 28px; padding: 32px 0 88px; align-items: start; }
.filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.filters__head b { font: 600 17px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.filters .filters__close { display: none; position: static; }
.fgroup { padding: 16px 18px 18px; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup__t { display: block; margin-bottom: 12px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 11px; min-height: 36px; cursor: pointer; color: var(--ink-2); font-size: 14.5px; }
.check:hover { color: var(--ink); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check i { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--line-2); border-radius: 5px; background: var(--bg); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.check i::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-1px) scale(0); transition: transform .12s; }
.check input:checked + i { background: var(--accent); border-color: var(--accent); }
.check input:checked + i::after { transform: rotate(-45deg) translateY(-1px) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.check em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prange .inp { min-height: 44px; }
.filters__foot { display: none; }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.toolbar__count { font: 600 20px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.toolbar__count span { color: var(--muted); font: 400 14px/1 var(--body); text-transform: none; letter-spacing: 0; margin-left: 8px; }
.toolbar .sel { width: auto; min-width: 250px; margin-left: auto; min-height: 44px; }
.toolbar__filter { display: none; }
.search { position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search .inp { padding-left: 40px; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 0; }
.achip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px; border: 1px solid rgba(255, 106, 19, .5); background: rgba(255, 106, 19, .1); color: var(--ink); border-radius: 999px; font-size: 13.5px; }
.achip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.achip button:hover { background: var(--accent); color: var(--accent-ink); }
.achip .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.reset { border: 0; background: none; color: var(--accent-hi); font-size: 13.5px; padding: 0 6px; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h3 { font-size: 26px; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 22px; }
.skel { border-radius: var(--r); background: linear-gradient(100deg, var(--bg-3) 30%, var(--bg-4) 50%, var(--bg-3) 70%) 0 0 / 300% 100%; animation: skel 1.3s linear infinite; min-height: 372px; }
@keyframes skel { to { background-position: -150% 0; } }

/* ---------- страница товара ---------- */
.product > * { min-width: 0; }
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 44px; padding: 26px 0 72px; align-items: start; }
.gal { position: sticky; top: 92px; }
.gal__main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--plate), var(--plate-2)); padding: 0; cursor: zoom-in; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.gal__main.is-scene { background: #0b0d10; }
.gal__main.is-scene img { object-fit: contain; padding: 0; mix-blend-mode: normal; }
.gal__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: rgba(13, 15, 18, .82); color: var(--ink); font-size: 12.5px; }
.gal__kind { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 7px; background: rgba(13, 15, 18, .82); color: var(--ink-2); font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.gal__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gal__thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--plate); opacity: .72; transition: opacity .15s, border-color .15s; }
.gal__thumbs button:hover { opacity: 1; }
.gal__thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; text-transform: none; letter-spacing: 0; }
.buy__cat { display: inline-flex; margin-bottom: 14px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.buy__short { margin-top: 16px; color: var(--ink-2); }
.plate { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plate div { padding: 16px 18px; background: var(--bg-2); }
.plate dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plate dd { margin: 8px 0 0; font: 600 26px/1 var(--head); letter-spacing: .02em; }
.buybox { margin-top: 22px; padding: 22px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r); }
.buybox__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buybox__price .price { font-size: 40px; }
.buybox__note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.buybox__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.buybox__cta .btn { flex: 1 1 auto; }
.trust { display: grid; gap: 10px; margin-top: 20px; }
.trust li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.trust .ic { color: var(--accent-hi); }
.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.acc details + details { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 600 19px/1.2 var(--head); letter-spacing: .03em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .18s; margin-right: 4px; }
.acc details[open] summary::after { transform: rotate(-135deg); }
.acc summary:hover { background: rgba(255, 255, 255, .03); }
.prose { padding: 0 22px 24px; color: var(--ink-2); max-width: 86ch; }
.prose p + p, .prose ul, .prose ol, .prose table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose table.specs { display: table; width: 100%; max-width: 760px; }
.prose th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.prose img { height: auto; border-radius: 8px; }
.stickybuy { display: none; }

/* ---------- факты, шаги, работы, документы ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { padding: 28px 26px 30px; background: var(--bg-2); transition: background .18s; }
.fact:hover { background: var(--bg-3); }
.fact__ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 106, 19, .12); color: var(--accent-hi); margin-bottom: 18px; }
.fact__ic .ic { width: 24px; height: 24px; }
.fact h3 { font-size: 21px; margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 24px 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 600 38px/1 var(--head); color: var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 10px; }
.works button { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--bg-3); cursor: zoom-in; }
.works button:first-child { grid-column: span 2; grid-row: span 2; }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; filter: saturate(.92); }
.works button:hover img { transform: scale(1.05); filter: none; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc { display: grid; gap: 12px; padding: 14px; text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); cursor: zoom-in; transition: border-color .18s, transform .18s; }
.doc:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc__img { aspect-ratio: 650 / 950; background: #fff; border-radius: 8px; overflow: hidden; }
.doc__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }

/* ---------- заявка ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.cta__list { display: grid; gap: 14px; margin-top: 28px; }
.cta__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.cta__list .ic { color: var(--accent-hi); margin-top: 2px; }
.panel { padding: 28px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .fld > label b { color: var(--accent-hi); font-weight: 600; }
.err { margin-top: 2px; font-size: 13px; color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); min-height: 0; }
.consent i { margin-top: 1px; }
.form__alert { padding: 12px 14px; border: 1px solid rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .08); border-radius: var(--r-s); color: #ffb3b3; font-size: 14px; }
.form__ok { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }
.form__ok .okic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(62, 207, 142, .14); color: var(--ok); }
.form__ok .okic .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.form__ok h3 { font-size: 26px; }
.form__ok p { color: var(--ink-2); }
form[data-state="success"] > :not([data-lead-success]) { display: none; }
form[data-state="sending"] { opacity: .85; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(26, 13, 3, .35); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.prodref { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 14px; color: var(--ink-2); }
.prodref b { color: var(--ink); font-weight: 600; }
.contacts { display: grid; gap: 18px; }
.contact { display: flex; gap: 14px; }
.contact .ic { color: var(--accent-hi); margin-top: 3px; }
.contact small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact a:hover { color: var(--accent-hi); }

/* ---------- модальное окно и просмотр фото ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 8, .76); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); transform: translateY(10px); transition: transform .18s; }
.modal.is-open .modal__box { transform: none; }
.modal__box h2 { font-size: 30px; margin-bottom: 8px; padding-right: 40px; }
.modal__box > p { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); display: grid; place-items: center; }
.x:hover { border-color: var(--accent); color: var(--accent-hi); }
.lb { position: fixed; inset: 0; z-index: 95; display: none; grid-template-rows: 1fr auto; background: rgba(5, 6, 8, .95); }
.lb.is-open { display: grid; }
.lb__stage { display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; }
.lb__bar { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px; color: var(--ink-2); font-size: 14px; }
.lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(20, 23, 28, .9); display: grid; place-items: center; }
.lb__nav:hover { border-color: var(--accent); color: var(--accent-hi); }
.lb__nav--p { left: 14px; } .lb__nav--n { right: 14px; }
.lb .x { top: 14px; right: 14px; }

/* ---------- подвал ---------- */
.ftr { background: #090a0c; border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--ink-2); font-size: 14.5px; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr h4 { font-size: 15px; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; font-family: var(--body); font-weight: 600; }
.ftr li + li { margin-top: 9px; }
.ftr a:hover { color: var(--accent-hi); }
.ftr__about { margin-top: 16px; color: var(--muted); max-width: 36ch; }
.ftr__phone { font: 600 21px/1.2 var(--head); letter-spacing: .03em; color: var(--ink); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.demo { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(20, 23, 28, .92); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); backdrop-filter: blur(8px); }
.demo:hover { border-color: var(--accent); color: var(--ink); }
.demo i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1560px) { .logo__tag { display: none; } }
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .nav a, .nav button { padding: 0 10px; }
  .hdr__phone span { display: none; }
}
@media (max-width: 1240px) {
  /* меню не помещается рядом с телефоном и кнопкой заявки: сворачиваем его в кнопку меню */
  .nav { display: none; }
  .hdr__burger { display: grid; }
}
@media (min-width: 981px) {
  /* на компьютере категории видны все сразу, в две строки; высота зарезервирована, чтобы страница не прыгала */
  .catbar { flex-wrap: wrap; overflow: visible; min-height: 118px; }
}
@media (min-width: 981px) and (max-width: 1180px) { .catbar { min-height: 170px; } }
@media (max-width: 980px) {
  .nav, .hdr__phone, .hdr__right .btn { display: none; }
  .hdr__burger, .hdr__call { display: grid; }
  .hdr__right { gap: 10px; }
  .hdr__row { height: 64px; } .hdr { min-height: 65px; }
  html { scroll-padding-top: 76px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 44px; }
  .hero__shot { max-width: 560px; }
  .hero__tag { margin-top: 12px; }
  .picker__row { grid-template-columns: 1fr 1fr; }
  .picker__title { grid-column: 1 / -1; padding: 0; }
  .picker__row .btn { grid-column: 1 / -1; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; gap: 32px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .gal { position: static; }
  .shop { grid-template-columns: 1fr; padding-top: 20px; }
  .filters { position: fixed; inset: 0; z-index: 80; max-height: none; border: 0; border-radius: 0; transform: translateX(-102%); transition: transform .22s; display: flex; flex-direction: column; }
  .filters.is-open { transform: none; }
  .filters__body { flex: 1; overflow: auto; }
  .filters .filters__close { display: grid; }
  .filters__foot { display: block; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
  .toolbar { flex-wrap: wrap; }
  .toolbar__filter { display: inline-flex; }
  .toolbar .sel { flex: 1; min-width: 0; margin-left: 0; }
  .toolbar__count { width: 100%; }
  .sec { padding: 60px 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .logo__tag { display: none; }
  .logo__name { font-size: 19px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero__lead { font-size: 16.5px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; padding-top: 22px; }
  .stat { display: flex; align-items: baseline; gap: 12px; }
  .stat b { font-size: 21px; white-space: nowrap; } .stat span { font-size: 13px; margin: 0; max-width: none; }
  .picker__row { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat__name { font-size: 15px; }
  .cat__meta { flex-direction: column; gap: 2px; }
  .grid, .grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 12px 12px 14px; gap: 10px; }
  .card__title { font-size: 14px; -webkit-line-clamp: 3; min-height: 4.05em; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__foot .btn { width: 100%; }
  .price { font-size: 20px; }
  .chip { font-size: 11.5px; padding: 5px 7px; }
  .card__cat { display: none; }
  .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; padding: 18px; }
  .step::before { grid-row: span 2; margin: 0; font-size: 32px; }
  .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .docs { gap: 10px; }
  .sec__head { flex-direction: column; align-items: flex-start; margin-bottom: 26px; }
  .panel { padding: 20px; }
  .form__2 { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal__box { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 24px 18px calc(22px + env(safe-area-inset-bottom)); }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .buybox__price .price { font-size: 32px; }
  .buybox { padding: 18px; }
  .buybox__cta .btn { white-space: normal; text-align: center; padding: 12px 16px; line-height: 1.25; flex: 1 1 100%; }
  .crumbs li:last-child { display: none; }
  .plate dd { font-size: 22px; }
  .gal__thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .pagehead__meta { min-height: 89px; }
  .pagehead p[data-cat-desc] { min-height: 3.2em; }
  .stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 15, 18, .96); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); }
  .stickybuy .price { font-size: 19px; }
  .stickybuy .btn { flex: 1; }
  body[data-page="product"] { padding-bottom: 76px; }
  body[data-page="product"] .demo { bottom: 84px; }
  .demo { left: 8px; bottom: 8px; padding: 5px 9px; font-size: 10.5px; gap: 6px; opacity: .88; }
  body[data-page="product"] .demo { bottom: 72px; }
  .lb__stage { padding: 60px 8px 8px; }
  .lb__nav { top: auto; bottom: 62px; }
  .acc summary { padding: 16px; font-size: 17px; }
  .prose { padding: 0 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* метка демо справа на компьютере: слева она закрывала подписи к цифрам первого экрана */
@media (min-width: 981px) { .demo { left: auto; right: 16px; } }

/* правки после повторной проверки: цифры преимуществ не переносятся; метка демо на телефоне стоит в потоке под подвалом и ничего не закрывает */
.stat b { white-space: nowrap; }
@media (max-width: 640px) {
  .demo, body[data-page="product"] .demo { position: static; display: flex; width: max-content; margin: 14px auto 18px; opacity: 1; }
}

/* цифры преимуществ на средних ширинах: меньше кегль и отступ, чтобы три цифры помещались в левую колонку первого экрана */
@media (min-width: 981px) and (max-width: 1320px) { .hero__stats { gap: 0 22px; } .stat b { font-size: 23px; } .stat span { font-size: 12.5px; } }
