/* =========================================================================
   MAK ENGINEERING — design system
   Тёмная инженерная тема: графит/сталь/цинк + electric blue.
   Motion: только transform/opacity, полное отключение при reduced-motion.
   ========================================================================= */

/* ---------- fonts (self-hosted, variable, subset) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-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;
}

/* ---------- tokens ---------- */
:root {
  --bg: #070E18;
  --bg-2: #0B1424;
  --panel: #0E1A2D;
  --panel-2: #12203a;
  --steel: #8A97A9;          /* поднят контраст: ≥4.5:1 на --bg */
  --zinc: #C7D2E0;
  --line: #1C2C44;
  --line-soft: #15233A;
  --ink: #EAF1FB;
  --ink-dim: #A9BAD1;        /* поднят контраст относительно исходного */
  --accent: #2E8BFF;
  --accent-2: #6FB1FF;
  --accent-soft: rgba(46, 139, 255, .12);
  --ok: #3DD3A0;
  --err: #FF7A7A;
  --r: 14px;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --header-h: 76px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* чертёжная сетка-подложка */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 0%, transparent 75%);
  opacity: .45;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 15px 26px; min-height: 48px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px rgba(46, 139, 255, .55); }
.btn-primary:hover { background: var(--accent-2); color: #06121f; transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(46, 139, 255, .65); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #29b356; background: rgba(41, 179, 86, .12); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn .spin {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
header.site { position: fixed; top: 0; left: 0; right: 0; z-index: 90; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 12px auto; max-width: var(--maxw);
  padding: 10px 18px; border-radius: 16px;
  background: rgba(10, 16, 28, .6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line-soft);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
header.site.scrolled .nav { background: rgba(8, 13, 22, .85); border-color: var(--line); box-shadow: 0 10px 40px -16px rgba(0, 0, 0, .8); }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; border-radius: 8px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
img.logo-mark { border-radius: 8px; background: #fff; display: block; }
.logo-txt { font-weight: 800; font-size: 18px; letter-spacing: .02em; line-height: 1.05; }
.logo-txt span { color: var(--steel); font-weight: 500; font-size: 10.5px; display: block; letter-spacing: .32em; font-family: var(--mono); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-dim);
  padding: 10px 13px; border-radius: 8px;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink-dim);
  transition: color .2s, border-color .2s, background-color .2s;
}
.nav-icon:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.nav .btn { padding: 12px 18px; min-height: 44px; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; position: relative;
}
.burger i {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s; border-radius: 2px;
}
.burger i:nth-child(1) { top: 15px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 12px) 20px 32px;
  background: rgba(7, 14, 24, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-size: 20px; font-weight: 700; padding: 14px 12px; border-radius: 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .2s, color .2s;
}
.mobile-menu nav a:hover { background: var(--accent-soft); }
.mobile-menu .mm-contacts { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.mobile-menu .mm-contacts .btn { width: 100%; }
body.menu-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 84px) 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
  width: min(900px, 120vw); height: 560px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(46, 139, 255, .16), transparent 65%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(33px, 4.8vw, 58px); margin: 14px 0 20px; }
.hero h1 .hl { color: var(--accent-2); }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--steel);
  display: flex; align-items: center; gap: 8px;
}
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 211, 160, .15); }
.hero-micro { margin-top: 30px; display: grid; grid-template-columns: repeat(3, auto); gap: 12px 30px; color: var(--steel); font-size: 13.5px; width: fit-content; }
.hero-micro b { color: var(--ink); font-weight: 700; display: block; }

/* чертёжная композиция */
.blueprint {
  position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 139, 255, .10), transparent 50%),
    var(--bg-2);
}
.blueprint::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .6;
}
.bp-tag { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 11px; color: var(--steel); letter-spacing: .1em; z-index: 2; }
.bp-tag.r { left: auto; right: 16px; }
.bp-foot {
  position: absolute; bottom: 12px; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--steel);
}
.bp-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-layer { transition: transform .4s var(--ease); will-change: transform; }

