/* ПРАЙМ — стили страниц витрины (главная, категория, товар, поиск, меню).
   Токены и базовые компоненты — в site.css. Mobile-first. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* липкая шапка не должна накрывать якорную секцию */
[id] { scroll-margin-top: 84px; }

/* ============ меню разделов (.hdr-nav, тёмная строка) ============ */
/* мобайл: полоса скрыта, открывается бургером (site.js вешает .nav-open) */
.hdr-nav { display: none; }
.hdr-nav.nav-open { display: block; max-height: 72vh; overflow-y: auto; }
.nav-cats { margin: 0; padding: 0; }
.nav-footer { display: none; }

/* --- десктопная строка с hover-выпадашками --- */
.nav-desktop { display: none; list-style: none; align-items: center; }
.nav-desktop > li { position: relative; }
.nav-desktop > li > a {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 13px 13px; font-size: 13.5px; font-weight: 500;
  letter-spacing: .01em; color: var(--steel); white-space: nowrap;
}
.nav-desktop > li > a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform .18s;
}
.nav-desktop > li:hover > a { color: #fff; }
.nav-desktop > li:hover > a::after { transform: scaleX(1); }
.nav-drop {
  position: absolute; left: 0; top: 100%; z-index: 70; display: none;
  min-width: 280px; max-width: 360px; max-height: 62vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-up); padding: 8px;
}
.nav-drop-r { left: auto; right: 0; }
.nav-desktop > li:hover .nav-drop, .nav-desktop > li:focus-within .nav-drop { display: block; }
.nav-drop a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-s); font-size: 13.5px; color: var(--txt);
}
.nav-drop a b { font-family: var(--font-m); font-size: 11px; font-weight: 500; color: var(--txt-3); }
.nav-drop a:hover { background: var(--brand-soft); color: var(--brand-hot); }
.nav-drop-all { color: var(--brand-hot) !important; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }

/* --- мобильный вертикальный список (details/summary) --- */
.nav-mobile { display: block; padding: 4px 0 14px; }
.nav-mobile details { border-bottom: 1px solid var(--hair); }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 13px 4px;
  font-weight: 600; font-size: 14.5px; color: #fff;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary em, .nav-mobile .nav-plain em {
  font-style: normal; font-family: var(--font-m); font-size: 11.5px;
  color: var(--steel-2); margin-left: auto; margin-right: 6px;
}
.nav-mobile summary::after {
  content: "›"; color: var(--steel-2); font-size: 17px; flex: none;
  transform: rotate(90deg); transition: transform .15s;
}
.nav-mobile details[open] summary::after { transform: rotate(-90deg); }
.nav-mobile .nav-sub { display: flex; flex-direction: column; padding: 0 4px 12px 16px; }
.nav-mobile .nav-sub a { padding: 9px 0; font-size: 14px; color: var(--steel); }
.nav-mobile .nav-sub a:hover { color: var(--ember); }
.nav-mobile .nav-all { color: var(--brand) !important; font-weight: 600; }
.nav-mobile .nav-plain {
  display: flex; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--hair);
  font-weight: 600; font-size: 14.5px; color: #fff;
}

