/* ui-v2.css — новый вид «v2» (заход 557cdfef, 22.09.2026). Подключается ТОЛЬКО раскладкой views/v2/layout.php
   (cookie владельца ht_ui=v2). Все правила под .ui-v2; цвета — токены skin-a2.css (фирменный стиль не меняется).
   Точки перестройки: 560 · 768 · 1024 (фильтры слева) · 1280 (верхняя строка, 4 колонки) · 1600.
   Шкала отступов 4/8/12/16/24/32/48; шрифт 12/13/14/16/18/20/24/28/32; цель нажатия ≥ 40 px, на касании ≥ 44 px. */

.ui-v2 { --v2-head: 64px; --v2-top: 0px; --v2-r: 10px; --v2-gap: 16px; scroll-padding-top: calc(var(--v2-head) + 16px); }
@media (min-width: 768px) { .ui-v2 { --v2-top: 32px; } }
.ui-v2 body { background: var(--paper); }
.ui-v2 .v2-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .ui-v2 .v2-wrap { padding-inline: 24px; } }
@media (min-width: 1280px) { .ui-v2 .v2-wrap { padding-inline: 32px; } }
.ui-v2 .v2-main { min-height: 50vh; }
.ui-v2 .v2-link { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.ui-v2 .v2-link:hover { text-decoration: underline; }
.ui-v2 .v2-link-muted { color: var(--text-muted); font-size: 13px; }
.ui-v2 .v2-muted { color: var(--text-muted); font-size: 14px; }
.ui-v2 .v2-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); border-radius: var(--v2-r); cursor: pointer; }
.ui-v2 .v2-icon-btn:hover { background: var(--surface); }