/* рисование контура: pathLength=1 у каждого path */
.bp-draw path, .bp-draw line, .bp-draw circle, .bp-draw rect {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.hero.armed .bp-draw path, .hero.armed .bp-draw line,
.hero.armed .bp-draw circle, .hero.armed .bp-draw rect { stroke-dashoffset: 0; }
.bp-dims { opacity: 0; transition: opacity .8s var(--ease) 1s; }
.hero.armed .bp-dims { opacity: 1; }
.bp-dims .dim-l { opacity: 0; transform: translateY(4px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero.armed .bp-dims .dim-l { opacity: 1; transform: none; }
.hero.armed .bp-dims .dim-l:nth-child(1) { transition-delay: 1.1s; }
.hero.armed .bp-dims .dim-l:nth-child(2) { transition-delay: 1.35s; }
.hero.armed .bp-dims .dim-l:nth-child(3) { transition-delay: 1.6s; }
.hero.armed .bp-dims .dim-l:nth-child(4) { transition-delay: 1.85s; }
.bp-node { opacity: 0; transition: opacity .5s var(--ease); }
.hero.armed .bp-node { opacity: 1; transition-delay: 2s; }
@media (prefers-reduced-motion: no-preference) {
  .hero.armed .bp-node circle.pulse { animation: nodePulse 3.2s var(--ease) 2.4s infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes nodePulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* появление hero-слоёв */
.hero-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero.armed .hero-copy > * { opacity: 1; transform: none; }
.hero.armed .hero-copy > *:nth-child(1) { transition-delay: .05s; }
.hero.armed .hero-copy > *:nth-child(2) { transition-delay: .14s; }
.hero.armed .hero-copy > *:nth-child(3) { transition-delay: .23s; }
.hero.armed .hero-copy > *:nth-child(4) { transition-delay: .32s; }
.hero.armed .hero-copy > *:nth-child(5) { transition-delay: .41s; }
.hero.armed .hero-copy > *:nth-child(6) { transition-delay: .5s; }

/* ---------- section shell ---------- */
section { position: relative; padding: 96px 0; }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(27px, 3.4vw, 42px); margin-bottom: 16px; }
.sec-head p { color: var(--ink-dim); font-size: 17px; }
.band { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- reveal system ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal-group] > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  [data-reveal-group].in > * { opacity: 1; transform: none; }
  [data-reveal-group].in > *:nth-child(1) { transition-delay: 0s; }
  [data-reveal-group].in > *:nth-child(2) { transition-delay: .07s; }
  [data-reveal-group].in > *:nth-child(3) { transition-delay: .14s; }
  [data-reveal-group].in > *:nth-child(4) { transition-delay: .21s; }
  [data-reveal-group].in > *:nth-child(5) { transition-delay: .28s; }
  [data-reveal-group].in > *:nth-child(6) { transition-delay: .35s; }
  [data-reveal-group].in > *:nth-child(7) { transition-delay: .42s; }
  [data-reveal-group].in > *:nth-child(8) { transition-delay: .49s; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.trust-item { display: flex; flex-direction: column; gap: 9px; }
.trust-item svg { width: 26px; height: 26px; color: var(--accent-2); }
.trust-item b { font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.trust-item span { font-size: 12.5px; color: var(--steel); line-height: 1.45; }

/* ---------- products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 14, 24, .55));
}
.card .idx {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--mono); font-size: 11px; color: var(--accent-2);
  background: rgba(7, 14, 24, .78); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 6px; letter-spacing: .08em;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 14.5px; flex: 1; }
.card .variants { margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--steel); }
.card .arrow {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2); font-size: 14px; font-weight: 700;
  transition: gap .25s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .8); }
  .card:hover .card-media img { transform: scale(1.04); }
  .card:hover .arrow { gap: 13px; }
}
.card:focus-visible { border-color: var(--accent); }
.card.wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.card.wide .card-media { aspect-ratio: auto; flex: 0 0 42%; min-height: 240px; }
.card.wide .card-body { justify-content: center; padding: 32px 36px; }
.card.wide p { flex: 0 1 auto; max-width: 560px; }
.catalog-more { margin-top: 30px; text-align: center; }

/* ---------- project block (работаем по вашему проекту) ---------- */
.project-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-dim); list-style: none; }
.check-list svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }
.check-list b { color: var(--ink); }
.notice {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); font-size: 14.5px; color: var(--zinc);
}
.project-photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-photo figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--zinc);
  background: rgba(7, 14, 24, .8); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; width: fit-content;
}

/* цинковый блик */
.sheen { position: relative; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 24%;
  background: linear-gradient(105deg, transparent, rgba(199, 210, 224, .14), transparent);
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sheen.in::after { animation: sheenSweep 2.4s var(--ease) .5s 1 both; }
}
@keyframes sheenSweep { to { transform: translateX(620%) skewX(-12deg); } }