@media (min-width: 1024px) {
  .hdr-nav { display: block; max-height: none; overflow: visible; }
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* --- каталог в футере (тот же include, другое представление) --- */
.ftr .nav-desktop, .ftr .nav-mobile { display: none !important; }
.ftr .nav-footer { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 520px) { .ftr .nav-footer { grid-template-columns: 1fr 1fr; gap: 2px 24px; } }
.ftr .nav-footer a { padding: 6px 0; font-size: 13.5px; color: var(--steel); }
.ftr .nav-footer a:hover { color: var(--ember); }

/* ============ ГЕРОЙ (внутри тёмной сцены) ============ */
.hero { padding: 34px 0 92px; }
@media (min-width: 1024px) { .hero { padding: 56px 0 128px; } }
.hero-in { display: grid; gap: 30px; }
@media (min-width: 1024px) { .hero-in { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: center; } }
.hero-copy { min-width: 0; }
/* Unbounded широкий — длинный заголовок «искусственного интеллекта» держим
   компактным: меньше кегль, без uppercase, плотный трекинг */
.hero h1 {
  font-family: var(--font-d); font-weight: 700;
  letter-spacing: -.015em; font-size: clamp(27px, 4.4vw, 50px); line-height: 1.06;
  margin: 16px 0 0; color: #fff;
}
.hero h1 .num {
  color: transparent; background: linear-gradient(96deg, #FFB27A 0%, var(--brand) 46%, var(--brand-hot) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero h1 .thin { display: block; font-weight: 500; color: #fff; }
.hero h1 .thin em {
  font-style: normal; font-weight: 700; color: transparent;
  background: linear-gradient(96deg, #FFB27A 0%, var(--brand) 55%, var(--brand-hot) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead {
  margin: 18px 0 0; max-width: 540px; color: var(--steel);
  font-size: clamp(14.5px, 1.6vw, 16.5px); line-height: 1.62;
}
.hero-lead b { color: var(--chalk); font-weight: 600; }

/* факты под консолью подбора */
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.fact { display: flex; flex-direction: column; gap: 3px; }
.fact b { font-family: var(--font-d); font-weight: 600; font-size: 25px; line-height: 1; color: #fff; letter-spacing: .02em; }
.fact span { font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-2); }


/* колонка с лид-текстом над примером подбора */
.demo-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.demo-col .hero-lead { margin: 0; max-width: none; }
/* --- СИГНАТУРА: живой пример диалога с консультантом (ротация сценариев) --- */
.demo {
  position: relative; padding: 15px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  border: 1px solid var(--hair-2); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.demo-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.demo-hd .dot3 { display: inline-flex; gap: 5px; }
.demo-hd .dot3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--hair-2); }
.demo-hd .dot3 i:first-child { background: #FF5F57; }
.demo-hd .dot3 i:nth-child(2) { background: #FEBC2E; }
.demo-hd .dot3 i:nth-child(3) { background: #28C840; }
.demo-hd h2 { flex: 1; margin: 0; font-family: var(--font-m); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.demo-hd .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #34D06B; }
.demo-hd .live i { width: 6px; height: 6px; border-radius: 50%; background: #28C840; box-shadow: 0 0 0 3px rgba(40,200,64,.18); animation: mx-pulse 2.4s ease-in-out infinite; }
@keyframes mx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* сцены наложены друг на друга, видна одна (класс .on) — плавный кроссфейд */
.demo-view { position: relative; min-height: 258px; }
.demo-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 7px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.demo-scene.on { opacity: 1; visibility: visible; transform: none; }
.msg { display: flex; }
.msg span {
  max-width: 90%; padding: 9px 13px; font-size: 13.5px; line-height: 1.45;
  border-radius: 14px;
}
.msg-user { justify-content: flex-end; }
.msg-user span { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; font-weight: 500; }
.msg-bot span { background: rgba(255,255,255,.07); color: var(--chalk); border: 1px solid var(--hair); border-bottom-left-radius: 5px; }

.demo-cards { display: flex; flex-direction: column; gap: 7px; margin-top: 1px; }
.dcard {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--hair);
  border-radius: 13px; transition: border-color .16s, background .16s, transform .16s;
}
.dcard:hover { border-color: rgba(245,91,15,.5); background: rgba(245,91,15,.08); transform: translateX(2px); color: inherit; }
.dcard-img {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: #fff; overflow: hidden;
}
.dcard-img img { position: absolute; inset: 0; margin: auto; max-width: 40px; max-height: 40px; width: auto; height: auto; }
.dcard-img svg { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: var(--steel-2); }
.dcard-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.dcard-name { font-size: 12.5px; line-height: 1.3; color: var(--chalk); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dcard-foot { display: flex; align-items: baseline; gap: 9px; }
.dcard-foot b { font-family: var(--font-m); font-size: 13.5px; font-weight: 700; color: #fff; }
.dcard-foot em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.dcard-foot em.ok { color: #34D06B; }
.dcard-foot em.few { color: #FEBC2E; }

.demo-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--hair);
  font-size: 12px;
}
.demo-dots { display: inline-flex; gap: 7px; }
.demo-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hair-2);
  cursor: pointer; transition: background .2s, transform .2s;
}
.demo-dots i.on { background: var(--brand); transform: scale(1.25); }
.demo-ft a { color: var(--ember); font-weight: 600; white-space: nowrap; }
.demo-ft a:hover { color: #fff; }
@media (max-width: 460px) { .demo-view { min-height: 292px; } }

/* ============ секции светлого листа ============ */
.sec { padding: 44px 0 0; }
@media (min-width: 900px) { .sec { padding: 62px 0 0; } }
.sec-hd { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-hd > div { min-width: 0; }
.sec-hd h2 {
  margin: 8px 0 0; font-family: var(--font-d); font-weight: 600; text-transform: uppercase;
  font-size: clamp(23px, 3.4vw, 38px); line-height: 1.04; letter-spacing: .015em; color: var(--ink);
}
.sec-hd h2 em { font-style: normal; color: var(--brand); }
.sec-hd .side { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-note { font-family: var(--font-m); font-size: 12.5px; color: var(--txt-2); letter-spacing: .01em; }
@media (max-width: 720px) { .sec-hd .side { margin-left: 0; width: 100%; } }

/* лента доверия — «садится» на кромку листа */
.ribbon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 22px 0 2px; }
@media (min-width: 820px) { .ribbon { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 26px 0 4px; } }
.rtile {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: transparent; }
.rtile-ic {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(150deg, var(--brand-soft), var(--brand-soft-2)); color: var(--brand-hot);
}
.rtile b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.rtile span { font-size: 12.5px; color: var(--txt-2); }
@media (max-width: 640px) {
  .rtile { flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px; }
  .rtile-ic { width: 38px; height: 38px; }
}

/* ============ каталог: симметричная сетка разделов ============ */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1240px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
/* все плитки одинаковые: одна высота, один ритм */
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,91,15,.14), transparent 70%); opacity: 0; transition: opacity .25s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card-ic {
  position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: var(--bg-soft); color: var(--brand-hot); transition: background .2s, color .2s;
}
.cat-card:hover .cat-card-ic { background: var(--brand); color: #fff; }
.cat-card-title {
  position: relative; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--txt);
  overflow-wrap: anywhere;
}
.cat-card:hover .cat-card-title { color: var(--brand-hot); }
.cat-card-cnt { position: relative; font-family: var(--font-m); font-size: 11.5px; color: var(--txt-2); margin-top: auto; }
.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--ember), var(--brand-hot)); }

/* ============ тёмная плита: ИИ-консультант ============ */
.ai-slab {
  position: relative; margin: 56px 0 0; padding: 42px 0 46px;
  background: var(--slab); color: var(--chalk); overflow: hidden; isolation: isolate;
}
.ai-slab::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(245,91,15,.26) 1.1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(90% 90% at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(90% 90% at 20% 30%, #000, transparent 70%);
  opacity: .45;
}
.ai-slab > * { position: relative; z-index: 1; }
.ai-in { display: grid; gap: 28px; }
@media (min-width: 1000px) { .ai-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 44px; align-items: center; } }
.ai-slab h2 { margin: 13px 0 0; font-family: var(--font-d); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 3.6vw, 40px); line-height: 1.05; color: #fff; letter-spacing: .015em; }
.ai-slab h2 em { font-style: normal; color: var(--brand); }
.ai-slab > .wrap > div > p { color: var(--steel); font-size: 15px; line-height: 1.62; margin: 15px 0 0; max-width: 480px; }
.ai-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--chalk); }
.ai-list svg { flex: none; color: var(--brand); margin-top: 3px; }
.ai-list span span { display: block; color: var(--steel); font-size: 12.5px; margin-top: 2px; }
.ai-cta { margin-top: 22px; }

.chat {
  padding: 16px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid var(--hair-2); backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.chat-hd { display: flex; align-items: center; gap: 10px; padding: 0 4px 13px; border-bottom: 1px solid var(--hair); margin-bottom: 13px; }
.chat-hd .av { flex: none; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(150deg, var(--ember), var(--brand-hot)); display: grid; place-items: center; color: #fff; }
.chat-hd b { font-size: 13.5px; color: #fff; }
.chat-hd .sub { display: block; font-family: var(--font-m); font-size: 10.5px; color: var(--steel); letter-spacing: .05em; }
.msg-u { margin-left: auto; max-width: 84%; padding: 11px 15px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: #fff; font-size: 13.5px; line-height: 1.45; }
.msg-a { max-width: 94%; padding: 11px 15px; margin-top: 12px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.06); border: 1px solid var(--hair); color: var(--chalk); font-size: 13.5px; line-height: 1.5; }
.res { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.045); border: 1px solid var(--hair); transition: border-color .16s, background .16s; }
.res-row:hover { border-color: rgba(245,91,15,.5); background: rgba(245,91,15,.09); color: inherit; }
.res-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--steel); }
.res-row:hover .res-ic { color: var(--ember); }
.res-tx { min-width: 0; flex: 1 1 0; }
.res-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 500; color: #fff; line-height: 1.35; overflow-wrap: break-word; }
.res-tx span { display: block; font-family: var(--font-m); font-size: 10.5px; color: var(--steel); }
.res-p { font-family: var(--font-d); font-weight: 600; font-size: 16px; color: #fff; white-space: nowrap; }
.chat-note { margin: 13px 0 2px; font-family: var(--font-m); font-size: 11.5px; color: var(--steel); text-align: center; }

/* ============ бренды ============ */
.brands { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1240px) { .brands { grid-template-columns: repeat(6, 1fr); } }
.brand {
  position: relative; overflow: hidden; padding: 17px 16px 14px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--line); transition: all .2s;
}
.brand::after {                          /* фирменный знак 3×3 в углу */
  content: ""; position: absolute; right: 14px; top: 16px; width: 20px; height: 20px; opacity: .45;
  background-image: radial-gradient(circle, rgba(20,24,29,.16) 2.1px, transparent 2.4px);
  background-size: 33.34% 33.34%; transition: background-image .2s, opacity .2s;
}
.brand:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-up); }
.brand:hover::after { opacity: 1; background-image: radial-gradient(circle, var(--brand) 2.1px, transparent 2.4px); }
.brand b {
  position: relative; display: block; padding-right: 28px; font-family: var(--font-d);
  font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink); line-height: 1.12; overflow-wrap: break-word;
}
.brand span { position: relative; display: block; margin-top: 6px; font-family: var(--font-m); font-size: 11.5px; color: var(--txt-2); }
.brand .bshare { position: relative; display: block; height: 3px; margin-top: 9px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.brand .bshare i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.brand:hover b { color: #fff; }
.brand:hover span { color: var(--ember); }
.brand:hover .bshare { background: rgba(255,255,255,.16); }

/* ============ как заказать + магазин ============ */
.how { display: grid; gap: 16px; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: stretch; } }
.steps { display: grid; gap: 12px; }
@media (min-width: 640px) and (max-width: 959px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .steps { grid-auto-rows: 1fr; } }
.step {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: 20px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line);
  overflow: hidden;
}
.step::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; background: var(--brand); }
.step .no { display: flex; align-items: center; gap: 9px; font-family: var(--font-m); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--brand-hot); margin-bottom: 10px; }
.step .no svg { color: var(--brand); }
.step b { display: block; font-family: var(--font-d); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.step p { margin: 7px 0 0; font-size: 13.5px; color: var(--txt-2); line-height: 1.5; max-width: 54ch; }
@media (min-width: 960px) {
  .step { padding: 20px 24px; }
  .step .no { position: absolute; left: 24px; top: 22px; margin: 0; }
  .step b, .step p { padding-left: 88px; }
}
.shop { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: var(--ink); color: #fff; }
.shop::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,91,15,.35), transparent 70%); filter: blur(30px);
}
.shop > * { position: relative; }
.shop h3 { margin: 12px 0 0; font-family: var(--font-d); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; color: #fff; }
.shop-rows { margin: 18px 0 0; display: flex; flex-direction: column; gap: 13px; }
.shop-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--chalk); }
.shop-row svg { flex: none; color: var(--brand); margin-top: 2px; }
.shop-row span span { display: block; font-size: 12.5px; color: var(--steel); margin-top: 2px; }
.shop-tel {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 0 22px; height: 48px;
  border-radius: 999px; background: linear-gradient(180deg, var(--ember), var(--brand)); color: #fff;
  font-family: var(--font-d); font-weight: 600; font-size: 17px; letter-spacing: .03em;
  box-shadow: 0 10px 26px var(--brand-glow); transition: filter .16s;
}
.shop-tel:hover { filter: brightness(1.08); color: #fff; }

/* ============ чипы (подкатегории, сортировка, вендоры) ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 13px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; font-weight: 500; color: var(--txt);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-hot); }
.chip small { font-size: 11.5px; color: var(--txt-3); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on:hover { color: #fff; }
.chip.on small { color: rgba(255, 255, 255, .65); }
/* подкатегории на мобиле — горизонтальный скроллер с намёком на продолжение */
@media (max-width: 719px) {
  .subcat-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .subcat-chips::-webkit-scrollbar { display: none; }
  .subcat-chips .chip { flex: none; }
}

/* ============ категория / поиск ============ */
.cat-count { margin: -6px 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 4px; }
.sort-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sort-line .lbl { font-size: 12.5px; color: var(--txt-2); }
.vendors-line { margin: 6px 0 14px; }
.toolbar + .grid, .sort-line + .grid { margin-top: 10px; }

.empty { text-align: center; color: var(--txt-2); padding: 36px 16px; margin-top: 14px; }
.empty a { color: var(--brand-hot); font-weight: 600; }
.hint { margin-top: 10px; }
.hint p { margin: 0 0 8px; }
.hint p:last-child { margin-bottom: 0; }

.price-wrap { display: flex; flex-direction: column; min-width: 0; }

/* ============ страница товара ============ */
.prod { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 900px) {
  /* галерея — фиксированная колонка: без неё слот раздувался до 700px и фото
     терялось в пустом квадрате */
  .prod { grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 32px; align-items: start; }
}
/* жёсткий квадрат + фото абсолютом: вертикальные снимки не раздувают слот */
.gal-main {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); aspect-ratio: 1; max-width: 460px; overflow: hidden;
}
.gal-main::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(20,24,29,.045) 1.1px, transparent 1.3px);
  background-size: 18px 18px;
}
.gal-main img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - 36px); max-height: calc(100% - 36px);
  width: auto; height: auto; object-fit: contain;
}
.gal-main .noimg { max-width: 140px; max-height: 140px; opacity: .45; }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gal-thumbs button {
  width: 64px; height: 64px; padding: 6px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s);
  transition: border-color .15s, box-shadow .15s;
}
.gal-thumbs button img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.gal-thumbs button:hover { border-color: var(--brand); }
.gal-thumbs button.cur { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(245, 91, 15, .2); }

