.page-catalog .site-main {display: block}
.catalog {display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; max-width: 1920px; margin: 0 auto; padding: 16px 20px 0; align-items: start;}
@media (min-width: 1440px) {.catalog {padding-left: 24px; padding-right: 24px}}
.catalog-sidebar {position: sticky; top: calc(var(--header-h) + 8px); max-height: calc(100vh - var(--header-h) - 24px); display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: opacity .15s, transform .15s;}
:root[data-filters="collapsed"] .catalog {grid-template-columns: minmax(0, 1fr)}
:root[data-filters="collapsed"] .catalog-sidebar {position: absolute; width: 264px; opacity: 0; transform: translateX(-8px); pointer-events: none; border: 0; overflow: hidden;}
.catalog-rail {display: none}
@media (min-width: 1200px) {
.catalog {transition: grid-template-columns .16s ease-out}
:root[data-filters="collapsed"] .catalog {grid-template-columns: 48px minmax(0, 1fr)}
:root[data-filters="collapsed"] .catalog-rail {display: flex; animation: rail-in .16s ease-out}
.catalog-rail {position: sticky; top: calc(var(--header-h) + 8px); align-self: start; width: 48px; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);}
.catalog-rail__btn {display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 9px 0 7px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer}
.catalog-rail__btn:hover {background: var(--hover); color: var(--text)}
.catalog-rail__btn .icon {width: 18px; height: 18px}
.catalog-rail__btn .catalog-rail__chevron {width: 13px; height: 13px; margin-top: -4px}
.catalog-rail__count {min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums}
.catalog-rail__count[hidden] {display: none}
}
@keyframes rail-in {from {opacity: 0} to {opacity: 1}}
@media (prefers-reduced-motion: reduce) {
.catalog {transition: none}
:root[data-filters="collapsed"] .catalog-rail {animation: none}
.catalog-sidebar, .catalog-results {transition: none}
.tip {transition: none}
}
.catalog-main {min-width: 0; display: flex; flex-direction: column; gap: 8px}
.catalog-main > * {min-width: 0}
.command-bar {position: sticky; top: var(--header-h); z-index: 30; display: grid; gap: 8px; padding: 4px 0 4px; background: var(--bg);}
.command-bar>*{min-width:0}
.catalog-search .searchbox {height: 44px; box-shadow: var(--shadow-sm)}
.catalog-search .searchbox__input {font-size: 14px}
.catalog-search .searchbox__hint {border-color: var(--border-strong)}
.catalog-search .btn {min-height: 34px}
.chips {position: relative; display: flex; align-items: center; gap: 8px; min-width: 0}
.chips__scroll {display: flex; gap: 6px; align-items: center; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: thin; padding: 2px 0}
.chips__scroll::-webkit-scrollbar {height: 6px}
.chips__scroll::-webkit-scrollbar-thumb {background: var(--border-strong); border-radius: 3px}
.chips__scroll > * {flex: none}
.chips[data-expanded] .chips__scroll {flex-wrap: wrap; overflow: visible}
.catalog-search .searchbox__input {min-width: 12ch}
.chips__more {flex: none; margin-left: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-xs); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13px;}
.chips__more[hidden] {display: none}
@media (min-width: 1200px) {.filters-toggle {display: none}}
@media (min-width: 1200px) {.chips--empty {display: none}}
.chip--tag {padding: 0; overflow: hidden}
.chip--tag.is-armed {outline: 2px solid var(--accent); outline-offset: 1px}
.chip__label {display: inline-flex; align-items: center; min-height: 26px; padding: 0 2px 0 10px; border: 0; background: none; color: var(--text); font-size: 13px; cursor: pointer;}
.chip__label:hover {color: var(--accent-strong)}
.chip__remove {display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 2px; border-radius: var(--radius-xs); color: var(--muted);}
.chip__remove:hover {background: var(--danger-weak); color: var(--danger)}
.chip__remove .icon {width: 14px; height: 14px}
.chips__reset {flex: none; padding: 0 6px; color: var(--muted); font-size: 12px; white-space: nowrap}
.chips__reset:hover {color: var(--danger)}
.guest-strip {display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 4px 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--muted);}
.guest-strip__text {min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.guest-strip__link {flex: none; color: var(--accent-strong); font-weight: 550; font-size: 13px}
.guest-strip__close {flex: none; width: 28px; height: 28px}
.guest-strip__close .icon {width: 16px; height: 16px}
.guest-strip[data-dismissed] {display: none}
.results-head {position: sticky; top: calc(var(--header-h) + var(--cmd-h, 128px)); z-index: 24; display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; background: var(--bg);}
.results-head__row {display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap}
.results-head__title {display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; min-width: 0}
.results-head h1 {font-size: 20px; font-weight: 650; letter-spacing: -.01em}
.results-meta {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted); font-size: 13px;}
.results-meta span {white-space: nowrap}
.results-meta [aria-hidden]{color:var(--muted);opacity:.5}
.results-tools {display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.results-tools .segmented--group {max-width: 100%; overflow-x: auto}
.results-tools .segmented--group .segmented__item {min-height: 30px; font-size: 13px}
.results-tools .segmented--pu .segmented__item {min-height: 26px; padding: 0 8px; font-size: 12px}
.results-tools .segmented--quiet .segmented__item {color: var(--muted)}
.results-tools .segmented--quiet .segmented__item[aria-current="true"] {color: var(--text)}
.density-toggle {color: var(--muted)}
.density-toggle[aria-pressed="true"] {color: var(--accent)}
.results-head .menu {margin-left: auto}
.menu__mobile {display: none}
.menu__mobile .segmented {display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 8px}
.menu__mobile .segmented__item {flex: 1 1 auto; text-align: center; padding: 0 8px}
.catalog-results .banner {margin: 0 0 8px}
.catalog-results .banner p {margin: 0}
.search-fix {margin: 0 0 8px; font-size: 13px; color: var(--muted)}
.search-fix::before {content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent)}
.alternatives {display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; margin: 0 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);}
.alternatives__label {color: var(--muted); font-size: 12px}
.table-wrap {background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip}
.offers-table {border-collapse: separate; border-spacing: 0; font-size: 13px}
.offers-table th {padding: 0 10px; height: 34px; background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap;}
.offers-table thead th {position: sticky; top: calc(var(--header-h) + var(--cmd-h,128px) + var(--res-h,100px)); z-index: 5}
.offers-table td {padding: 0 10px; height: 40px; border-bottom: 1px solid var(--border); vertical-align: middle}
.offers-table tbody tr:last-child td {border-bottom: 0}
.offers-table tbody tr {transition: background-color .1s}
.offers-table tbody tr:hover td {background: var(--hover)}
.offers-table .col-select {width: 36px; padding: 0 0 0 14px}
.offers-table .col-select input {cursor: pointer}
.offers-table .col-size, .offers-table .col-grade, .offers-table .col-length {width: 1%; white-space: nowrap}
.offers-table .col-class {white-space: nowrap}
.offers-table .col-size {min-width: 86px}
.offers-table .col-class {min-width: 56px}
.offers-table .col-grade {min-width: 88px; max-width: 140px}
.offers-table .col-length {min-width: 64px}
.offers-table .col-price {width: 132px; text-align: right; white-space: nowrap}
.offers-table .col-fresh {width: 1%; text-align: right; white-space: nowrap; color: var(--muted); font-size: 12px}
.offers-table .col-fresh .fresh {margin-right: 4px}
.offers-table .col-action {width: 0; min-width: 0; padding: 0}
@media (min-width: 768px) {
.offers-table .col-action {position: relative}
.offers-table .col-action .row-actions {position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 0 4px; border-radius: var(--radius-sm); background: linear-gradient(var(--hover), var(--hover)), var(--surface);}
}
.offers-table .col-name {min-width: 240px}
.card-meta {display: none}
@media (min-width: 768px) {
.offers-table {table-layout: fixed}
.offers-table .col-size {width: 96px}
.offers-table .col-class {width: 76px}
.offers-table .col-grade {width: 100px; max-width: none}
.offers-table .col-length {width: 76px}
.offers-table .col-price {width: 164px}
.offers-table .col-supplier {width: clamp(200px, 20%, 340px); min-width: 0; max-width: none}
.offers-table .col-fresh {width: 88px}
.offers-table .col-action {width: 0}
}
@media (min-width: 768px) and (hover: none) {
.offers-table .col-action {width: 96px}
.offers-table .col-action .row-actions {position: static; transform: none; padding: 0; background: none}
}
.offers-table .col-supplier {min-width: 150px; max-width: 240px}
.col-name .cell-name {font-size: 13px}
.v-empty {color: var(--muted)}
.offer-name-line {display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 0 6px; min-width: 0}
a.cell-name {color: var(--text); font-weight: 500}
a.cell-name:hover {color: var(--accent)}
.offer-name-line a.cell-name {min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.cell-sub {display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.supplier-line {display: flex; align-items: center; gap: 4px; min-width: 0}
.supplier-link {flex: 0 0 auto; max-width: 100%; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.supplier-link:hover {color: var(--accent)}
.supplier-city {flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px}
.supplier-line:has(> .supplier-city, > .alt-cities) .supplier-link {max-width: 70%}
.alt-cities {flex: none; padding: 0 4px; border: 0; border-radius: var(--radius-xs); background: var(--accent-weak); color: var(--accent-strong); font-size: 12px; cursor: pointer;}
.alt-cities:hover {background: var(--accent); color: var(--on-accent)}
.row-actions {display: inline-flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .12s}
.offer-row:hover .row-actions, .offer-row:focus-within .row-actions,
.row-actions:focus-within {opacity: 1}
.action-btn {display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--muted); text-decoration: none !important;}
.action-btn:hover {background: var(--hover-strong); color: var(--text)}
.action-btn .icon {width: 17px; height: 17px}
@media (hover: none) {.row-actions {opacity: 1}}
.price__line {display: inline-flex; align-items: baseline; gap: 3px; justify-content: flex-end; white-space: nowrap}
.price__from, .price__approx {color: var(--muted); font-size: 11px; font-weight: 400}
.price__amount {font-weight: 650; font-size: 13px}
.price__unit {color: var(--muted); font-size: 11px}
.price__sub {color: var(--muted); font-size: 11px; white-space: nowrap; text-align: right}
.price--market {display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 6px; row-gap: 3px}
.price--market .price__market-slot {order: 1; flex: none; width: 44px; display: inline-flex; align-items: center; justify-content: flex-start}
.price--market .price__sub {order: 2; flex-basis: 100%; text-align: right}
.price--market .price__market {margin-top: 0}
.price__market {display: inline-block; margin-top: 2px; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap;}
.price__market--below {background: var(--ok-weak); color: var(--ok)}
.price__market--above {background: var(--warn-weak); color: var(--warn)}
.price__flag {display: inline-flex; align-items: center; color: var(--warn)}
.price__flag .icon {width: 14px; height: 14px}
.price--empty {color: var(--muted); font-weight: 400}
.badge-condition, .badge-analog {display: inline-flex; align-items: center; flex: none; padding: 0 6px; border-radius: var(--radius-xs); font-size: 11px; font-weight: 550; line-height: 16px; white-space: nowrap;}
.badge-condition--brak {background: var(--cond-brak-bg); color: var(--cond-brak)}
.badge-condition--nekonditsiya {background: var(--cond-nek-bg); color: var(--cond-nek)}
.badge-condition--bu {background: var(--cond-bu-bg); color: var(--cond-bu)}
.badge-condition--nelikvid {background: var(--cond-nelik-bg); color: var(--cond-nelik)}
.badge-analog {background: var(--accent-weak); color: var(--accent-strong)}
.check__alt {color: var(--accent-strong); font-size: 11px}
.offers-table .cell-sub, .offers-table .cell-specs, .offers-table .price__sub {display: none}
:root[data-density="comfortable"] .offers-table td {height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px}
:root[data-density="comfortable"] .cell-name {white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
:root[data-density="comfortable"] .offer-name-line a.cell-name {white-space: normal}
:root[data-density="comfortable"] .offers-table .cell-sub,
:root[data-density="comfortable"] .offers-table .cell-specs,
:root[data-density="comfortable"] .offers-table .price__sub {display: block}
:root[data-density="comfortable"] .offers-table .cell-specs {margin-top: 1px}
.table-wrap .table td:first-child {min-width: 160px}
.pagination {display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 0 4px;}
.pagination__pages {display: flex; gap: 4px; list-style: none; margin: 0; padding: 0}
.pagination__page, .pagination__step {display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; text-decoration: none !important;}
.pagination__page:hover, .pagination__step:hover {background: var(--accent-weak); border-color: var(--accent)}
.pagination__page[aria-current="page"] {background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600}
.pagination__step.is-disabled, .pagination__gap {color: var(--muted); opacity: .6;}
.pagination__gap {padding: 0 2px}
.page-size {margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center}
.page-size a {color: var(--muted); margin: 0 2px}
.page-size a[aria-current="true"] {color: var(--accent-strong); font-weight: 600}
.sidebar__sheet-head {display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--border); flex: none;}
.sidebar__close {display: none}
.sidebar__head-actions {display: inline-flex; gap: 2px}
.sidebar__scroll {overflow-y: auto; overflow-x: hidden; padding: 12px; flex: 1; min-height: 0}
.sidebar__scroll::-webkit-scrollbar {width: 8px}
.sidebar__scroll::-webkit-scrollbar-thumb {background: var(--border-strong); border-radius: 4px}
.sidebar__category {font-size: 15px; margin: 4px 8px 8px}
.back-link {display: inline-flex; align-items: center; gap: 4px; margin: 0 8px 8px; font-size: 13px; color: var(--muted);}
.back-link:hover {color: var(--accent)}
.back-link .icon {width: 15px; height: 15px}
.sidebar__field {margin: 0 8px 10px}
.sidebar__field .input {font-size: 13px}
.segmented[role="tablist"] {display: flex; width: 100%; margin-bottom: 10px}
.segmented[role="tablist"] .segmented__item {flex: 1; min-height: 30px; font-size: 13px; padding: 0 6px}
.cat-panel {display: none}
.cat-panel.is-active {display: block}
.cat-panel__title {font-size: 12px; color: var(--muted); font-weight: 600; margin: 12px 8px 4px; text-transform: uppercase; letter-spacing: .04em}
.cat-list {display: grid; gap: 1px}
.cat {display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; text-decoration: none !important;}
.cat:hover {background: var(--hover)}
.cat.is-selected {background: var(--accent-weak); color: var(--accent-strong); font-weight: 550}
.cat__title {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.cat__count {flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums}
.cat.is-selected .cat__count {color: var(--accent-strong)}
.cat--locked {color: var(--muted)}
.cat__lock {width: 13px; height: 13px; flex: none}
.cat-more summary {display: inline-flex; align-items: center; min-height: 30px; padding: 0 8px; color: var(--accent); font-size: 13px; cursor: pointer; border-radius: var(--radius-sm);}
.cat-more summary:hover {background: var(--accent-weak)}
.cat-more .cat-list {margin-top: 4px}
.cat-empty {padding: 8px; font-size: 13px}
.facet ~ .facet::before {content: ""; display: block; height: 1px; margin: 0 8px; background: var(--border);}
.facet__head {display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px; cursor: pointer; user-select: none; border-radius: var(--radius-sm);}
.facet__head:hover {background: var(--hover)}
.facet__title {flex: 1; min-width: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px}
.facet__badge {display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600;}
.facet__chev {color: var(--muted); display: inline-flex; transition: transform .15s}
.facet__chev .icon {width: 15px; height: 15px}
.facet:not([open]) .facet__chev {transform: rotate(-90deg)}
.facet__head:hover .facet__chev {color: var(--text)}
.facet__body {padding: 0 8px 10px}
.facet__sort {display: inline-flex; gap: 2px; flex: none}
.facet__sort-item {display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-xs); color: var(--muted);}
.facet__sort-item:hover {background: var(--hover-strong); color: var(--text)}
.facet__sort-item[aria-checked="true"] {color: var(--accent)}
.facet__sort-item .icon {width: 15px; height: 15px}
.facet__analogs {display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 4px; font-size: 12px; color: var(--text); text-decoration: none !important; border-radius: var(--radius-sm);}
.facet__analogs:hover {color: var(--accent)}
.switch-dot {position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: var(--track); transition: background-color .12s;}
.switch-dot::after {content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .12s;}
.facet__analogs[aria-checked="true"] .switch-dot {background: var(--accent)}
.facet__analogs[aria-checked="true"] .switch-dot::after {transform: translateX(12px)}
.facet__rows {margin-top: 4px; overflow: hidden auto}
.facet__list {display: grid; gap: 1px}
.facet__axis {padding: 6px 0 2px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;}
.check {display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 0; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; text-decoration: none !important;}
.check:hover {background: var(--hover)}
.check.is-checked {background: var(--accent-weak)}
.check.is-checked .check__box {color: var(--accent)}
.check.is-included .check__box {color: var(--warn)}
.check--disabled {color: var(--muted); cursor: default}
.check--disabled:hover {background: none}
.check__box {display: grid; place-items: center; width: 16px; height: 16px; flex: none; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: transparent;}
.check__box .icon {width: 12px; height: 12px; stroke-width: 3; display: none}
.check.is-checked .check__box, .check.is-included .check__box {background: var(--accent); border-color: var(--accent); color: var(--on-accent);}
.check.is-checked .check__box .icon, .check.is-included .check__box .icon {display: block}
.check.is-included .check__box {background: var(--warn); border-color: var(--warn)}
.check__label {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.check__count {flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums}
.check.is-checked .check__count {color: var(--accent-strong)}
.facet--switches {padding: 12px 8px 4px}
.facet--switches .switch {display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; cursor: pointer}
.facet--switches .switch + .switch {margin-top: 2px}
.facet--switches .switch input {margin: 0}
.filters-form .btn-block {margin: 12px 8px 0; width: calc(100% - 16px)}
.range-block {padding: 6px 0 8px}
.range-block__head {display: flex; align-items: baseline; justify-content: space-between; gap: 8px}
.range-block__title {font-size: 13px; font-weight: 600}
.range__clear {color: var(--muted); font-size: 14px; line-height: 1; padding: 2px 6px; border-radius: var(--radius-xs)}
.range__clear:hover {background: var(--danger-weak); color: var(--danger); text-decoration: none}
.range__caption {margin: 2px 0 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;}
.range__hist {position: relative; height: 40px; margin: 0; border-radius: var(--radius-xs); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden;}
.range__hist-bars {position: absolute; left: 7px; right: 7px; top: 0; bottom: 0}
.range__hist-bar {position: absolute; bottom: 0; background: var(--border-strong)}
.range__hist-bar.is-in {background: var(--accent)}
.range__sliders {position: relative; height: 22px}
.range__sliders::before, .range__sliders::after {content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px;}
.range__sliders::before {background: var(--border-strong)}
.range__sliders::after {left: calc(var(--lo, 0) * (100% - 14px) + 7px); right: calc((1 - var(--hi, 1)) * (100% - 14px) + 7px); background: var(--accent);}
.range__slider {position: absolute; left: 0; width: 100%; height: 22px; margin: 0; padding: 0; z-index: 1; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none;}
.range__slider::-webkit-slider-runnable-track {height: 4px; background: transparent}
.range__slider::-webkit-slider-thumb {-webkit-appearance: none; appearance: none; pointer-events: auto; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab;}
.range__slider:focus-visible::-webkit-slider-thumb {box-shadow: 0 0 0 3px var(--accent-weak), var(--shadow-sm)}
.range__slider:focus-visible::-moz-range-thumb {box-shadow: 0 0 0 3px var(--accent-weak), var(--shadow-sm)}
.range__slider::-webkit-slider-thumb:active {cursor: grabbing}
.range__slider::-moz-range-track {height: 4px; background: transparent}
.range__slider::-moz-range-thumb {pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab;}
.range__fields {display: flex; align-items: center; gap: 6px; margin-top: 6px}
.range__fields .input {width: 64px; text-align: center; font-variant-numeric: tabular-nums}
.range__fields span {color: var(--muted)}
.range-block__head .muted {font-size: 11px; font-weight: 400}
.suggestions {position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 320px; overflow-y: auto;}
.suggestion {display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer;}
.suggestion:hover, .suggestion.is-active {background: var(--accent-weak)}
.suggestion__label {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.suggestion__meta {flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px}
.suggestion__count {font-variant-numeric: tabular-nums}
.suggestion__hint {padding: 0 6px; border-radius: 999px; background: var(--accent-weak); color: var(--accent-strong); font-size: 11px; font-weight: 600; line-height: 16px}
.suggestion mark {padding: 0 1px; border-radius: 2px; background: var(--accent-weak); color: inherit}
.suggestions__group {list-style: none}
.suggestions__title {margin: 0; padding: 8px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted)}
.suggestions__options {display: grid; gap: 1px; margin: 0; padding: 0; list-style: none}
.scrim {position: fixed; inset: 0; z-index: 80; background: var(--scrim);}
.popover {position: fixed; z-index: 90; min-width: 200px; max-width: 320px; max-height: 320px; overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);}
.popover__title {padding: 6px 10px 8px; margin: 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border)}
.popover__list {display: grid; gap: 1px}
.popover__list a {display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 4px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 13px; text-decoration: none !important;}
.popover__list a:hover {background: var(--hover)}
.drawer {position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(480px, 100vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow-y: auto;}
.drawer[hidden] {display: none}
.drawer__head {display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1}
.drawer__head h2 {font-size: 17px}
.drawer__body {padding: 16px 20px; flex: 1}
.drawer__section {margin-bottom: 16px}
.drawer__section h3 {font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px}
.drawer__contacts {display: grid; gap: 6px}
.drawer__contact {display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14px}
.drawer__contact .icon {width: 16px; height: 16px; color: var(--muted); flex: none}
.drawer__contact a {color: var(--text); font-weight: 550}
.drawer__contact a:hover {color: var(--accent)}
.drawer__note {font-size: 12px; color: var(--muted)}
.table--compact td {padding: 6px 8px; height: auto}
.tip {position: fixed; z-index: 130; max-width: 340px; padding: 6px 10px; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.4; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transition: opacity .08s;}
.tip--on {opacity: 1}
.toast {position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 110; padding: 8px 16px; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow);}
.toast[data-theme="dark"] {background: var(--surface-3); color: var(--text); border: 1px solid var(--border)}
.selection-bar {position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);}
.selection-bar__count {font-size: 13px; color: var(--muted)}
.selection-bar__count strong {color: var(--text)}
.selection-bar__note {font-size: 12px; color: var(--warn)}
@media (max-width: 1359px) {
.offers-table .col-length, .offers-table .col-fresh {display: none}
}
@media (min-width: 1200px) {
.offers-table .col-price {width: 170px}
}
@media (min-width: 1440px) {
.offers-table .col-name {min-width: 280px}
.offers-table .col-supplier {width: clamp(240px, 18%, 340px); max-width: none}
}
@media (max-width: 1199px) {
.catalog {display: block; max-width: none; padding: 8px 0 0}
.catalog-sidebar {position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 95; width: 360px; max-width: 88vw; max-height: none; padding-bottom: 72px; background: var(--surface); border: 0; border-right: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .2s ease;}
:root[data-filters="open"] .catalog-sidebar {transform: none}
:root[data-filters="collapsed"] .catalog-sidebar {transform: translateX(-102%); opacity: 1}
.sidebar__close {display: inline-flex}
.sidebar__sheet-head .icon-button[data-toggle-filters] {display: none}
.sidebar__footer {display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px; border-top: 1px solid var(--border); background: var(--surface);}
.sidebar__footer .btn {width: 100%}
.catalog-main {padding: 0 16px}
.command-bar {top: var(--header-h); padding: 4px 0 6px}
.catalog-search .searchbox {height: 44px}
.guest-strip__text {white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
}
@media (max-width: 767px) {
.catalog-sidebar {top: auto; right: 0; left: 0; width: 100%; max-width: none; height: 88vh; border-radius: 14px 14px 0 0; transform: translateY(102%);}
:root[data-filters="open"] .catalog-sidebar {transform: none}
.results-head {top: calc(var(--header-h) + var(--cmd-h, 150px)); padding: 4px 0 8px; gap: 6px}
.results-head__title {flex-wrap: wrap}
.results-head h1 {font-size: 18px; flex: none}
.results-head__title > .results-meta {flex: 1 0 100%; font-size: 12px}
.results-meta {flex-wrap: wrap; overflow: visible; min-width: 0}
.results-meta span {white-space: normal}
.catalog-main .quick-filters {flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px}
.catalog-main .quick-filters::-webkit-scrollbar {display: none}
.results-tools {flex-wrap: nowrap; gap: 6px}
.results-tools .segmented--group, .results-tools .segmented--pu,
.results-tools .density-toggle {display: none}
.results-tools .menu {margin-left: 0; flex: none}
.results-tools .menu--right .menu__panel {left: 0; right: auto; width: min(340px, calc(100vw - 32px))}
.menu__mobile {display: block}
.command-bar .catalog-search .searchbox__hint {display: none}
.table-wrap {border: 0; border-radius: 0; background: transparent; overflow: visible}
.offers-table, .offers-table tbody, .offers-table tr, .offers-table td {display: block}
.offers-table thead {display: none}
.offers-table tbody tr {display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 3px 10px; align-items: start; margin-bottom: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);}
.offers-table tr.expanded-row {display: block; margin-bottom: 8px}
.offers-table td[class] {height: auto; padding: 0; border: 0; width: auto; min-width: 0; max-width: none}
.offers-table .card-meta {display: block; grid-column: 2 / -1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px}
.offers-table .col-select {grid-column: 1; grid-row: 1; align-self: center}
.offers-table .col-name {grid-column: 2 / span 2; grid-row: 1; min-width: 0}
.offers-table .col-price {grid-column: 4; grid-row: 1; text-align: right}
.offers-table .col-supplier {grid-column: 2; grid-row: 3; min-width: 0}
.offers-table .col-fresh {grid-column: 3; grid-row: 3; text-align: right; align-self: center; white-space: nowrap}
.offers-table .col-action {grid-column: 4; grid-row: 3; text-align: right; align-self: center; padding-right: 0}
.offers-table .col-size, .offers-table .col-grade, .offers-table .col-class, .offers-table .col-length {display: none}
.offers-table .col-action .row-actions {opacity: 1; justify-content: flex-end}
.offers-table .offer-name-line a.cell-name {white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
.offers-table .price__main {font-size: 15px}
.chips__scroll {-webkit-mask-image: linear-gradient(90deg, #000 80%, transparent 97%); mask-image: linear-gradient(90deg, #000 80%, transparent 97%); scrollbar-width: none}
.chips__scroll::-webkit-scrollbar {display: none}
.chips__more {display: none}
.price--market {display: inline}
.price__market-slot {display: block; width: auto}
.price--market .price__market {margin-top: 2px}
.selection-bar {left: 12px; right: 12px; transform: none; flex-wrap: wrap; justify-content: center}
.pagination__pages li:not(:has([aria-current])):not(:first-child):not(:last-child) {display: none}
}
.quick-filters {display: flex; flex-wrap: wrap; gap: 6px}
.quick-filter {flex: none; min-height: 28px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap}
.quick-filter:hover {border-color: var(--accent); color: var(--accent-strong); background: var(--accent-weak)}
.quick-filter.is-active {background: var(--accent); border-color: var(--accent); color: var(--on-accent)}
.quick-filter__count {display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--accent-weak); color: var(--accent-strong); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums}
/* Пилюли дублируют сайдбар — на десктопе с раскрытой панелью они не нужны. */
@media (min-width: 1200px) {:root:not([data-filters="collapsed"]) .quick-filters {display: none}}
.catalog-results {transition: opacity .12s}
.catalog-results.is-loading {opacity: .55}
.catalog-results.is-failed::before {content: "Не удалось обновить результаты. Проверьте соединение и повторите."; display: block; margin: 12px 0; padding: 10px 14px; border-radius: var(--radius); background: var(--danger-weak); color: var(--danger-text);}
.catalog-results > .banner {margin: 0 0 8px}
.guest-banner-closed [data-guest-banner] {display: none}
.facet--flash {animation: facet-flash 1.2s ease-out}
@keyframes facet-flash {0%, 60% {background: var(--accent-weak)}100% {background: transparent}}
.offer-row, .group-row[data-open-url], .supplier-row {cursor: pointer}
.offer-row.is-cursor td {background: var(--accent-weak)}
.offer-row.is-selected td {background: var(--accent-weak)}
.expanded-row > td {padding: 0 !important; background: var(--surface-2)}
.expanded-row:hover td {background: var(--surface-2) !important}
.inline-offers {padding: 4px 12px 12px 36px}
.inline-offers__foot {margin: 8px 0 0; font-size: 13px}
.row-toggle {display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit}
.row-toggle .icon {width: 14px; height: 14px; color: var(--muted); transition: transform .12s}
.row-toggle[aria-expanded="true"] .icon {transform: rotate(90deg)}
.hide-col-size :is([data-col="size"], .col-size), .hide-col-grade :is([data-col="grade"], .col-grade), .hide-col-class :is([data-col="class"], .col-class),
.hide-col-length :is([data-col="length"], .col-length), .hide-col-fresh :is([data-col="fresh"], .col-fresh) {display: none}
th[aria-sort="ascending"] .sort-link, th[aria-sort="descending"] .sort-link {color: var(--accent-strong)}
.sort-link {white-space: nowrap}
.sort-link__arrow {display: inline-block; width: 1em; margin-left: 2px; color: var(--muted); opacity: .45; font-weight: 400}
.sort-link:hover .sort-link__arrow, .sort-link:focus-visible .sort-link__arrow {opacity: 1}
th[aria-sort="ascending"] .sort-link__arrow, th[aria-sort="descending"] .sort-link__arrow {color: var(--accent-strong); opacity: 1}
.offers-table .col-select {text-align: center}
.groups-table {table-layout: fixed}
.groups-table .col-name {width: 34%}
.suppliers-table .col-name {width: 34%}
.group-row .cell-name {font-weight: 600}
.table--compact {table-layout: fixed; font-size: 12px}
.table--compact .col-price {width: 104px}
.table--compact td, .table--compact th {padding: 6px 8px}
.table--compact tbody tr:hover td {background: transparent}
.sidebar__footer {display: none}
.sidebar__scroll .segmented {display: flex}
.filters-form {display: grid; gap: 12px}
.facet--switches {display: grid; gap: 2px}
.switch {display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; cursor: pointer}
.facet--range .range-block {padding-top: 2px}
.range__fields .input {min-width: 0}
.drawer {border-left: 1px solid var(--border)}
.drawer__heading {min-width: 0}
.drawer__title {font-size: 18px; overflow-wrap: anywhere}
.drawer__sub {display: flex; align-items: center; gap: 4px; margin: 4px 0 0; color: var(--muted); font-size: 13px}
.drawer__sub .icon {width: 14px; height: 14px}
.drawer__body {padding: 8px 20px 20px}
.drawer__foot {padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px}
.drawer-section {padding: 16px 0; border-bottom: 1px solid var(--border)}
.drawer-section:last-child {border-bottom: 0}
.drawer-section h3 {margin-bottom: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em}
.drawer-section__head {display: flex; justify-content: space-between; align-items: baseline; gap: 12px}
.drawer-section p {margin-bottom: 4px}
.presence-list {display: grid; gap: 2px 16px; margin: 0; padding: 0; list-style: none}
.presence-list li {display: flex; align-items: baseline; gap: 8px; min-height: 24px}
.presence-list li > :first-child {flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.presence-list__count {flex: none; color: var(--muted); font-variant-numeric: tabular-nums}
@media (min-width: 360px) {.presence-list {grid-template-columns: 1fr 1fr}}
.facts {display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px}
.facts dt {color: var(--muted); font-size: 13px}
.facts dd {display: grid; gap: 2px; overflow-wrap: anywhere}
/* Offer card in the drawer (?embed=1 fragment) */
.drawer:has(.ocard) {width: min(560px, 100vw)}
.ocard__price {margin: 0; font-size: 22px; font-weight: 650}
.ocard__price small {font-size: 13px; font-weight: 400; color: var(--muted)}
.ocard__price.flagged {color: var(--danger)}
.ocard__price-row {display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.ocard__actions {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px}
.ocard__contacts {margin-top: 8px}
.ocard__same {width: 100%; border-collapse: collapse; font-size: 13px}
.ocard__same td {padding: 5px 8px 5px 0; border-top: 1px solid var(--border); text-align: left; vertical-align: baseline}
.ocard__same tr:first-child td {border-top: 0}
.ocard__same .num {text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums}
.ocard .facts {grid-template-columns: minmax(84px, 30%) minmax(0, 1fr)}
.ocard .facts dt {overflow-wrap: anywhere}
.drawer.is-loading {opacity: .6}
.drawer__pulse {height: 14px; margin: 18px 0; border-radius: var(--radius-sm); background: var(--hover); animation: drawer-pulse 1.1s ease-in-out infinite}
.drawer__pulse--w70 {width: 70%}
.drawer__pulse--w40 {width: 40%}
@keyframes drawer-pulse {50% {opacity: .45}}
.ocard__admin summary {cursor: pointer; color: var(--muted); font-size: 13px}
.ocard__admin[open] summary {margin-bottom: 10px}
.lock-note {align-items: flex-start}
.lock-note__icon {color: var(--accent); flex: none; margin-top: 2px}
.lock-note__icon .icon {width: 18px; height: 18px}
.lock-note p {margin-bottom: 4px}
.lock-note__actions {display: flex; gap: 8px; margin-top: 12px}
.drawer .table--compact {margin: 0 -8px; width: calc(100% + 16px)}
.supplier-meta {display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-width: 0; color: var(--muted); font-size: 12px}
.supplier-city {max-width: 100%}
.supplier-phone, .supplier-signup {color: var(--muted)}
.supplier-phone:hover, .supplier-signup:hover {color: var(--accent)}
.supplier-meta > .supplier-phone, .supplier-meta > .supplier-signup {flex: none}
.call-button {display: none !important}
.popover {position: absolute; z-index: 70; width: 260px; max-height: 280px; overflow: auto; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px;}
.popover h4 {margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 600}
.popover ul {columns: 2; column-gap: 12px; margin: 0; padding: 0; list-style: none}
.popover li {padding: 2px 0; break-inside: avoid}
.popover p {margin: 6px 0 0; color: var(--muted); font-size: 12px}
.popover--facet {width: 300px; max-height: 70vh; padding: 0}
.popover--facet .facet {border-top: 0}
.popover--facet .facet__rows {max-height: 320px}
.popover--keys {width: 280px}
.popover--keys ul {columns: 1; margin: 0; padding: 0; list-style: none}
.popover--keys li {display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px}
.popover--keys kbd {flex: none; min-width: 46px; padding: 1px 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); font: 11px/1.5 var(--font); text-align: center}
.pagination__pages li {display: inline-flex}
.page-size a {padding: 0 4px}
@media (prefers-reduced-motion: reduce) {
.catalog-sidebar, .facet__chev, .switch-dot, .switch-dot::after, .row-actions,
.catalog-results, .row-toggle .icon {transition: none !important}
.facet--flash {animation: none}
}
