/* spot_home.css — главная, волна 7 (доски Main, MobileHotPreview, DesktopHome, DesktopHomeFilters, AdSlots).
   Разметка: templates/index.tpl (первый экран, плитки категорий), include/spot_home_hot.php («Горячие предложения»,
   быстрый просмотр), spot_home_lib.php (марки). Поведение — js/spot_home.js. Цвета и размеры — токены spot_ui.css.
   Телефон первичен: 2 крупные карточки в ряд; десктоп ≥ 992 — мозаика 8×3 (6 колонок на 992–1199). Без hover-зависимостей. */

/* ---------- Первый экран: заголовок и поиск ---------- */
.spot-home-hero {
    background: var(--spot-surface);
    font-family: var(--spot-font);
}

.spot-home-hero-in {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px var(--spot-gutter) 12px;
}

.spot-home-h1 {
    margin: 0 0 12px;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.spot-home-search {
    position: relative;
}

.spot-home-form {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--spot-control-h-l);
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
}

.spot-home-form:focus-within {
    border-color: var(--spot-focus);
}

.spot-home-search-ic {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0 4px 0 0;
    border: 0;
    background: transparent;
    color: var(--spot-mut);
    cursor: pointer;
}

.spot-home-form input.ajax-live-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 0 0 8px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px; /* не меньше 16px: iOS не увеличивает страницу при фокусе */
    box-shadow: none;
}

.spot-home-form input.ajax-live-search::placeholder {
    color: var(--spot-mut);
    opacity: 1;
}

.spot-home-params {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin-left: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 22, 26, .08);
}

.spot-home-params:focus-visible,
.spot-home-search-ic:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

/* живой поиск: список под полем (vendor.js показывает/скрывает) */
.spot-home-search .results-ajax-live-search {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    margin: 0;
    max-height: min(60vh, 480px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: 0 12px 32px rgba(20, 22, 26, .16);
    text-align: right;
}

/* ---------- Плитки категорий (телефон) ---------- */
.spot-home-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px var(--spot-gutter) 8px;
    background: var(--spot-surface);
    font-family: var(--spot-font);
}

.spot-home-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 92px;
    padding: 10px 6px 8px;
    border-radius: var(--spot-radius);
    background: var(--spot-bg);
    color: var(--spot-ink);
    text-align: center;
    text-decoration: none;
}

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

.spot-home-cat:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-home-cat-img {
    width: 60px;
    height: 44px;
    object-fit: contain;
}

.spot-home-cat-t {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* узкие телефоны (< 360): «Параметры» — только иконка (подпись остаётся в aria-label), подписи категорий мельче */
@media (max-width: 359.98px) {
    .spot-home-params {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .spot-home-params-t {
        display: none;
    }

    .spot-home-cats {
        gap: 6px;
    }

    .spot-home-cat {
        padding-right: 2px;
        padding-left: 2px;
    }

    .spot-home-cat-t {
        font-size: 11px;
    }
}

/* ---------- Заголовки блоков ---------- */
.spot-home-h {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.spot-home-h2,
.spot-hot-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.spot-home-rec,
.spot-brands {
    margin: 0 0 28px;
    font-family: var(--spot-font);
}

/* ---------- «Горячие предложения»: телефон (2 колонки), планшет (3) ---------- */
.spot-hot {
    margin: 0 0 28px;
    font-family: var(--spot-font);
}

.spot-hot-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.spot-hot-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.spot-hot-title .spot-hot-fire .spot-ico {
    width: 20px;
    height: 20px;
}

.spot-hot-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px 0 2px;
    color: var(--spot-red-fg);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

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

.spot-hot-place,
.spot-hot-nav {
    display: none;
}

/* подсказка «Удерживайте карточку…» (телефон, один раз) */
.spot-hot-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -6px 0 10px;
    color: var(--spot-mut);
    font-size: 13px;
    line-height: 1.35;
}

.spot-hot-hint[hidden] {
    display: none;
}

.spot-hot-hint span {
    flex: 1 1 auto;
    min-width: 0;
}

.spot-hot-hint-x {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    margin-left: -12px;
    border: 0;
    background: transparent;
    color: var(--spot-mut);
    cursor: pointer;
}

.spot-hot-hint-x:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-hot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spot-hot-grid > .spot-hot-item {
    display: flex;
    min-width: 0;
    padding: 0;
}

/* долгое нажатие: без системного меню ссылки и выделения текста (только у горячих карточек) */
.spot-hot-item .spot-card__link,
.spot-hot-item img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.spot-hot-item.spot-hot-pressing .spot-card {
    transform: scale(.97);
    transition: transform .18s ease;
}

/* плитка рекламы 300×250 на всю ширину сетки, после 6-й карточки */
.spot-hot-ad {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 4px;
}

.spot-hot-ad-label {
    align-self: flex-start;
    margin: 0 0 6px;
    color: var(--spot-mut);
    font-size: 11px;
    font-weight: 600;
}

.spot-hot-ad-body {
    width: 100%;
    max-width: 336px;
    min-height: 250px;
}

.spot-hot-ad-body .place-banner {
    margin: 0;
}

.spot-hot-ad-body img {
    display: block;
    width: 100%;
    height: auto;
}

/* AdSense без объявления: плитка схлопывается целиком (то же правило, что у .place-banner в styles.css) */
.spot-hot-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none;
}

/* «Хотите сюда?» — продавцам, после 12-й карточки */
.spot-hot-cta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    margin: 4px 0;
    padding: 16px;
    border: 1px solid #F6D3C4;
    border-radius: var(--spot-radius-l);
    background: var(--spot-red-soft);
    color: var(--spot-ink);
}