/* ---- шапка ---------------------------------------------------------------- */
.ui-v2 .site-header { display: none; }
.ui-v2 .v2-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.ui-v2 .v2-topbar { display: none; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
/* блок 5 захода 7322cf9b: строка видна с 768 px (было с 1280 — при масштабе 125–150 % на 1366/1920 важные ссылки исчезали целиком);
   ниже 1280 в ней остаются только «Как заказать», «Условия работы», «О компании», «Контакты» (они же в меню «Каталог» и в подвале) */
@media (min-width: 768px) { .ui-v2 .v2-topbar { display: block; } }
@media (max-width: 1279px) { .ui-v2 .v2-topbar-note, .ui-v2 .v2-toplinks .v2-toplink--extra { display: none; } .ui-v2 .v2-toplinks { margin-left: auto; } }
.ui-v2 .v2-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 32px; gap: 16px; }
.ui-v2 .v2-topbar-note { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-v2 .v2-toplinks { display: flex; gap: 18px; white-space: nowrap; }
.ui-v2 .v2-toplinks a { color: var(--text-muted); text-decoration: none; }
.ui-v2 .v2-toplinks a:hover { color: var(--accent); }

.ui-v2 .v2-head { display: flex; align-items: center; gap: 12px; height: var(--v2-head); }
.ui-v2 .v2-logo { order: 1; flex: none; display: block; line-height: 0; }
.ui-v2 .v2-logo img { height: 40px; width: auto; }
.ui-v2 .v2-catalog-btn { order: 2; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0;
  border-radius: var(--v2-r); background: var(--accent); color: #fff; font: 600 15px/1 var(--font-text); cursor: pointer; }
.ui-v2 .v2-catalog-btn:hover, .ui-v2 .v2-catalog-btn[aria-expanded="true"] { background: var(--accent-600); }
.ui-v2 .v2-search { order: 3; position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.ui-v2 .v2-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 14px; border: 1.5px solid var(--line-strong); border-right: 0;
  border-radius: var(--v2-r) 0 0 var(--v2-r); font: 400 15px var(--font-text); color: var(--text); background: var(--paper); }
.ui-v2 .v2-search input:focus { outline: none; border-color: var(--accent); }
.ui-v2 .v2-search > button { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 0 var(--v2-r) var(--v2-r) 0;
  background: var(--ink-800); color: #fff; font: 600 14px var(--font-text); cursor: pointer; }
.ui-v2 .v2-search > button:hover { background: var(--accent); }
.ui-v2 .v2-phone { order: 4; flex: none; font: 700 16px var(--font-text); color: var(--text); text-decoration: none; white-space: nowrap; }
.ui-v2 .v2-search-toggle { order: 5; display: none; }
.ui-v2 .v2-cart { order: 6; flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--v2-r); color: var(--text); text-decoration: none; font: 600 14px var(--font-text); }
.ui-v2 .v2-cart:hover { border-color: var(--accent); color: var(--accent); }
.ui-v2 .v2-cart b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }

@media (max-width: 1179px) { .ui-v2 .v2-phone { display: none; } }
@media (max-width: 1023px) {
  .ui-v2 .v2-head { gap: 8px; }
  .ui-v2 .v2-search > button span { display: none; }
}
@media (max-width: 767px) {
  .ui-v2 { --v2-head: 56px; }
  .ui-v2 .v2-catalog-btn { order: 0; width: 44px; padding: 0; justify-content: center; background: transparent; color: var(--text); }
  .ui-v2 .v2-catalog-btn span { display: none; }
  .ui-v2 .v2-catalog-btn:hover, .ui-v2 .v2-catalog-btn[aria-expanded="true"] { background: var(--surface); }
  .ui-v2 .v2-logo { margin-right: auto; }
  .ui-v2 .v2-logo img { height: 34px; }
  .ui-v2 .v2-search { display: none; }
  .ui-v2 .v2-search-toggle { display: inline-grid; }
  .ui-v2 .v2-cart { padding: 0 10px; border: 0; }
  .ui-v2 .v2-cart-label { display: none; }
  .ui-v2 .v2-header.is-search-open .v2-head { flex-wrap: wrap; height: auto; padding-block: 6px; }
  .ui-v2 .v2-header.is-search-open .v2-search { display: flex; order: 10; flex-basis: 100%; }
}

/* подсказки поиска */
.ui-v2 .v2-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 80; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--v2-r); box-shadow: 0 16px 40px rgba(11,12,15,.14); max-height: min(70vh, 560px); overflow: auto; padding: 6px; }
.ui-v2 .v2-sug { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.ui-v2 .v2-sug:hover, .ui-v2 .v2-sug.is-active { background: var(--surface); }
.ui-v2 .v2-sug img, .ui-v2 .v2-sug .v2-sug-ic { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--surface); display: grid; place-items: center; font-size: 12px; color: var(--text-muted); }
.ui-v2 .v2-sug-label { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-v2 .v2-sug-label mark { background: transparent; color: var(--accent); font-weight: 700; }
.ui-v2 .v2-sug-meta { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ui-v2 .v2-sug-all { display: block; padding: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-top: 1px solid var(--line); margin-top: 4px; }
.ui-v2 .v2-sug-empty { padding: 12px; font-size: 14px; color: var(--text-muted); }

/* меню каталога */
.ui-v2 .v2-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgba(11,12,15,.16); }
.ui-v2 .v2-mega[hidden] { display: none; }
.ui-v2 .v2-mega-inner { padding-block: 16px 20px; max-height: calc(100vh - var(--v2-head) - var(--v2-top) - 8px); overflow: auto; }
.ui-v2 .v2-mega-head { display: none; }
.ui-v2 .v2-mega-sections { list-style: none; margin: 0; padding: 0; position: relative; min-height: 540px; }
.ui-v2 .v2-mega-section-btn { width: 280px; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text); font: 500 15px var(--font-text); text-align: left; cursor: pointer; }
.ui-v2 .v2-mega-section-btn small { color: var(--text-faint); font-size: 12px; }
.ui-v2 .v2-mega-section.is-active > .v2-mega-section-btn { background: var(--surface); color: var(--accent); font-weight: 600; }
.ui-v2 .v2-mega-cats { display: none; position: absolute; left: 304px; right: 0; top: 0; }
.ui-v2 .v2-mega-section.is-active > .v2-mega-cats { display: block; }
.ui-v2 .v2-mega-cats-title { font: 700 20px var(--font-display); margin: 4px 0 12px; }
.ui-v2 .v2-mega-cats ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 24px; }
.ui-v2 .v2-mega-cats li { break-inside: avoid; }
.ui-v2 .v2-mega-cats a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.ui-v2 .v2-mega-cats a:hover { color: var(--accent); }
.ui-v2 .v2-mega-cats small { color: var(--text-faint); font-size: 12px; margin-left: 4px; }
.ui-v2 .v2-mega-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ui-v2 .v2-mega-foot a { color: var(--text-muted); text-decoration: none; }
.ui-v2 .v2-mega-foot a:first-child { color: var(--accent); font-weight: 600; }
.ui-v2 .v2-mega-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(11,12,15,.35); }
.ui-v2 .v2-mega-backdrop[hidden] { display: none; }
@media (max-width: 1023px) {
  .ui-v2 .v2-mega { position: fixed; inset: 0; z-index: 90; overflow: auto; border: 0; }
  .ui-v2 .v2-mega-inner { max-height: none; padding-block: 0 24px; }
  .ui-v2 .v2-mega-head { display: flex; justify-content: space-between; align-items: center; height: 56px; position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 1; }
  .ui-v2 .v2-mega-head b { font: 700 18px var(--font-display); }
  .ui-v2 .v2-mega-sections { min-height: 0; }
  .ui-v2 .v2-mega-section { border-bottom: 1px solid var(--line); }
  .ui-v2 .v2-mega-section-btn { width: 100%; min-height: 52px; padding-inline: 0; border-radius: 0; }
  .ui-v2 .v2-mega-section.is-active > .v2-mega-section-btn { background: transparent; }
  .ui-v2 .v2-mega-cats, .ui-v2 .v2-mega-section.is-active > .v2-mega-cats { display: none; position: static; padding-bottom: 12px; }
  .ui-v2 .v2-mega-section.is-open > .v2-mega-cats { display: block; }
  .ui-v2 .v2-mega-cats-title { display: none; }
  .ui-v2 .v2-mega-cats ul { columns: 1; }
  .ui-v2 .v2-mega-cats a { padding: 10px 0 10px 12px; }
  .ui-v2 .v2-mega-foot { flex-direction: column; gap: 14px; }
}

