/* spot_catalog.css — страница каталога, волна 3B переноса редизайна.
   Доски холста: Catalog, CatalogList, CatalogSort, CatalogEmpty, CatalogSubscribe, CatalogSearch (телефон),
   DesktopCatalog, DesktopCatalogFilters (1440). Разметка: templates/catalog.tpl, include/form_filters/catalog.php,
   systems/ajax/ads.php (пустая выдача, строка «Все объявления по запросу»). Поведение: js/spot_catalog.js, js/catalog.js.
   Цвета и размеры — токены spot_ui.css. Мобильный вид первичен, ничего не зависит от наведения. */

body[data-page-name="catalog"] {
    background: var(--spot-bg);
}

.spot-cat {
    --spot-cat-chip-x: #C9CDD3;
    display: flex;
    flex-direction: column;
    padding-right: var(--spot-gutter);
    padding-left: var(--spot-gutter);
    font-family: var(--spot-font);
    color: var(--spot-ink);
}

.spot-cat > * {
    min-width: 0;
}

.spot-cat .spot-cat-ico {
    flex-shrink: 0;
}

.spot-cat a {
    -webkit-tap-highlight-color: transparent;
}

.spot-cat-h2 {
    margin: 0;
    min-width: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: var(--spot-ink);
    text-wrap: balance;
}

/* горизонтальные ленты: без полосы прокрутки, мягкий край справа */
.spot-cat-chips,
.spot-cat-brands__row,
.spot-cat-rail {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.spot-cat-chips::-webkit-scrollbar,
.spot-cat-brands__row::-webkit-scrollbar,
.spot-cat-rail::-webkit-scrollbar {
    display: none;
}

/* ---------- Выбранные фильтры (телефон: белая полоса под поиском шапки) ---------- */
.spot-cat-chipbar {
    margin: 0 calc(-1 * var(--spot-gutter));
    padding: 0 0 12px;
    background: var(--spot-surface);
    border-bottom: 1px solid var(--spot-line);
}

.spot-cat-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--spot-gutter);
    padding: 0 var(--spot-gutter);
}

.spot-cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 260px;
    height: var(--spot-control-h);
    padding: 0 14px 0 10px;
    border-radius: 22px;
    background: var(--spot-inv);
    color: var(--spot-on-inv);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    scroll-snap-align: start;
}

.spot-cat-chip:hover,
.spot-cat-chip:focus {
    color: var(--spot-on-inv);
    text-decoration: none;
}

.spot-cat-chip .spot-cat-ico {
    color: var(--spot-cat-chip-x);
}

.spot-cat-chip__t {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-cat-chip:active {
    opacity: .7;
}

.spot-cat-chips__reset {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: var(--spot-control-h);
    padding: 0 8px;
    color: var(--spot-red-fg);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.spot-cat-chips__reset:hover,
.spot-cat-chips__reset:focus {
    color: var(--spot-red-dark-fg);
}

/* ---------- Полоса марок ---------- */
.spot-cat-brands {
    padding-top: 16px;
    margin: 0 calc(-1 * var(--spot-gutter));
}

.spot-cat-brands__row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--spot-gutter);
    padding: 0 var(--spot-gutter) 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}

.spot-cat-brand {
    flex-shrink: 0;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--spot-ink);
    font-family: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    cursor: pointer;
}

.spot-cat-brand:hover,
.spot-cat-brand:focus {
    color: var(--spot-ink);
    text-decoration: none;
}

.spot-cat-brand__logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 26px;
    background: var(--spot-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.spot-cat-brand__logo img {
    width: 34px;
    height: 24px;
    object-fit: contain;
}

.spot-cat-brand__name {
    min-height: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 13px;
    text-wrap: balance;
}

.spot-cat-brand[aria-current="true"] .spot-cat-brand__logo {
    box-shadow: 0 0 0 2px var(--spot-red);
}

.spot-cat-brand--all .spot-cat-brand__logo {
    box-shadow: none;
    border: 1px dashed var(--spot-field-border);
    box-sizing: border-box;
}

.spot-cat-brand:active .spot-cat-brand__logo {
    opacity: .7;
}

/* ---------- Хлебные крошки: на телефоне внизу страницы, на десктопе сверху ---------- */
.spot-cat-crumbs {
    order: 10;
    padding-top: 24px;
}

.spot-cat-crumbs .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--spot-mut);
}

.spot-cat-crumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    padding: 0;
}

.spot-cat-crumbs .breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
}

.spot-cat-crumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    float: none;
    padding: 0 8px;
    color: var(--spot-mut);
}

.spot-cat-crumbs .breadcrumb-item a {
    display: inline-block;
    padding: 12px 0;
    color: var(--spot-mut);
    text-decoration: none;
}

.spot-cat-crumbs .breadcrumb-item span {
    color: inherit;
}

