/* ==========================================================================
   Каталог промышленной продукции — публичная дизайн-система v2
   Направление: современный industrial / B2B e-commerce.
   Спокойный, дорогой, инженерный; воздух + плотность внутри данных;
   разделение — линии, фон, пространство, типографика. Без градиентов,
   glassmorphism, крупных скруглений и заметных теней.
   Шрифт: IBM Plex Sans / IBM Plex Mono (локально).
   ВНИМАНИЕ: файл общий с админкой — все классы, используемые админкой,
   сохранены и поддерживаются.
   ========================================================================== */

:root {
    --font: "IBM Plex Sans", "Segoe UI", "PT Sans", Arial, sans-serif;
    --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

    /* Базовая палитра */
    --bg: #ffffff;
    --bg-soft: #f5f6f7;
    --bg-soft-2: #eceff2;

    --ink: #171a1f;
    --ink-2: #4f5660;
    --muted: #747c86;

    --line: #e4e8ec;
    --line-2: #d3d9e0;

    /* Глубокий промышленный синий — единственный акцент */
    --brand: #14477a;
    --brand-2: #0f3a66;
    --brand-soft: #eef3f8;
    --brand-tint: #f7fafc;

    /* Семантика (минимум) */
    --ok: #2e7d4f;
    --ok-soft: #edf6f0;
    --warn: #8a5a00;
    --warn-soft: #fbf4e6;
    --err: #b42318;
    --err-soft: #fdf1f0;

    --r: 4px;
    --r-md: 6px;
    --r-lg: 8px;

    --container: 1360px;

    /* Совместимость с админкой */
    --brand-soft-legacy: var(--brand-soft);
    --shadow-1: none;
    --shadow-2: 0 10px 30px -18px rgba(23, 26, 31, .25);
    --radius: var(--r);
    --radius-sm: 3px;
    --radius-lg: var(--r-md);
}

@media (min-width: 1440px) {
    :root { --container: 1360px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 15px/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--brand); }

h1, h2, h3, h4 { margin: 0 0 .55em; font-weight: 600; line-height: 1.22; color: var(--ink); letter-spacing: -0.008em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
:focus-visible { outline: 2px solid rgba(20, 71, 122, .45); outline-offset: 1px; }
::selection { background: var(--brand-soft); }

/* ---------- Утилиты ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .95em; letter-spacing: .005em; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xs { width: 13px; height: 13px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border: 1px solid transparent; border-radius: var(--r);
    background: var(--bg-soft); color: var(--ink); font-weight: 500; font-size: 14px;
    line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
    transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--accent { background: var(--brand); color: #fff; }
.btn--accent:hover { background: var(--brand-2); color: #fff; }
.btn--outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--danger { background: #fff; border-color: #e5b7b2; color: var(--err); }
.btn--danger:hover { background: var(--err-soft); }
.btn--sm { padding: 6px 11px; font-size: 13px; }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------- Формы ---------- */
.input, .select, .textarea {
    width: 100%; padding: 8px 11px; border: 1px solid var(--line-2);
    border-radius: var(--r); background: #fff; color: var(--ink);
    transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 71, 122, .10);
}
.input::placeholder { color: #9aa2ab; }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23747c86'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
}
.field { margin-bottom: 14px; }
.field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field__hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field__error { font-size: 12.5px; color: var(--err); margin-top: 4px; }
.field--invalid .input, .field--invalid .select, .field--invalid .textarea { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.checkbox, .radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; padding: 3px 0; }
.checkbox input, .radio input { margin: 2px 0 0; flex: none; accent-color: var(--brand); }

/* ---------- Шапка сайта v2 (компактная, два уровня) ---------- */
.site-hdr { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 90; }

.hdr-main { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; max-width: 300px; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.brand__tag { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: .01em; }

.hdr-search { flex: 1; max-width: 620px; position: relative; }
.hdr-search .header-search__form { display: flex; }
.hdr-search .header-search__input {
    flex: 1; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0;
    border-radius: var(--r) 0 0 var(--r); font-size: 14px; min-width: 0; background: var(--bg-soft);
}
.hdr-search .header-search__input:focus { outline: none; border-color: var(--brand); background: #fff; }
.hdr-search .header-search__btn {
    height: 40px; padding: 0 16px; border: 1px solid var(--brand); background: var(--brand); color: #fff;
    border-radius: 0 var(--r) var(--r) 0; display: inline-flex; align-items: center; gap: 7px;
}
.hdr-search .header-search__btn:hover { background: var(--brand-2); }
.hdr-search .header-search__hint { display: none; }

.hdr-side { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 14px; }
.hdr-phone .icon { color: var(--brand); }
.hdr-phone:hover { color: var(--brand); }
.hdr-btn { position: relative; }

/* Второй уровень — навигация */
.hdr-nav { border-top: 1px solid var(--line); }
.hdr-nav__inner { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.nav-cat-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
    background: var(--brand); color: #fff; border: 0; border-radius: var(--r);
    font-weight: 600; font-size: 13.5px; letter-spacing: .005em;
}
.nav-cat-btn:hover { background: var(--brand-2); }
.nav-cat-btn .icon { transition: transform .15s; }
.nav-cat-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.hdr-nav__links { display: flex; align-items: center; margin-left: 10px; }
.hdr-nav__links a { padding: 10px 13px; font-size: 13.5px; color: var(--ink-2); border-radius: var(--r); }
.hdr-nav__links a:hover { color: var(--brand); background: var(--brand-tint); }

/* Мега-меню */
.mega {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px -22px rgba(23, 26, 31, .35); z-index: 95;
}
.mega.is-open { display: block; }
.mega__inner { padding: 24px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 34px; }
.mega__group { padding: 6px 0; }
.mega__group-title { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.mega__group-title:hover { color: var(--brand); }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links li { margin: 2px 0; }
.mega__links a { font-size: 13.5px; color: var(--ink-2); }
.mega__links a:hover { color: var(--brand); }
.mega__foot { border-top: 1px solid var(--line); padding: 11px 0; display: flex; gap: 18px; align-items: center; }
.mega__foot a { font-size: 13.5px; font-weight: 500; }

/* Бургер (мобильная шапка) */
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Подсказки поиска (общие) ---------- */
.suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 2px); background: #fff;
    border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-2);
    z-index: 120; display: none; max-height: 430px; overflow: auto;
}
.suggest.is-open { display: block; }
.suggest__group-title { padding: 8px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.suggest__item { display: flex; gap: 10px; align-items: center; padding: 8px 14px; color: var(--ink); }
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-soft); color: var(--ink); }
.suggest__item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__item-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.suggest__empty { padding: 14px; color: var(--muted); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 16px 0 0; font-size: 12.5px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }

/* ---------- Главная: первый экран ---------- */
.home-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.home-hero__title { font-size: 36px; max-width: 760px; margin-bottom: 10px; }
.home-hero__sub { font-size: 16.5px; color: var(--ink-2); max-width: 640px; margin-bottom: 22px; }
.hero-search { max-width: 760px; }
.hero-search__form { display: flex; }
.hero-search__input {
    flex: 1; height: 52px; padding: 0 18px; border: 1px solid var(--line-2); border-right: 0;
    border-radius: var(--r) 0 0 var(--r); font-size: 16px; min-width: 0;
}
.hero-search__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,71,122,.10); }
.hero-search__btn {
    height: 52px; padding: 0 26px; border: 1px solid var(--brand); background: var(--brand); color: #fff;
    font-size: 15px; font-weight: 600; border-radius: 0 var(--r) var(--r) 0;
    display: inline-flex; align-items: center; gap: 9px;
}
.hero-search__btn:hover { background: var(--brand-2); }
.dir-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; }
.dir-links__label { color: var(--muted); }
.dir-links a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.dir-links a:hover { color: var(--brand); border-bottom-color: rgba(20,71,122,.35); }
.hero-search__scope { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-search__scope a { color: var(--ink-2); margin-right: 12px; border-bottom: 1px solid var(--line-2); }
.hero-search__scope a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.home-hero__meta { margin-top: 22px; display: flex; gap: 34px; font-size: 13px; color: var(--muted); }
.home-hero__meta b { color: var(--ink); font-weight: 600; }
.hero__stats { margin-top: 20px; display: flex; gap: 34px; }
.hero__stat { font-size: 13px; color: var(--muted); }
.hero__stat b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 34px 0; }
.section--tight { padding: 22px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head__link { margin-left: auto; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }

/* Категории на главной — компактные текстовые колонки */
.cat-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 34px; }
.cat-column { min-width: 0; }
.cat-column__title { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; }
.cat-column__title .count { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.cat-column ul { list-style: none; margin: 0; padding: 0; }
.cat-column li { margin: 3px 0; }
.cat-column a { font-size: 13.5px; color: var(--ink-2); }
.cat-column a:hover { color: var(--brand); }

/* Производители */
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
    border-radius: var(--r); background: #fff; padding: 7px 12px; color: var(--ink);
    font-size: 13.5px; font-weight: 500;
}
.brand-chip:hover { border-color: var(--brand); color: var(--brand); }
.brand-chip .count { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.feature { padding: 20px 22px; border-right: 1px solid var(--line); background: #fff; }
.feature:last-child { border-right: 0; }
.feature__icon { color: var(--brand); margin-bottom: 10px; }
.feature__title { font-weight: 600; margin-bottom: 5px; font-size: 15px; }
.feature__text { font-size: 13.5px; color: var(--muted); margin: 0; }

/* CTA-панель (светлая, инженерная) */
.cta-panel { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); padding: 22px 26px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-panel__title { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.cta-panel__text { color: var(--ink-2); font-size: 14px; margin: 0; max-width: 640px; }
.cta-panel__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Информационный блок главной */
.info-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.info-split h3 { margin-top: 0; }
.info-split ol { padding-left: 20px; color: var(--ink-2); }
.expert__text h3 { margin-top: 0; }
.expert__aside { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: 13.5px; background: var(--bg-soft); }
.expert__aside h4 { margin: 0 0 8px; }
.expert__aside .btn { margin-top: 10px; }
.expert { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

/* ---------- Категория: шапка ---------- */
.page-head { padding: 18px 0 0; }
.page-head h1 { margin-bottom: 6px; font-size: 32px; }
.page-head__meta { color: var(--muted); font-size: 13.5px; }
.page-head__desc { color: var(--ink-2); max-width: 900px; margin: 8px 0 0; font-size: 14px; }
.subcat-line { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); }
.subcat-line__label { color: var(--muted); margin-right: 6px; }
.subcat-line a { color: var(--ink-2); border-bottom: 1px solid transparent; }
.subcat-line a:hover { color: var(--brand); border-bottom-color: rgba(20,71,122,.35); }
.subcat-line .sep { color: var(--line-2); margin: 0 7px; }

/* ---------- Каталог: раскладка ---------- */
.catalog-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 30px; align-items: start; padding: 18px 0 40px; }
.catalog-side { position: sticky; top: 14px; }

/* ---------- Фильтры v2 (компактные) ---------- */
.filters { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.filters__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.filters__head .btn { margin-left: auto; font-weight: 500; }
.filters__active { padding: 10px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand); border-radius: var(--r); font-size: 12px; padding: 3px 8px; }
.filter-chip button { border: 0; background: none; color: inherit; display: inline-flex; padding: 0; }

.filter-block { border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-block__head {
    width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: none; border: 0; font-weight: 600; font-size: 13px; color: var(--ink); text-align: left;
    letter-spacing: .01em;
}
.filter-block__head .icon { margin-left: auto; transition: transform .15s; color: var(--muted); width: 14px; height: 14px; }
.filter-block.is-collapsed .filter-block__head .icon { transform: rotate(-90deg); }
.filter-block__body { padding: 2px 16px 12px; }
.filter-block.is-collapsed .filter-block__body { display: none; }

.filter-options { margin: 0; padding: 0; max-height: 236px; overflow: auto; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.filter-option input { accent-color: var(--brand); flex: none; }
.filter-option .count { color: var(--muted); font-size: 12px; margin-left: auto; font-family: var(--mono); }
.filter-option:hover { color: var(--ink); }
.filter-option.is-hidden { display: none; }
.fopt-more { border: 0; background: none; color: var(--brand); font-size: 12.5px; padding: 5px 0 0; }
.fopt-more:hover { color: var(--brand-2); }

.range-row { display: flex; align-items: center; gap: 8px; }
.range-row .input { padding: 6px 9px; font-size: 13px; }
.range-row span { color: var(--muted); }

.filters__foot { padding: 12px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--bg-soft); }
.filters__foot .btn { font-weight: 600; }
.filters-toggle { display: none; }

/* ---------- Toolbar ---------- */
.tool-row { display: flex; align-items: center; gap: 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tool-row__count { font-size: 13.5px; color: var(--ink-2); }
.tool-row__count b { color: var(--ink); }
.tool-row .spacer { flex: 1; }
.tool-sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.tool-sort .select { width: auto; padding: 6px 30px 6px 10px; font-size: 13.5px; background-color: #fff; color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.view-toggle a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; background: #fff; color: var(--muted); }
.view-toggle a + a { border-left: 1px solid var(--line-2); }
.view-toggle a:hover { color: var(--brand); }
.view-toggle a.is-active { background: var(--brand-soft); color: var(--brand); }

/* ---------- Сетка товаров ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Карточка товара v2 ---------- */
.product-card {
    border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
    display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.product-card:hover { border-color: var(--line-2); }
.product-card__media { display: block; position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.product-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px; background: #fff; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

.pcard-top { display: flex; align-items: center; gap: 10px; min-height: 18px; }
.pcard-brand { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stock--in { color: var(--ok); }
.stock--in::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.stock--out::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }

.pcard-title { font-size: 14.5px; font-weight: 500; line-height: 1.35; margin: 0; }
.pcard-title a { color: var(--ink); }
.pcard-title a:hover { color: var(--brand); }
.pcard-code { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pcard-code b { color: var(--ink-2); font-weight: 500; }
.pcard-specs { margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.pcard-specs li { display: flex; gap: 8px; padding: 1px 0; min-width: 0; }
.pcard-specs .k { color: var(--muted); flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-specs .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pcard-price { font-size: 17px; font-weight: 600; letter-spacing: -.01em; min-width: 0; }
.pcard-price--request { font-size: 14px; font-weight: 500; color: var(--brand); }
.pcard-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.pcard-btn { margin-left: auto; flex: none; }
.pcard-btn .icon { width: 14px; height: 14px; }
.product-card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Список товаров (list view) ---------- */
.product-list { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.product-row { display: grid; grid-template-columns: 132px minmax(0, 1.4fr) minmax(0, 1.1fr) 130px 150px 132px; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; align-items: center; }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: var(--brand-tint); }
.product-row__media img { width: 132px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 6px; }
.product-row__main { min-width: 0; }
.product-row__name { font-size: 14.5px; font-weight: 500; margin: 0 0 4px; }
.product-row__specs { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.product-row__specs li { padding: 1px 0; }
.product-row__side { font-size: 12.5px; }
.product-row__price { text-align: right; font-size: 16px; font-weight: 600; }
.product-row__price small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.product-row__action { display: flex; justify-content: flex-end; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; align-items: center; gap: 4px; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-2);
    padding: 0 9px; font-size: 13.5px;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination .is-disabled { color: #b9c1c9; }
.pagination .dots { border: 0; background: none; }

/* ---------- Пустое состояние ---------- */
.empty-state { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 46px 24px; text-align: center; color: var(--muted); background: var(--bg-soft); }
.empty-state h3 { color: var(--ink); }
.empty-state .btn { margin-top: 12px; }
.empty-state .btn + .btn { margin-left: 8px; }

/* ---------- «Смотрите также» ---------- */
.see-also { margin-top: 30px; }
.see-also h2 { font-size: 19px; margin-bottom: 12px; }
.see-also__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; list-style: none; margin: 0; padding: 0; }
.see-also__grid li { font-size: 13.5px; }
.see-also__grid .count { color: var(--muted); font-size: 12px; }

/* ---------- Страница товара v2 ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 36px; padding: 6px 0 8px; align-items: start; }
.gallery__main { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; position: relative; }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 20px; }
.gallery__note { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumb { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 3px; width: 76px; height: 62px; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--brand); }

.pinfo__codes { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.pinfo__codes .label { color: var(--muted); }
.pinfo__codes .val { font-family: var(--mono); color: var(--ink); }
.pinfo h1 { font-size: 28px; margin-bottom: 10px; }
.pinfo__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.pinfo__meta a { color: var(--brand); }
.price-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 16px; }
.price-block__value { font-size: 30px; font-weight: 600; letter-spacing: -.015em; }
.price-block__note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pinfo__actions { display: grid; gap: 9px; margin-bottom: 12px; }
.pinfo__hint { font-size: 12.5px; color: var(--muted); }
.quick-specs { margin-top: 18px; border-top: 1px solid var(--line); }
.quick-specs__row { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.quick-specs__row .k { color: var(--muted); min-width: 150px; flex: none; }
.quick-specs__row .v { color: var(--ink); }

/* Табы на странице товара */
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 34px 0 0; flex-wrap: wrap; }
.tabbar button { border: 0; background: none; padding: 11px 15px; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabbar button:hover { color: var(--brand); }
.tabbar button.is-active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }
/* Без JS — все секции видны как обычные блоки */
.tabpanel-fallback h2 { margin-top: 34px; }

/* Таблица характеристик v2 */
.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs-table th, .specs-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.specs-table th { color: var(--muted); font-weight: 400; width: 46%; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table__group td { background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.specs-table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; max-width: 900px; }

/* Секции товара */
.product-section { margin-top: 34px; }
.product-section > h2 { font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.prose { max-width: 860px; color: var(--ink-2); }
.prose h3 { color: var(--ink); margin-top: 1.2em; }
.prose ul { padding-left: 20px; }
.similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- Бренд ---------- */
.brand-head { display: flex; align-items: center; gap: 20px; padding: 20px 0 8px; }
.brand-head__logo { width: 68px; height: 68px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 24px; color: var(--brand); }
.brand-head h1 { margin-bottom: 4px; font-size: 30px; }

/* ---------- Поиск ---------- */
.search-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 20px; flex-wrap: wrap; }
.search-tab { padding: 9px 14px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; }
.search-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; background: rgba(23, 26, 31, .45); display: none; z-index: 130; padding: 24px; overflow: auto; }
.modal.is-open { display: block; }
.modal__dialog { max-width: 560px; margin: 40px auto; background: #fff; border-radius: var(--r-md); }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head h3 { margin: 0; font-size: 17px; }
.modal__close { margin-left: auto; border: 0; background: none; color: var(--muted); display: inline-flex; }
.modal__close:hover { color: var(--ink); }
.modal__body { padding: 18px 20px; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Уведомления ---------- */
.alert { border: 1px solid; border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert--success { background: var(--ok-soft); border-color: #c5decd; color: #1f5c39; }
.alert--error { background: var(--err-soft); border-color: #ecc8c4; color: var(--err); }
.alert--info { background: var(--brand-soft); border-color: #c4d6ea; color: var(--brand-2); }
.alert--warn { background: var(--warn-soft); border-color: #ecd9b0; color: var(--warn); }

/* ---------- Футер v2 (светлый, спокойный) ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 48px; color: var(--ink-2); }
.site-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding: 36px 0 26px; }
.site-footer h4 { color: var(--ink); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; font-size: 13.5px; }
.site-footer__about { font-size: 13.5px; color: var(--muted); max-width: 340px; }
.site-footer__bottom { border-top: 1px solid var(--line); padding: 14px 0; font-size: 12.5px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.site-footer__bottom .spacer { flex: 1; }
.site-footer__note { color: var(--muted); font-size: 12px; }

/* ---------- Общие списки/чипы (для страниц) ---------- */
.direction-row { display: flex; flex-wrap: wrap; gap: 8px; }
.direction-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 12px; background: #fff; color: var(--ink-2); font-size: 13px; }
.direction-chip:hover { border-color: var(--brand); color: var(--brand); }
.direction-chip .count { color: var(--muted); font-size: 12px; }
.brands-strip { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Тэги/бейджи (общие, для админки и витрины) ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r); letter-spacing: .02em; }
.badge--stock { background: var(--ok-soft); color: var(--ok); }
.badge--order { background: var(--brand-soft); color: var(--brand); }
.badge--promo { background: var(--warn-soft); color: var(--warn); }
.badge--muted { background: var(--bg-soft-2); color: var(--muted); }

/* ---------- Хлебные крошки / прочее для админки ---------- */
.topbar { background: var(--ink); color: #cbd2d9; font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #cbd2d9; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__spacer { flex: 1; }

/* ---------- Совместимость с административной панелью ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 16px; }
.panel__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 15px; }
.panel__head .spacer { flex: 1; }
.panel__body { padding: 16px; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs th, .specs td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.specs th { background: var(--bg-soft); font-weight: 500; color: var(--ink-2); width: 300px; }
.specs tr:nth-child(even) td { background: #fbfcfd; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.table-wrap { overflow-x: auto; }
.prose img { border-radius: var(--r); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.muted-note { font-size: 12.5px; color: var(--muted); }
.placeholder-warn { background: var(--warn-soft); border: 1px solid #ecd9b0; color: var(--warn); border-radius: var(--r); padding: 8px 12px; font-size: 12.5px; }

/* ---------- Адаптивность публичной части ---------- */
@media (max-width: 1240px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mega__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    :root { --container: 100%; }
    .hdr-main { flex-wrap: wrap; padding: 10px 0; gap: 14px; }
    .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
    .hdr-nav__links { display: none; }
    .hdr-nav__links.is-open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 14px; z-index: 96; }
    .hdr-nav__links.is-open a { padding: 11px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
    .burger { display: inline-flex; margin-left: auto; }
    .hdr-nav__inner { position: relative; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-side { position: static; }
    .filters { display: none; }
    .filters.is-open { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 140; max-height: 86vh; overflow: auto; border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 0; }
    .filters-toggle { display: inline-flex; }
    .product-layout { grid-template-columns: 1fr; gap: 22px; }
    .product-row { grid-template-columns: 110px minmax(0, 1fr); }
    .product-row__side, .product-row__price { grid-column: 2; text-align: left; }
    .product-row__media img { width: 110px; height: 84px; }
    .info-split, .expert { grid-template-columns: 1fr; gap: 22px; }
    .see-also__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__main { grid-template-columns: 1fr 1fr; }
    .home-hero__title { font-size: 30px; }
}

@media (max-width: 768px) {
    .product-grid, .product-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-columns { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature { border-bottom: 1px solid var(--line); }
    .feature:nth-child(2n) { border-right: 0; }
    .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-panel { padding: 18px; }
    .cta-panel__actions { margin-left: 0; }
    .home-hero { padding: 28px 0 24px; }
    .home-hero__title { font-size: 26px; }
    .home-hero__sub { font-size: 15px; }
    .hero-search__btn { padding: 0 16px; }
    .hero-search__btn span { display: none; }
    .page-head h1 { font-size: 26px; }
    .pinfo h1 { font-size: 22px; }
    .price-block__value { font-size: 26px; }
    .site-footer__main { grid-template-columns: 1fr; gap: 20px; }
    .hdr-side .hdr-phone span { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .product-grid, .product-grid--3, .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-columns { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .feature { border-right: 0; }
    .field-row { grid-template-columns: 1fr; }
    .see-also__grid { grid-template-columns: 1fr; }
    .product-card__body { padding: 10px 11px 12px; }
    .pcard-specs { display: none; } /* компактный режим на узких экранах */
    .tool-row { gap: 10px; }
}

/* Печать базово */
@media print {
    .site-hdr, .site-footer, .filters, .tool-row, .cta-panel { display: none !important; }
    .product-layout, .catalog-layout { display: block; }
}

/* ============================================================
   Итерация 3: двухпанельное мега-меню, главная, визуальный ритм
   ============================================================ */

/* --- Мега-меню: двухпанельный каталог --- */
.mega__inner { padding: 0; display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 0; }
.mega__dirs { list-style: none; margin: 0; padding: 10px 0 14px; border-right: 1px solid var(--line); }
.mega__dir { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--r); padding: 7px 11px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.mega__dir .icon { opacity: 0; transition: opacity .12s; flex: none; }
.mega__dir:hover { color: var(--brand); background: var(--brand-tint); }
.mega__dir.is-active { color: var(--brand); background: var(--brand-tint); font-weight: 500; }
.mega__dir.is-active .icon, .mega__dir:hover .icon { opacity: 1; }
.mega__panels { min-width: 0; }
.mega__panel { display: none; padding: 16px 0 18px 26px; }
.mega__panel.is-active { display: block; }
.mega__panel-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.mega__panel-head a { font-weight: 600; font-size: 14px; }
.mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px 18px; }
.mega__link { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 8px; margin-left: -8px; font-size: 13.5px; color: var(--ink-2); border-radius: var(--r); }
.mega__link:hover { color: var(--brand); background: var(--brand-tint); }
.mega__link-count { flex: none; font-size: 12px; color: var(--muted); }
@media (max-width: 1240px) {
    .mega__inner { grid-template-columns: 260px minmax(0, 1fr); }
    .mega__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Мобильный drill-down каталога --- */
.mnav-cat { display: none; }
.mnav-dir summary::-webkit-details-marker { display: none; }
@media (max-width: 1024px) {
    .nav-cat-btn { display: none; }
    .mega { display: none !important; }
    .mnav-cat { display: block; margin: 2px 0 8px; }
    .mnav-dir { border-top: 1px solid var(--line); }
    .mnav-dir summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink); }
    .mnav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
    .mnav-dir summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 3px 4px 8px; flex: none; }
    .mnav-dir[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; margin-top: 4px; }
    .mnav-dir ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 2px; }
    .mnav-dir li a { display: block; padding: 9px 4px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line2); }
    .mnav-dir .mnav-all a { color: var(--brand); font-weight: 500; border-bottom: 0; }
}

/* --- Главная: карточки направлений (итерация 3, §6) --- */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dir-card { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.dir-card__head { display: flex; gap: 12px; align-items: center; }
.dir-card__img { width: 56px; height: 56px; flex: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dir-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.dir-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-card__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.dir-card__head:hover .dir-card__name { color: var(--brand); }
.dir-card__count { font-size: 12.5px; color: var(--muted); }
.dir-card__sub { list-style: none; margin: 0; padding: 4px 0 0; border-top: 1px solid var(--line2); }
.dir-card__sub a { display: block; padding: 5px 0; font-size: 13px; color: var(--ink-2); }
.dir-card__sub a:hover { color: var(--brand); }
@media (max-width: 1240px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dir-grid { grid-template-columns: 1fr; } }

/* --- Визуальный ритм: воздух, разделители, изображение товара (§10) --- */
.section { padding: 40px 0; }
.home-hero { padding: 42px 0 34px; }
.section--soft { padding: 40px 0; }
.gallery__main { background: var(--bg-soft); }
.gallery__main img { padding: 28px; }
@media (max-width: 768px) { .gallery__main img { padding: 14px; } }
/* ============================================================
   Итерация 3: адаптивные фиксы узких ширин (360–390px)
   ============================================================ */

@media (max-width: 640px) {
    .section-head { flex-wrap: wrap; gap: 6px 14px; }
    .section-head__link { margin-left: 0; }
}

@media (max-width: 480px) {
    .product-card__body { min-width: 0; }
    .pcard-title, .pcard-title a { overflow-wrap: anywhere; }
    .pcard-code { overflow-wrap: anywhere; }
    .pcard-foot { gap: 6px; }
    .pcard-price { font-size: 15px; }
    .pcard-price--request { font-size: 12.5px; }
    .pcard-btn { font-size: 12.5px; padding: 6px 9px; }
    .pcard-btn .icon { display: none; }
}
/* ============================================================
   Итерация 4: e-commerce (корзина, оформление, сравнение, FAQ)
   ============================================================ */

/* --- Шапка: корзина --- */
.hdr-cart { gap: 7px; }
.hdr-cart__sum { font-weight: 600; font-size: 13.5px; opacity: .95; }
@media (max-width: 480px) { .hdr-cart__label { display: none; } }

/* --- Количество (степпер) --- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.qty__btn { border: 0; background: var(--bg-soft); color: var(--ink-2); width: 30px; font-size: 16px; line-height: 1; cursor: pointer; }
.qty__btn:hover { color: var(--brand); background: var(--brand-tint); }
.qty__input { width: 44px; border: 0; text-align: center; font-size: 14px; color: var(--ink); background: #fff; padding: 7px 2px; }
.qty__input:focus { outline: 2px solid var(--brand-ring, rgba(20,71,122,.25)); outline-offset: -2px; }
.qty--sm .qty__btn { width: 26px; font-size: 14px; }
.qty--sm .qty__input { width: 36px; padding: 5px 2px; font-size: 13px; }
.qty--lg .qty__btn { width: 38px; font-size: 18px; }
.qty--lg .qty__input { width: 56px; padding: 10px 2px; font-size: 16px; }

/* --- Карточка: цена + покупка --- */
.pcard-buy { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pcard-buy .pcard-btn { margin-left: auto; flex: none; }
@media (max-width: 480px) {
    .pcard-buy { gap: 6px; }
    .pcard-buy .pcard-btn { padding: 6px 9px; font-size: 12.5px; }
    .pcard-buy .pcard-btn .icon { display: none; }
}

/* --- Страница товара: покупка и инфо-строки --- */
.pinfo__buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pinfo__buy .qty { flex: none; }
.pinfo__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pinfo__short { color: var(--ink-2); margin: -4px 0 12px; }
.pinfo__info { margin-top: 16px; border-top: 1px solid var(--line); }
.pinfo__info-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pinfo__info-row:hover .pinfo__info-title { color: var(--brand); }
.pinfo__info-title { font-weight: 500; }
.pinfo__info-arrow { color: var(--muted); flex: none; }
.pinfo__info-text { color: var(--muted); font-size: 12.5px; margin-left: auto; text-align: right; max-width: 55%; }

/* --- Тост «добавлено в корзину» --- */
.cart-toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); padding: 14px 16px; box-shadow: 0 18px 36px -26px rgba(23,26,31,.45); max-width: 380px; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.cart-toast.is-open { opacity: 1; transform: translateY(0); }
.cart-toast.is-error { border-left-color: #a33; }
.cart-toast__msg { font-weight: 500; margin-bottom: 10px; }
.cart-toast__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .cart-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* --- Корзина: страница --- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cart-lines { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) 110px 108px 110px 40px; gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media img { width: 84px; height: 66px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); padding: 4px; }
.cart-line__name { font-weight: 500; color: var(--ink); display: block; }
.cart-line__name:hover { color: var(--brand); }
.cart-line__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cart-line__price, .cart-line__total { font-size: 14px; }
.cart-line__total b { font-weight: 600; }
.cart-line__price-mobile { display: none; }
.cart-line__remove { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: var(--r); }
.cart-line__remove:hover { color: #a33; background: var(--bg-soft); }
.cart-lines__foot { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg-soft); border-radius: 0 0 var(--r-md) var(--r-md); }
.cart-summary { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 18px; position: sticky; top: 90px; }
.cart-summary__title { font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.cart-summary__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; color: var(--ink-2); }
.cart-summary__row--warn { color: #8a5b00; }
.cart-summary__total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 16px; }
.cart-summary__total b { font-size: 18px; }
.cart-summary__note { font-size: 12.5px; color: var(--muted); margin: 10px 0; }
.cart-summary__hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.cart-summary .btn { margin-top: 10px; }
.price-request { color: var(--brand); }

/* --- Оформление заказа --- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.checkout-form .panel + .panel { margin-top: 18px; }
.checkout-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.checkout-lines li { display: flex; gap: 8px; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.checkout-lines__name { flex: 1; min-width: 0; color: var(--ink-2); }
.checkout-lines__qty { color: var(--muted); flex: none; }
.checkout-lines__price { flex: none; }
.checkout-side .cart-summary { position: static; }
.radio-row, .check-row { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 14px; }
.check-row { margin-top: 12px; }
.req { color: #a33; }

/* --- Успешный заказ --- */
.order-success { max-width: 640px; margin: 40px auto 60px; text-align: center; }
.order-success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.order-success__text { color: var(--ink-2); }
.order-success__actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* --- Сравнение --- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; }
.compare-table th, .compare-table td { border: 1px solid var(--line2); padding: 9px 11px; font-size: 13.5px; vertical-align: top; text-align: left; }
.compare-table thead th { vertical-align: top; background: var(--bg-soft); }
.compare-table__corner { width: 200px; }
.compare-th { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.compare-th__media img { width: 100%; max-height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 4px; }
.compare-th__name { font-weight: 600; color: var(--ink); }
.compare-th__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.compare-th__remove { margin-top: 4px; }
.compare-foot { display: flex; gap: 10px; margin-top: 16px; align-items: center; }

/* --- FAQ --- */
.faq-list { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item__answer { padding: 0 16px 14px; color: var(--ink-2); font-size: 14px; max-width: 80ch; }

/* --- Категория: бренды и ссылки --- */
.brands-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.brands-strip__label { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.brand-chip--sm { font-size: 12.5px; padding: 3px 9px; }
.cat-links-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.cat-links-row a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); background: #fff; }
.cat-links-row a:hover { color: var(--brand); border-color: var(--brand); }

/* --- Алерт ошибок --- */
.alert--error { border: 1px solid #e2b8b8; background: #fdf5f5; color: #7c2f2f; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; }
.alert--error ul { margin: 0; padding-left: 18px; }

/* --- Админ: заказы --- */
.row--new { background: #f6f9fd; }
.row--new td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.badge--brand { color: var(--brand); border-color: #bcd0e4; }
.badge--ok { color: var(--ok, #1f6b3a); border-color: #bcd6c4; }
.badge--info { color: #1c4e7e; border-color: #bcd0e4; }
.panel--accent { border-left: 3px solid var(--brand); }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.admin-cols--order { margin-top: 14px; }
.admin-col-main .panel + .panel, .admin-col-side .panel + .panel { margin-top: 18px; }
.order-totals { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft); display: grid; gap: 4px; font-size: 13.5px; }
.status-history { list-style: none; margin: 0; padding: 0; }
.status-history li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.status-history__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 6px; }
.kv { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tabs-row { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.tabs-row a { padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs-row a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs-row .count { color: var(--muted); font-size: 12px; }
.admin-pagination { display: flex; gap: 6px; padding: 12px 16px; flex-wrap: wrap; }
.admin-pagination a { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; }
.admin-pagination a.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.faq-admin-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; }
.faq-admin-item.is-hidden-item { opacity: .6; border-style: dashed; }
.faq-admin-item__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.input--tiny { width: 84px; }
.faq-admin-item__tools { display: flex; gap: 6px; margin-top: 8px; }

@media (max-width: 1024px) {
    .cart-layout, .checkout-layout, .admin-cols { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px minmax(0, 1fr) 40px; grid-template-areas: 'media main remove' 'media qty total'; row-gap: 8px; }
    .cart-line__media { grid-area: media; } .cart-line__main { grid-area: main; }
    .cart-line__price { display: none; } .cart-line__price-mobile { display: block; margin-top: 4px; color: var(--ink); }
    .cart-line__qty { grid-area: qty; } .cart-line__total { grid-area: total; text-align: right; } .cart-line__remove { grid-area: remove; }
    .cart-summary { position: static; }
}

/* Фикс 360px: кнопки сравнения переносятся */
.compare-foot { flex-wrap: wrap; }
@media (max-width: 480px) {
    .compare-foot { gap: 8px; }
    .compare-foot .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Итерация 7: коммуникации — шапка, виджет, чат, модалки, формы, cookie,
   избранное, бренды-индекс, отслеживание заказа, отзывы.
   ========================================================================== */

/* ---------- Шапка: мессенджеры и обратный звонок ---------- */
.hdr-comm { display: flex; align-items: center; gap: 6px; }
.hdr-msg { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-2); background: var(--bg); }
.hdr-msg:hover { color: var(--brand); border-color: var(--brand); }
.hdr-callback { border: 1px solid var(--brand); color: var(--brand); background: transparent;
    border-radius: var(--r-md); padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.hdr-callback:hover { background: var(--brand-soft); }
.hdr-mobile-contacts { display: none; }

@media (max-width: 1240px) {
    .hdr-callback { display: none; }
}
@media (max-width: 1024px) {
    .hdr-comm { display: none; }
    .hdr-nav__links.is-open .hdr-mobile-contacts { display: flex; flex-direction: column; gap: 10px;
        margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
    .hdr-mob-msgs { display: flex; gap: 14px; flex-wrap: wrap; }
    .hdr-mob-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
    .hdr-mob-link:hover { color: var(--brand); }
}

/* ---------- Floating widget (§10) ---------- */
.fw { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.fw__toggle { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff;
    border: none; display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 8px 22px -10px rgba(23, 26, 31, .45); }
.fw__toggle:hover { background: var(--brand-2); }
.fw__badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--err); color: #fff; font-size: 11px; line-height: 18px; font-weight: 600; }
.fw__panel { position: absolute; right: 0; bottom: 64px; width: 324px; background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 18px 48px -18px rgba(23, 26, 31, .35);
    overflow: hidden; }
.fw__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
    border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.fw__close { background: none; border: none; color: var(--muted); }
.fw__close:hover { color: var(--ink); }
.fw__actions { display: flex; flex-direction: column; }
.fw__action { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border: none;
    background: var(--bg); text-align: left; color: var(--ink); border-bottom: 1px solid var(--bg-soft); width: 100%; }
.fw__action:hover { background: var(--bg-soft); color: var(--ink); }
.fw__action strong { display: block; font-size: 13.5px; font-weight: 600; }
.fw__action small { color: var(--muted); font-size: 12px; }
.fw__ico { color: var(--brand); display: inline-flex; margin-top: 2px; }
.fw__hours { padding: 10px 14px; color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.fw__chat { border-top: 1px solid var(--line); }
.fw__chat-log { max-height: 250px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column;
    gap: 8px; background: var(--bg-soft); }
.fw__chat-log:empty { display: none; }
.chat-msg { max-width: 86%; padding: 8px 10px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.45; }
.chat-msg--visitor { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 2px; }
.chat-msg--manager { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.chat-msg__meta { font-size: 11px; opacity: .68; margin-top: 4px; }
.fw__chat-form { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fw__chat-first { display: flex; flex-direction: column; gap: 6px; }
.fw__chat-text { resize: vertical; min-height: 46px; }
.fw__chat-send { align-self: flex-end; }
.fw__chat-privacy { font-size: 11.5px; color: var(--muted); margin: 0; }
.fw__chat-status { padding: 8px 14px 0; font-size: 12.5px; color: var(--err); }

@media (max-width: 768px) {
    .fw { right: 14px; bottom: 14px; }
    .fw__panel { width: min(92vw, 324px); }
}

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center;
    padding: 48px 16px; overflow-y: auto; }
.modal:not([hidden]) { display: flex; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(23, 26, 31, .5); }
.modal__dialog { position: relative; background: var(--bg); border-radius: var(--r-lg); width: 100%;
    max-width: 480px; box-shadow: 0 24px 64px -20px rgba(23, 26, 31, .5); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px;
    border-bottom: 1px solid var(--line); }
.modal__title { font-size: 17px; margin: 0; }
.modal__close { background: none; border: none; color: var(--muted); display: inline-flex; }
.modal__close:hover { color: var(--ink); }
.modal__body { padding: 16px 20px 20px; }
html.no-scroll { overflow: hidden; }
@media (max-width: 600px) { .modal { padding: 20px 10px; } }

/* ---------- Формы коммуникаций ---------- */
.cform { display: flex; flex-direction: column; gap: 12px; position: relative; }
.cform__row { display: flex; flex-direction: column; gap: 5px; }
.cform__label { font-size: 13px; font-weight: 600; }
.cform__req { color: var(--err); }
.cform__error { color: var(--err); font-size: 12.5px; }
.cform__hint { color: var(--muted); font-size: 12px; margin: 0; }
.cform__privacy { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.cform__result { padding: 10px 12px; border-radius: var(--r-md); font-size: 13.5px;
    background: var(--bg-soft); border: 1px solid var(--line); }
.cform__result.is-success { background: var(--ok-soft); border-color: #cde5d5; color: var(--ok); }
.cform__hp { position: absolute; left: -6000px; width: 1px; height: 1px; overflow: hidden; }
.cform__product { padding: 8px 10px; background: var(--bg-soft); border-radius: var(--r-md);
    font-size: 12.5px; color: var(--ink-2); }
.cform__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform__submit { align-self: flex-start; }
.cform__row--qty { max-width: 150px; }
.input--file { padding: 7px 8px; }
@media (max-width: 480px) { .cform__grid2 { grid-template-columns: 1fr; } }

/* ---------- Cookie banner (§14–§15) ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: #fff; }
.cookie__inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 16px; align-items: center;
    padding: 12px 24px; flex-wrap: wrap; }
.cookie__text { flex: 1 1 420px; font-size: 13px; line-height: 1.5; color: var(--bg-soft-2); }
.cookie__text a { color: #a7c6e8; text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cookie .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.cookie__panel { border-top: 1px solid rgba(255, 255, 255, .14); background: #1d222a; }
.cookie__panel-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex;
    flex-direction: column; gap: 10px; }
.cookie__cat { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--bg-soft-2); }
.cookie__cat small { display: block; color: #9aa2ab; }
.cookie__panel .btn--primary { align-self: flex-start; margin-top: 4px; }

/* ---------- Избранное (§42) ---------- */
.fav-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.fav-btn:hover { color: var(--brand); border-color: var(--brand); }
.fav-btn.is-on { color: var(--err); border-color: #e8c3bf; background: var(--err-soft); }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fav-item { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex;
    flex-direction: column; gap: 10px; background: var(--bg); }
.fav-item__img { height: 150px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-soft); border-radius: var(--r-md); }
.fav-item__img img { max-height: 130px; max-width: 100%; width: auto; }
.fav-item__name a { color: var(--ink); font-weight: 600; font-size: 14px; }
.fav-item__name a:hover { color: var(--brand); }
.fav-item__code { color: var(--muted); font-size: 12.5px; }
.fav-item__price { font-weight: 700; }
.fav-item__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.fav-empty { padding: 28px; background: var(--bg-soft); border-radius: var(--r-lg); color: var(--ink-2); }

/* ---------- Бренды-индекс (§44) ---------- */
.brands-index__jump { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; }
.brands-index__jump a { color: var(--muted); font-size: 13px; }
.brands-index__jump a:hover { color: var(--brand); }
.brands-index__group { margin-bottom: 18px; }
.brands-index__letter { font-weight: 700; color: var(--brand); margin-bottom: 6px; font-size: 15px; }
.brands-index__list { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.brands-index__list a { color: var(--ink); }
.brands-index__list a:hover { color: var(--brand); }
.brands-index__count { color: var(--muted); font-size: 12px; }

/* ---------- Отслеживание заказа (§29) ---------- */
.track-card { max-width: 680px; }
.track-status { display: inline-block; padding: 4px 10px; border-radius: var(--r); background: var(--bg-soft);
    border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.track-items { width: 100%; border-collapse: collapse; margin-top: 14px; }
.track-items th, .track-items td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left;
    font-size: 13.5px; }
.track-items th { color: var(--muted); font-weight: 600; }

/* ---------- Отзывы (§34) ---------- */
.review { border-bottom: 1px solid var(--line); padding: 12px 0; }
.review:last-child { border-bottom: none; }
.review__head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.review__author { font-weight: 600; color: var(--ink); }
.review__rating { color: var(--warn); letter-spacing: 2px; }
.review__text { margin-top: 6px; font-size: 14px; }
.reviews__empty { color: var(--muted); font-size: 13.5px; }

/* ---------- Страница товара: доп. действия ---------- */
.pinfo__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pinfo__actions .fav-btn { width: 42px; height: 42px; }
.pinfo__consult { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 10px; }
.pinfo__consult a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.pinfo__consult a:hover { color: var(--brand); }
.delivery-snippet { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; padding: 10px 12px;
    background: var(--bg-soft); border-radius: var(--r-md); margin-top: 12px; }
.delivery-snippet a { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Прочее ---------- */
.site-footer__main--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.site-footer__msg { display: inline-flex; gap: 8px; align-items: center; }
.site-footer__cookie { background: none; border: none; color: var(--muted); font-size: 12.5px;
    display: inline-flex; gap: 6px; align-items: center; padding: 0; }
.site-footer__cookie:hover { color: var(--brand); }
.site-footer__note-row { padding: 10px 0 16px; }
@media (max-width: 1024px) { .site-footer__main--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .site-footer__main--5 { grid-template-columns: 1fr; } }

.search-empty__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.help-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); flex-wrap: wrap; }
.help-cta p { margin: 0; }
.help-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fav-btn--xs { width: 28px; height: 28px; }
.pcard-top__right { display: inline-flex; align-items: center; gap: 8px; }

.suggest__thumb img { width: 36px; height: 36px; object-fit: contain; background: var(--bg-soft); border-radius: var(--r); }
.suggest__item-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.compare-th__stock { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.compare-th__buy { margin-top: 8px; }
.compare-row--diff td { background: #fbfcfe; }

/* Гарантия: атрибут hidden всегда скрывает элемент (защита от конфликтов display) */
[hidden] { display: none !important; }
.brand--logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand__logo {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .brand__logo {
        width: 185px;
    }
}

@media (max-width: 768px) {
    .brand__logo {
        width: 155px;
    }
}