/* ---- общие страницы A2 в раскладке v2: компактнее ---------------------------------- */
.ui-v2 .page-hero { padding-block: 20px 24px; }
.ui-v2 .page-hero h1 { font-size: clamp(24px, 1.2rem + 1.2vw, 34px); }
.ui-v2 .page-hero .lead { font-size: 16px; margin-top: 8px; }
.ui-v2 .hero > .container { padding-block: clamp(32px, 4vw, 64px); }
.ui-v2 .hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.ui-v2 .cookie-banner { padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.ui-v2 .cookie-banner-inner { gap: 8px 16px; flex-wrap: nowrap; }
.ui-v2 .cookie-banner .btn { height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 767px) { .ui-v2 .cookie-banner-inner { flex-wrap: wrap; } .ui-v2 .cookie-banner-text { font-size: 12px; } }
.ui-v2 .cookie-banner-text { font-size: 13px; line-height: 1.4; }
.ui-v2 .v2-switch-note { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.ui-v2 .v2-switch-note a { color: inherit; }

/* ---- листинг ------------------------------------------------------------------ */
.ui-v2 .v2-listing { padding-block: 12px 40px; }
.ui-v2 .v2-crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.ui-v2 .v2-crumbs > * + *::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.ui-v2 .v2-crumbs a { color: var(--text-muted); text-decoration: none; }
.ui-v2 .v2-crumbs a:hover { color: var(--accent); }
.ui-v2 .v2-crumbs [aria-current] { color: var(--text); }
.ui-v2 .v2-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 14px; }
.ui-v2 .v2-title-row h1 { font: 800 clamp(24px, 1.1rem + 1vw, 32px)/1.15 var(--font-display); margin: 0; letter-spacing: -.01em; }
.ui-v2 .v2-title-count { color: var(--text-faint); font-size: 16px; }
.ui-v2 .v2-lead { margin: -6px 0 14px; color: var(--text-muted); }
.ui-v2 .v2-subhead { font: 700 20px var(--font-display); margin: 8px 0 12px; }
.ui-v2 .v2-sections-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 560px) { .ui-v2 .v2-sections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ui-v2 .v2-sections-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ui-v2 .v2-sections-grid { grid-template-columns: repeat(4, 1fr); } }
.ui-v2 .v2-section-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ui-v2 .v2-section-card h2 { font: 700 16px var(--font-display); margin: 0 0 8px; }
.ui-v2 .v2-section-card h2 small, .ui-v2 .v2-section-card li small, .ui-v2 .v2-more-cats small { color: var(--text-faint); font-size: 12px; font-weight: 400; }
.ui-v2 .v2-section-card ul { list-style: none; margin: 0; padding: 0; }
.ui-v2 .v2-section-card li { padding: 3px 0; font-size: 14px; }
.ui-v2 .v2-section-card a { color: var(--text); text-decoration: none; }
.ui-v2 .v2-section-card a:hover { color: var(--accent); }
.ui-v2 .v2-more-cats summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.ui-v2 .v2-more-cats a { display: block; padding: 3px 0; }