/* ---------- process ---------- */
.proc-rail-wrap { margin-top: 46px; }
.proc-progress { height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; margin-bottom: -1px; }
.proc-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.proc-rail { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.proc-step { padding: 22px 16px 20px; border-right: 1px solid var(--line); position: relative; background: transparent; transition: background-color .4s var(--ease); }
.proc-step:last-child { border-right: none; }
.proc-step .n { font-family: var(--mono); font-size: 12px; color: var(--steel); transition: color .4s; }
.proc-step h3 { font-size: 15px; margin-top: 10px; font-weight: 700; letter-spacing: -.01em; }
.proc-step p { font-size: 12px; color: var(--steel); margin-top: 6px; line-height: 1.45; }
.proc-step .bar { height: 2px; background: var(--line); margin-top: 14px; overflow: hidden; border-radius: 2px; }
.proc-step .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.proc-step.active { background: var(--accent-soft); }
.proc-step.active .n { color: var(--accent-2); }
.proc-step.active .bar i { transform: scaleX(1); }

/* ---------- gallery (производство и отгрузка) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.05); } }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-size: 11px; color: var(--zinc);
  background: rgba(7, 14, 24, .8); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 6px; max-width: calc(100% - 20px);
}
.gallery .tall { grid-row: span 2; }
.gallery .wide2 { grid-column: span 2; }

/* ---------- quality ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.q-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.q-card svg { width: 30px; height: 30px; color: var(--accent-2); margin-bottom: 16px; }
.q-card h3 { font-size: 18px; margin-bottom: 10px; }
.q-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- pickup / map ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin-bottom: 30px; }
.tab-btn {
  border: none; background: transparent; color: var(--ink-dim); cursor: pointer;
  font-weight: 700; font-size: 14.5px; padding: 11px 20px; border-radius: 9px; min-height: 44px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tab-btn[aria-selected="true"] { background: var(--accent); color: #fff; }
.tab-btn:not([aria-selected="true"]):hover { color: #fff; background: var(--accent-soft); }
.tab-panel[hidden] { display: none; }

.pickup-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.addr-card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  display: flex; flex-direction: column; gap: 6px;
}
.addr-card h3 { font-size: 20px; margin-bottom: 12px; }
.addr-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-dim); }
.addr-row svg { width: 19px; height: 19px; color: var(--accent-2); flex-shrink: 0; margin-top: 3px; }
.addr-row b { color: var(--ink); display: block; font-size: 14px; }
.addr-row a { color: var(--ink); font-weight: 600; display: inline-block; padding: 4px 0; margin: -4px 0; }
.addr-row a:hover { color: var(--accent-2); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim);
  border-radius: 9px; padding: 10px 16px; cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 44px;
  transition: border-color .2s, color .2s, background-color .2s;
}
.copy-btn:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.copy-btn.copied { border-color: var(--ok); color: var(--ok); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.map-links a {
  flex: 1 1 auto; text-align: center; font-size: 13.5px; font-weight: 700; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; color: var(--ink-dim);
  transition: border-color .2s, color .2s, background-color .2s;
}
.map-links a:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }

.map-box {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--bg-2); min-height: 420px;
}
.map-box .map-canvas { position: absolute; inset: 0; }
.map-static {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px;
}
.map-static svg { width: min(320px, 70%); height: auto; opacity: .9; }
.map-static p { color: var(--steel); font-size: 13.5px; max-width: 420px; }
.map-attrib {
  position: absolute; right: 8px; bottom: 6px; z-index: 5;
  font-size: 10.5px; color: var(--steel);
}
.map-attrib a { text-decoration: underline; }

.geo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.geo-map { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 18px; }
.geo-map svg { width: 100%; height: auto; display: block; }
.geo-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--steel); }
.geo-legend span { display: inline-flex; align-items: center; gap: 8px; }
.geo-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.geo-legend .l-base { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.geo-legend .l-dest { background: transparent; border: 1.5px solid var(--steel); }
.region-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.region-list li {
  list-style: none; font-family: var(--mono); font-size: 13px; color: var(--ink-dim);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px;
}
.geo-city { opacity: 0; }
.geo-map.in .geo-city { animation: cityIn .5s var(--ease) forwards; }
.geo-map.in .geo-city:nth-of-type(1) { animation-delay: .1s; }
.geo-map.in .geo-city:nth-of-type(2) { animation-delay: .2s; }
.geo-map.in .geo-city:nth-of-type(3) { animation-delay: .3s; }
.geo-map.in .geo-city:nth-of-type(4) { animation-delay: .4s; }
.geo-map.in .geo-city:nth-of-type(5) { animation-delay: .5s; }
.geo-map.in .geo-city:nth-of-type(6) { animation-delay: .6s; }
.geo-map.in .geo-city:nth-of-type(7) { animation-delay: .7s; }
.geo-map.in .geo-city:nth-of-type(8) { animation-delay: .8s; }
@keyframes cityIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .geo-city { opacity: 1; animation: none; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 4px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; min-height: 48px;
}
.faq-q .pm { flex-shrink: 0; width: 24px; height: 24px; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent-2); transition: transform .3s var(--ease); border-radius: 1px; }
.faq-q .pm::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.faq-q .pm::after { left: 11px; top: 3px; bottom: 3px; width: 2px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-dim); font-size: 15.5px; padding: 0 34px 22px 4px; }

/* ---------- form / final CTA ---------- */
.cta-card {
  border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(circle at 80% 0%, rgba(46, 139, 255, .14), transparent 55%), var(--panel);
  padding: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.cta-card h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 16px; }
.cta-card .cta-sub { color: var(--ink-dim); margin-bottom: 26px; }
.cta-alt { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

form.lead { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 7px; font-weight: 600; }
.field .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 13px 15px; font-size: 16px; font-family: inherit; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field textarea { resize: vertical; min-height: 88px; }
.f-err { display: none; margin-top: 6px; font-size: 13px; color: var(--err); align-items: flex-start; gap: 6px; }
.field.invalid .f-err { display: flex; }
.f-err::before { content: "!"; flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--err); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.dropzone {
  border: 1px dashed var(--line); border-radius: 10px; padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  color: var(--ink-dim); font-size: 14px; min-height: 56px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.dropzone svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-chip {
  display: none; align-items: center; gap: 10px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-family: var(--mono); font-size: 12.5px; color: var(--zinc); background: var(--bg);
}
.file-chip.show { display: flex; }
.file-chip .size { color: var(--steel); }
.file-chip button {
  margin-left: auto; border: none; background: none; color: var(--steel); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 6px 8px; border-radius: 6px; min-width: 32px; min-height: 32px;
}
.file-chip button:hover { color: var(--err); background: rgba(255, 122, 122, .1); }

.consent { font-size: 12.5px; color: var(--steel); }
.consent a { color: var(--accent-2); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; font-size: 14.5px; padding: 14px 16px; border-radius: 10px; align-items: flex-start; gap: 10px; }
.form-status.show { display: flex; }
.form-status.ok { background: rgba(61, 211, 160, .1); border: 1px solid rgba(61, 211, 160, .35); color: var(--ok); }
.form-status.err { background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .35); color: var(--err); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 18px; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--ink-dim); font-size: 15px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 34px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 48px; }
.foot-col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; font-weight: 700; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 14.5px; padding: 7px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent-2); }
.foot-about p { color: var(--ink-dim); font-size: 14px; margin: 16px 0; max-width: 340px; }
.foot-req { font-family: var(--mono); font-size: 12px; color: var(--steel); line-height: 1.9; }
.foot-req a { color: var(--zinc); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
  color: var(--steel); font-size: 13px; flex-wrap: wrap;
}
.foot-bottom a { text-decoration: underline; }

