/* RackCore — server-hardware identity (импорт из Claude Design RackCore.dc.html).
   Warm off-white фон, near-black ink, зелёный LED-акцент, IBM Plex Sans/Mono + Space Grotesk,
   rack-мотивы, моно-метки, tabular-nums. Шрифты подключены <link> в base.html. */
:root {
  --bg: #F4F4F1;          /* warm off-white */
  --ink: #14161A;         /* near-black */
  --ink-2: #3C4049;
  --paper: #ffffff;
  --line: #E5E5DF;
  --line-2: #EEEEE9;
  --line-3: #F0F0EB;
  --muted: #565A61;
  --muted-2: #9A9EA6;
  --muted-3: #B0B4BB;
  --accent: #15C25E;      /* LED green */
  --accent-d: #0E9A47;    /* darker green (текст/ссылки) */
  --accent-bg: #F0FAF2;
  --dark: #0F1115;        /* utility strip / footer */
  --dark-2: #14161A;      /* hero / dark panels */
  --on-dark: #C7CBD2;
  --on-dark-2: #8A8F98;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
  --r-sm: 8px;
  --r-lg: 14px;
  --wrap: 1280px;
  --shadow: 0 18px 40px -24px rgba(0,0,0,.4);
  /* совместимость со старыми именами токенов в шаблонах */
  --accent-2: var(--accent);
  --ok: var(--accent-d);
  --ok-bg: var(--accent-bg);
}
@keyframes ledpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px var(--accent); display: inline-block; }
.led-pulse { animation: ledpulse 2.4s infinite; }

/* ── Utility strip ── */
.util { background: var(--dark); color: var(--on-dark); font-size: 12.5px; }
.util-in { display: flex; align-items: center; justify-content: space-between; height: 38px;
  font-family: var(--mono); letter-spacing: .2px; }
.util-tag { color: var(--on-dark-2); }
.util-r { display: flex; align-items: center; gap: 26px; }
.util-r a, .util-r span { color: var(--on-dark); text-decoration: none; cursor: pointer; }
.util-r a:hover { color: var(--accent); }
.util-phone { display: flex; align-items: center; gap: 7px; color: #fff; }

/* ── Header ── */
.hdr { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--ink); display: flex;
  align-items: center; justify-content: center; position: relative; flex: none; }
.brand-mark i { width: 18px; height: 13px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 4px); }
.brand-mark::after { content: ""; position: absolute; top: 6px; right: 6px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.brand-name { display: block; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.5px; color: var(--ink); line-height: 1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 2.5px; color: var(--muted-2); margin-top: 2px; }
.search { flex: 1; display: flex; height: 46px; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.search input { flex: 1; border: none; outline: none; padding: 0 16px; font-size: 14.5px; font-family: var(--sans); background: #fff; color: var(--ink); }
.search button { border: none; background: var(--ink); color: #fff; padding: 0 22px; font-family: var(--sans);
  font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.search button:hover { background: #000; }
.hdr-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hdr-phone { text-align: right; line-height: 1.25; text-decoration: none; }
.hdr-phone .k { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted-2); }
.hdr-phone .v { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.cart-link { position: relative; height: 46px; padding: 0 20px; border: none; border-radius: var(--r); background: var(--accent);
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex;
  align-items: center; gap: 9px; text-decoration: none; transition: filter .14s, transform .1s; }
.cart-link:hover { filter: brightness(1.07); }
.cart-link:active { transform: translateY(1px); }
.cart-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--accent-d);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); }

/* ── Category bar ── */
.catbar { border-top: 1px solid var(--line-2); position: relative; }
.catbar-in { display: flex; align-items: center; gap: 8px; height: 52px; overflow: hidden; }
.catbar-all { height: 36px; padding: 0 18px; border: none; border-radius: var(--r-sm); background: var(--ink); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 10px; margin-right: 8px; text-decoration: none; white-space: nowrap; flex: none; }
.catbar-burger { display: flex; flex-direction: column; gap: 3px; }
.catbar-burger i { width: 15px; height: 2px; background: #fff; }
.catbar-burger i:first-child { background: var(--accent); }
.catbar a:not(.catbar-all) { padding: 0 12px; height: 36px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); text-decoration: none; border-radius: var(--r-sm); white-space: nowrap; }
.catbar a:not(.catbar-all):hover { background: var(--line-3); color: var(--ink); }
.catbar a.on:not(.catbar-all) { background: var(--line-3); color: var(--ink); }
.catbar-stock { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 12px; color: var(--accent-d); white-space: nowrap; flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; }
.catbar-stock .led { flex: none; }

/* ===== Мега-меню каталога (нативный <details>, hover-переключение разделов через CSS :has) ===== */
.catmega { flex: none; }
.catmega > summary { list-style: none; }
.catmega > summary::-webkit-details-marker { display: none; }
.catmega-caret { font-size: 9px; opacity: .7; transition: transform .2s ease; }
.catmega[open] .catmega-caret { transform: rotate(180deg); }
.catmega[open] > summary { background: #1F232B; }
/* микро-анимация бар-иконки на hover (как в прототипе .rc-cat-btn) */
.catbar-all .rc-bar { transition: width .26s cubic-bezier(.34,1.4,.5,1), background .2s ease; }
.catbar-all:hover .rc-bar1 { width: 17px; }
.catbar-all:hover .rc-bar2 { width: 9px; }
.catbar-all:hover .rc-bar3 { width: 13px; background: var(--accent); }

.catmega-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: #fff;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); box-shadow: 0 26px 50px -22px rgba(15,17,21,.4); }
.catmega-grid { display: grid; grid-template-columns: 296px 1fr; gap: 30px; padding: 20px 32px 26px; align-items: start; }
.catmega-rail { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line-2); padding-right: 22px; }
.megadom { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; text-decoration: none; }
.megadom-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.megadom-cnt { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.megadom-arr { color: var(--line); font-size: 16px; line-height: 1; }
.megadom:hover, .megadom.on { background: var(--ink); }
.megadom:hover .megadom-name, .megadom.on .megadom-name { color: #fff; }
.megadom:hover .megadom-cnt, .megadom.on .megadom-cnt { color: rgba(255,255,255,.6); }
.megadom:hover .megadom-arr, .megadom.on .megadom-arr { color: var(--accent); }

.catmega-panes { position: relative; min-height: 180px; min-width: 0; }
.megapane { display: none; min-width: 0; max-width: 100%; }
.megapane:first-child { display: block; }                                  /* дефолт — первый раздел */
.catmega-grid:has(.megadom:hover) .megapane:first-child { display: none; } /* при наведении убрать дефолт */
.catmega-grid:has(.megadom:nth-child(1):hover) .megapane:nth-child(1),
.catmega-grid:has(.megadom:nth-child(2):hover) .megapane:nth-child(2),
.catmega-grid:has(.megadom:nth-child(3):hover) .megapane:nth-child(3),
.catmega-grid:has(.megadom:nth-child(4):hover) .megapane:nth-child(4),
.catmega-grid:has(.megadom:nth-child(5):hover) .megapane:nth-child(5),
.catmega-grid:has(.megadom:nth-child(6):hover) .megapane:nth-child(6),
.catmega-grid:has(.megadom:nth-child(7):hover) .megapane:nth-child(7),
.catmega-grid:has(.megadom:nth-child(8):hover) .megapane:nth-child(8) { display: block; }
.megapane-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-3); }
.megapane-title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.4px; color: var(--ink); }
.megapane-all { font-size: 12.5px; font-weight: 600; color: var(--accent-d); text-decoration: none; white-space: nowrap; }
/* repeat(3, minmax(0,1fr)) + min-width:0 на колонках — track'и могут сжиматься;
   без minmax(0,…) auto-минимум = min-content длинных названий → колонки распирают
   контейнер и 3-я уезжает за правый край панели/экрана (overflow ~225px). */
.megapane-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 26px; min-width: 0; }
.megacol { margin-bottom: 14px; min-width: 0; }
/* .catmega-скоуп нужен, чтобы перебить .catbar a:not(.catbar-all){display:inline-flex}
   (специфичность 0,2,1) — иначе ссылки/заголовки = inline-flex, тянутся по контенту и
   распирают колонку наружу панели (вторая причина overflow помимо track-sizing).
   display:block обязателен для работы text-overflow:ellipsis. */