.ui-v2 .v2-listing-grid { display: block; }
@media (min-width: 1024px) { .ui-v2 .v2-listing-grid { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; align-items: start; } }
@media (min-width: 1440px) { .ui-v2 .v2-listing-grid { grid-template-columns: 272px minmax(0, 1fr); gap: 28px; } }

/* панель фильтров */
.ui-v2 .v2-filters { background: var(--paper); }
@media (min-width: 1024px) {
  .ui-v2 .v2-filters { position: sticky; top: calc(var(--v2-head) + var(--v2-top) + 12px); max-height: calc(100vh - var(--v2-head) - var(--v2-top) - 24px);
    overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; scrollbar-width: thin; }
  .ui-v2 .v2-filters-close { display: none; }
  .ui-v2.js .v2-filters-actions { display: none; }
}
@media (max-width: 1023px) {
  .ui-v2 .v2-filters { position: fixed; z-index: 95; top: 0; bottom: 0; left: 0; width: min(420px, 100vw); overflow: auto; overscroll-behavior: contain;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 16px 0 48px rgba(11,12,15,.18); padding: 0 16px; }
  .ui-v2 .v2-filters.is-open { transform: none; }
  .ui-v2 body.v2-lock { overflow: hidden; }
}
.ui-v2 .v2-filters-head { display: flex; align-items: center; gap: 12px; min-height: 48px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.ui-v2 .v2-filters-head b { font: 700 17px var(--font-display); margin-right: auto; }
.ui-v2 .v2-fset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; min-width: 0; }
.ui-v2 .v2-fset legend, .ui-v2 .v2-select-label { font: 600 14px var(--font-text); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.ui-v2 .v2-fset legend + * { clear: both; }
.ui-v2 .v2-fset legend small { color: var(--text-faint); font-weight: 400; }
.ui-v2 .v2-select-label { float: none; display: block; }
.ui-v2 .v2-select-label select { margin-top: 8px; width: 100%; height: 40px; }
.ui-v2 .v2-options { display: grid; gap: 0; }
.ui-v2 .v2-opt { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: pointer; }
.ui-v2 .v2-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.ui-v2 .v2-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .v2-opt small { color: var(--text-faint); font-size: 12px; }
.ui-v2 .v2-opt.is-extra { display: none; }
.ui-v2 .v2-fset.is-expanded .v2-opt.is-extra, .ui-v2 .v2-fset.is-searching .v2-opt.is-extra { display: flex; }
.ui-v2 .v2-fset.is-searching .v2-opt.is-miss { display: none; }
.ui-v2 .v2-more { margin-top: 4px; border: 0; background: none; padding: 6px 0; color: var(--accent); font: 600 13px var(--font-text); cursor: pointer; }
.ui-v2 .v2-facet-search { width: 100%; height: 36px; margin-bottom: 6px; font-size: 14px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; }
.ui-v2 .v2-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; clear: both; }
.ui-v2 .v2-range input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; min-width: 0; }
.ui-v2 .v2-switch { display: flex; align-items: center; gap: 10px; min-height: 48px; font: 600 14px var(--font-text); cursor: pointer; }
.ui-v2 .v2-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ui-v2 .v2-switch-track { width: 38px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; flex: none; transition: background .15s; }
.ui-v2 .v2-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ui-v2 .v2-switch input:checked + .v2-switch-track { background: var(--ok); }
.ui-v2 .v2-switch input:checked + .v2-switch-track::after { transform: translateX(16px); }
.ui-v2 .v2-switch input:focus-visible + .v2-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.ui-v2 .v2-filters-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 16px; border-top: 1px solid var(--line); }
.ui-v2 .v2-apply { width: 100%; height: 48px; }