/* ---------- sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 13, 22, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .3s var(--ease);
}
.mobile-bar.hidden-bar { transform: translateY(110%); }
.mobile-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--line); color: var(--ink);
}
.mobile-bar a svg { width: 17px; height: 17px; }
.mobile-bar .mb-primary { background: var(--accent); border-color: transparent; color: #fff; }

/* ---------- consent banner (только при включённой аналитике) ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 520px; margin: 0 auto; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  display: none; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--ink-dim);
}
.consent-banner.show { display: flex; }
.consent-banner .cb-actions { display: flex; gap: 10px; }
.consent-banner .btn { padding: 10px 18px; min-height: 42px; font-size: 13.5px; flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 9px; font-size: 13.5px; }
}
@media (max-width: 980px) {
  .hero-grid, .project-grid, .geo-grid, .pickup-grid, .cta-card { grid-template-columns: 1fr; }
  .blueprint { margin: 0 auto; max-width: 480px; width: 100%; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .card.wide { flex-direction: column; }
  .card.wide .card-media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .proc-rail { grid-template-columns: repeat(4, 1fr); }
  .proc-step:nth-child(4) { border-right: none; }
  .proc-step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav .btn span.full { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
  footer.site { padding-bottom: 90px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-micro { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .proc-rail { grid-template-columns: repeat(2, 1fr); }
  .proc-step:nth-child(even) { border-right: none; }
  .proc-step:nth-child(odd) { border-right: 1px solid var(--line); }
  .proc-step:nth-child(-n+6) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .quality-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 30px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; padding: 11px 10px; }
}
@media (max-width: 380px) {
  .hero-micro { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .map-links a { flex-basis: 100%; }
}

/* ==================== CATALOG (общие для /catalog/*) ==================== */
.chero { position: relative; padding: calc(var(--header-h) + 56px) 0 44px; overflow: hidden; }
.chero-sub { padding-bottom: 10px; }
.chero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.chero h1 { font-size: clamp(30px, 4.4vw, 52px); margin: 10px 0 18px; }
.chero h1 .hl { color: var(--accent-2); }
.chero .lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--ink-dim); max-width: 620px; }
.chero-art {
  position: relative; aspect-ratio: 1 / 1; max-width: 380px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(46, 139, 255, .1), transparent 50%), var(--bg-2);
}
.chero-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .6;
}
.chero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--steel); margin-bottom: 20px; }
.crumb a { padding: 4px 0; }
.crumb a:hover { color: var(--accent-2); }
.crumb span[aria-hidden] { color: var(--line); }
.crumb-cur { color: var(--ink-dim); }