.spot-cat-crumbs .breadcrumb-item:last-child a,
.spot-cat-crumbs .breadcrumb-item:last-child > span {
    color: var(--spot-ink);
    font-weight: 600;
}

/* ---------- Подкатегории ---------- */
.spot-cat-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    visibility: visible;
}

.spot-cat-subcat a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    background: var(--spot-surface);
    box-shadow: 0 0 0 1px var(--spot-line);
    color: var(--spot-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.spot-cat-subcat a.active {
    background: var(--spot-inv);
    color: var(--spot-on-inv);
    box-shadow: none;
}

/* ---------- «Горячие предложения» ---------- */
.spot-cat-vip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
}

.spot-cat-vip__head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.spot-cat-vip .spot-cat-h2 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spot-cat-fire {
    display: inline-flex;
    color: var(--spot-vip);
}

.spot-cat-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--spot-control-h);
    padding: 0 14px;
    border-radius: var(--spot-radius);
    background: var(--spot-red-soft);
    color: var(--spot-red-dark-fg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.spot-cat-promo:hover,
.spot-cat-promo:focus {
    color: var(--spot-red-dark-fg);
    text-decoration: none;
}

.spot-cat-promo .spot-cat-ico {
    color: var(--spot-vip);
}

.spot-cat-promo--wide {
    border: 1px dashed var(--spot-vip);
}

.spot-cat-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--spot-gutter);
    margin: -2px calc(-1 * var(--spot-gutter)) 0;
    padding: 2px var(--spot-gutter) 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}

.spot-cat-rail > .item-grid.spot-card.spot-card--rail {
    flex-shrink: 0;
    margin: 0;
    scroll-snap-align: start;
}

.spot-cat-rail__more {
    flex-shrink: 0;
    width: 156px;
    border-radius: 14px;
    background: var(--spot-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    scroll-snap-align: start;
    color: var(--spot-ink);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(20, 22, 26, .06);
}

.spot-cat-rail__more:hover,
.spot-cat-rail__more:focus {
    color: var(--spot-ink);
    text-decoration: none;
}

.spot-cat-rail__more-ico {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--spot-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Заголовок, сортировка, подписка, вид ---------- */
.spot-cat-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
}

.spot-cat-titlebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spot-cat-h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 32px;
    letter-spacing: -0.4px;
    color: var(--spot-ink);
    text-wrap: balance;
    overflow-wrap: break-word; /* полировка: слово рвётся только если не помещается (длинный запрос без пробелов), грузинские слова целые */
}