/* панель над результатами */
.ui-v2 .v2-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ui-v2 .v2-filters-open { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--v2-r);
  background: var(--paper); font: 600 14px var(--font-text); color: var(--text); cursor: pointer; }
.ui-v2 .v2-filters-open b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
@media (min-width: 1024px) { .ui-v2 .v2-filters-open { display: none; } }
.ui-v2 .v2-sort label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.ui-v2 .v2-sort select { height: 40px; padding: 0 32px 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--v2-r); font: 500 14px var(--font-text); color: var(--text); background-color: var(--paper); }
@media (max-width: 559px) { .ui-v2 .v2-sort-label { display: none; } .ui-v2 .v2-sort { flex: 1; } .ui-v2 .v2-sort select { width: 100%; } }
.ui-v2 .v2-view { margin-left: auto; display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--v2-r); overflow: hidden; }
.ui-v2 .v2-view button { width: 40px; height: 37px; border: 0; background: var(--paper); color: var(--text-muted); cursor: pointer; display: grid; place-items: center; }
.ui-v2 .v2-view button.is-active { background: var(--surface-2); color: var(--text); }
.ui-v2 .v2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ui-v2 .v2-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface-2); color: var(--text);
  text-decoration: none; font-size: 13px; }
.ui-v2 .v2-chip span { font-size: 16px; line-height: 1; color: var(--text-muted); }
.ui-v2 .v2-chip:hover { background: var(--accent-050); color: var(--accent); }
.ui-v2 .v2-chip--reset { background: transparent; color: var(--accent); font-weight: 600; }