.catmega .megapane-cols .megacol-h { display: flex; align-items: baseline; gap: 8px; padding: 5px 0;
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; min-width: 0; max-width: 100%; }
/* длинные названия категорий переносятся в 2 строки, а не распирают колонку */
.megacol-h-t { min-width: 0; overflow-wrap: anywhere; }
.megacol-h-c { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); flex: none; }
.megacol-h:hover { color: var(--accent-d); }
.catmega .megapane-cols .megacol-l { display: block; max-width: 100%; padding: 4px 0 4px 11px; font-size: 13px;
  color: var(--muted); text-decoration: none; border-left: 1.5px solid var(--line-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.megacol-l:hover { color: var(--ink); border-left-color: var(--accent); }
/* плоский домен без подкатегорий — компактная карточка-плейсхолдер вместо ссылки,
   зависшей в пустой ~890px-зоне. .catmega-скоуп — перебить .catbar a:not(.catbar-all). */
.catmega .megapane-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 6px; min-height: 120px; padding: 22px 24px; border: 1px dashed var(--line-2); border-radius: 12px;
  background: #FAFBFC; color: var(--accent-d); text-decoration: none; font-weight: 600; }
.megapane-empty::before { content: "Прямой переход в раздел — все товары и фильтры внутри";
  font-weight: 500; font-size: 12.5px; color: var(--muted-2); }
.megapane-empty:hover { border-color: var(--accent); }

/* ===== Дерево категорий в сайдбаре каталога (контекстное по active-пути) ===== */
.cat-tree { margin-bottom: 22px; }
.cat-tnode { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px;
  text-decoration: none; color: var(--ink-2, var(--muted)); font-size: 13.5px; }
.cat-tnode .ct-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: none; }
.cat-tnode .ct-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tnode .ct-caret { font-size: 9px; color: var(--muted-2); }
.cat-tnode .ct-cnt { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.cat-tnode.d0 { font-weight: 600; color: var(--ink); }
.cat-tnode.d1 { padding-left: 25px; }
.cat-tnode.d2 { padding-left: 42px; font-size: 13px; }
.cat-tnode:hover { background: var(--line-3); }
.cat-tnode.on { background: #EFFAF2; color: var(--accent-d); font-weight: 600; }
.cat-tnode.on .ct-dot { background: var(--accent); }

/* ── Hero ── */
.hero { background: var(--dark-2); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(100deg, transparent 0, transparent 42%, #000 78%);
  mask-image: linear-gradient(100deg, transparent 0, transparent 42%, #000 78%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 78% 18%, rgba(21,194,94,.16), transparent 60%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 64px 32px 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--accent); border: 1px solid rgba(21,194,94,.35); border-radius: 999px; padding: 7px 14px; margin-bottom: 26px; }
.eyebrow .led { width: 6px; height: 6px; box-shadow: 0 0 6px var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 22px; }
.hero p { font-size: 18px; line-height: 1.55; color: #AEB2BA; max-width: 480px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.hero-stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 27px; color: #fff; white-space: nowrap; }
.hero-stat span { font-size: 12.5px; color: var(--on-dark-2); margin-top: 4px; line-height: 1.3; display: block; }
/* rack visual */
/* Hero-визуал — серверная стойка (Gemini), вырезана rembg на прозрачном фоне (вертикальная) */
.hero-rack { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.38)); }

/* ── Buttons ── */
.btn { height: 52px; padding: 0 28px; border: none; border-radius: 11px; background: var(--accent); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: filter .14s, transform .1s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost-d { height: 52px; padding: 0 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: transparent;
  color: #fff; font-family: var(--sans); font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .14s, background .14s; }
.btn-ghost-d:hover { border-color: var(--accent); background: rgba(21,194,94,.08); }
.btn-lg { height: 52px; }
.btn-sm { height: 40px; padding: 0 16px; border: none; border-radius: var(--r-sm); background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ── Trust strip ── */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-cell { padding: 28px 26px 28px 0; display: flex; gap: 15px; border-right: 1px solid var(--line-2); }
.trust-cell:last-child { border-right: 0; padding-right: 0; }
.trust-ic { width: 42px; height: 42px; flex: none; border-radius: var(--r); background: var(--accent-bg); color: var(--accent-d);
  display: flex; align-items: center; justify-content: center; }
.trust-ic .ic, .trust-ic svg { width: 22px; height: 22px; }
.trust b { font-weight: 600; font-size: 15px; color: var(--ink); display: block; margin-bottom: 4px; }
.trust span { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── Section headers ── */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 62px 32px 10px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.eyebrow-l { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.sec-h { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -1px; margin: 0; }
.sec-all { font-weight: 600; font-size: 14.5px; color: var(--accent-d); cursor: pointer; text-decoration: none; white-space: nowrap; }

/* ── Category grid (rack-graphic tiles) ── */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; text-decoration: none;
  color: var(--ink); cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-vis { height: 96px; border-radius: var(--r); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: linear-gradient(135deg,#1C2027,#0F1116); }
.cat-vis .leds { display: flex; flex-direction: column; gap: 5px; }
.cat-vis .leds i { width: 7px; height: 7px; border-radius: 50%; background: #3A3F49; }
.cat-vis .leds i:first-child { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.cat-vis .strip { flex: 1; height: 42px; border-radius: 4px; opacity: .92; background: repeating-linear-gradient(90deg,#2A2F39 0 3px,#15181D 3px 7px); }
.cat-vis .tag { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: #5B616B; writing-mode: vertical-rl; }
.cat-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.4px; margin-bottom: 6px; }
.cat-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.cat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.cat-cnt { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.cat-arrow { color: var(--accent); font-size: 18px; }

/* ── Product card (featured + catalog) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  color: inherit; display: flex; flex-direction: column; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.pcard-img { position: relative; height: 160px; background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 16px; border-bottom: 1px solid var(--line); }
.pcard-img img { max-width: 100%; max-height: 128px; object-fit: contain; mix-blend-mode: multiply; }
.pcard-noimg { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.pcard-badge { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--accent); color: #fff; padding: 4px 9px; border-radius: 5px; }
.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.pcard-brand { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.pcard-rating { font-size: 12px; color: var(--accent-d); font-weight: 600; }
.pcard-title { font-weight: 600; font-size: 15px; line-height: 1.35; margin-bottom: 12px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-spec { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pcard-price { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.5px; color: var(--ink); min-width: 0; }
.pcard-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-d); white-space: nowrap; }
.pcard-stock i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pcard-stock.out { color: var(--muted-2); }
.pcard-stock.out i { background: var(--muted-3); }

/* ── Favorites: heart overlay on card + favorites page ── */
.pcard-wrap { position: relative; display: flex; min-width: 0; }
.pcard-wrap .pcard { flex: 1; }
.pcard-fav { position: absolute; top: 11px; right: 11px; z-index: 2; width: 34px; height: 34px; border: none;
  border-radius: 9px; background: rgba(20,22,26,.55); color: #fff; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .14s, color .14s, transform .1s; }
.pcard-fav:hover { background: rgba(20,22,26,.78); }
.pcard-fav:active { transform: scale(.92); }
.pcard-fav .ic-sm { width: 17px; height: 17px; vertical-align: 0; }
.pcard-fav.on { background: var(--accent); color: #fff; }
.pcard-fav.on:hover { filter: brightness(1.07); }

.fav-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.fav-sub b { color: var(--ink); font-weight: 600; }
.fav-empty { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 64px 32px; text-align: center; margin: 8px 0 40px; }
.fav-empty-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--bg); color: var(--muted-2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.fav-empty-ic .ic { width: 30px; height: 30px; }
.fav-empty-h { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; margin-bottom: 8px; }
.fav-empty p { font-size: 14.5px; color: var(--muted); max-width: 420px; margin: 0 auto 24px; line-height: 1.55; }

/* ── B2B band ── */
.b2b { max-width: var(--wrap); margin: 0 auto; padding: 54px 32px 10px; }
.b2b-box { background: var(--dark-2); border-radius: 18px; padding: 40px; position: relative; overflow: hidden; }
.b2b-box::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.b2b-in { position: relative; }
.b2b-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.b2b-head h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -1px; margin: 0; color: #fff; }
.b2b-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.10); border-radius: 12px; overflow: hidden; }
.b2b-cell { background: #16181D; padding: 26px 22px; }
.b2b-tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1px; color: var(--accent);
  border: 1px solid rgba(21,194,94,.32); border-radius: 6px; padding: 4px 9px; margin-bottom: 16px; }
.b2b-cell h3 { font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -.3px; margin: 0 0 9px; }
.b2b-cell p { font-size: 13px; line-height: 1.5; color: #9CA1A9; margin: 0; }

/* ── Brands strip ── */
.brands { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 70px; }
.brands-box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 34px 40px; }
.brands-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted-2); text-align: center; margin-bottom: 24px; }
.brands-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brands-row a, .brands-row span { font-family: var(--display); font-weight: 600; font-size: 22px; color: #C2C5CB; letter-spacing: -.5px; text-decoration: none; }
.brands-row a:hover { color: var(--ink); }

/* ── Breadcrumb / page title ── */
.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin: 24px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-d); }
.h1 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -1px; margin: 0 0 6px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 22px; }
.sec-right { display: flex; align-items: center; gap: 16px; }
.empty { padding: 50px 0; color: var(--muted); }
.empty a { color: var(--accent-d); }

/* ── Catalog: filters + sort + pager ── */
.cat-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; margin-bottom: 40px; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 22px 22px; position: sticky; top: 142px; }
.flt-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; border-bottom: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 600; font-size: 16px; }
.flt-group { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.flt-h { font-weight: 600; font-size: 13px; letter-spacing: .3px; color: var(--ink); margin-bottom: 13px; }
.flt-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.flt-price { display: flex; gap: 8px; }
.flt-price input, .flt-sel { width: 100%; height: 38px; padding: 0 11px; border: 1px solid #E0E0DA; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 13px; background: #fff; color: var(--ink); }
.flt-reset { display: block; text-align: center; margin-top: 12px; color: var(--accent-d); font-size: 12.5px; text-decoration: none; cursor: pointer; }
.sortbar { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: 12px 18px; margin-bottom: 20px; }
.sortf { margin: 0; display: flex; gap: 8px; align-items: center; }
.flt-sel-sort { height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: inherit; background: #fff; }
.sort-cnt { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
/* счётчик под h1 + сорт-пилюли (как в прототипе) */
.cat-count { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.cat-count b { color: var(--ink); font-weight: 600; }
.sort-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sort-pill { padding: 7px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; cursor: pointer; }
.sort-pill:hover { background: var(--line-3); color: var(--ink); }
.sort-pill.on { background: var(--ink); color: #fff; }
/* toggle «Только в наличии» */
.flt-toggle { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; color: var(--ink); }
.flt-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.flt-toggle .tg { width: 40px; height: 23px; flex: none; border-radius: 12px; background: #D6D6D0; position: relative; transition: background .15s; }
.flt-toggle .tg::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.flt-toggle input:checked + .tg { background: var(--accent); }
.flt-toggle input:checked + .tg::after { left: 19.5px; }
.flt-toggle input:focus-visible + .tg { outline: 2px solid var(--accent-d); outline-offset: 2px; }
.flt-reset-top { font-size: 12.5px; color: var(--accent-d); text-decoration: none; cursor: pointer; }
.flt-reset-top:hover { text-decoration: underline; }
.flt-group.cat-tree { margin-bottom: 0; }
.flt-group-last { border-bottom: 0; padding-bottom: 4px; }
.flt-apply { margin-top: 12px; }
/* Производитель: чекбокс-список (single-select ссылками, состояние в URL) */
.flt-brand { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; cursor: pointer; }
.flt-brand-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flt-brand-cnt { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.flt-box { width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid #C8C8C0; background: #fff;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; line-height: 1; transition: background .12s, border-color .12s; }
.flt-brand:hover .flt-brand-name { color: var(--ink); }
.flt-brand:hover .flt-box { border-color: var(--accent); }
.flt-brand.on .flt-box { background: var(--accent); border-color: var(--accent); }
.flt-brand.on .flt-brand-name { color: var(--ink); font-weight: 600; }
/* Характеристики (icecat-фасеты): чекбокс-список multi-select, состояние в URL (как Производитель) */
.flt-spec { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; cursor: pointer; }
.flt-spec-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flt-spec-cnt { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.flt-spec:hover .flt-spec-name { color: var(--ink); }
.flt-spec:hover .flt-box { border-color: var(--accent); }
.flt-spec.on .flt-box { background: var(--accent); border-color: var(--accent); }
.flt-spec.on .flt-spec-name { color: var(--ink); font-weight: 600; }
.subcats { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.subcat { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; }
.subcat:hover { border-color: var(--ink); }
.subcat span { font-family: var(--mono); color: var(--muted-2); font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 34px 0 56px; }
.pager a, .pager span.pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid #E0E0DA; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.pager a:hover { border-color: var(--ink); }

/* ── Product page ── */
.pd-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: start; margin: 8px 0 48px; }
.pd-img { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); height: 420px; display: flex; align-items: center; justify-content: center; padding: 24px; }
/* блок топ-характеристик у цены (как в прототипе) */
.pd-keyspecs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px; margin-bottom: 22px; }
.pd-ks { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.pd-ks:last-child { border-bottom: 0; }
.pd-ks .led { width: 6px; height: 6px; box-shadow: none; flex: none; }
.pd-ks b { font-weight: 600; }
.pd-img img { max-width: 100%; max-height: 372px; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 64px; height: 64px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-thumb.on { border-color: var(--accent); }
.pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-title { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -.6px; margin: 0 0 14px; }
.pd-meta { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.pd-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pd-price { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -1px; }
.pd-stock { margin: 10px 0 18px; }
.pd-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.pd-supply { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
.pd-supply b { color: var(--ink); font-weight: 600; }
.specs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted-2); }
.specs-count { letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.specs { columns: 2; column-gap: 28px; margin-bottom: 56px; }
.spec-group { break-inside: avoid; margin-bottom: 18px; }
.spec-gh { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); font-family: var(--display); }
.spec-tbl { width: 100%; border-collapse: collapse; }
.spec-tbl td { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; vertical-align: top; }
.spec-k { color: var(--muted); width: 52%; padding-right: 12px; }
.spec-v { color: var(--ink); font-family: var(--mono); }

/* ── Chips / status ── */
.chip { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.chip.in { background: var(--accent-bg); color: var(--accent-d); }
.chip.out { background: var(--line-3); color: var(--muted); }

/* ── Cart / checkout / forms ── */
.cart { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cart tr:last-child td { border-bottom: 0; }
.ci-title a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ci-price, .ci-sum { font-family: var(--mono); white-space: nowrap; font-weight: 600; }
.qtyf { display: flex; gap: 6px; }
.qtyf input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: #fff; }
.cart-foot { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin: 18px 0 48px; }
.total { font-family: var(--mono); font-weight: 600; font-size: 19px; }
.sm { font-size: 13px; }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin: 18px 0 48px; }
.co-form { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.co-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.co-form input, .co-form textarea, .quote-form input, .quote-form textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); }
.co-form input:focus, .co-form textarea:focus { border-color: var(--accent); outline: none; }
.co-inn { display: flex; gap: 8px; }
.co-inn input { flex: 1; }
.co-msg { font-size: 14px; }
.co-msg.ok { color: var(--accent-d); }
.co-msg.err { color: #b91c1c; }
.co-sum { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.co-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.co-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 19px; font-family: var(--mono); font-weight: 600; }
.ship-row { display: flex; gap: 8px; }
.ship-row input { flex: 1; }
.ship-opts:empty { display: none; }
.ship-list { display: flex; flex-direction: column; gap: 8px; }
.ship-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.ship-name { flex: 1; font-size: 14px; }
.ship-cost { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.pay-pick { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.pay-h { font-size: 14px; color: var(--muted); }
.pay-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* ── Заявка «Запросить цену» ── */
.quote { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.quote summary { cursor: pointer; font-weight: 600; color: var(--accent-d); display: flex; align-items: center; gap: 7px; list-style: none; }
.quote summary::-webkit-details-marker { display: none; }
.quote-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.quote-done { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }
.quote-done.ok { background: var(--accent-bg); color: var(--accent-d); }
.quote-done.err { background: #fef2f2; color: #b91c1c; }

/* ===== Модалка запроса КП (CSS :target, без JS) ===== */
.btn-quote { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 12px; padding: 11px 16px; border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s; }
.btn-quote:hover { background: var(--ink); color: #fff; }
.kp-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center;
  justify-content: center; padding: 20px; }
.kp-modal:target { display: flex; }
.kp-backdrop { position: absolute; inset: 0; background: rgba(15, 17, 21, .55); }
.kp-box { position: relative; z-index: 1; background: #fff; border-radius: 16px; max-width: 460px;
  width: 100%; padding: 26px 26px 24px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
.kp-x { position: absolute; top: 14px; right: 16px; color: var(--muted-2); text-decoration: none;
  font-size: 17px; line-height: 1; }
.kp-x:hover { color: var(--ink); }
.kp-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.3px;
  color: var(--ink); padding-right: 24px; }
.kp-prod { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.35; }
.kp-box .quote-form { margin-top: 16px; }

/* ── Order timeline / tracking ── */
.otl { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 10px; counter-reset: s; }
.otl li { position: relative; padding: 8px 14px 8px 34px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); counter-increment: s; }
.otl li::before { content: counter(s); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.otl li.done { color: var(--ink-2); border-color: var(--accent); }
.otl li.done::before { content: "✓"; background: var(--accent-d); }
.otl li.act { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.otl li.act::before { background: var(--accent); }
.track a { color: var(--accent-d); text-decoration: none; }

/* ── Иконки ── */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; flex: none; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
.flt-title .ic, .pd-supply .ic { color: var(--accent-d); }

/* ── Кабинет / авторизация / контент ── */
.auth-box { max-width: 420px; margin: 40px auto 60px; }
.auth-err { background: #fdeaea; color: #b5240f; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; }
.acc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 24px; }
.page { max-width: 820px; padding-bottom: 56px; }
.prose { color: var(--ink-2); font-size: 15px; }
.prose h2 { font-family: var(--display); font-size: 19px; color: var(--ink); margin: 28px 0 10px; letter-spacing: -.3px; }
.prose a { color: var(--accent-d); }
.lead { color: var(--ink-2); max-width: 60ch; margin: 6px 0 22px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.brand-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s; }
.brand-tile:hover { border-color: var(--ink); }
.brand-tile .brand-name { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 16px; }
.brand-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ===== Бренды: лендинг (карточки бренд+категории) + страница бренда ===== */
.h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.5px; color: var(--ink); margin: 0; }
/* — Бренды: тёмный hero (паттерн .hero: grid + green glow) — */
.bhero { background: var(--dark-2); color: #fff; position: relative; overflow: hidden; margin-bottom: 8px; }
.bhero::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%); }
.bhero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 460px at 82% 12%, rgba(21,194,94,.14), transparent 60%); }
.bhero-in { position: relative; padding: 30px 32px 56px; }
.bhero-crumbs { font-family: var(--mono); font-size: 12.5px; color: #8A8F98; margin-bottom: 26px; }
.bhero-crumbs a { color: #AEB2BA; text-decoration: none; }
.bhero-crumbs a:hover { color: #fff; }
.bhero-crumbs span { margin: 0 8px; }
.bhero-crumbs .cur { color: #fff; margin: 0; }
.bhero-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }
.bhero-h1 { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.08; letter-spacing: -1.4px;
  margin: 0 0 20px; max-width: 820px; }
.bhero-lead { font-size: 17px; line-height: 1.6; color: #AEB2BA; max-width: 660px; margin: 0 0 36px; }
.bhero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; max-width: 820px; }
.bhero-stat b { display: block; font-family: var(--display); font-size: 27px; font-weight: 700; color: #fff; white-space: nowrap; }
.bhero-stat span { font-size: 12.5px; color: #8A8F98; margin-top: 4px; }
.bcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 44px; }
.bcard { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bcard:hover { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(20, 22, 26, .4); transform: translateY(-2px); }
.bcard-top { display: flex; align-items: center; justify-content: space-between; }
.bcard-wm { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.3px; }
.bcard-instock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent-d); }
.bcard-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.bcard-cat { font-size: 11.5px; color: var(--ink-2); background: var(--line-3); border-radius: 999px; padding: 3px 9px; }
.bcard-cat b { color: var(--muted-2); font-weight: 600; }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.bcard-cnt { font-size: 13px; color: var(--muted); }
.bcard-go { font-size: 13px; font-weight: 600; color: var(--accent-d); }
/* — Бренды: assurance-band (светлая карточка, 3 колонки с зелёными иконками) — */
.bassure { display: grid; grid-template-columns: repeat(3, 1fr); margin: 42px 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 36px; }
.bassure-cell { display: flex; gap: 15px; padding: 28px 28px 28px 0; border-right: 1px solid #EEEEE9; }
.bassure-cell:nth-child(2) { padding: 28px; }
.bassure-cell:last-child { padding: 28px 0 28px 28px; border-right: none; }
.bassure-ic { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--accent-bg); color: var(--accent-d);
  display: flex; align-items: center; justify-content: center; }
.bassure-ic svg { width: 21px; height: 21px; }
.bassure-tx b { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; margin-bottom: 5px; }
.bassure-tx span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* — Бренды: CTA-band (тёмный блок, grid + green glow) — */
.bcta { padding: 54px 0 70px; }
.bcta-body { position: relative; overflow: hidden; background: var(--dark-2); border-radius: 18px; padding: 44px; }
.bcta-body::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%); }
.bcta-body::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 88% 20%, rgba(21,194,94,.16), transparent 60%); }
.bcta-copy, .bcta-actions { position: relative; }
.bcta-body { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.bcta-copy { max-width: 620px; }
.bcta-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.bcta-h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -1px; margin: 0 0 10px; color: #fff; }
.bcta-lead { font-size: 15px; line-height: 1.6; color: #AEB2BA; margin: 0; }
.bcta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.brand-single { display: flex; gap: 24px; align-items: center; padding: 22px 0 10px; }
.bs-wm { font-family: var(--display); font-weight: 700; font-size: 30px; color: #fff; background: var(--ink);
  border-radius: var(--r); padding: 22px 26px; white-space: nowrap; flex: none; }
.bs-info .h1 { margin: 0 0 6px; }

/* — Страница бренда: hero (плитка-wordmark + контент) — */
.bsh-grid { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; }
.bsh-tile { height: 150px; border-radius: 16px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.bsh-tile span { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.6px;
  color: #fff; text-align: center; line-height: 1.1; }
.bsh-h1 { font-size: 40px; margin: 0 0 14px; }
.bsh-lead { margin: 0 0 26px; }
.bsh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bsh-actions .btn, .bsh-actions .btn-ghost-d { height: 50px; }
.bsh-stats { margin-top: 38px; max-width: none; }

/* — Страница бренда: продуктовые линейки (топ-категории) — */
.blines { padding: 54px 0 6px; }
.blines-head { margin-bottom: 24px; }
.blines-sub { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }
.blines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bline { display: flex; align-items: flex-start; gap: 13px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: 13px; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.bline:hover { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(20,22,26,.4); transform: translateY(-2px); }
.bline-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent-bg); color: var(--accent-d);
  display: flex; align-items: center; justify-content: center; }
.bline-ic svg { width: 16px; height: 16px; }
.bline-tx { font-size: 14.5px; line-height: 1.5; color: var(--ink); padding-top: 4px; }
.bline-tx b { color: var(--muted-2); font-weight: 600; }
@media (max-width: 860px) {
  .bcards { grid-template-columns: repeat(2, 1fr); }
  .bhero-h1 { font-size: 36px; }
  .bhero-stats { grid-template-columns: repeat(2, 1fr); }
  .bassure { grid-template-columns: 1fr; padding: 0 28px; }
  .bassure-cell, .bassure-cell:nth-child(2), .bassure-cell:last-child {
    padding: 26px 0; border-right: none; border-bottom: 1px solid #EEEEE9; }
  .bassure-cell:last-child { border-bottom: none; }
  .bcta-body { padding: 34px 26px; }
  .bcta-actions { width: 100%; }
  .bcta-actions .btn, .bcta-actions .btn-ghost-d { flex: 1; }
  .brand-single { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bsh-grid { grid-template-columns: 1fr; gap: 22px; }
  .bsh-tile { height: 110px; }
  .bsh-h1 { font-size: 34px; }
  .blines-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .bcards { grid-template-columns: 1fr; } .bhero-stats { grid-template-columns: 1fr; gap: 18px; }
  .blines-grid { grid-template-columns: 1fr; } }

/* ── Footer ── */
.ftr { background: var(--dark); color: #9CA1A9; margin-top: 64px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 54px 32px 30px; max-width: var(--wrap); margin: 0 auto; }
.ftr-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.ftr-mark { width: 34px; height: 34px; border-radius: 8px; background: #1C2027; display: flex; align-items: center; justify-content: center; }
.ftr-mark i { width: 16px; height: 11px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 4px); }
.ftr-bn { font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -.5px; }
.ftr-desc { font-size: 13.5px; line-height: 1.6; color: #7E838C; max-width: 280px; margin: 0 0 18px; }
.ftr-contact { font-family: var(--mono); font-size: 13px; color: #fff; text-decoration: none; display: block; }
.ftr-contact.sub { font-size: 12.5px; color: #7E838C; margin-top: 4px; }
.ftr-soc { display: flex; gap: 10px; margin-top: 16px; }
.ftr-soc a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid #2A2E37; border-radius: 9px;
  background: #16181D; color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .14s, background .14s; }
.ftr-soc a:hover { border-color: var(--accent); background: #1C2027; }
.ftr-h { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: #fff; margin-bottom: 16px; }
.ftr-col a { display: block; font-size: 13.5px; color: #9CA1A9; padding: 6px 0; text-decoration: none; }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; max-width: var(--wrap); margin: 0 auto;
  border-top: 1px solid #1E222A; font-size: 12.5px; color: #6B7079; flex-wrap: wrap; gap: 8px; }
.ftr-bottom .mono { font-family: var(--mono); }

/* ── Cookie ── */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 16px; align-items: center;
  justify-content: center; flex-wrap: wrap; background: var(--dark-2); color: #e2e8f0; border: 1px solid #2A2E37; padding: 14px 20px;
  border-radius: var(--r); font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: var(--accent); }
.cookie-bar button { height: 40px; padding: 0 20px; border: 0; border-radius: var(--r-sm); background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ── Mobile ── */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-rack { display: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-in, .b2b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; min-width: 0; }
  .co-grid, .ftr-in { grid-template-columns: 1fr; gap: 24px; }
  .pd-top { grid-template-columns: 1fr; }
  .wrap, .sec, .b2b, .brands, .hero-in, .ftr-in { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 38px; }
  .hdr-in { flex-wrap: wrap; height: auto; gap: 12px 16px; padding: 12px 0; }
  .search { order: 3; flex-basis: 100%; }
  .hdr-phone { display: none; }
  .util-tag { display: none; }
}
@media (max-width: 600px) {
  .cats, .grid-4, .trust-in, .b2b-grid { grid-template-columns: 1fr; }
}

/* ── Product page: тёмный buy-box (RackCore.dc.html) ── */
.pd-metaline { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.pd-buy { background: var(--dark-2); border-radius: 16px; padding: 24px; color: #fff; }
.pd-buy-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-cond { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: #7DEBA0; background: rgba(21,194,94,.14); border: 1px solid rgba(21,194,94,.3); padding: 5px 11px; border-radius: 7px; }
.pd-cond.out { color: var(--muted-2); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.pd-cond.out .led { background: var(--muted-3); box-shadow: none; }
.pd-ship { font-size: 12.5px; color: var(--on-dark-2); }
.pd-buy-price { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: -1px; line-height: 1; margin-bottom: 18px; }
.pd-buy-cta { margin: 0; }
.pd-buy-cta .btn { width: 100%; height: 54px; font-size: 16px; }
.pd-buy-soc { display: flex; gap: 10px; margin-top: 12px; }
.pd-buy-soc a { flex: 1; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff;
  font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .14s, background .14s; }
.pd-buy-soc a:hover { border-color: var(--accent); background: rgba(21,194,94,.1); }
.pd-buy-soc .ic, .pd-buy-soc .ic-sm { color: var(--accent); }
.pd-info .quote { margin-top: 18px; border-top: none; padding-top: 0; }
/* галерея товара — фото вендоров на белом тайле */
.pd-img { background: #fff; }
/* каталог: 3-кол. сетка + текущая страница пагинатора */
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pager .pg.cur { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ══ Корзина (RackCore.dc.html) ══ */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; margin-bottom: 48px; }
.cart-items { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 15px; }
.ci { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.ci:last-child { border-bottom: 0; }
.ci-thumb { width: 130px; height: 80px; flex: none; background: linear-gradient(135deg,#1C2027,#0E1015); border-radius: 9px;
  display: flex; align-items: center; gap: 9px; padding: 0 13px; text-decoration: none; }
.ci-thumb .led { width: 6px; height: 6px; }
.ci-thumb .bar { flex: 1; height: 30px; border-radius: 3px; background: repeating-linear-gradient(90deg,#2A2F39 0 3px,#15181D 3px 7px); }
.ci-thumb .bay { width: 9px; height: 24px; background: linear-gradient(180deg,#2E333D,#1B1E24); border-radius: 1.5px; border: 1px solid #3A3F49; }
.ci-info { flex: 1; min-width: 0; }
.ci-meta { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-bottom: 5px; }
.ci-name { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; text-decoration: none; }
.ci-name:hover { color: var(--accent-d); }
.ci-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-d); }
.ci-stock .led { width: 6px; height: 6px; box-shadow: none; }
.ci-stock.out { color: var(--muted-2); }
.ci-stock.out .led { background: var(--muted-3); }
.qty-step { display: inline-flex; align-items: center; border: 1px solid #E0E0DA; border-radius: 9px; overflow: hidden; flex: none; }
.qty-step form { margin: 0; }
.qty-step button { width: 34px; height: 38px; border: 0; background: #fff; color: var(--ink-2); font-size: 18px; cursor: pointer; }
.qty-step button:hover { background: var(--bg); }
.qty-n { width: 38px; text-align: center; font-weight: 600; font-size: 14px; font-family: var(--mono); }
.ci-line { width: 140px; text-align: right; flex: none; }
.ci-line-sum { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.4px; }
.ci-line-each { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.ci-rm { margin: 0; flex: none; }
.ci-rm button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted-3); font-size: 15px; cursor: pointer; border-radius: 7px; }
.ci-rm button:hover { background: #FBECEA; color: #C24A3D; }
/* тёмный summary (корзина + checkout) */
.cart-sum { background: var(--dark-2); border-radius: 16px; padding: 26px; color: #fff; position: sticky; top: 142px; }
.cart-sum-h { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 20px; }
.cart-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; color: #AEB2BA; }
.cart-sum-row b { color: #fff; font-family: var(--mono); font-weight: 600; }
.cart-sum-row .free { color: var(--accent); }
.cart-sum-hr { height: 1px; background: rgba(255,255,255,.12); margin: 14px 0; }
.cart-sum-total { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; font-size: 15px; }
.cart-sum-total .v { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.8px; }
.cart-sum .btn { margin-bottom: 12px; }
.cart-sum-back { display: block; text-align: center; font-size: 13.5px; color: var(--on-dark-2); text-decoration: none; }
.cart-sum-back:hover { color: #fff; }
/* пустая корзина */
.cart-empty { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 72px 40px; text-align: center; margin-bottom: 48px; }
.cart-empty-ic { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 18px; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.cart-empty-ic .led { background: #C4C8CE; box-shadow: none; }
.cart-empty-ic .bar { flex: 1; height: 26px; border-radius: 3px; background: repeating-linear-gradient(90deg,#D7DADF 0 3px,#EDEEF0 3px 7px); }
.cart-empty-h { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.5px; margin-bottom: 10px; }
.cart-empty p { font-size: 15px; color: var(--muted); max-width: 380px; margin: 0 auto 28px; line-height: 1.5; }

/* ══ Checkout (RackCore.dc.html) ══ */
.co-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; margin-bottom: 48px; }
.co-cards { display: flex; flex-direction: column; gap: 18px; }
.co-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.co-card-h { font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-f { display: flex; flex-direction: column; gap: 7px; }
.co-f.wide { grid-column: 1 / -1; }
.co-l { font-family: var(--mono); font-size: 12px; letter-spacing: .5px; color: var(--muted); }
.co-f input, .co-f textarea { height: 46px; border: 1px solid #E0E0DA; border-radius: 9px; padding: 0 14px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.co-f textarea { height: auto; padding: 11px 14px; }
.co-f input:focus, .co-f textarea:focus { border-color: var(--accent); outline: none; }
.co-summary .co-sum-items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.co-sum-item { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.co-sum-item .t { flex: 1; color: var(--on-dark); line-height: 1.3; }
.co-sum-item .x { color: #7E838C; font-family: var(--mono); }
.co-sum-item .s { font-family: var(--mono); color: #fff; white-space: nowrap; }
.co-note { text-align: center; font-size: 12px; color: #7E838C; line-height: 1.5; margin-top: 12px; }
/* тип покупателя (физ/юр) + реквизиты компании по выбору */
.co-btype { display: flex; gap: 10px; }
.co-bt { flex: 1; }
.co-bt input { position: absolute; opacity: 0; pointer-events: none; }
.co-bt span { display: flex; align-items: center; justify-content: center; height: 52px; border: 1.5px solid #E0E0DA;
  border-radius: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: border-color .12s, background .12s, color .12s; }
.co-bt input:checked + span { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-d); }
.co-bt input:focus-visible + span { outline: 2px solid var(--accent-d); outline-offset: 2px; }
.co-legal { display: none; }
.co-cards:has(#bt-legal:checked) .co-legal { display: block; }

/* ===== Доставка: курьер / ПВЗ СДЭК (CSS :has-тоггл) ===== */
.co-dmode { display: flex; gap: 10px; margin-bottom: 14px; }
.co-courier, .co-point { display: none; }
.co-cards:has(#dm-courier:checked) .co-courier { display: block; }
.co-cards:has(#dm-point:checked) .co-point { display: block; }
.pvz-points { margin-top: 12px; }
.pvz-wrap.has-map { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: start; }
.cdek-map { width: 100%; height: 300px; border-radius: var(--r-sm); margin-bottom: 12px; background: #14161A; overflow: hidden; }
.pvz-wrap.has-map .cdek-map { height: auto; min-height: 340px; margin-bottom: 0; }
.pvz-wrap.has-map .pvz-list { max-height: 360px; }
@media (max-width: 860px) { .pvz-wrap.has-map { grid-template-columns: 1fr; } .pvz-wrap.has-map .cdek-map { min-height: 260px; order: -1; } }
.pvz-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.pvz-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; }
.pvz-item:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.pvz-item input { margin: 0; flex: none; }
.pvz-body { flex: 1; min-width: 0; }
.pvz-addr { display: block; font-size: 14px; color: var(--ink); }
.pvz-wt { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pvz-tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); flex: none; }
.pvz-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
@media (max-width: 860px) {
  .cart-grid, .co-grid { grid-template-columns: 1fr; }
  .cart-sum, .co-summary { position: static; }
  .co-fields { grid-template-columns: 1fr; }
  .ci { flex-wrap: wrap; }
  .ci-thumb { width: 88px; height: 60px; }
}

/* ══ Контент-страницы (О компании, Гарантия и доставка) — RackCore.dc.html ══ */
.page-hero { background: var(--dark-2); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg,#000,transparent 80%); mask-image: linear-gradient(180deg,#000,transparent 80%); }
.page-hero-in { max-width: var(--wrap); margin: 0 auto; padding: 30px 32px 56px; position: relative; }
.page-hero .crumbs { color: var(--on-dark-2); margin-bottom: 22px; }
.page-hero .crumbs a { color: var(--on-dark); text-decoration: none; }
.page-hero .crumbs a:hover { color: #fff; }
.ph-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }
.page-hero h1 { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -1.4px; margin: 0 0 18px; max-width: 760px; }
.page-hero .lead { font-size: 17px; line-height: 1.6; color: var(--on-dark); max-width: 620px; margin: 0 0 34px; }
.ph-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; max-width: 760px; }
.ph-stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 27px; white-space: nowrap; }
.ph-stat span { font-size: 12.5px; color: var(--on-dark-2); margin-top: 4px; }
.page-sec { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 0; }
.page-sec:last-child { padding-bottom: 70px; }
.page-sec h2 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.8px; margin: 0 0 8px; }
.page-sec .sub { font-size: 15px; color: var(--muted); margin: 0 0 26px; max-width: 620px; }
/* плитки-ценности */
.vals { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.val { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.val-ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--accent-bg); color: var(--accent-d); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.val-ic .ic, .val-ic svg { width: 20px; height: 20px; }
.val h3 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.3px; margin: 0 0 9px; }
.val p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
/* шаги заказа */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps-4 { grid-template-columns: repeat(4,1fr); }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step-n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-d); margin-bottom: 12px; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
/* тёмная инфо-плашка */
.info-band { background: var(--dark-2); border-radius: var(--r-lg); padding: 22px 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #fff; margin-top: 24px; }
.info-band .ib-led { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent); }
.info-band .ib-sep { color: #3A3F49; }
.info-band .ib-txt { font-size: 14px; color: var(--on-dark); }
/* реквизиты */
.req-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 26px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.req-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-2); gap: 20px; }
.req-row:last-child, .req-grid > .req-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.req-row .k { font-size: 13.5px; color: var(--muted); }
.req-row .v { font-size: 13.5px; color: var(--ink); font-weight: 500; font-family: var(--mono); text-align: right; }
@media (max-width: 820px) { .vals, .steps, .steps-4, .ph-stats { grid-template-columns: repeat(2,1fr); } .req-grid { grid-template-columns: 1fr; } .page-hero h1 { font-size: 34px; } }
@media (max-width: 520px) { .vals, .steps, .steps-4, .ph-stats { grid-template-columns: 1fr; } }

/* ── Тарифы/аспекты гарантии (карточки-тарифы из прототипа) ── */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tier { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 26px; }
.tier.on { border-color: var(--accent); box-shadow: 0 18px 40px -28px rgba(21,194,94,.55); }
.tier-badge { position: absolute; top: -11px; left: 26px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--accent); color: #fff; padding: 4px 11px; border-radius: 6px; }
.tier-term { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.6px; color: var(--accent); margin-bottom: 4px; }
.tier-t { font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.tier-d { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.tier-list { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.tier-li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
.tier-li .ck { color: var(--accent); flex-shrink: 0; display: inline-flex; }
.tier-li .ck svg, .tier-li .ck .ic { width: 15px; height: 15px; }

/* ── Logo-wall заказчиков (обобщённые сегменты) ── */
.logowall-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 34px 40px; }
.logowall-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--muted-2); text-align: center; margin-bottom: 26px; }
.logowall { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.logowall-cell { background: var(--paper); min-height: 78px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logowall-cell span { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -.3px; color: var(--muted-3); text-align: center; transition: color .14s; }
.logowall-cell:hover span { color: var(--ink); }
.logowall-note { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 18px; }

/* ── CTA-плашка внутри .page-sec (тёмный grid+glow, как .bcta) ── */
.page-cta { position: relative; overflow: hidden; background: var(--dark-2); border-radius: 18px; padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-cta::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-cta::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 88% 20%, rgba(21,194,94,.16), transparent 60%); }
.page-cta-copy { position: relative; max-width: 620px; }
.page-cta-actions { position: relative; display: flex; gap: 12px; flex-shrink: 0; }
.page-cta-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.page-cta h2 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -1px; margin: 0 0 10px; color: #fff; }
.page-cta p { font-size: 15px; line-height: 1.6; color: #AEB2BA; margin: 0; }
.page-cta .btn, .page-cta .btn-ghost-d { height: 50px; }

/* ── Сервис: тёмный SLA-блок (split с разделителем) ── */
.svc-sla { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
  position: relative; overflow: hidden; background: var(--dark-2); border-radius: 18px; padding: 36px 40px; color: #fff; }
.svc-sla::before { content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 46px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.svc-sla::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 85% 15%, rgba(21,194,94,.15), transparent 60%); }
.svc-sla-l, .svc-sla-r { position: relative; }
.svc-sla-l h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.6px; margin: 0 0 18px; color: #fff; }
.svc-tiers { display: flex; flex-direction: column; gap: 12px; }
.svc-tier { display: flex; align-items: center; gap: 16px; }
.svc-tier .lv { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); width: 34px; height: 34px;
  border: 1px solid rgba(21,194,94,.4); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-tier b { font-weight: 600; font-size: 15px; }
.svc-tier span { color: var(--on-dark-2); font-size: 13.5px; }
.svc-sla-r { text-align: center; border-left: 1px solid rgba(255,255,255,.12); padding-left: 32px; }
.svc-sla-r .cap { font-family: var(--mono); font-size: 12px; color: var(--on-dark-2); margin-bottom: 8px; }
.svc-sla-r .big { font-family: var(--display); font-weight: 700; font-size: 38px; letter-spacing: -1px; margin-bottom: 6px; }
.svc-sla-r .d { font-size: 13.5px; color: var(--on-dark); margin-bottom: 22px; }
.svc-sla-r .btn { height: 48px; }

@media (max-width: 820px) {
  .tiers { grid-template-columns: 1fr; }
  .logowall { grid-template-columns: repeat(2,1fr); }
  .svc-sla { grid-template-columns: 1fr; padding: 30px 28px; }
  .svc-sla-r { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; padding-top: 26px; }
  .page-cta { padding: 34px 26px; }
  .page-cta-actions { width: 100%; }
  .page-cta-actions .btn, .page-cta-actions .btn-ghost-d { flex: 1; }
}
@media (max-width: 520px) { .logowall { grid-template-columns: 1fr; } }

/* ── Контакты (RackCore.dc.html) ── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.ct-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--muted-2); margin-bottom: 14px; }
.ct-phone { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.5px; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.ct-phone.sub { font-size: 18px; color: var(--ink-2); }
.ct-email { display: inline-block; font-family: var(--mono); font-size: 14px; color: var(--accent-d); text-decoration: none; margin-top: 6px; }
.ct-hours { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.ct-soc { display: flex; gap: 10px; margin-top: 18px; }
.ct-soc a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .14s, background .14s; }
.ct-soc a:hover { border-color: var(--accent); background: var(--accent-bg); }
.ct-soc .ic-sm { color: var(--accent); }
.ct-addr { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.ct-addr .ic-sm { color: var(--accent-d); flex: none; margin-top: 2px; }
.contacts-map { background: linear-gradient(135deg,#1C2027,#0E1015); border: 1px solid var(--line); border-radius: 16px; min-height: 380px; position: relative; overflow: hidden; }
.cm-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px); }
.cm-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-100%); display: flex; flex-direction: column; align-items: center; }
.cm-label { background: var(--dark-2); color: #fff; font-family: var(--mono); font-size: 12.5px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 24px rgba(0,0,0,.4); margin-bottom: 6px; }
.cm-dot { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 0 5px rgba(21,194,94,.25); }
@media (max-width: 820px) { .contacts-grid { grid-template-columns: 1fr; } .contacts-map { min-height: 260px; } }

/* ── Success / страница заказа (RackCore.dc.html) ── */
.ok-hero { text-align: center; padding: 48px 0 8px; }
.ok-check { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; }
.ok-check span { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(21,194,94,.18); }
.ok-check.cancel { background: #FBECEA; }
.ok-check.cancel span { background: #C24A3D; box-shadow: 0 0 0 6px rgba(194,74,61,.18); }
.ok-h { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -1px; margin: 0 0 12px; }
.ok-sub { font-size: 16px; color: var(--muted); line-height: 1.55; max-width: 480px; margin: 0 auto 8px; }
.ok-note { font-size: 15px; color: var(--accent-d); margin: 0 0 8px; }
.ok-otl { justify-content: center; margin: 28px 0 8px; }
.ord-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 8px 28px; max-width: 640px; margin: 24px auto; }
.ord-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; gap: 16px; }
.ord-row:last-child { border-bottom: 0; }
.ord-row .k { color: var(--muted); }
.ord-row .v { font-weight: 600; text-align: right; }
.ord-row.total .v { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.6px; }
.ok-track { text-align: center; font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.ok-track a { color: var(--accent-d); text-decoration: none; }
.ord-items { max-width: 640px; margin: 0 auto 28px; }
.ord-item { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.ord-item:last-child { border-bottom: 0; }
.ord-item .x { color: var(--muted-2); font-family: var(--mono); }
.ord-item .s { white-space: nowrap; color: var(--ink); }
.ord-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* ── Конфигуратор сервера (RackCore.dc.html) ── */
.cfg-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--accent-d); white-space: nowrap; }
.cfg-opts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cfg-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid #E8E8E2; border-radius: 10px; padding: 13px 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.cfg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #C8C8C2; flex: none; display: flex; align-items: center; justify-content: center; transition: border-color .12s; }
.cfg-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background .12s; }
.cfg-opt:hover { border-color: var(--muted-3); }
.cfg-opt input:checked + .cfg-dot { border-color: var(--accent); }
.cfg-opt input:checked + .cfg-dot::after { background: var(--accent); }
.cfg-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.cfg-opt:has(input:checked) .cfg-name { color: var(--ink); font-weight: 600; }
.cfg-name { font-size: 14px; color: var(--ink-2); }
.cfg-summary .cfg-note-top { font-size: 13px; color: var(--on-dark); line-height: 1.5; margin: 0 0 16px; }
.cfg-incl { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 11px; }
.cfg-incl li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--on-dark); }
.cfg-incl .ic-sm { color: var(--accent); flex: none; }
.catbar-cfg { color: var(--accent-d) !important; font-weight: 600 !important; }
.catbar-cfg:hover { background: var(--accent-bg) !important; }
/* нумерованный бейдж шага в заголовке карточки */
.cfg-step { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--dark-2); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; margin-right: 8px; vertical-align: middle; }
.co-card-h { display: flex; align-items: center; }
/* карточки-платформы с rack-визуалом (приём cat-vis) */
.cfg-plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cfg-plat { position: relative; display: flex; flex-direction: column; border: 1.5px solid #E8E8E2; border-radius: 12px; padding: 16px; cursor: pointer;
  transition: border-color .14s, background .14s, transform .14s; }
.cfg-plat input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-plat:hover { border-color: var(--muted-3); transform: translateY(-2px); }
.cfg-plat:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.cfg-plat-vis { height: 40px; border-radius: 8px; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: linear-gradient(135deg,#1C2027,#0F1116); }
.cfg-plat-vis .leds { display: flex; flex-direction: column; gap: 4px; }
.cfg-plat-vis .leds i { width: 6px; height: 6px; border-radius: 50%; background: #3A3F49; }
.cfg-plat-vis .leds i:first-child { background: var(--accent); box-shadow: 0 0 5px var(--accent); }
.cfg-plat-vis .strip { flex: 1; height: 24px; border-radius: 3px; background: repeating-linear-gradient(90deg,#2A2F39 0 3px,#15181D 3px 7px); }
.cfg-plat-name { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); margin-bottom: 4px; }
.cfg-plat:has(input:checked) .cfg-plat-name { color: var(--ink); }
.cfg-plat-form { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
/* тёмный summary конфигуратора */
.cfg-sub { font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-2); line-height: 1.5; margin: -8px 0 18px; }
.cfg-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.cfg-price-l { font-size: 15px; color: #fff; }
.cfg-price-v { font-family: var(--mono); font-size: 13px; color: var(--accent); text-align: right; line-height: 1.4; }
.cfg-foot { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--on-dark-2); margin-top: 14px; }
.cfg-foot .led { width: 6px; height: 6px; box-shadow: none; }
/* нейтральная подпись доставки в корзине (СДЭК считается на checkout) */
.cart-sum-dlv { color: var(--on-dark); }
@media (max-width: 600px) { .cfg-opts-grid, .cfg-plat-grid { grid-template-columns: 1fr; } }

/* ══ Адаптивность / мобильное меню (RackCore.dc.html responsive) ══ */
.acct-btn { width: 46px; height: 46px; flex: none; border: 1px solid #E0E0DA; border-radius: var(--r); background: #fff;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .14s, color .14s; }
.acct-btn:hover { border-color: var(--ink); color: var(--ink); }
.fav-link { position: relative; width: 46px; height: 46px; flex: none; border: 1px solid #E0E0DA; border-radius: var(--r);
  background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: border-color .14s, color .14s; }
.fav-link:hover { border-color: var(--ink); color: var(--accent-d); }
.fav-n { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--mono);
  display: inline-flex; align-items: center; justify-content: center; }
.fav-n.hide { display: none; }
.cart-link .ic-sm { display: none; }  /* на десктопе текст «Корзина», иконка — для мобилы */
.burger { display: none; flex-direction: column; gap: 4px; width: 46px; height: 46px; flex: none; border: 1px solid #E0E0DA;
  border-radius: var(--r); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger i { width: 18px; height: 2px; background: var(--ink); border-radius: 1px; }
.burger i:first-child { background: var(--accent); }
.mnav, .mnav-backdrop { display: none; }
.mnav-toggle:checked ~ .mnav { display: flex; }
.mnav-toggle:checked ~ .mnav-backdrop { display: block; }
.mnav-backdrop { position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 69; }
.mnav { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 86vw; z-index: 70; background: var(--paper);
  flex-direction: column; padding: 18px; overflow-y: auto; box-shadow: -24px 0 60px -24px rgba(0,0,0,.5); }
.mnav a { padding: 12px 10px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
.mnav a:hover { background: var(--bg); }
.mnav-lead { font-family: var(--display); font-weight: 600; }
.mnav-cat { font-weight: 600; }
.mnav-sub { padding-left: 24px !important; font-size: 13.5px !important; color: var(--muted) !important; }
.mnav-sep { height: 1px; background: var(--line); margin: 8px 0; }
.mnav-phone { font-family: var(--mono); color: var(--accent-d); font-weight: 600; }
.mnav-search { display: flex; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.mnav-search input { flex: 1; border: 0; outline: 0; padding: 0 12px; font: inherit; background: #fff; }
.mnav-search button { border: 0; background: var(--ink); color: #fff; padding: 0 14px; cursor: pointer; }

@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .ftr-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: flex; }
  .catbar { display: none; }
  .hdr-phone, .acct-btn { display: none; }   /* доступны в мобильном меню */
  /* ≥16px на полях ввода — иначе iOS Safari авто-зумит страницу при фокусе */
  input, textarea, select { font-size: 16px; }
}
/* ── Product tabs (CSS radio-hack, no JS) ── */
.pd-tabs { margin: 8px 0 0; }
.pd-tabs > input[name="pdtab"] { position: absolute; opacity: 0; pointer-events: none; }
.pd-tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.pd-tab { padding: 13px 22px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .14s, border-color .14s; }
.pd-tab:hover { color: var(--ink); }
.pd-pane { display: none; }
.pd-pane-specs .specs { margin-bottom: 0; }
.pd-tabs:has(#pdtab-specs:checked) .pd-pane-specs,
.pd-tabs:has(#pdtab-desc:checked) .pd-pane-desc,
.pd-tabs:has(#pdtab-ship:checked) .pd-pane-ship { display: block; }
.pd-tabs:has(#pdtab-specs:checked) .pd-tab-specs,
.pd-tabs:has(#pdtab-desc:checked) .pd-tab-desc,
.pd-tabs:has(#pdtab-ship:checked) .pd-tab-ship { color: var(--ink); border-bottom-color: var(--ink); }
.pd-desc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; max-width: 820px; }
.pd-desc p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.pd-desc p:last-child { margin-bottom: 0; }
.pd-ship-cards { gap: 18px; }
.pd-shipc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pd-shipc-ic { color: var(--accent-d); display: inline-flex; margin-bottom: 12px; }
.pd-shipc-t { font-weight: 600; font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.pd-shipc-d { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ── «С этим товаром покупают» ── */
.pd-related-h { font-size: 26px; letter-spacing: -.6px; margin: 56px 0 22px; }
.pd-related { gap: 18px; }

@media (max-width: 640px) {
  .util { display: none; }
  .hdr-in { height: auto; flex-wrap: wrap; row-gap: 12px; padding-top: 12px; padding-bottom: 12px; gap: 14px; }
  .search { order: 3; flex-basis: 100%; }
  .hdr-actions { margin-left: auto; }
  .cart-link { padding: 0 14px; }
  .cart-link .ic-sm { display: inline-block; }
  .cart-label { display: none; }
  .cats, .grid-4, .grid-3, .grid { grid-template-columns: 1fr; }
  .trust-in, .b2b-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ftr-in { grid-template-columns: 1fr; }
  .specs { columns: 1; }   /* 2 колонки сжимали spec-таблицу → label/value наезжали */
  .hero h1 { font-size: 32px; line-height: 1.1; letter-spacing: -1px; }
  .hero-in { padding: 40px 16px 44px; }
  .wrap, .sec, .b2b, .brands, .page-sec { padding-left: 16px; padding-right: 16px; }
}

/* ── Блог / база знаний ── */
.blog-wrap { padding-bottom: 70px; }
.blog-h1 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -1px; margin: 0 0 6px; }
.blog-intro { font-size: 15px; color: var(--muted); margin: 0 0 30px; max-width: 620px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.blogcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.blogcard:hover { border-color: var(--dark-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.4); }
.blogcard-vis { position: relative; height: 150px; background: linear-gradient(135deg, #1C2027, #0E1015); overflow: hidden; }
.blogcard-vis::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 28px); }
.blogcard-vis::after { content: ""; position: absolute; inset: 0; background: radial-gradient(360px 200px at 78% 20%, rgba(21,194,94,.18), transparent 65%); }
.blogcard-cat { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; }
.blogcard-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.blogcard:hover .blogcard-img { transform: scale(1.03); transition: transform .4s ease; }
.blogcard-vis:has(.blogcard-img) .blogcard-cat { background: rgba(20,22,26,.7); padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px); }
.blogcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.blogcard-title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 10px; color: var(--ink); }
.blogcard-excerpt { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.blogcard-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.blogcard-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-3); }

/* статья */
.blog-post { max-width: 780px; padding-bottom: 70px; }
.bp-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent-d); text-transform: uppercase; margin-bottom: 14px; }
.bp-title { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 16px; }
.bp-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.bp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-3); }
.bp-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md, 14px); margin: 0 0 30px; border: 1px solid var(--line); }
.bp-body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 20px; }
.bp-related { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.bp-related h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.5px; margin: 0 0 18px; }
.bp-related-list { display: flex; flex-direction: column; gap: 12px; }
.bp-rel { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; transition: border-color .14s; }
.bp-rel:hover { border-color: var(--dark-2); }
.bp-rel-cat { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; color: var(--accent-d); text-transform: uppercase; margin-bottom: 5px; }
.bp-rel-title { display: block; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.bp-rel-arr { flex-shrink: 0; font-size: 18px; color: var(--muted-2); }

@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
  .bp-title { font-size: 28px; }
}