.prod-vendor { font-family: var(--font-m); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-hot); margin-bottom: 6px; }
.prod-info h1 {
  font-family: var(--font-b); font-weight: 700; text-transform: none;
  letter-spacing: 0; line-height: 1.3; font-size: clamp(17px, 2.6vw, 22px); margin-bottom: 10px;
}
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--txt-2); }
.prod-stock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 14px 0; }
.stock-lc { font-size: 13px; color: var(--txt-2); }

.prod-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.prod-price { font-size: clamp(26px, 4vw, 34px); }
.prod-price-row .price-old { font-size: 15px; }
.pack-note { display: inline-block; margin-bottom: 12px; padding: 6px 10px; background: var(--warn-soft); color: var(--warn); border-radius: var(--r-s); font-size: 13px; font-weight: 500; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 6px; }
.buy-row .qty-box { min-height: 48px; }
.prod-inactive { margin-top: 8px; }
.prod-inactive p { margin: 0 0 12px; color: var(--bad); font-weight: 600; }

.desc { font-size: 14.5px; line-height: 1.65; }
.desc p { margin: 0 0 10px; }
.spec-panel { padding: 6px 16px; }
@media (min-width: 768px) { .spec-panel { padding: 8px 22px; } }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { color: var(--txt-2); width: 42%; }
.spec td.mono { overflow-wrap: anywhere; }