/* плитка */
.ui-v2 .v2-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .ui-v2 .v2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1280px) { .ui-v2 .v2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1680px) { .ui-v2 .v2-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ui-v2 .v2-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--paper); transition: box-shadow .15s, border-color .15s; }
.ui-v2 .v2-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(11,12,15,.08); }
.ui-v2 .v2-card-img { display: block; aspect-ratio: 4 / 3; border-radius: 8px; background: #fff; overflow: hidden; }
.ui-v2 .v2-card-img img { width: 100%; height: 100%; object-fit: contain; }
.ui-v2 .v2-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; min-width: 0; }
.ui-v2 .v2-card-brand { display: flex; gap: 8px; align-items: baseline; font-size: 12px; min-width: 0; }
.ui-v2 .v2-card-brand a { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.ui-v2 .v2-card-model { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .v2-card-title { margin: 0; font: 500 14px/1.35 var(--font-text); }
.ui-v2 .v2-card-title a { color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ui-v2 .v2-card-title a:hover { color: var(--accent); }
.ui-v2 .v2-card-codes { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--text-muted); }
.ui-v2 .v2-card-codes b { color: var(--text); font-weight: 600; word-break: break-all; }
.ui-v2 .v2-card-sku { color: var(--text-faint); }
.ui-v2 .v2-card-specs { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--text-muted); display: grid; gap: 1px; }
.ui-v2 .v2-card-specs li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .v2-card-buy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 8px; margin-top: 10px; }
.ui-v2 .v2-card-price strong { display: block; font: 800 18px/1.1 var(--font-display); color: var(--text); white-space: nowrap; }
.ui-v2 .v2-card-price strong.is-request { font-size: 15px; }
.ui-v2 .v2-card-price small { font-size: 11px; color: var(--text-faint); }
.ui-v2 .v2-card-stock { margin: 0; font-size: 12px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.ui-v2 .v2-card-stock.is-in { color: var(--ok); }
.ui-v2 .v2-card-stock.is-in::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.ui-v2 .v2-add { grid-column: 1 / -1; width: 100%; height: 40px; }
.ui-v2 .v2-add.is-added { background: var(--ok); border-color: var(--ok); }
@media (max-width: 559px) {
  .ui-v2 .v2-card { padding: 8px; }
  .ui-v2 .v2-card-codes .v2-card-sku, .ui-v2 .v2-card-specs li:nth-child(n+3) { display: none; }
  .ui-v2 .v2-card-price strong { font-size: 16px; }
  .ui-v2 .v2-card-stock { grid-column: 1 / -1; text-align: left; }
}
@media (pointer: coarse) { .ui-v2 .v2-add { height: 44px; } .ui-v2 .v2-opt { min-height: 40px; } }

/* список */
.ui-v2 .v2-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.ui-v2 .v2-grid.is-list .v2-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; padding: 12px; }
.ui-v2 .v2-grid.is-list .v2-card-img { grid-row: span 2; }
.ui-v2 .v2-grid.is-list .v2-card-body { padding-top: 0; }
.ui-v2 .v2-grid.is-list .v2-card-title a { -webkit-line-clamp: 2; }
.ui-v2 .v2-grid.is-list .v2-card-buy { margin-top: 4px; grid-template-columns: auto auto 1fr; align-items: center; }
.ui-v2 .v2-grid.is-list .v2-add { grid-column: auto; width: auto; min-width: 140px; justify-self: end; }
@media (min-width: 768px) {
  .ui-v2 .v2-grid.is-list .v2-card { grid-template-columns: 150px minmax(0, 1fr) 200px; }
  .ui-v2 .v2-grid.is-list .v2-card-img { grid-row: auto; }
  .ui-v2 .v2-grid.is-list .v2-card-buy { margin: 0; grid-template-columns: 1fr; align-content: center; border-left: 1px solid var(--line); padding-left: 16px; }
  .ui-v2 .v2-grid.is-list .v2-card-stock { text-align: left; }
  .ui-v2 .v2-grid.is-list .v2-add { width: 100%; }
  .ui-v2 .v2-grid.is-list .v2-card-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
}

