/* Магазин topcam.kz — оформление (пересборка 13.10.2026). Всё на токенах сайта (--tc-*), классы с приставкой sx-,
   чтобы не пересекаться с premium-2026.css (тот пишет .product-card/.tc-card с !important). */
.sx { --sx-r: 14px; --sx-r-sm: 10px; --sx-line: var(--tc-border, #e5e7eb); --sx-soft: #f6f7f8;
      --sx-acc: var(--tc-accent, #0a9d63); --sx-acc-soft: color-mix(in srgb, var(--sx-acc) 9%, #fff);
      --sx-ink: var(--tc-heading, #111827); --sx-text: var(--tc-text, #1f2937); --sx-mute: var(--tc-muted, #646b77);
      color: var(--sx-text); padding: 18px 0 40px; }
.sx a { text-decoration: none; }
.sx button, .sx input, .sx select { font-family: inherit; }

/* хлебные крошки и заголовок */
.sx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--sx-mute); margin-bottom: 10px; }
.sx-crumbs a { color: var(--sx-mute); }
.sx-crumbs a:hover { color: var(--sx-acc); }
.sx-crumbs i { font-size: 10px; opacity: .6; align-self: center; }
.sx-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-head h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.3px; color: var(--sx-ink); margin: 0; }
.sx-head .sx-count { font-size: 14px; color: var(--sx-mute); font-variant-numeric: tabular-nums; }