.search-bar { margin-top: 34px; position: relative; max-width: 720px; }
.search-bar svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: var(--steel); pointer-events: none; }
.search-bar input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-size: 16px; padding: 17px 20px 17px 54px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s;
}
.search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.chips { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { height: 5px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-dim);
  padding: 10px 16px; min-height: 42px; border-radius: 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--accent); color: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .cc { font-family: var(--mono); font-size: 11px; opacity: .75; }

.cat-layout { display: grid; grid-template-columns: 268px 1fr; gap: 34px; padding: 34px 0 60px; align-items: start; }
.filters-toggle { display: none; }
.sidebar {
  position: sticky; top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: 22px;
}
.sidebar h2 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; font-weight: 700; }
.sidebar ul { list-style: none; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.filter-group:last-child { border: none; margin: 0; padding: 0; }
.side-cat, .side-link {
  width: 100%; text-align: left; background: none; border: none; color: var(--ink-dim);
  padding: 8px 10px; min-height: 38px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: background-color .18s, color .18s;
}
.side-cat span, .side-link span { font-family: var(--mono); font-size: 11px; color: var(--steel); }
.side-cat:hover, .side-link:hover { background: var(--accent-soft); color: #fff; }
.side-cat.active, .side-link.active { background: var(--accent-soft); color: #fff; font-weight: 700; }
.side-cat.active span, .side-link.active span { color: var(--accent-2); }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; color: var(--ink-dim); cursor: pointer; min-height: 32px; }
.check input {
  appearance: none; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 5px;
  cursor: pointer; position: relative; flex-shrink: 0; transition: background-color .2s, border-color .2s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.clear-filters {
  width: 100%; margin-top: 16px; background: none; border: 1px solid var(--line); color: var(--ink-dim);
  padding: 10px; min-height: 42px; border-radius: 9px; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: border-color .2s, color .2s;
}
.clear-filters:hover { border-color: var(--accent); color: #fff; }

.cat-content { min-width: 0; }
.result-bar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 6px; color: var(--steel); font-size: 13px; font-family: var(--mono); flex-wrap: wrap; }
.no-results { padding: 40px 0; color: var(--ink-dim); font-size: 16px; }
.no-results a { color: var(--accent-2); text-decoration: underline; }
.cat-block { padding: 30px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.cat-block.hidden { display: none; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cat-kicker { font-size: 11.5px; color: var(--steel); display: inline-block; margin-bottom: 8px; font-family: var(--mono); padding: 2px 0; }
.cat-kicker:hover { color: var(--accent-2); }
.cat-head h2 { font-size: clamp(21px, 2.6vw, 29px); }
.cat-head p { color: var(--ink-dim); font-size: 14.5px; margin-top: 6px; max-width: 560px; }
.cat-count { font-size: 12px; color: var(--steel); flex-shrink: 0; white-space: nowrap; font-family: var(--mono); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.pcard.hidden { display: none; }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 26px 54px -24px rgba(0, 0, 0, .85); }
  .pcard:hover .pcard-media img { transform: scale(1.05); }
}
.pcard-media {
  position: relative; aspect-ratio: 16 / 11; background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft); overflow: hidden; display: grid; place-items: center;
}
.pcard-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.pcard-media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard-icon { width: 56%; height: 56%; position: relative; }
.pcard-coat {
  position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em; padding: 4px 9px; border-radius: 6px;
  background: rgba(7, 14, 24, .82); border: 1px solid var(--line); color: var(--zinc);
}
.pcard-coat.proj { color: var(--steel); }
.pcard-coat.none { display: none; }
.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 15px; line-height: 1.3; margin-bottom: 12px; font-weight: 700; letter-spacing: -.01em; }
.pcard-body h3 a { display: inline-block; padding: 2px 0; }
.pcard-body h3 a:hover { color: var(--accent-2); }
.pcard-spec { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; }
.pcard-spec > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.pcard-spec dt { color: var(--steel); }
.pcard-spec dd { color: var(--ink-dim); text-align: right; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard-price { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.pcard-price.muted { color: var(--ink-dim); font-size: 14px; font-weight: 600; }
.pcard-kp {
  font-size: 13px; font-weight: 700; color: var(--accent-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; min-height: 38px;
  display: inline-flex; align-items: center;
  transition: border-color .2s, background-color .2s, color .2s;
}
.pcard-kp:hover { border-color: var(--accent); background: var(--accent-soft); color: #fff; }

.cat-cta {
  margin-top: 40px; padding: 34px; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(circle at 85% 0%, rgba(46, 139, 255, .13), transparent 55%), var(--panel);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
}
.cat-cta h2 { font-size: clamp(20px, 2.4vw, 27px); margin-bottom: 10px; }
.cat-cta p { color: var(--ink-dim); font-size: 14.5px; }
.cat-cta-btns { display: flex; flex-direction: column; gap: 12px; }

/* страница товара */
.pd-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; margin-top: 6px; }
.pd-media {
  position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--bg-2); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.pd-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.pd-media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.pd-media .pcard-icon { width: 52%; height: 52%; position: relative; }
.media-note { position: absolute; bottom: 12px; left: 12px; right: 12px; font-size: 10.5px; color: var(--steel); background: rgba(7, 14, 24, .8); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; width: fit-content; }
.pd-badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 7px; margin-bottom: 14px;
  border: 1px solid rgba(61, 211, 160, .35); color: var(--ok); background: rgba(61, 211, 160, .08);
}
.pd-badge.project { border-color: var(--line); color: var(--accent-2); background: var(--accent-soft); }
.pd-info h1 { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 20px; }
.pd-spec { display: flex; flex-direction: column; gap: 0; margin-bottom: 22px; max-width: 460px; }
.pd-spec > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; border-bottom: 1px dashed var(--line-soft); padding: 9px 0; }
.pd-spec dt { color: var(--steel); }
.pd-spec dd { color: var(--ink); text-align: right; }
.pd-price { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.pd-price span { font-size: .5em; color: var(--steel); font-weight: 600; }
.pd-price.muted { color: var(--ink-dim); }
.pd-price-note { font-size: 12.5px; color: var(--steel); margin: 6px 0 22px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-pickup { font-size: 13.5px; color: var(--ink-dim); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 13px 16px; max-width: 560px; background: var(--accent-soft); }
.pd-pickup b { color: var(--ink); }
.pd-related { padding: 40px 0 70px; }
.pd-related h2 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 22px; }

@media (max-width: 980px) {
  .chero-grid { grid-template-columns: 1fr; }
  .chero-art { display: none; }
  .cat-layout { grid-template-columns: 1fr; gap: 18px; }
  .filters-toggle { display: inline-flex; width: fit-content; }
  .sidebar { display: none; position: static; }
  .sidebar.open { display: block; }
  .sidebar-static { display: block; order: 2; }
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .cat-cta { grid-template-columns: 1fr; }
  .cat-cta-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pcard-spec > div { font-size: 12px; }
  .pcard-foot { flex-direction: column; align-items: stretch; }
  .pcard-kp { justify-content: center; }
  .cat-cta { padding: 24px 18px; }
  .cat-cta-btns .btn { flex: 1 1 100%; }
  .pd-actions .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bp-draw path, .bp-draw line, .bp-draw circle, .bp-draw rect { stroke-dasharray: none; stroke-dashoffset: 0; }
  .bp-dims, .bp-dims .dim-l, .bp-node { opacity: 1; transform: none; }
  .hero-copy > * { opacity: 1; transform: none; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .bp-layer { transition: none; }
}