/* листание, пустая выдача */
.ui-v2 .v2-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.ui-v2 .v2-pager a, .ui-v2 .v2-pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 14px; text-decoration: none; }
.ui-v2 .v2-pager a { border: 1px solid var(--line-strong); color: var(--text); }
.ui-v2 .v2-pager a:hover { border-color: var(--accent); color: var(--accent); }
.ui-v2 .v2-pager .is-current { background: var(--accent); color: #fff; font-weight: 700; }
.ui-v2 .v2-pager-gap { color: var(--text-faint); min-width: 16px; padding: 0; }
.ui-v2 .v2-empty { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 28px; text-align: center; }
.ui-v2 .v2-empty h2 { font: 700 20px var(--font-display); margin: 0 0 8px; }
.ui-v2 .v2-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* ---- карточка товара -------------------------------------------------------------- */
.ui-v2 .v2-product { padding-block: 12px 24px; }
.ui-v2 .v2-pgrid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gallery" "buy" "keys"; margin-top: 8px; }
.ui-v2 .v2-gallery { grid-area: gallery; min-width: 0; }
.ui-v2 .v2-phead { grid-area: head; min-width: 0; }
.ui-v2 .v2-buybox { grid-area: buy; }
@media (min-width: 1024px) {
  .ui-v2 .v2-pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gallery head" "gallery buy" "gallery keys"; grid-template-rows: auto auto 1fr; gap: 16px 32px; }
}
@media (min-width: 1280px) {
  .ui-v2 .v2-pgrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 340px; grid-template-areas: "gallery head buy" "gallery keys buy"; grid-template-rows: auto 1fr; }
  .ui-v2 .v2-buybox { align-self: start; position: sticky; top: calc(var(--v2-head) + var(--v2-top) + 16px); }
}
.ui-v2 .v2-main-photo { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.ui-v2 .v2-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.ui-v2 .v2-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ui-v2 .v2-thumbs button { flex: none; width: 64px; height: 64px; padding: 4px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.ui-v2 .v2-thumbs button.is-active, .ui-v2 .v2-thumbs button:hover { border-color: var(--accent); }
.ui-v2 .v2-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ui-v2 .v2-pbrand { display: inline-block; color: var(--accent); font: 700 13px var(--font-text); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.ui-v2 .v2-ptitle { font: 700 clamp(19px, .9rem + .6vw, 25px)/1.28 var(--font-display); margin: 4px 0 8px; letter-spacing: -.005em; }
.ui-v2 .v2-ptitle.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ui-v2 .v2-title-more { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px var(--font-text); cursor: pointer; margin: -4px 0 8px; }
.ui-v2 .v2-pcodes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--text-muted); }
.ui-v2 .v2-pcodes b { color: var(--text); font-weight: 600; }
.ui-v2 [data-v2-copy] { cursor: copy; border-bottom: 1px dashed var(--line-strong); }
.ui-v2 .v2-pkeys { grid-area: keys; min-width: 0; }
.ui-v2 .v2-keyspecs { margin: 0 0 10px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ui-v2 .v2-keyspecs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ui-v2 .v2-keyspecs dt { color: var(--text-muted); }
.ui-v2 .v2-keyspecs dd { margin: 0; color: var(--text); }
.ui-v2 .v2-buybox { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); box-shadow: 0 8px 24px rgba(11,12,15,.06); }
.ui-v2 .v2-buy-price strong { display: block; font: 800 30px/1.1 var(--font-display); }
.ui-v2 .v2-buy-price strong.is-request { font-size: 22px; }
.ui-v2 .v2-buy-price small { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.ui-v2 .v2-buy-stock { margin: 10px 0 12px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.ui-v2 .v2-buy-stock.is-in { color: var(--ok); }
.ui-v2 .v2-buy-row { display: flex; gap: 8px; }
.ui-v2 .v2-qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--v2-r); overflow: hidden; flex: none; height: 48px; }
.ui-v2 .v2-qty button { width: 38px; border: 0; background: var(--surface); font-size: 20px; color: var(--text); cursor: pointer; }
.ui-v2 .v2-qty input { width: 48px; border: 0; text-align: center; font: 600 16px var(--font-text); -moz-appearance: textfield; }
.ui-v2 .v2-qty input::-webkit-outer-spin-button, .ui-v2 .v2-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ui-v2 .v2-add--big { flex: 1; height: 48px; font-size: 16px; }
.ui-v2 .v2-buy-alt { display: block; margin-top: 10px; font-size: 14px; color: var(--text); }
.ui-v2 .v2-buy-trust { list-style: none; margin: 14px 0 10px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--text-muted); }
.ui-v2 .v2-buy-trust li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.ui-v2 .v2-psection { padding-block: 24px; }
.ui-v2 .v2-psection h2 { font: 700 22px var(--font-display); margin: 0 0 12px; }
.ui-v2 .v2-pdetails { display: grid; gap: 32px; }
@media (min-width: 1024px) { .ui-v2 .v2-pdetails.has-desc { grid-template-columns: 1.1fr 1fr; } }
.ui-v2 .v2-spec-table { width: 100%; }
.ui-v2 .v2-similar { background: var(--surface); }
.ui-v2 .v2-similar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ui-v2 .v2-grid--similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .ui-v2 .v2-grid--similar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ui-v2 .v2-mbar { display: none; }
@media (max-width: 1023px) {
  .ui-v2 .v2-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,12,15,.08); transform: translateY(110%); transition: transform .2s; }
  .ui-v2 .v2-mbar.is-visible { transform: none; }
  .ui-v2 .v2-mbar-price { flex: 1; font: 800 18px var(--font-display); }
  .ui-v2 .v2-mbar-price small { display: block; font: 400 12px var(--font-text); color: var(--text-muted); }
  .ui-v2 .v2-mbar .v2-add { width: auto; min-width: 150px; height: 44px; }
  .ui-v2 .v2-page--product .site-footer { padding-bottom: 80px; }
}