/* ============ панель фильтров категории (DNS-style) ============ */
/* десктоп ≥1024: левая колонка с панелью; мобайл: шторка поверх (.open) */
.cat-layout { margin-top: 4px; }
@media (min-width: 1024px) {
  .cat-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
}
.cat-main { min-width: 0; }

.fpanel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px 14px; }
.fpanel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 6px; font-size: 15px; }
.fpanel-head b { font-family: var(--font-d); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.fclose { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--r-s); background: var(--bg-soft); color: var(--txt-2); font-size: 16px; }
.fclose:hover { background: var(--brand-soft); color: var(--brand-hot); }

/* группы панели */
.fgroup { border-top: 1px solid var(--line); padding: 4px 0; }
.fgroup summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 10px 0;
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "›"; color: var(--txt-3); font-size: 16px; transform: rotate(90deg); transition: transform .15s; }
.fgroup[open] summary::after { transform: rotate(-90deg); }
.fgroup-body { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 10px; }

/* строка-чекбокс со счётчиком */
.fchk { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 4px; border-radius: var(--r-s); font-size: 13.5px; cursor: pointer; }
.fchk:hover { background: var(--brand-soft); }
.fchk input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--brand); cursor: inherit; }
.fchk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchk-n { font-size: 11.5px; color: var(--txt-3); }
/* значение обнулилось из-за других фильтров — серое, недоступное */
.fchk.dis { opacity: .45; cursor: default; }
.fchk.dis:hover { background: transparent; }