.spot-hot-cta-ic {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--spot-surface);
    color: var(--spot-vip);
}

.spot-hot-cta-ic .spot-ico {
    width: 22px;
    height: 22px;
}

.spot-hot-cta-k {
    color: var(--spot-red-dark-fg);
    font-size: 12px;
    font-weight: 700;
}

.spot-hot-cta-t {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.spot-hot-cta-d {
    grid-column: 1 / -1;
    margin: 8px 0 12px;
    color: var(--spot-ink-2);
    font-size: 13px;
    line-height: 1.45;
}

.spot-hot-cta-b {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--spot-control-h);
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.spot-hot-cta-b:hover,
.spot-hot-cta-b:focus {
    background: var(--spot-red-dark);
    color: #fff;
    text-decoration: none;
}

.spot-hot-fill {
    display: none !important;
}

.spot-hot-more {
    margin: 14px 0 0;
}

.spot-hot-more[hidden] {
    display: none;
}

.spot-hot-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.spot-hot-more-btn:disabled {
    opacity: .7;
    cursor: progress;
}

.spot-hot-more-btn:focus-visible,
.spot-hot-all:focus-visible,
.spot-hot-cta-b:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .spot-hot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- Десктоп ≥ 992: первый экран по центру, мозаика 8×3 ---------- */
@media (min-width: 992px) {
    .spot-home-hero-in {
        padding: 28px var(--spot-gutter-desktop) 28px;
        text-align: center;
    }

    .spot-home-h1 {
        margin-bottom: 18px;
        font-size: 34px;
    }

    .spot-home-search {
        max-width: 760px;
        margin: 0 auto;
    }

    .spot-home-form {
        height: 56px;
    }

    .spot-home-search-ic {
        width: 52px;
        padding-right: 8px;
    }

    /* «Параметры» — квадратная кнопка-иконка в поле (доска DesktopHome); подпись для экранных дикторов — aria-label */
    .spot-home-params {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .spot-home-params-t {
        display: none;
    }

    .spot-hot {
        margin-top: 4px;
    }

    .spot-hot-title {
        font-size: 24px;
    }

    .spot-hot-all,
    .spot-hot-cta,
    .spot-hot-more,
    .spot-hot-hint {
        display: none !important;
    }

    .spot-hot-place {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: var(--spot-red-soft);
        color: var(--spot-red-dark-fg);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    .spot-hot-place:hover,
    .spot-hot-place:focus {
        color: var(--spot-red-dark-fg);
        text-decoration: underline;
    }

    .spot-hot-place:focus-visible {
        outline: 2px solid var(--spot-focus);
        outline-offset: 2px;
    }

    .spot-hot-nav:not([hidden]) {
        display: flex;
        gap: 6px;
    }

    .spot-hot-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--spot-line);
        border-radius: 50%;
        background: var(--spot-surface);
        color: var(--spot-ink);
        cursor: pointer;
    }

    .spot-hot-arrow:disabled {
        color: var(--spot-line);
        cursor: default;
    }

    .spot-hot-arrow:focus-visible {
        outline: 2px solid var(--spot-focus);
        outline-offset: 2px;
    }

    /* ряды мозаики — высота плитки 4:3 от ширины колонки (единицы контейнера .spot-hot); с рекламой ряд не ниже 132px:
       два ряда + промежуток вмещают подпись «Реклама» и 300×250, карточки соседних рядов не растягиваются */
    .spot-hot {
        container-type: inline-size;
        --spot-hot-cols: 6;
        --spot-hot-row: max(110px, calc((100cqw - (var(--spot-hot-cols) - 1) * 8px) / var(--spot-hot-cols) * .75));
    }

    .spot-hot.spot-hot--ad {
        --spot-hot-row: max(132px, calc((100cqw - (var(--spot-hot-cols) - 1) * 8px) / var(--spot-hot-cols) * .75));
    }

    .spot-hot-grid {
        grid-template-columns: repeat(var(--spot-hot-cols), minmax(0, 1fr));
        grid-auto-rows: var(--spot-hot-row);
        grid-auto-flow: row dense;
        gap: 8px;
    }

    .spot-hot-item .item-grid.spot-card,
    .spot-hot-item .spot-card__link {
        height: 100%;
    }

    .spot-hot-item .item-grid.spot-card .spot-card__photo {
        aspect-ratio: auto;
        height: 100%;
        padding-top: 0;
    }

    .spot-hot-grid > .spot-hot-item.spot-hot-off {
        display: none;
    }

    /* плитка мозаики: фото на всю клетку, цена и название поверх, внизу — затемнение */
    .spot-hot-item .item-grid.spot-card {
        overflow: hidden;
        border-radius: var(--spot-radius);
        box-shadow: none;
    }

    .spot-hot-item .item-grid.spot-card.spot-card--hl {
        box-shadow: none;
    }

    .spot-hot-item .spot-card__link {
        position: relative;
        display: block;
        height: 100%;
    }

    .spot-hot-item .spot-card__photo {
        border-radius: var(--spot-radius);
    }

    .spot-hot-item .spot-card__body {
        position: absolute;
        right: 0;
        left: 0;
        bottom: 0;
        gap: 0;
        padding: 28px 8px 7px;
        background: linear-gradient(rgba(20, 22, 26, 0), rgba(20, 22, 26, .78));
        pointer-events: none;
    }

    .spot-hot-item .spot-card__price .spot-price-main,
    .spot-hot-item .spot-card__price .board-view-price {
        color: #fff;
        font-size: 15px;
        line-height: 19px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .spot-hot-item .spot-card__price .spot-price-old,
    .spot-hot-item .spot-card__specs,
    .spot-hot-item .spot-chip,
    .spot-hot-item .spot-card .spot-card__fav.item-grid-favorite {
        display: none;
    }

    .spot-hot-item .spot-card__title {
        display: block;
        min-height: 0;
        color: #fff;
        font-size: 12px;
        line-height: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .spot-hot-ad {
        grid-column: 2 / span 2;
        grid-row: 2 / span 2;
        justify-content: center;
        min-width: 0;
        overflow: hidden;
        padding: 18px 4px 2px;
        border: 1px dashed var(--spot-line);
        border-radius: var(--spot-radius);
        background: var(--spot-bg);
    }

    .spot-hot-ad-label {
        position: absolute;
        top: 2px;
        right: 8px;
        margin: 0;
        line-height: 16px;
    }

    .spot-hot-ad-body {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 300px;
        min-height: 0;
        max-height: 250px;
    }

    .spot-hot-ad-body img {
        max-height: 250px;
        object-fit: contain;
    }

    .spot-hot-fill:not([hidden]) {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px;
        min-height: 72px;
        border: 1px dashed #F6B39A;
        border-radius: var(--spot-radius);
        background: var(--spot-red-soft);
        color: var(--spot-red-dark-fg);
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }

    .spot-hot-fill:hover,
    .spot-hot-fill:focus {
        color: var(--spot-red-dark-fg);
        text-decoration: underline;
    }

    .spot-home-h2 {
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .spot-hot {
        --spot-hot-cols: 8;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .spot-hot-item .spot-card__photo img {
        transition: transform .25s ease;
    }

    .spot-hot-item .spot-card__link:hover .spot-card__photo img {
        transform: scale(1.04);
    }
}

/* ---------- Марки ---------- */
.spot-brands-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.spot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 84px;
    padding: 10px 4px;
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: 0 0 0 1px var(--spot-line);
    color: var(--spot-ink);
    text-decoration: none;
}

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

.spot-brand:focus-visible,
.spot-brands-more:focus-visible,
.spot-brands-list a:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.spot-brand-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.spot-brand-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.spot-brands-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--spot-control-h);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    box-shadow: 0 0 0 1px var(--spot-line);
    color: var(--spot-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.spot-brands-more::-webkit-details-marker {
    display: none;
}

.spot-brands-all[open] .spot-brands-more svg {
    transform: rotate(-180deg);
}

.spot-brands-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.spot-brands-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--spot-ink-2);
    font-size: 14px;
    text-decoration: none;
}

@media (min-width: 768px) {
    .spot-brands-top {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .spot-brands-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .spot-brands-top {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .spot-brands-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .spot-brands-all {
        position: relative;
    }
}

/* «Сейчас смотрят» (десктоп): заголовок как у остальных блоков */
.spot-home-views > .mb25.h3 strong {
    font-family: var(--spot-font);
    font-size: 24px;
    font-weight: 800;
}

/* ---------- Быстрый просмотр (долгое нажатие на горячую карточку, телефон) ---------- */
.spot-hp {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--spot-font);
}

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

.spot-hp-scrim {
    position: absolute;
    inset: 0;
    background: var(--spot-scrim);
    opacity: 0;
    transition: opacity .2s ease;
}

.spot-hp-panel {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: calc(100% - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: var(--spot-radius-sheet) var(--spot-radius-sheet) 0 0;
    background: var(--spot-surface);
    box-shadow: var(--spot-shadow-sheet);
    color: var(--spot-ink);
    transform: translateY(24px);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.spot-hp-panel:focus {
    outline: none;
}

.spot-hp.spot-hp-on .spot-hp-scrim {
    opacity: 1;
}

.spot-hp.spot-hp-on .spot-hp-panel {
    transform: none;
    opacity: 1;
}

.spot-hp-grab {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 2px;
    background: var(--spot-line);
}

.spot-hp-x {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-hp-photos {
    position: relative;
    margin: 0 16px;
    overflow: hidden;
    border-radius: var(--spot-radius);
    background: var(--spot-bg);
    aspect-ratio: 4 / 3;
}

.spot-hp-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.spot-hp-track::-webkit-scrollbar {
    display: none;
}

.spot-hp-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.spot-hp-count {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(27, 29, 33, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.spot-hp-count:empty {
    display: none;
}

.spot-hp-body {
    padding: 12px 16px 0;
}

.spot-hp-price .spot-price-main,
.spot-hp-price .board-view-price {
    display: block;
    color: var(--spot-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
}

.spot-hp-price .spot-price-old {
    color: var(--spot-mut);
    font-size: 13px;
    text-decoration: line-through;
}

.spot-hp-title {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.spot-hp-specs,
.spot-hp-place {
    color: var(--spot-ink-2);
    font-size: 14px;
    line-height: 1.45;
}

.spot-hp-place {
    color: var(--spot-mut);
}

.spot-hp-specs:empty,
.spot-hp-place:empty {
    display: none;
}

.spot-hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.spot-hp-open {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.spot-hp-open:hover,
.spot-hp-open:focus {
    background: var(--spot-red-dark);
    color: #fff;
    text-decoration: none;
}

.spot-hp-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.spot-hp-btn[hidden] {
    display: none;
}

.spot-hp-btn[aria-pressed="true"] {
    color: var(--spot-red-fg);
}

.spot-hp-btn[aria-pressed="true"] svg path {
    fill: currentColor;
}

.spot-hp-x:focus-visible,
.spot-hp-btn:focus-visible,
.spot-hp-open:focus-visible {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .spot-hp-scrim,
    .spot-hp-panel,
    .spot-hot-item.spot-hot-pressing .spot-card,
    .spot-hot-item .spot-card__photo img {
        transition: none !important;
    }

    .spot-hot-item.spot-hot-pressing .spot-card {
        transform: none;
    }

    .spot-hp-track {
        scroll-behavior: auto;
    }
}

/* ---------- Волна 8d: встроенная панель «Параметры» (доска DesktopHomeFilters), только ≥ 992 ---------- */
.spot-hf { display: none; }

@media (min-width: 992px) {
    .spot-hf:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 14px;
        box-sizing: border-box;
        max-width: 940px;
        margin: 12px auto 0;
        padding: 20px;
        border-radius: 20px;
        background: var(--spot-surface);
        box-shadow: 0 0 0 1px var(--spot-line), 0 8px 24px rgba(20, 22, 26, .06);
        text-align: right;
        font-family: var(--spot-font);
    }

    .spot-home-params--on {
        background: var(--spot-inv);
        color: var(--spot-on-inv);
    }

    .spot-hf-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .spot-hf-field {
        position: relative;
        box-sizing: border-box;
        min-width: 0;
        height: 48px;
        margin: 0;
        border: 1px solid var(--spot-field-border);
        border-radius: var(--spot-radius);
        background: var(--spot-surface);
    }

    .spot-hf-field:focus-within {
        border-color: var(--spot-focus);
        box-shadow: 0 0 0 1px var(--spot-focus);
    }

    .spot-hf-label {
        position: absolute;
        top: 6px;
        right: 12px;
        left: 30px;
        overflow: hidden;
        color: var(--spot-mut);
        font-size: 11px;
        font-weight: 500;
        line-height: 13px;
        white-space: nowrap;
        text-overflow: ellipsis;
        pointer-events: none;
    }

    .spot-hf-sel select {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 17px 12px 0 32px;
        border: 0;
        border-radius: var(--spot-radius);
        outline: none;
        background: transparent;
        color: var(--spot-ink);
        font-family: var(--spot-font);
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
        text-overflow: ellipsis;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }

    .spot-hf-sel select:disabled {
        color: var(--spot-mut);
        font-weight: 500;
        cursor: not-allowed;
    }

    .spot-hf-chev {
        position: absolute;
        top: 50%;
        left: 10px;
        margin-top: -8px;
        color: var(--spot-mut);
        pointer-events: none;
    }

    .spot-hf-pair {
        position: absolute;
        right: 12px;
        left: 12px;
        bottom: 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .spot-hf-pair input {
        flex: 1 1 0;
        width: 100%;
        min-width: 0;
        height: 24px;
        margin: 0;
        padding: 0;
        border: 0;
        outline: none;
        background: transparent;
        color: var(--spot-ink);
        font-family: var(--spot-font);
        font-size: 16px;
        -moz-appearance: textfield;
    }

    .spot-hf-pair input::-webkit-outer-spin-button,
    .spot-hf-pair input::-webkit-inner-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

    .spot-hf-pair input::placeholder {
        color: var(--spot-mut);
        opacity: 1;
        text-transform: none;
    }

    .spot-hf-dash {
        color: var(--spot-mut);
    }

    /* валюта цены: два маленьких переключателя в строке подписи */
    .spot-hf-price .spot-hf-label {
        left: 64px;
    }

    .spot-hf-cur {
        position: absolute;
        top: 4px;
        left: 6px;
        display: flex;
        gap: 2px;
    }

    .spot-hf-cur label {
        margin: 0;
        cursor: pointer;
    }

    .spot-hf-cur input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .spot-hf-cur span {
        display: block;
        min-width: 24px;
        height: 18px;
        padding: 0 4px;
        border-radius: 6px;
        color: var(--spot-mut);
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
    }

    .spot-hf-cur input:checked + span {
        background: var(--spot-inv);
        color: var(--spot-on-inv);
    }

    .spot-hf-cur input:focus-visible + span {
        outline: 2px solid var(--spot-focus);
        outline-offset: 1px;
    }

    .spot-hf-foot {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .spot-hf-sp {
        flex-grow: 1;
    }

    .spot-hf-more,
    .spot-hf-reset,
    .spot-hf-go {
        min-height: 44px;
        border: 0;
        font-family: var(--spot-font);
        cursor: pointer;
    }

    .spot-hf-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        background: transparent;
        color: var(--spot-ink);
        font-size: 15px;
        font-weight: 600;
    }

    .spot-hf-reset {
        height: 48px;
        padding: 0 16px;
        background: transparent;
        color: var(--spot-mut);
        font-size: 15px;
        font-weight: 600;
    }

    .spot-hf-go {
        height: 48px;
        padding: 0 28px;
        border-radius: var(--spot-radius);
        background: var(--spot-red);
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 700;
    }

    .spot-hf-go:active {
        background: var(--spot-red-dark);
    }

    .spot-hf-go:disabled,
    .spot-hf-more:disabled {
        opacity: .6;
        cursor: progress;
    }

    .spot-hf-more:focus-visible,
    .spot-hf-reset:focus-visible,
    .spot-hf-go:focus-visible {
        outline: 2px solid var(--spot-focus);
        outline-offset: 2px;
    }

    .spot-hf-err {
        margin: 0;
        color: var(--spot-red-dark-fg);
        font-size: 14px;
        text-align: left;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .spot-hf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