/* тост (site.js) над нижней панелью */
@media (max-width: 1023px) { .ui-v2 .toast, .ui-v2 [data-toast] { bottom: 84px; } }

/* форма заявки A2 в раскладке v2: элементы сетки не распираются таблицей min-width 640 (гор. прокрутка 424 px на 390 — дефект аудита) */
.ui-v2 .request-layout > * { min-width: 0; }
.ui-v2 .request-empty { padding: 24px 16px; }
.ui-v2 .request-layout .btn { white-space: normal; max-width: 100%; }
.ui-v2 .request-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .ui-v2 .request-layout { grid-template-columns: minmax(0, 1fr) 372px; } }

/* панель по фактической выборке (заход ec87fc66) */
.ui-v2 .v2-switch small { margin-left: auto; color: var(--text-faint); font: 400 12px var(--font-text); }
.ui-v2 .v2-hint { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface); color: var(--text-muted); font-size: 13px; line-height: 1.35; }
.ui-v2 .v2-note { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }
.ui-v2 .v2-chip--note { background: var(--accent-050); color: var(--text); }
.ui-v2 .v2-opt--muted { cursor: default; color: var(--text-muted); padding-left: 28px; }
/* состояние товара (блок 5, заход ec87fc66) */
.ui-v2 .condition-badge { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 6px; background: #fff4e5; color: #8a4b00; font: 600 12px/1.4 var(--font-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-v2 .v2-buy-condition { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #5c3200; font-size: 13px; line-height: 1.35; }

/* Заход 69e008af (блок 3.5, осмотр владельца 24.09): контраст по WCAG 2.1 (прибор tools/ui/contrast-check.js) — мелкий серый
   (артикул, «с НДС», счётчики) 3,1 -> 4,8; «В наличии» 3,9 -> 5,3; ссылки внутри текста подчёркнуты (отличались от текста в 1,2 раза). */
.ui-v2 { --text-faint: #667385; --ok-text: #147A51; }
.ui-v2 .v2-card-stock.is-in, .ui-v2 .v2-buy-stock.is-in { color: var(--ok-text); }
.ui-v2 p .v2-link, .ui-v2 li .v2-link, .ui-v2 span .v2-link, .ui-v2 small .v2-link { text-decoration: underline; text-underline-offset: 2px; }