/* от/до (цена, range-фасеты) */
.frange { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.frange input {
  width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px;
  background: var(--paper); border: 1.5px solid var(--line-2);
  border-radius: var(--r-s); color: var(--txt); font-size: 13.5px;
  -moz-appearance: textfield; appearance: textfield;
}
.frange input::-webkit-outer-spin-button, .frange input::-webkit-inner-spin-button { -webkit-appearance: none; }
.frange input::placeholder { color: var(--txt-3); }
.frange input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245,91,15,.15); }
.frange .sep { color: var(--txt-3); flex: none; }

/* «Показать все / Свернуть» */
.fmore summary { list-style: none; cursor: pointer; padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--brand-hot); }
.fmore summary::-webkit-details-marker { display: none; }
.fmore .less-t { display: none; }
.fmore[open] .more-t { display: none; }
.fmore[open] .less-t { display: inline; }
.fmore-body { display: flex; flex-direction: column; gap: 1px; }

/* Применить / Сбросить */
.fpanel-actions { display: flex; gap: 8px; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.fpanel-actions .btn, .fpanel-actions .btn-ghost { flex: 1; min-height: 44px; font-size: 14px; }

/* кнопка «Фильтры (N)» в тулбаре (только мобайл/планшет) */
.fopen-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 7px 14px; background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  font-weight: 600; font-size: 13.5px;
}
.fopen-btn:hover { border-color: var(--brand); color: var(--brand-hot); }
.fopen-btn .n {
  min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 10px;
}
@media (min-width: 1024px) { .fopen-btn { display: none; } }

