/* Saler UI — единый стиль витрины (без Elementor). Мобильная вёрстка — базовая, дальше min-width. */
:root {
    --bg: #f3f4f6;
    --surface: #fff;
    --ink: #15171c;
    --ink-2: #3a3f4b;
    --muted: #5d6370;
    --line: #e5e7eb;
    --brand: #ffc51b;
    --brand-2: #ffb800;
    --brand-soft: #fff6d6;
    --link: #1f5bd8;
    --ok: #0b7a43;
    --ok-bg: #e5f5ec;
    --radius: 16px;
    --radius-s: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
    --shadow-h: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sui { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
.sui img { max-width: 100%; height: auto; display: block; }
.sui a { color: var(--link); text-decoration: none; }
.sui a:hover { text-decoration: underline; }
.sui h1, .sui h2, .sui h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
.sui h1 { font-size: clamp(24px, 4.2vw, 34px); font-weight: 800; }
.sui h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.sui h3 { font-size: 18px; font-weight: 700; }
.sui p { margin: 0 0 1em; }
.sui button { font: inherit; cursor: pointer; }
.sui :focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.main { padding: 16px 0 48px; min-height: 60vh; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; transition: background .15s, transform .1s, box-shadow .15s; }
.sui .btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: var(--ink) !important; }
.btn--brand:hover { background: var(--brand-2); }
.btn--dark { background: var(--ink); color: #fff !important; }
.btn--dark:hover { background: #2b2f38; }
.btn--ghost { background: var(--surface); color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.hdr__row { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "logo cat nav" "search search search"; align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; min-width: 0; }
.sui .logo:hover { text-decoration: none; }
.logo__img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo__name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.logo__sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hdr__cat { grid-area: cat; padding: 10px 14px; }
.burger { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.hdr__cat[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr__cat[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.hdr__cat[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.hdr__nav { grid-area: nav; display: flex; justify-content: flex-end; gap: 4px; }
.hdr__nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.hdr__nav a:hover { background: var(--bg); text-decoration: none; }
.hdr__nav a:first-child { display: none; }
.hdr__search { grid-area: search; }
/* На главной поиск крупно в первом экране — второе поле в шапке на телефоне лишнее */
@media (max-width: 899px) { body.home .hdr__search { display: none; } body.home .hdr__row { grid-template-areas: "logo cat nav"; } }
@media (max-width: 420px) {
    .logo__sub { display: none; }
    .hdr__cat-txt { display: none; }
    .hdr__cat { padding: 10px 12px; }
}
@media (min-width: 900px) {
    .hdr__row { grid-template-columns: auto auto minmax(280px, 1fr) auto; grid-template-areas: "logo cat search nav"; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
    .hdr__nav a:first-child { display: inline-block; }
}

/* ---------- Поиск и подсказки ---------- */
/* form.search, а не .search: WordPress ставит <body class="search"> на странице результатов */
form.search { position: relative; display: flex; }
.search__input { flex: 1; min-width: 0; height: 46px; padding: 0 52px 0 16px; border: 2px solid var(--brand); border-radius: 12px; background: var(--surface); color: var(--ink); font: 16px var(--font); outline: none; -webkit-appearance: none; appearance: none; }
.search__input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.search__btn { position: absolute; right: 4px; top: 4px; width: 42px; height: 38px; border: 0; border-radius: 9px; background: var(--brand); color: var(--ink); display: grid; place-items: center; }
.search__btn:hover { background: var(--brand-2); }
.search--lg .search__input { height: 58px; font-size: 17px; border-radius: 14px; padding-right: 64px; border-color: var(--surface); }
.search--lg .search__btn { width: 52px; height: 48px; right: 5px; top: 5px; border-radius: 11px; background: var(--ink); color: #fff; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 120; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-h); padding: 8px; max-height: min(70vh, 520px); overflow: auto; }
.suggest__h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 4px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink) !important; font-size: 14px; }
.suggest a:hover, .suggest a.is-active { background: var(--bg); text-decoration: none; }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.suggest__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest__meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.suggest__all { justify-content: center; font-weight: 700; color: var(--link) !important; }
.suggest__empty { padding: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Меню каталога ---------- */
.catmenu { position: fixed; inset: 0; z-index: 200; background: var(--surface); overflow: hidden; }
.catmenu[hidden] { display: none; }
.catmenu__inner { height: 100%; display: flex; flex-direction: column; padding: 0; }
.catmenu__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.catmenu__title { font-weight: 800; font-size: 18px; }
.catmenu__close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); font-size: 26px; line-height: 1; color: var(--ink); }
.catmenu__roots { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.catmenu__root { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.sui .catmenu__root:hover, .catmenu__root.is-active { background: var(--bg); text-decoration: none; }
.catmenu__root .ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); font-size: 18px; flex: none; }
.catmenu__panel { display: none; flex: 1; overflow: auto; padding: 8px 16px 24px; }
.catmenu.is-sub .catmenu__roots { display: none; }
.catmenu.is-sub .catmenu__panel { display: block; }
.catmenu__back { border: 0; background: var(--bg); border-radius: 10px; padding: 10px 14px; font-weight: 700; margin: 4px 0 12px; }
.catmenu__body.is-loading { opacity: .5; }
.catmenu .cmmf-parent-title a { font-size: 22px; font-weight: 800; color: var(--ink); }
.catmenu .cmmf-parent-title { margin-bottom: 14px; }
.catmenu .cmmf-sub-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.catmenu .cmmf-sub-title a { font-weight: 700; color: var(--ink); font-size: 15px; }
.catmenu .cmmf-level-3 { list-style: none; margin: 6px 0 0; padding: 0; }
.catmenu .cmmf-level-3 a { display: block; padding: 3px 0; color: var(--ink-2); font-size: 14px; }
.catmenu .cmmf-level-3-all { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.catmenu .cmmf-empty { color: var(--muted); }
body.catmenu-open { overflow: hidden; }
@media (min-width: 900px) {
    .catmenu { position: absolute; inset: auto 0 auto 0; top: 100%; box-shadow: var(--shadow-h); border-top: 1px solid var(--line); max-height: calc(100vh - 80px); }
    .catmenu__inner { display: grid; grid-template-columns: 300px 1fr; height: auto; max-height: calc(100vh - 80px); padding: 16px; gap: 16px; }
    .catmenu__head, .catmenu__back { display: none; }
    .catmenu__roots { padding: 0; max-height: calc(100vh - 112px); }
    .catmenu__root { padding: 8px 10px; font-size: 14px; }
    .catmenu__root .ico { width: 30px; height: 30px; font-size: 16px; }
    .catmenu__panel { display: block; padding: 4px 8px 8px 24px; border-left: 1px solid var(--line); max-height: calc(100vh - 112px); }
    .catmenu.is-sub .catmenu__roots { display: block; }
    .catmenu .cmmf-sub-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 28px; }
    body.catmenu-open { overflow: auto; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: 13px; white-space: nowrap; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "›"; color: #b0b5bf; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] span { color: var(--ink-2); max-width: 360px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
@media (min-width: 900px) { .crumbs ol { flex-wrap: wrap; white-space: normal; } }

/* ---------- Заголовок страницы ---------- */
.phead { margin-bottom: 18px; }
.phead h1 { margin-bottom: 6px; }
.phead__meta { color: var(--muted); font-size: 15px; margin: 0; }
.lead { font-size: 16px; color: var(--ink-2); max-width: 900px; }

/* ---------- Блоки ---------- */
.card-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.sec { margin: 34px 0 0; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec__head h2 { margin: 0; }
.sec__link { font-weight: 700; font-size: 15px; white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; max-width: 900px; }
.tile { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; }
.tile b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.tile span { font-size: 13px; color: var(--muted); }

/* ---------- Чипы ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink) !important; font-size: 14px; font-weight: 600; line-height: 1.2; transition: box-shadow .15s, background .15s; }
.sui .chips a:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips a span { color: var(--muted); font-weight: 500; font-size: 13px; }
.chips--collapsed .is-extra { display: none; }
.chips__more { margin-top: 10px; border: 0; background: none; color: var(--link); font-weight: 700; padding: 4px 0; }

/* ---------- Сетка товаров и карточка ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid--6 { }
@media (min-width: 1200px) { .grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pc { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pc:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.pc__img { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.pc__img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.noimg { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23b8bdc7' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") center / 48px no-repeat !important; }
.pc__body { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 14px; flex: 1; }
.pc__price { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.pc__price--none { font-size: 14px; font-weight: 600; color: var(--muted); }
.pc__badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 3px 8px; border-radius: 6px; }
.pc__title { color: var(--ink) !important; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc__title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sui .pc__title:hover { text-decoration: none; }
.pc:hover .pc__title { color: var(--link) !important; }
.pc__brand { font-size: 13px; color: var(--muted); margin-top: auto; }
.pc__buy { position: relative; z-index: 2; margin-top: 6px; text-align: center; padding: 9px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--ink) !important; font-weight: 700; font-size: 13px; }
.sui .pc__buy:hover { background: var(--brand); text-decoration: none; }

/* ---------- Пагинация ---------- */
.pager { margin: 28px 0 8px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink) !important; font-weight: 700; }
.sui .pager a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; }
.pager .is-active span { background: var(--ink); color: #fff !important; box-shadow: none; }
.pager__gap { display: grid; place-items: center; min-width: 20px; color: var(--muted); }
.pager__info { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Категория ---------- */
.cat-layout { display: grid; gap: 18px; }
.subcats { margin: 4px 0 20px; }
.subcats__title { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--ink-2); }
@media (max-width: 899px) {
    .subcats .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 4px 1px; }
    .subcats .chips::-webkit-scrollbar { display: none; }
    .subcats .chips li { flex: none; }
    .subcats .chips--collapsed .is-extra { display: block; }
    .subcats .chips__more { display: none; }
    .lead { font-size: 15px; }
}
.brandline { font-size: 14px; color: var(--ink-2); }
.brandline a { font-weight: 600; }
.price-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin: 12px 0 0; }
.price-stats div { background: var(--surface); padding: 12px 14px; }
.price-stats b { display: block; font-size: 17px; }
.price-stats span { font-size: 13px; color: var(--muted); }
@media (min-width: 700px) { .price-stats { grid-template-columns: repeat(5, 1fr); } }

/* Обзор категории: текст + цифры слева, полоса цен и доли брендов справа */
.overview { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .overview { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding: 24px 26px; } }
.overview .lead { margin: 0 0 14px; font-size: 15px; }
.tiles--in { margin: 0; max-width: none; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.tiles--in .tile { box-shadow: none; background: var(--bg); padding: 12px 14px; }
.tiles--in .tile b { font-size: 18px; }
.overview__side { display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) { .overview__side { border-left: 1px solid var(--line); padding-left: 28px; } }
.sui .overview__h { font-size: 15px; font-weight: 800; margin: 0; color: var(--ink); }
.overview__h + * { margin-top: -2px; }
.bbars + .overview__h, .pbands__legend + .overview__h { margin-top: 10px; }
.pbands { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; }
.pbands__seg { display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.pbands__seg--1, .dot--1 { background: #1aa35a; }
.pbands__seg--2, .dot--2 { background: #f5b400; }
.pbands__seg--3, .dot--3 { background: #ef6a3c; }
.pbands__seg--2 { color: var(--ink); }
.pbands__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.pbands__legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bbars__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.bbars__row a, .bbars__row > span:first-child { font-weight: 700; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbars__n { color: var(--muted); font-size: 13px; white-space: nowrap; }
.bbars__bar { display: block; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bbars__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.lead-more { border: 0; background: none; padding: 0; margin: -8px 0 12px; color: var(--link); font-weight: 700; font-size: 14px; }
@media (max-width: 899px) {
    /* Товары должны начинаться в первом экране: текст свёрнут до 3 строк (целиком он в HTML), брендов — 3 */
    .overview { gap: 14px; }
    .overview .lead.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .tiles--in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .tiles--in .tile { padding: 8px 6px; text-align: center; }
    .tiles--in .tile b { font-size: 15px; }
    .tiles--in .tile span { font-size: 11px; }
    .bbars li:nth-child(n+4) { display: none; }
}

/* ---------- Карточка товара ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pp > * { min-width: 0; }
@media (min-width: 900px) { .pp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.gallery { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
@media (min-width: 900px) { .gallery { position: sticky; top: 90px; } }
.gallery__main { position: relative; display: block; aspect-ratio: 1 / 1; border: 0; background: #fff; padding: 0; width: 100%; cursor: zoom-in; border-radius: 12px; overflow: hidden; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 64px; height: 64px; padding: 4px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.gallery__thumb.is-active { box-shadow: inset 0 0 0 2px var(--brand-2); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pinfo { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
@media (min-width: 900px) { .pinfo { padding: 24px 26px; } }
.pinfo__brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pinfo h1 { font-size: clamp(21px, 3vw, 28px); margin-bottom: 14px; }
.pinfo__price { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.pinfo__price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.badge-ok { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 5px 10px; border-radius: 8px; }
.pinfo__note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.pinfo__cta { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 600px) { .pinfo__cta { grid-template-columns: 1fr auto; } }
.keyspecs { display: grid; gap: 0; margin: 0 0 14px; }
.keyspecs div { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.keyspecs dt { color: var(--muted); flex: 0 0 45%; }
.keyspecs dd { margin: 0; flex: 1; font-weight: 600; }
.pinfo__cat { font-size: 14px; margin: 0; }

.pricebar { margin: 14px 0 6px; }
.pricebar__track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #1aa35a, #ffc51b 55%, #ef5a3c); }
.pricebar__mark { position: absolute; top: 50%; width: 22px; height: 22px; margin-left: -11px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 4px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pricebar__median { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .45; }
.pricebar__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cmp-table { width: 100%; max-width: 680px; border-collapse: collapse; margin: 12px 0 4px; font-size: 15px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmp-table th { color: var(--muted); font-weight: 500; width: 55%; }

.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs th { width: 45%; color: var(--muted); font-weight: 500; }
.specs tr:nth-child(even) th, .specs tr:nth-child(even) td { background: #fafafb; }
.specs-wrap.is-collapsed { max-height: 520px; overflow: hidden; position: relative; }
.specs-wrap.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--surface)); }
.more-btn { margin-top: 10px; }
.prose { font-size: 16px; color: var(--ink-2); max-width: 900px; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { margin-top: 1.3em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -4px 20px rgba(0,0,0,.1); transform: translateY(110%); transition: transform .25s; }
.buybar.is-visible { transform: none; }
.buybar b { font-size: 20px; white-space: nowrap; }
.buybar .btn { flex: 1; }
@media (min-width: 900px) { .buybar { display: none; } }
body.has-buybar .ftr { padding-bottom: 80px; }
@media (min-width: 900px) { body.has-buybar .ftr { padding-bottom: 0; } }

/* ---------- Главная ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand); border-radius: 24px; padding: 26px 20px; margin: 4px 0 8px; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(26px, 5vw, 44px); line-height: 1.08; margin-bottom: 10px; max-width: 680px; }
.hero__lead { font-size: 17px; color: #2a2a2a; max-width: 600px; margin-bottom: 18px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.hero__facts li { background: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.hero__facts b { font-weight: 800; }
.hero__art { display: none; }
@media (min-width: 900px) {
    .hero { grid-template-columns: 1fr 380px; align-items: center; padding: 44px 48px; gap: 32px; }
    .hero__art { display: block; width: 380px; height: 380px; border-radius: 22px; overflow: hidden; transform: rotate(2deg); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
    .hero__art img { width: 100%; height: 100%; object-fit: cover; }
}
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.cat { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; transition: box-shadow .2s, transform .2s; }
.cat:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.cat__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); font-size: 24px; }
.cat__name { color: var(--ink) !important; font-weight: 800; font-size: 16px; line-height: 1.25; }
.cat__name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sui .cat__name:hover { text-decoration: none; }
.cat__count { font-size: 13px; color: var(--muted); }
.cat__subs { list-style: none; margin: 4px 0 0; padding: 0; display: none; }
.cat__subs li { font-size: 13px; line-height: 1.5; }
.cat__subs a { position: relative; z-index: 2; color: var(--ink-2); }
@media (min-width: 700px) { .cat__subs { display: block; } }
.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); font-weight: 800; margin-bottom: 10px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.seo-text { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
@media (min-width: 900px) { .seo-text { padding: 36px 40px; } .seo-text .prose { max-width: 860px; } }
.seo-text .prose h2:first-child { margin-top: 0; }

/* ---------- Корень каталога ---------- */
.roots { display: grid; gap: 14px; }
@media (min-width: 900px) { .roots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1250px) { .roots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.root { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.root__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.root__head .cat__ico { flex: none; }
.root__head h2 { font-size: 18px; margin: 0; }
.root__head h2 a { color: var(--ink); }
.root__head span { display: block; font-size: 13px; color: var(--muted); }
.root__list { list-style: none; margin: 0; padding: 0; columns: 2 150px; column-gap: 18px; }
.root__list li { break-inside: avoid; font-size: 14px; padding: 3px 0; }
.root__list a { color: var(--ink-2); }
.root__list span { color: var(--muted); font-size: 12px; }

/* ---------- Бренды ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.letters a, .letters span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink) !important; font-weight: 700; }
.sui .letters a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; }
.letters .is-active span { background: var(--ink); color: #fff !important; box-shadow: none; }
.brand-list { list-style: none; padding: 0; margin: 0; columns: 2 160px; column-gap: 24px; }
@media (min-width: 900px) { .brand-list { columns: 4 200px; } }
.brand-list li { break-inside: avoid; padding: 4px 0; font-size: 15px; }
.brand-list span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.brand-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .brand-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .brand-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink) !important; font-weight: 800; transition: box-shadow .2s; overflow: hidden; }
.sui .brand-tiles a:hover { box-shadow: var(--shadow-h); text-decoration: none; }
.brand-tiles a span { font-weight: 500; font-size: 13px; color: var(--muted); }
.brand-tiles a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Поиск, 404, страницы ---------- */
.search-page form.search { max-width: 760px; margin: 0 0 22px; }
.empty { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; text-align: center; }
.empty__big { font-size: 64px; font-weight: 900; line-height: 1; color: var(--brand-2); margin-bottom: 8px; }
.empty form.search { max-width: 560px; margin: 18px auto; text-align: left; }
.page-content { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; }
@media (min-width: 900px) { .page-content { padding: 36px 44px; } }

/* ---------- Подвал ---------- */
.ftr { background: #16181d; color: #c9ccd3; margin-top: 40px; font-size: 14px; }
.ftr a { color: #e9ebef !important; }
.ftr__grid { display: grid; gap: 26px; padding-top: 36px; padding-bottom: 26px; }
@media (min-width: 700px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ftr__grid { grid-template-columns: 1.2fr 1.6fr 1fr 1fr; gap: 36px; } }
.logo--light { margin-bottom: 12px; }
.logo--light .logo__name { color: #fff; }
.ftr__about p { margin: 0; line-height: 1.6; }
.ftr__h { color: #fff; font-weight: 800; font-size: 15px; margin: 0 0 12px !important; }
.ftr__list { list-style: none; margin: 0; padding: 0; }
.ftr__list li { padding: 4px 0; }
.ftr__list--2 { columns: 2 160px; column-gap: 20px; }
.ftr__list--2 li { break-inside: avoid; }
.ftr__legal { border-top: 1px solid #2b2e36; padding-top: 18px; padding-bottom: 26px; font-size: 12.5px; color: #9aa0ab; }
.ftr__legal p { margin: 0 0 6px; }

/* ---------- Просмотр фото ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 11, 14, .92); display: grid; place-items: center; padding: 50px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { width: min(92vw, 82vh, 820px); height: auto; aspect-ratio: 1 / 1; max-width: none; object-fit: contain; background: #fff; border-radius: 12px; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