/* разделы */
.sx-groups { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; margin: 0 -2px 16px; }
.sx-groups::-webkit-scrollbar { display: none; }
.sx-group { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px;
            border: 1px solid var(--sx-line); background: var(--tc-card, #fff); color: var(--sx-text); font-size: 13.5px; font-weight: 600; white-space: nowrap;
            transition: border-color .15s, background-color .15s, color .15s; }
.sx-group i { font-size: 16px; color: var(--sx-acc); }
.sx-group b { font-size: 12px; font-weight: 700; color: var(--sx-mute); font-variant-numeric: tabular-nums; }
.sx-group:hover { border-color: color-mix(in srgb, var(--sx-acc) 45%, var(--sx-line)); color: var(--sx-ink); }
.sx-group.on { background: var(--sx-acc); border-color: var(--sx-acc); color: #fff; }
.sx-group.on i, .sx-group.on b { color: #fff; }

/* раскладка */
.sx-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; }
.sx-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.sx-side-head { display: none; }
.sx-facet { border-bottom: 1px solid var(--sx-line); padding: 12px 0; }
.sx-facet:first-child { padding-top: 0; }
.sx-facet > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--sx-ink); }
.sx-facet > summary::-webkit-details-marker { display: none; }
.sx-facet > summary i { font-size: 12px; color: var(--sx-mute); transition: transform .2s; }
.sx-facet[open] > summary i { transform: rotate(180deg); }
.sx-opts { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.sx-opt { display: flex; align-items: center; gap: 9px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--sx-text); }
.sx-opt:hover { background: var(--sx-soft); }
.sx-opt input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--sx-acc); cursor: pointer; }
.sx-opt span { flex: 1; min-width: 0; }
.sx-opt em { font-style: normal; font-size: 12px; color: var(--sx-mute); font-variant-numeric: tabular-nums; }
.sx-opt.zero { opacity: .45; }
.sx-opt.extra { display: none; }
.sx-facet.all .sx-opt.extra { display: flex; }
.sx-more { margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--sx-acc); font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-price { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.sx-price input { width: 100%; min-width: 0; height: 38px; padding: 0 8px; font-size: 13.5px; border: 1px solid var(--sx-line); border-radius: var(--sx-r-sm); background: #fff; color: var(--sx-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.sx-price input:focus { outline: 2px solid color-mix(in srgb, var(--sx-acc) 35%, transparent); border-color: var(--sx-acc); }
.sx-price span { color: var(--sx-mute); }
.sx-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--sx-ink); }
.sx-switch input { width: 40px; height: 22px; flex: none; appearance: none; -webkit-appearance: none; border-radius: 999px; background: #d4d7dc; position: relative; cursor: pointer; transition: background-color .2s; margin: 0; }
.sx-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.sx-switch input:checked { background: var(--sx-acc); }
.sx-switch input:checked::after { transform: translateX(18px); }
.sx-apply { display: none; }

/* панель над списком */
.sx-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-search { position: relative; flex: 1 1 260px; min-width: 0; }
.sx-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--sx-mute); pointer-events: none; }
.sx-search input { width: 100%; height: 42px; padding: 0 14px 0 38px; border: 1px solid var(--sx-line); border-radius: 12px; background: #fff; color: var(--sx-text); font-size: 14.5px; }
.sx-search input:focus { outline: 2px solid color-mix(in srgb, var(--sx-acc) 35%, transparent); border-color: var(--sx-acc); }
.sx-filter-btn { display: none; height: 42px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--sx-line); border-radius: 12px; background: #fff; color: var(--sx-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.sx-filter-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sx-acc); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--sx-acc-soft); color: var(--sx-ink); font-size: 13px; border: 1px solid color-mix(in srgb, var(--sx-acc) 25%, transparent); }
.sx-chip i { font-size: 11px; color: var(--sx-mute); }
.sx-chip:hover i { color: #c42727; }
.sx-chip.reset { background: none; border-color: transparent; color: var(--sx-mute); }

/* карточки: пять строк (фото, марка+наличие, название, кратко, цена); в сетке строки выровнены по ряду (subgrid) */
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.sx-card { position: relative; display: flex; flex-direction: column; background: var(--tc-card, #fff); border: 1px solid var(--sx-line); border-radius: var(--sx-r);
           overflow: hidden; transition: border-color .15s, box-shadow .2s; }
@supports (grid-template-rows: subgrid) {
  .sx-grid > .sx-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
@media (hover: hover) { .sx-card:hover { border-color: color-mix(in srgb, var(--sx-acc) 30%, var(--sx-line)); box-shadow: 0 8px 24px rgba(17, 24, 39, .07); } }
/* overflow: hidden — иначе картинка с атрибутами размера растягивает рамку 4:3 в высоту */
.sx-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; padding: 10px; border-bottom: 1px solid #f0f1f3; }
.sx-card-img img { width: 100%; height: 100%; object-fit: contain; }
.sx-noimg { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #b5bac2; font-size: 12px; }
.sx-noimg i { font-size: 34px; }
.sx-badge { position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.sx-badge.sale { background: #ef4444; color: #fff; }
.sx-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px 0; }
.sx-card-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-mute); }
/* наличие — плашка в углу фото */
.sx-stock { position: absolute; top: 8px; right: 8px; height: 22px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; }
.sx-stock.in { background: color-mix(in srgb, var(--sx-acc) 12%, #fff); color: #087a4d; }
.sx-stock.out { background: #f3f4f6; color: var(--sx-mute); }
.sx-card-name { padding: 5px 12px 0; color: var(--sx-ink); font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-name::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* вся карточка — ссылка */
.sx-card-name:hover { color: var(--sx-acc); }
.sx-card-brief { padding: 4px 12px 0; font-size: 12.5px; color: var(--sx-mute); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-brief:empty { padding: 0; }
.sx-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 12px 12px; }
.sx-cost { display: flex; flex-direction: column; min-width: 0; }
.sx-cost b { font-size: 17px; font-weight: 800; color: var(--sx-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-cost s { font-size: 12.5px; color: var(--sx-mute); font-variant-numeric: tabular-nums; }
.sx-cost small { font-size: 11px; font-weight: 700; color: var(--sx-acc); text-transform: uppercase; letter-spacing: .03em; }
.sx-cost .ask { font-size: 13.5px; font-weight: 600; color: var(--sx-mute); }
.sx-cart { position: relative; z-index: 2; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; border: 0; border-radius: 10px;
           background: var(--sx-acc); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: filter .15s, transform .1s; }
.sx-cart:hover { filter: brightness(1.07); }
.sx-cart:active { transform: scale(.96); }
.sx-cart.done { background: #087a4d; }
.sx-card .sx-cart { width: 40px; padding: 0; font-size: 17px; }
.sx-card .sx-cart span { display: none; }
.sx-cmp { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none;
          color: var(--sx-mute); font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-cmp .box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #c3c7ce; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s; }
.sx-cmp .box i { font-size: 12px; color: #fff; opacity: 0; }
.sx-cmp:hover { color: var(--sx-ink); }
.sx-cmp[aria-pressed="true"] { color: var(--sx-acc); }
.sx-cmp[aria-pressed="true"] .box { background: var(--sx-acc); border-color: var(--sx-acc); }
.sx-cmp[aria-pressed="true"] .box i { opacity: 1; }
/* в карточке «Сравнить» — в строке с маркой, справа */
.sx-card .sx-cmp { flex: none; gap: 6px; padding: 2px 0; font-size: 12px; }
.sx-card .sx-cmp .box { width: 15px; height: 15px; border-radius: 4px; }

/* сортировка: свой список вместо системного */
.sx-sort { position: relative; flex: none; }
.sx-sort-btn { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--sx-line); border-radius: 12px; background: #fff; color: var(--sx-text); font-size: 14px; white-space: nowrap; cursor: pointer; }
.sx-sort-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--sx-acc) 35%, transparent); border-color: var(--sx-acc); }
.sx-sort-btn .bi-sort-down { color: var(--sx-mute); }
.sx-sort-btn .bi-chevron-down { font-size: 12px; color: var(--sx-mute); transition: transform .15s; }
.sx-sort.open .sx-sort-btn { border-color: var(--sx-acc); }
.sx-sort.open .sx-sort-btn .bi-chevron-down { transform: rotate(180deg); }
.sx-sort-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 100%; width: max-content; padding: 6px; background: #fff; border: 1px solid var(--sx-line); border-radius: 14px; box-shadow: 0 14px 34px rgba(17, 24, 39, .13); }
.sx-sort.open .sx-sort-menu { display: block; }
.sx-sort-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--sx-text); cursor: pointer; }
.sx-sort-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sx-sort-opt i { margin-left: auto; color: var(--sx-acc); opacity: 0; }
.sx-sort-opt:hover, .sx-sort-opt:has(input:focus-visible) { background: var(--sx-soft); }
.sx-sort-opt:has(input:checked) { color: var(--sx-acc); font-weight: 700; }
.sx-sort-opt:has(input:checked) i { opacity: 1; }

/* пусто и страницы */
.sx-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--sx-line); border-radius: var(--sx-r); background: #fff; }
.sx-empty i { font-size: 40px; color: #b5bac2; }
.sx-empty h3 { font-size: 18px; font-weight: 700; color: var(--sx-ink); margin: 12px 0 6px; }
.sx-empty p { color: var(--sx-mute); margin: 0 auto 16px; max-width: 420px; }
.sx-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.sx-pager a, .sx-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--sx-line); background: #fff; color: var(--sx-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sx-pager a:hover { border-color: var(--sx-acc); color: var(--sx-acc); }
.sx-pager .on { background: var(--sx-acc); border-color: var(--sx-acc); color: #fff; }
.sx-pager .gap { border: 0; background: none; min-width: 20px; }
.sx-results, #sxSideBody { transition: opacity .12s ease-out; }
.sx-loading .sx-results, .sx-loading #sxSideBody { opacity: .45; }
/* backwards, не both: после анимации transform не остаётся (иначе ломается fixed-кнопка «Показать» в шторке) */
.sx-in { animation: sxIn .24s ease-out backwards; }
.sx-in-fade { animation: sxFade .2s ease-out backwards; }
@keyframes sxIn { from { opacity: .45; transform: translateY(6px); } }
@keyframes sxFade { from { opacity: .45; } }

/* подбор и установка — тихая строка, не баннер */
.sx-help { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--sx-soft); font-size: 13.5px; color: var(--sx-mute); }
.sx-help i { font-size: 18px; color: var(--sx-acc); }
.sx-help b { color: var(--sx-ink); }
.sx-help span { flex: 1 1 300px; }
.sx-help a { font-weight: 700; color: var(--sx-acc); white-space: nowrap; }

/* панель сравнения внизу */
.sx-tray { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 1040; display: flex; align-items: center; gap: 12px;
           padding: 8px 8px 8px 14px; border-radius: 16px; background: #111827; color: #fff; box-shadow: 0 14px 40px rgba(17, 24, 39, .3);
           transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 24px); }
.sx-tray:not(.show) { opacity: 0; visibility: hidden; pointer-events: none; }
.sx-tray.show { transform: translate(-50%, 0); }
.sx-tray-thumbs { display: flex; gap: 6px; }
.sx-tray-thumbs span { width: 38px; height: 38px; border-radius: 8px; background: #fff center / contain no-repeat; flex: none; }
.sx-tray-thumbs em { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.12); font-style: normal; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sx-tray-txt { font-size: 13.5px; white-space: nowrap; }
.sx-tray a.go { height: 40px; padding: 0 16px; border-radius: 11px; background: var(--sx-acc); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sx-tray button { width: 40px; height: 40px; border: 0; border-radius: 11px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.sx-tray button:hover { background: rgba(255,255,255,.2); }
.sx-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; z-index: 1041; padding: 10px 16px; border-radius: 12px; background: #111827; color: #fff; font-size: 14px;
            transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 24px); }
.sx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───── карточка товара ───── */
.sx-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 34px; }
.sx-pd-photo { position: sticky; top: 92px; background: #fff; border: 1px solid var(--sx-line); border-radius: 18px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 28px; cursor: zoom-in; }
.sx-pd-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sx-pd-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--sx-mute); margin-bottom: 8px; }
.sx-pd-brand a { color: var(--sx-acc); font-weight: 700; }
.sx-pd h1 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.3px; color: var(--sx-ink); margin: 0 0 12px; }
.sx-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sx-key { display: inline-flex; flex-direction: column; padding: 7px 11px; border-radius: 10px; background: var(--sx-soft); font-size: 13.5px; font-weight: 700; color: var(--sx-ink); line-height: 1.25; }
.sx-key small { font-size: 11px; font-weight: 600; color: var(--sx-mute); }
.sx-buy { border: 1px solid var(--sx-line); border-radius: 18px; padding: 20px; background: #fff; margin-bottom: 14px; }
.sx-buy-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sx-buy-price b { font-size: 34px; font-weight: 800; color: var(--sx-ink); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.sx-buy-price s { font-size: 17px; color: var(--sx-mute); font-variant-numeric: tabular-nums; }
.sx-buy-price .off { padding: 3px 8px; border-radius: 6px; background: #ef4444; color: #fff; font-size: 13px; font-weight: 700; }
.sx-buy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--sx-mute); margin-bottom: 16px; }
.sx-buy-meta .st { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.sx-buy-meta .st.in { color: #087a4d; }
.sx-buy-meta .st.out { color: #b45309; }
.sx-buy-meta a { color: var(--sx-mute); text-decoration: underline; text-underline-offset: 2px; }
.sx-buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx-btn { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: filter .15s, background-color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.sx-btn:active { transform: scale(.98); }
.sx-btn.pri { background: var(--sx-acc); color: #fff; }
.sx-btn.pri:hover { filter: brightness(1.07); color: #fff; }
.sx-btn.sec { background: #fff; border-color: var(--sx-line); color: var(--sx-ink); }
.sx-btn.sec:hover { border-color: var(--sx-acc); color: var(--sx-acc); }
.sx-btn.wa { background: #fff; border-color: var(--sx-line); color: var(--sx-ink); }
.sx-btn.wa i { color: #1f9d55; }
.sx-btn.wide { grid-column: 1 / -1; }
.sx-buy-sub { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sx-buy-sub .sx-cmp { font-size: 14px; }
.sx-buynow { display: none; gap: 8px; margin-top: 10px; }
.sx-buynow.open { display: flex; }
.sx-buynow input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--sx-line); border-radius: 12px; font-size: 16px; }
.sx-msg { display: none; margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.sx-msg.ok { display: block; background: var(--sx-acc-soft); color: #087a4d; }
.sx-msg.err { display: block; background: #fef2f2; color: #b91c1c; }
.sx-install { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sx-soft); font-size: 13.5px; color: var(--sx-mute); }
.sx-install i { color: var(--sx-acc); font-size: 18px; }
.sx-install a { color: var(--sx-acc); font-weight: 700; }

.sx-sec { margin-bottom: 34px; }
.sx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-sec-h h2 { font-size: 21px; font-weight: 800; color: var(--sx-ink); margin: 0; }
.sx-sec-h a { font-size: 14px; font-weight: 700; color: var(--sx-acc); }
.sx-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.sx-spec { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.sx-spec dt { flex: 0 0 44%; color: var(--sx-mute); font-weight: 400; }
.sx-spec dd { flex: 1; margin: 0; color: var(--sx-ink); font-weight: 600; overflow-wrap: anywhere; }
.sx-text { color: var(--sx-text); line-height: 1.7; font-size: 15px; max-width: 78ch; }
.sx-text h3 { font-size: 18px; font-weight: 700; color: var(--sx-ink); margin: 0 0 10px; }
.sx-text h4 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sx-acc); margin: 22px 0 8px; }
.sx-text p { margin: 0 0 10px; }
.sx-text ul { margin: 0 0 12px; padding-left: 20px; }
.sx-text li { margin-bottom: 5px; }
.sx-text li::marker { color: var(--sx-acc); }
.sx-doc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--sx-line); border-radius: 12px; color: var(--sx-ink); font-weight: 600; }
.sx-doc i { color: #dc2626; font-size: 18px; }
.sx-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(255,255,255,.97); display: none; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.sx-zoom.open { display: flex; }
.sx-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ───── сравнение ───── */
.sx-cmp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sx-cmp-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sx-cmp-tools .sx-switch { font-weight: 600; font-size: 14px; gap: 12px; justify-content: flex-start; }
.sx-cmp-tools a, .sx-cmp-tools button.link { color: var(--sx-mute); font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.sx-cmp-tools a:hover, .sx-cmp-tools button.link:hover { color: #c42727; }
.sx-cmp-wrap { overflow-x: auto; border: 1px solid var(--sx-line); border-radius: 16px; background: #fff; }
.sx-cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; }
.sx-cmp-table th, .sx-cmp-table td { padding: 11px 14px; border-bottom: 1px solid #eef0f2; vertical-align: top; text-align: left; font-size: 14px; width: 230px; min-width: 200px; max-width: 260px; }
.sx-cmp-table th:first-child, .sx-cmp-table td:first-child { position: sticky; left: 0; z-index: 2; background: #fafbfb; width: 190px; min-width: 150px; color: var(--sx-mute); font-weight: 500; border-right: 1px solid #eef0f2; }
.sx-cmp-table thead th { position: sticky; top: 0; background: #fff; z-index: 3; vertical-align: bottom; }
.sx-cmp-table thead th:first-child { z-index: 4; }
.sx-cmp-table td { color: var(--sx-ink); font-weight: 600; overflow-wrap: anywhere; }
.sx-cmp-table td.best { color: #087a4d; }
.sx-cmp-table td.best::after { content: ' ▲'; font-size: 10px; }
.sx-cmp-table td.none { color: #c0c4cb; font-weight: 400; }
.sx-cmp-table tr.same td { color: var(--sx-mute); font-weight: 500; }
.sx-cmp-table tr.sect td { background: var(--sx-soft); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sx-mute); position: static; }
.sx-cmp-table.diff tr.same { display: none; }
.sx-cmp-prod { position: relative; display: flex; flex-direction: column; gap: 8px; }
.sx-cmp-prod .img { height: 110px; display: flex; align-items: center; justify-content: center; }
.sx-cmp-prod .img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sx-cmp-prod a.nm { color: var(--sx-ink); font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sx-cmp-prod a.nm:hover { color: var(--sx-acc); }
.sx-cmp-prod .pr { font-size: 18px; font-weight: 800; color: var(--sx-ink); }
.sx-cmp-prod .st { font-size: 12.5px; font-weight: 700; }
.sx-cmp-prod .st.in { color: #087a4d; } .sx-cmp-prod .st.out { color: var(--sx-mute); }
.sx-cmp-prod .rm { position: absolute; top: -4px; right: -6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--sx-mute); cursor: pointer; }
.sx-cmp-prod .rm:hover { background: #fef2f2; color: #b91c1c; }
.sx-cmp-prod .sx-cart { align-self: flex-start; }

/* ───── телефон ───── */
@media (max-width: 991px) {
  .sx-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .sx-layout { grid-template-columns: 1fr; }
  .sx-side { position: fixed; inset: 0; z-index: 1050; max-height: none; background: #fff; padding: 0 18px 90px; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
  .sx-side.open { transform: none; }
  .sx-side-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 0; margin-bottom: 4px; border-bottom: 1px solid var(--sx-line); }
  .sx-side-head b { font-size: 18px; color: var(--sx-ink); }
  .sx-side-head button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--sx-soft); font-size: 18px; }
  .sx-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--sx-line); }
  .sx-apply .sx-btn { flex: 1; }
  .sx-filter-btn { display: inline-flex; }
  .sx-pd { grid-template-columns: 1fr; gap: 18px; }
  .sx-pd-photo { position: static; aspect-ratio: 4 / 3; }
  .sx-specs { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .sx { padding-top: 10px; }
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sx-card-img { padding: 8px; }
  .sx-card-meta { padding: 8px 10px 0; }
  .sx-card-name { padding: 4px 10px 0; font-size: 13.5px; }
  .sx-card-brief { display: none; }
  .sx-card-foot { padding: 8px 10px 10px; }
  .sx-cost b { font-size: 16px; }
  .sx-card .sx-cart { width: 36px; height: 36px; }
  .sx-bar .sx-search { flex-basis: 100%; }
  .sx-bar .sx-sort { flex: 1 1 0; min-width: 0; }
  .sx-bar .sx-sort-btn { width: 100%; }
  .sx-bar .sx-sort-btn span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .sx-sort-menu { left: 0; right: auto; width: auto; }
  .sx-help-more { display: none; }
  .sx-help { gap: 8px 10px; padding: 10px 12px; }
  .sx-help span { flex: 1 1 auto; }
  .sx-buy-actions { grid-template-columns: 1fr; }
  .sx-tray { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 8px; padding-left: 10px; }
  .sx-tray-thumbs span:nth-child(n+3), .sx-tray-thumbs em { display: none; }
  .sx-cmp-table th, .sx-cmp-table td { width: 160px; min-width: 150px; padding: 10px; font-size: 13px; }
  .sx-cmp-table th:first-child, .sx-cmp-table td:first-child { width: 112px; min-width: 104px; }
}
@media (prefers-reduced-motion: reduce) { .sx-tray, .sx-side, .sx-toast { transition: none; } .sx-in, .sx-in-fade { animation: none; } }