/* чипы выбранных фильтров над выдачей */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px;
  background: var(--brand-soft); color: var(--brand-hot);
  border: 1px solid rgba(245, 91, 15, .35); border-radius: 20px;
  font-size: 13px; font-weight: 500;
}
.fchip:hover { border-color: var(--brand); color: var(--brand-hot); }
.fchip .x { font-weight: 700; font-size: 12px; }
.fchip.clear-all { background: transparent; color: var(--txt-2); border-color: var(--line-2); }
.fchip.clear-all:hover { color: var(--bad); border-color: var(--bad); }
.fchips + .grid { margin-top: 10px; }

/* мобайл: панель — шторка на весь экран */
@media (max-width: 1023.98px) {
  .fpanel {
    position: fixed; inset: 0; z-index: 90; border: 0; border-radius: 0;
    padding: 0 16px; transform: translateX(-103%);
    transition: transform .25s ease; visibility: hidden;
    display: flex; flex-direction: column;
  }
  .fpanel.open { transform: none; visibility: visible; box-shadow: var(--shadow-up); }
  .fpanel-head { flex: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .fclose { display: grid; place-items: center; }
  .fpanel form { flex: 1; overflow-y: auto; padding-bottom: 12px; }
  .fpanel-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0; margin-top: 8px; }
  body.flock { overflow: hidden; }
}