.spot-cat-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spot-cat-sortwrap {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.spot-cat-sortbtn,
.spot-cat-tool {
    height: var(--spot-control-h);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.spot-cat-sortbtn {
    width: 100%;
    padding: 0 12px;
    justify-content: space-between;
}

.spot-cat-sortbtn__t {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-cat-tool {
    flex-shrink: 0;
    width: var(--spot-control-h);
    justify-content: center;
    padding: 0;
}

.spot-cat-tool__t {
    display: none;
}

.spot-cat-sortbtn:active,
.spot-cat-tool:active {
    opacity: .7;
}

.spot-cat-view {
    flex-shrink: 0;
    height: var(--spot-control-h);
    display: flex;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
}

.spot-cat-view .catalog-ad-view {
    width: var(--spot-control-h);
    height: var(--spot-control-h);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--spot-mut);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: inherit;
}

.spot-cat-view__in {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-cat-view .catalog-ad-view.active {
    color: var(--spot-ink);
}

.spot-cat-view .catalog-ad-view.active .spot-cat-view__in {
    background: var(--spot-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* ---------- Лента результатов ---------- */
.spot-cat-results {
    overflow-anchor: none; /* вставка страницы не сдвигает прокрутку: без этого лента догружалась по кругу */
    min-height: 0;
}

.spot-cat-results .preload {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.spot-cat-results .preload::after,
.spot-cat-spinner {
    content: "";
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    border: 2px solid var(--spot-line);
    border-top-color: var(--spot-red);
    border-radius: 50%;
    animation: spot-cat-spin .8s linear infinite;
}

.spot-cat-spinner {
    display: inline-block;
    flex-shrink: 0;
}

@keyframes spot-cat-spin {
    to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spot-cat-results .preload::after,
    .spot-cat-spinner {
        animation-duration: 2.4s;
    }
}

/* прежний индикатор после каждой страницы не нужен: состояние показывает .spot-cat-feed */
.spot-cat-results .preload-scroll {
    display: none !important;
}

.spot-cat-feed__loading {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--spot-mut);
}

.spot-cat-feed__error {
    min-height: 56px;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 6px 16px 6px 6px;
    border-radius: var(--spot-radius);
    background: var(--spot-amber-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--spot-ink);
}

.spot-cat-feed__msg {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.spot-cat-feed [hidden],
.spot-cat-sheet[hidden],
.spot-cat-subs__err[hidden] {
    display: none !important;
}

.spot-cat-sentinel {
    height: 1px;
}

.spot-cat-feedhead {
    padding-top: 24px;
    padding-bottom: 12px;
}

.spot-cat-feedend {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--spot-mut);
}

.spot-cat-seo {
    padding-top: 32px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--spot-ink-2);
}

.spot-cat-bottom {
    padding-top: 24px;
}

.spot-cat-bottom:empty {
    display: none;
}

/* Лента ещё догружается (catalog.js ставит html.spot-cat-wait): SEO-текст и нижний баннер скрыты, но место занято —
   вставка карточек не двигает видимые блоки (CLS каталога шин был 0,37). Без JS класса нет, блоки видны. */
html.spot-cat-wait .spot-cat-seo,
html.spot-cat-wait .spot-cat-bottom,
html.spot-cat-wait .spot-cat-crumbs { /* на телефоне крошки внизу страницы (order:10), на десктопе вверху — там остаются видимыми */
    visibility: hidden;
}

@media (min-width: 992px) {
    html.spot-cat-wait .spot-cat-crumbs {
        visibility: visible;
    }
}

/* ---------- Кнопки ---------- */
.spot-cat-btn {
    min-height: var(--spot-control-h);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--spot-radius);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.spot-cat-btn:hover,
.spot-cat-btn:focus {
    text-decoration: none;
}

.spot-cat-btn:active {
    opacity: .7;
}

.spot-cat-btn:disabled {
    opacity: .55;
    cursor: default;
}

.spot-cat-btn--primary,
.spot-cat-btn--primary:hover,
.spot-cat-btn--primary:focus {
    background: var(--spot-red);
    color: var(--spot-on-inv);
}

.spot-cat-btn--ghost,
.spot-cat-btn--ghost:hover,
.spot-cat-btn--ghost:focus {
    background: var(--spot-surface);
    color: var(--spot-ink);
    box-shadow: inset 0 0 0 1px var(--spot-field-border);
}

.spot-cat-btn--soft,
.spot-cat-btn--soft:hover,
.spot-cat-btn--soft:focus {
    background: var(--spot-field);
    color: var(--spot-ink);
}

.spot-cat-btn--text,
.spot-cat-btn--text:hover,
.spot-cat-btn--text:focus {
    background: transparent;
    color: var(--spot-red-fg);
    padding: 0 12px;
}

.spot-cat-btn--block {
    display: flex;
    width: 100%;
    min-height: var(--spot-control-h-l);
}

/* ---------- Пустая выдача (ajax load_catalog_ads) ---------- */
/* ряд ленты сдвинут на -5px (карточки со своими 6px) — пустое состояние и заголовки ленты встают по краю контента */
.spot-cat-results .spot-cat-feedhead,
.spot-cat-results .col-lg-12:has(> .spot-cat-empty),
.spot-cat-results .col-lg-12:has(> .spot-cat-feedend) {
    padding-right: 5px;
    padding-left: 5px;
}

.catalog-no-results.spot-cat-empty {
    margin-top: 4px;
    padding: 28px 16px 16px;
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
    text-align: center;
}

.spot-cat-empty .catalog-no-results-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 440px;
    margin: 0 auto;
}

.spot-cat-empty .catalog-no-results-box svg {
    margin: 0;
    background: none;
    color: currentColor;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.spot-cat-empty__ico {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: var(--spot-bg);
    color: var(--spot-ink-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.spot-cat-empty .spot-cat-empty__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    color: var(--spot-ink);
}

.spot-cat-empty p {
    margin: 0;
    font-size: 15px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-cat-empty__acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.spot-cat-empty__acts .spot-cat-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
}

/* ---------- Листы: сортировка (телефон — снизу, десктоп — выпадающее окно под кнопкой) ---------- */
.spot-cat-sheet {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    font-family: var(--spot-font);
    color: var(--spot-ink);
}

.spot-cat-sheet__scrim {
    position: absolute;
    inset: 0;
    background: var(--spot-scrim);
}

.spot-cat-sheet__panel {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100% - 40px - var(--spot-safe-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 calc(16px + var(--spot-safe-left, 0px)) calc(16px + var(--spot-safe-bottom, 0px)) calc(16px + var(--spot-safe-right, 0px));
    border-radius: var(--spot-radius-sheet) var(--spot-radius-sheet) 0 0;
    background: var(--spot-surface);
    box-shadow: var(--spot-shadow-sheet);
    animation: spot-cat-up .22s cubic-bezier(.2, .8, .2, 1);
}

@keyframes spot-cat-up {
    from { transform: translateY(24px); opacity: .6; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .spot-cat-sheet__panel,
    .spot-cat-subs .modal-custom {
        animation: none !important;
    }
}

.spot-cat-sheet__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 60px;
    padding-top: 10px;
    background: var(--spot-surface);
}

.spot-cat-sheet__grab {
    position: absolute;
    top: 8px;
    right: 50%;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--spot-line);
    transform: translateX(50%);
}

.spot-cat-sheet__title {
    grid-column: 2;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
    color: var(--spot-ink);
}

.spot-cat-sheet__close {
    grid-column: 3;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--spot-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.spot-cat-sheet__close .spot-cat-ico {
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 6px;
    border-radius: 16px;
    background: var(--spot-field);
}

.spot-cat-opts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.spot-cat-opt {
    min-height: 52px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0 12px;
    border-radius: var(--spot-radius);
    color: var(--spot-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.spot-cat-opt:hover,
.spot-cat-opt:focus {
    color: var(--spot-ink);
    text-decoration: none;
}

.spot-cat-opt .spot-cat-ico {
    color: var(--spot-red-fg);
}

.spot-cat-opt--on {
    background: var(--spot-red-soft);
    font-weight: 700;
}

.spot-cat-opt:active {
    background: var(--spot-bg);
}

html.spot-cat-lock,
html.spot-cat-lock body {
    overflow: hidden;
}

/* ---------- Подписка на поиск (#modal-ads-subscriptions): лист на телефоне, окно на десктопе ---------- */
.modal-custom-bg.spot-cat-subs {
    padding: 0;
    align-items: flex-end;
    z-index: 1100;
    background: var(--spot-scrim);
    font-family: var(--spot-font);
    color: var(--spot-ink);
}

.spot-cat-subs .modal-custom {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    max-height: calc(100% - 40px - var(--spot-safe-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 18px calc(16px + var(--spot-safe-left, 0px)) calc(16px + var(--spot-safe-bottom, 0px)) calc(16px + var(--spot-safe-right, 0px));
    border-radius: var(--spot-radius-sheet) var(--spot-radius-sheet) 0 0;
    background: var(--spot-surface);
    box-shadow: var(--spot-shadow-sheet);
    transform: translateY(calc(-1 * var(--spot-cat-kb, 0px)));
    animation: spot-cat-up .22s cubic-bezier(.2, .8, .2, 1);
}

.spot-cat-subs .modal-custom > .modal-custom-close.spot-cat-sheet__close {
    position: absolute;
    top: 8px;
    left: calc(8px + var(--spot-safe-right, 0px));
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.spot-cat-subs .spot-cat-sheet__title {
    padding: 8px 44px 0;
}

.spot-cat-subs__lead {
    margin: 16px 0 12px;
    font-size: 15px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-cat-subs__note {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: var(--spot-radius);
    background: var(--spot-bg);
    font-size: 14px;
    line-height: 20px;
    color: var(--spot-ink-2);
}

.spot-cat-subs__note a {
    color: var(--spot-red-fg);
    font-weight: 700;
    text-decoration: underline;
}

.spot-cat-label {
    display: block;
    margin: 12px 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--spot-ink-2);
}

.spot-cat-input.form-control {
    height: var(--spot-control-h-l) !important;
    padding: 0 14px !important;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-size: 16px;
    box-shadow: none;
}

.spot-cat-input.form-control:focus {
    border-color: var(--spot-focus);
    box-shadow: 0 0 0 1px var(--spot-focus);
}

.spot-cat-input[aria-invalid="true"] {
    border-color: var(--spot-red);
}

.spot-cat-subs__err {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--spot-red-dark-fg);
}

.spot-cat-seg {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.spot-cat-seg .spot-cat-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spot-cat-seg .spot-cat-opt .spot-cat-ico {
    visibility: hidden;
}

.spot-cat-seg .spot-cat-opt:has(input:checked) {
    background: var(--spot-red-soft);
    font-weight: 700;
}

.spot-cat-seg .spot-cat-opt:has(input:checked) .spot-cat-ico {
    visibility: visible;
}

.spot-cat-seg .spot-cat-opt:has(input:focus-visible) {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-cat-subs__legal {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--spot-mut);
}

.spot-cat-subs__legal a {
    color: var(--spot-mut);
    text-decoration: underline;
}

.spot-cat-subs__done {
    text-align: center;
    padding: 8px 0 8px;
}

.spot-cat-subs__done p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 21px;
    color: var(--spot-ink-2);
}

.spot-cat-subs__done a {
    color: var(--spot-red-fg);
    font-weight: 600;
}

.spot-cat-subs__ok {
    width: 56px;
    height: 56px;
    margin: 16px auto 12px;
    border-radius: 28px;
    background: var(--spot-green-soft);
    color: var(--spot-green-fg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spot-cat-subs__done .spot-cat-sheet__title {
    padding: 0;
}

/* ---------- Живой поиск (шапка, .results-ajax-live-search; доска CatalogSearch) ---------- */
.spot-ls-all,
.main-search-results a.spot-ls-all {
    display: block;
    color: var(--spot-ink);
    text-decoration: none;
}

.spot-ls-all b {
    font-weight: 700;
}

.spot-ls-scrim {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: var(--spot-ls-top, 0px);
    z-index: 49; /* под шапкой телефона (z-index 50, в ней список подсказок), над контентом */
    background: var(--spot-scrim);
}

.spot-ls-scrim[hidden] {
    display: none;
}

@media (max-width: 991.98px) {
    .header-wow-mobile .results-ajax-live-search.main-search-results {
        top: calc(var(--spot-safe-top, 0px) + var(--spot-header-h, 55px) + var(--spot-search-h, 60px) + 4px) !important;
        right: calc(var(--spot-gutter) + var(--spot-safe-left, 0px)) !important;
        left: calc(var(--spot-gutter) + var(--spot-safe-right, 0px)) !important;
        width: auto !important;
        max-height: calc(var(--spot-ls-vh, 100dvh) - var(--spot-safe-top, 0px) - var(--spot-header-h, 55px) - var(--spot-search-h, 60px) - 16px);
        padding: 0;
        border-radius: var(--spot-radius-l) !important;
        background: var(--spot-surface);
        box-shadow: 0 8px 24px rgba(20, 22, 26, .16) !important;
        overscroll-behavior: contain;
        font-family: var(--spot-font);
        z-index: 998;
    }

    .header-wow-mobile .main-search-results > a {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 52px;
        padding: 10px 48px 10px 16px;
        color: var(--spot-ink);
        font-size: 16px;
        line-height: 21px;
    }

    .header-wow-mobile .main-search-results > a + a::after {
        content: "";
        position: absolute;
        top: 0;
        right: 48px;
        left: 0;
        border-top: 1px solid var(--spot-line);
    }

    .header-wow-mobile .main-search-results > a::before {
        content: "";
        position: absolute;
        right: 16px;
        top: 50%;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        background: var(--spot-ink-2);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='1.9'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23000' stroke-width='1.9'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%23000' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .header-wow-mobile .main-search-results > a:hover {
        background: transparent;
    }

    .header-wow-mobile .main-search-results > a:active {
        background: var(--spot-bg);
    }

    .header-wow-mobile .main-search-results .main-search-results-name {
        font-weight: 600;
        color: var(--spot-ink);
    }

    .header-wow-mobile .main-search-results .main-search-results-city {
        font-weight: 400;
    }

    .header-wow-mobile .main-search-results .main-search-results-category {
        font-size: 13px;
        color: var(--spot-mut);
    }

    .header-wow-mobile .main-search-results a.spot-ls-all {
        display: block;
        padding-top: 15px;
        padding-bottom: 15px;
        font-weight: 400;
    }
}

/* ==========================================================================
   Десктоп (≥992): доски DesktopCatalog, DesktopCatalogFilters
   ========================================================================== */
@media (min-width: 992px) {
    .spot-cat {
        /* строка catalog.tpl:25 даёт 82px сверху (раньше под ней пряталась панель фильтров шапки);
           панель теперь в контенте, крошки встают сразу под полосой категорий, как на доске */
        margin-top: -74px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .spot-cat-crumbs {
        order: 0;
        padding-top: 0;
    }

    .spot-cat-crumbs .breadcrumb-item:last-child a,
    .spot-cat-crumbs .breadcrumb-item:last-child > span {
        font-weight: 400;
    }

    .spot-cat-h1 {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -0.6px;
    }

    .spot-cat-h2 {
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.4px;
    }

    .spot-cat-vip {
        padding-top: 32px;
        gap: 16px;
    }

    .spot-cat-vip__acts {
        align-items: center;
        gap: 8px;
    }

    .spot-cat-promo {
        min-height: 36px;
        border-radius: 10px;
    }

    .spot-cat-more {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: 36px;
        padding: 0 8px;
        color: var(--spot-red-fg);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .spot-cat-more:hover,
    .spot-cat-more:focus {
        color: var(--spot-red-dark-fg);
        text-decoration: none;
    }

    .spot-cat-arrow {
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 20px;
        background: var(--spot-surface);
        color: var(--spot-ink);
        box-shadow: 0 1px 3px rgba(20, 22, 26, .12);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .spot-cat-arrow:disabled {
        color: var(--spot-field-border);
        box-shadow: none;
        background: transparent;
        cursor: default;
    }

    .spot-cat-rail {
        margin: -2px -2px 0;
        padding: 2px 2px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        scroll-behavior: smooth;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .spot-cat-rail > .item-grid.spot-card.spot-card--rail {
        width: calc((100% - 5 * 12px) / 6);
    }

    .spot-cat-main {
        padding-top: 40px;
        gap: 16px;
    }

    .spot-cat-titlebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* полировка: заголовок, факты и инструменты переносятся строками, а не ужимают заголовок */
        gap: 16px 24px;
    }

    .spot-cat-h1 {
        flex: 1 1 380px;
        min-width: 0;
    }

    .spot-cat-titlebar .spot-cat-facts {
        flex: 1 1 360px;
        margin: 0;
    }

    .spot-cat-tools {
        flex-shrink: 0;
        margin-right: auto;
    }

    .spot-cat-sortwrap {
        flex: 0 0 auto;
    }

    .spot-cat-sortbtn,
    .spot-cat-tool {
        font-size: 14px;
        box-shadow: inset 0 0 0 1px var(--spot-line);
    }

    .spot-cat-sortbtn {
        width: auto;
        min-width: 150px;
        gap: 10px;
        padding: 0 14px;
    }

    .spot-cat-tool {
        width: auto;
        padding: 0 14px 0 16px;
        gap: 8px;
    }

    .spot-cat-tool__t {
        display: inline;
    }

    .spot-cat-view {
        background: transparent;
        gap: 8px;
    }

    .spot-cat-view .catalog-ad-view {
        border-radius: var(--spot-radius);
        background: var(--spot-surface);
        box-shadow: inset 0 0 0 1px var(--spot-line);
    }

    .spot-cat-view .catalog-ad-view.active {
        background: var(--spot-inv);
        color: var(--spot-on-inv);
        box-shadow: none;
    }

    .spot-cat-view .catalog-ad-view.active .spot-cat-view__in {
        background: transparent;
        box-shadow: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .spot-cat-sortbtn:hover,
        .spot-cat-tool:hover,
        .spot-cat-view .catalog-ad-view:not(.active):hover,
        .spot-cat-arrow:not(:disabled):hover {
            color: var(--spot-red-fg);
        }

        .spot-cat-opt:hover {
            background: var(--spot-bg);
        }

        .spot-cat-opt--on:hover {
            background: var(--spot-red-soft);
        }

        .spot-cat-chips--desk .spot-cat-chip:hover {
            box-shadow: inset 0 0 0 1px var(--spot-ink);
        }
    }

    /* сортировка: выпадающее окно под кнопкой, без затемнения */
    .spot-cat-sheet {
        position: absolute;
        inset: auto;
        top: calc(100% + 6px);
        right: 0;
        z-index: 60;
        display: block;
        width: 260px;
    }

    .spot-cat-sheet__scrim,
    .spot-cat-sheet__head {
        display: none;
    }

    .spot-cat-sheet__panel {
        max-height: none;
        padding: 6px;
        border-radius: var(--spot-radius);
        box-shadow: 0 0 0 1px var(--spot-line), 0 12px 32px rgba(20, 22, 26, .14);
        animation: none;
    }

    .spot-cat-opts {
        padding: 0;
        gap: 2px;
    }

    .spot-cat-opt {
        min-height: 44px;
        font-size: 14px;
    }

    html.spot-cat-lock,
    html.spot-cat-lock body {
        overflow: visible;
    }

    /* выбранные фильтры под заголовком */
    .spot-cat-chips--desk {
        flex-wrap: wrap;
        overflow: visible;
        padding: 0;
        gap: 8px;
    }

    .spot-cat-chips--desk .spot-cat-chip {
        height: 36px;
        padding: 0 14px 0 10px;
        border-radius: 18px;
        background: var(--spot-surface);
        color: var(--spot-ink);
        box-shadow: inset 0 0 0 1px var(--spot-field-border);
    }

    .spot-cat-chips--desk .spot-cat-chip .spot-cat-ico {
        color: var(--spot-mut);
    }

    .spot-cat-chips--desk .spot-cat-chips__reset {
        height: 36px;
    }

    .catalog-no-results.spot-cat-empty {
        padding: 40px 24px 32px;
    }

    .spot-cat-empty__acts .spot-cat-btn {
        flex: 0 0 auto;
        padding: 0 20px;
    }

    .spot-cat-empty__acts .spot-cat-btn--reset,
    .spot-cat-empty__acts .spot-cat-btn--reset:hover,
    .spot-cat-empty__acts .spot-cat-btn--reset:focus {
        background: var(--spot-red);
        color: var(--spot-on-inv);
        box-shadow: none;
    }

    .spot-cat-results .spot-cat-feedhead,
    .spot-cat-results .col-lg-12:has(> .spot-cat-empty),
    .spot-cat-results .col-lg-12:has(> .spot-cat-feedend) {
        padding-right: 6px;
        padding-left: 6px;
    }

    .spot-cat-feedhead {
        text-align: center;
        padding-top: 32px;
        padding-bottom: 16px;
    }

    /* подписка: окно по центру */
    .modal-custom-bg.spot-cat-subs {
        align-items: center;
        padding: 24px;
    }

    .spot-cat-subs .modal-custom {
        max-width: 480px;
        max-height: calc(100vh - 48px);
        margin: auto;
        padding: 24px;
        border-radius: var(--spot-radius-l);
        transform: none;
        box-shadow: 0 24px 64px rgba(20, 22, 26, .24);
        animation: none;
    }

    .spot-cat-subs .spot-cat-sheet__grab {
        display: none;
    }

    .spot-cat-subs .modal-custom > .modal-custom-close.spot-cat-sheet__close {
        top: 14px;
        left: 14px;
    }

    .spot-cat-subs .spot-cat-sheet__title {
        padding: 0 0 0 44px;
        text-align: right;
        font-size: 20px;
        line-height: 26px;
    }

    .spot-cat-subs__done .spot-cat-sheet__title {
        text-align: center;
        padding: 0;
    }

    /* ---------- Панель фильтров ---------- */
    .spot-cat-filters {
        padding-top: 4px;
    }

    .sidebar-filter.spot-cat-panel {
        z-index: auto;
        padding: 20px;
        border-radius: var(--spot-radius-l);
        background: var(--spot-surface);
    }

    .spot-cat-panel .form-filter {
        padding: 0;
    }

    .spot-cat-panel .catalog-more-filter.spot-cat-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .spot-cat-panel .spot-cat-grid > .d,
    .spot-cat-panel .spot-cat-grid > .filter-items {
        grid-column: auto;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    /* движок прятал поля-диапазоны при свёрнутом поиске — теперь это решает spot_catalog.js (.spot-adv-item) */
    .spot-cat-panel .catalog-more-filter-action .catalog-list-options {
        display: block;
    }

    .spot-cat-panel .catalog-more-filter-action > .spot-adv-item {
        display: none !important;
    }

    /* поле-список (uni-select) */
    .spot-cat-panel .uni-select {
        height: 48px;
        box-sizing: border-box;
        border: 1px solid var(--spot-field-border);
        border-radius: var(--spot-radius);
        background: var(--spot-surface);
    }

    .spot-cat-panel .uni-select-open {
        border-color: var(--spot-ink);
        z-index: 20;
    }

    .spot-cat-panel .uni-select-name,
    .spot-cat-panel .uni-select-name.f {
        height: 100% !important;
        margin: 0;
        padding: 0 12px 0 36px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        border-radius: var(--spot-radius);
        background: transparent;
        line-height: normal;
        font-size: 14px;
        color: var(--spot-mut);
    }

    .spot-cat-panel .uni-select-name > span {
        display: block;
        max-width: 100%;
        font-size: 14px;
        line-height: 18px;
        color: var(--spot-mut);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .spot-cat-panel .uni-select-name[data-spot-cap]::before {
        content: attr(data-spot-cap);
        display: none;
        max-width: 100%;
        font-size: 11px;
        font-weight: 500;
        line-height: 13px;
        color: var(--spot-mut);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .spot-cat-panel .uni-select:has(.uni-select-item-active) .uni-select-name[data-spot-cap]::before {
        display: block;
    }

    .spot-cat-panel .uni-select:has(.uni-select-item-active) .uni-select-name > span {
        color: var(--spot-ink);
        font-weight: 600;
    }

    .spot-cat-panel .uni-select-name > svg,
    .spot-cat-panel .uni-select-name > .spot-cat-ico,
    .spot-cat-panel .uni-select-name > i {
        position: absolute;
        left: 12px;
        top: 50%;
        width: 18px;
        height: 18px;
        margin: 0;
        transform: translateY(-50%);
        color: var(--spot-ink-2);
    }

    .spot-cat-panel .uni-select-list,
    .spot-cat-panel .uni-select-list.css-dqw345 {
        top: calc(100% + 4px);
        right: 0;
        left: 0;
        max-height: 320px;
        padding: 6px;
        border: 0 !important;
        border-radius: var(--spot-radius);
        background: var(--spot-surface) !important;
        box-shadow: 0 0 0 1px var(--spot-line), 0 12px 32px rgba(20, 22, 26, .14) !important;
        z-index: 30;
    }

    .spot-cat-panel .uni-select-list label {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 8px 10px 8px 32px;
        border-radius: var(--spot-radius-s);
    }

    .spot-cat-panel .uni-select-list label span {
        padding: 0;
        font-size: 14px;
        color: var(--spot-ink) !important;
    }

    .spot-cat-panel .uni-select-list label:hover {
        background: var(--spot-bg);
    }

    .spot-cat-panel .uni-select-list label.uni-select-item-active {
        background: var(--spot-red-soft);
    }

    .spot-cat-panel .uni-select-list label.uni-select-item-active span {
        font-weight: 600;
    }

    .spot-cat-panel .uni-select-list i {
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        color: var(--spot-red-fg);
    }

    .spot-cat-panel .catalog-list-options-search,
    .spot-cat-panel .uni-select-list-search {
        padding: 0 0 6px;
    }

    /* поле-диапазон (год, объём, пробег, цена) */
    .spot-cat-panel .filter-input {
        height: 48px;
        display: flex;
        gap: 8px;
        z-index: auto;
    }

    .spot-cat-panel .filter-input > div,
    .spot-cat-panel .filter-input > div.wb {
        flex: 1 1 0;
        float: none;
        width: auto;
        min-width: 0;
        height: 48px;
        box-sizing: border-box;
        margin: 0;
        padding: 0 12px !important;
        display: flex;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--spot-field-border) !important;
        border-radius: var(--spot-radius) !important;
        background: var(--spot-surface);
        line-height: normal;
    }

    .spot-cat-panel .filter-input > div:focus-within {
        border-color: var(--spot-ink) !important;
    }

    .spot-cat-panel .filter-input > div span {
        position: static;
        order: 2;
        flex-shrink: 0;
        font-size: 14px;
        color: var(--spot-mut);
    }

    .spot-cat-panel .filter-input > div span:empty {
        display: none;
    }

    .spot-cat-panel .filter-input input {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--spot-ink);
        font-size: 15px;
    }

    .spot-cat-panel .filter-input input::placeholder {
        color: var(--spot-mut);
        opacity: 1;
    }

    /* город */
    .spot-cat-panel .spot-cat-field--geo {
        position: relative;
    }

    .spot-cat-field__cap {
        position: absolute;
        top: 7px;
        right: 13px;
        left: 36px;
        margin: 0;
        font-size: 11px;
        font-weight: 500;
        line-height: 13px;
        color: var(--spot-mut);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
    }

    .spot-cat-panel .spot-cat-field--geo input.form-control {
        height: 48px !important;
        padding: 18px 12px 2px 36px !important;
        border: 1px solid var(--spot-field-border) !important;
        border-radius: var(--spot-radius) !important;
        background: var(--spot-surface) !important;
        color: var(--spot-ink);
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
    }

    .spot-cat-panel .spot-cat-field--geo input.form-control:focus {
        border-color: var(--spot-ink) !important;
    }

    .spot-cat-panel .spot-cat-field--geo input.form-control::placeholder {
        color: transparent;
    }

    .spot-cat-field__clear {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--spot-mut);
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .spot-cat-field--geo.spot-has-value .spot-cat-field__clear {
        display: flex;
    }

    .spot-cat-panel .modal-search-geo-results {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        left: 0;
        z-index: 30;
        max-height: 320px;
        overflow: auto;
        padding: 6px;
        border-radius: var(--spot-radius);
        background: var(--spot-surface);
        box-shadow: 0 0 0 1px var(--spot-line), 0 12px 32px rgba(20, 22, 26, .14);
    }

    /* низ панели */
    .spot-cat-panel__foot {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
    }

    .spot-cat-panel__gap {
        flex: 1 1 auto;
    }

    .spot-cat-adv-btn {
        height: var(--spot-control-h);
        padding: 0 4px;
        border: 0;
        background: transparent;
        color: var(--spot-ink);
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .spot-cat-adv-btn__in {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .spot-cat-panel .catalog-more-filter-show,
    .spot-cat-panel .catalog-more-filter-hide {
        width: auto;
        border-radius: 0;
        text-align: right;
    }

    .spot-cat-panel .catalog-more-filter-hide {
        display: none;
    }

    .spot-cat-panel.spot-adv-none .spot-cat-adv-btn {
        display: none !important;
    }

    .spot-cat-panel .form-filter-submit {
        margin: 0;
        z-index: auto;
    }

    .spot-cat-panel .form-filter-submit .spot-cat-btn--primary {
        width: auto;
        min-width: 220px;
        min-height: 48px;
        margin: 0;
        padding: 0 32px;
    }

    .spot-cat-panel .action-clear-filter {
        min-height: 48px;
    }
}

@media (min-width: 1200px) {
    .container.spot-cat {
        max-width: 1440px;
        padding-right: var(--spot-gutter-desktop);
        padding-left: var(--spot-gutter-desktop);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .spot-cat-panel .catalog-more-filter.spot-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .spot-cat-rail > .item-grid.spot-card.spot-card--rail {
        width: calc((100% - 3 * 12px) / 4);
    }
}

/* spot: живые факты под H1 каталога и SEO-лендинга (systems/libs/spot_landing_facts.php) — тихая справочная строка */
.spot-cat-facts {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--spot-mut);
  max-width: 72ch;
  overflow-wrap: anywhere;
}

/* spot: блок «Популярные размеры шин» (route/catalog.php) — ссылки с отступами, удобные цели нажатия на телефоне */
.spot-cat-sizes h2 { font-size: 18px; margin: 20px 0 8px; }
.spot-cat-sizes a { display: inline-block; padding: 6px 4px; }
