/* ==========================================================================
   spot_overlays.css — редизайн, волна 3: меню телефона, лист «Фильтры», шторки «Марка», «Модель»,
   «Выбор города», «Районы» (доски Menu, Filters, FiltersBrands, FiltersBrandOn, FiltersModels, City, CityDistricts).
   Цвета, радиусы и размеры — токены var(--spot-…) из spot_ui.css. Телефон первичен: поля 16px, зоны касания 44px,
   поля ввода 16px (iOS не увеличивает страницу), безопасные зоны; без действий только по наведению.
   Поведение — templates/js/spot_overlays.js; открытие/закрытие листов — прежний vendor.js.
   ========================================================================== */

/* ---------- Общее: полноэкранный лист (.mobile-fixed-menu) ---------- */
.spot-ov {
    font-family: var(--spot-font);
    color: var(--spot-ink);
    -webkit-text-size-adjust: 100%;
}

.spot-ov .mobile-fixed-menu-header.spot-ov-head {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    height: 56px;
    padding: 0 var(--spot-gutter);
    border-bottom: 1px solid var(--spot-line);
    background: var(--spot-surface);
    box-sizing: border-box;
}

.spot-ov .spot-ov-head .mobile-fixed-menu-header-close {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0 -10px 0 0;
    border-radius: 22px;
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-ov .spot-ov-head .mobile-fixed-menu-header-title {
    grid-column: 2;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
}

.spot-ov .mobile-fixed-menu-content {
    height: calc(100% - 56px);
    padding: 0 var(--spot-gutter);
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.spot-ov .mobile-fixed-menu-header-close:focus-visible,
.spot-ov button:focus-visible,
.spot-ov a:focus-visible,
.spot-sheet button:focus-visible,
.spot-sheet a:focus-visible,
.spot-sheet .spot-check-row:focus-within {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

/* ---------- Меню (доска Menu) ---------- */
.spot-menu .mobile-fixed-menu-content {
    padding: 0;
    background: var(--spot-bg);
}

.spot-menu .spot-menu-in.mobile-fixed-menu-content-bg-white {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px var(--spot-gutter) calc(24px + var(--spot-safe-bottom, 0px));
    border-radius: 0;
    background: transparent;
}

.spot-menu .spot-menu-card {
    margin: 0;
    padding: 0;
    border-radius: var(--spot-radius-l);
    background: var(--spot-surface);
    text-align: right;
    overflow: hidden;
}

/* карточка гостя: подарок, текст, красная кнопка */
.spot-menu .spot-menu-guest {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.spot-menu .spot-menu-guest-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spot-menu .spot-menu-gift,
.spot-menu .spot-menu-guest .medium-avatar-img {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--spot-red);
    color: #fff;
}

.spot-menu .spot-menu-guest .medium-avatar-img {
    border-radius: 22px;
    background: var(--spot-bg);
    color: var(--spot-ink-2);
}

.spot-menu .spot-menu-guest h6 {
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
    color: var(--spot-ink);
    overflow-wrap: anywhere;
}

.spot-menu .spot-menu-guest p {
    margin: 0;
    font-size: 14px;
    line-height: 19px;
    color: var(--spot-ink-2);
}

.spot-menu .spot-menu-guest p strong {
    color: var(--spot-ink);
}

.spot-menu a.spot-menu-cta.card-user-link-profile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--spot-control-h-l);
    padding: 10px 16px;
    box-sizing: border-box;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
}

.spot-menu a.spot-menu-cta.card-user-link-profile:active {
    background: var(--spot-red-dark);
}

/* карточка пользователя */
.spot-menu .spot-menu-me {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 8px;
}

.spot-menu .spot-menu-me .medium-avatar-img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: var(--spot-bg);
}

.spot-menu .spot-menu-me .medium-avatar-img img {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.spot-menu .spot-menu-me-txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.spot-menu .spot-menu-me-txt strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
}

.spot-menu .spot-menu-me-txt a.card-user-link-profile {
    display: inline-flex !important;
    align-items: center;
    min-height: 32px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--spot-red-fg) !important;
    font-size: 15px;
    font-weight: 600;
}

.spot-menu .spot-menu-me a.card-user-link-logout {
    flex: 0 0 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 22px;
    background: none;
    color: var(--spot-ink-2) !important;
}

/* строки меню */
.spot-menu .spot-menu-list.deny-margin-15,
.spot-menu .mobile-fixed-menu-content-footer-link.spot-menu-list {
    margin: 0;
    padding: 0;
}

.spot-menu .spot-menu-row,
.spot-menu .mobile-fixed-menu-content-link a.spot-pwa-install,
.spot-menu .spot-menu-userlinks > a,
.spot-menu .spot-menu-userlinks .dropdown-box-list-nested-toggle > a,
.spot-menu .spot-menu-userlinks .dropdown-box-list-nested > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 8px 16px 8px 12px;
    box-sizing: border-box;
    border: 0;
    background: none;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
}

.spot-menu .spot-menu-row::after,
.spot-menu .mobile-fixed-menu-content-link a.spot-pwa-install::after,
.spot-menu .spot-menu-userlinks > a::after {
    content: "";
    position: absolute;
    right: 64px;
    left: 0;
    bottom: 0;
    height: 1px;
    background: var(--spot-line);
}

.spot-menu .spot-menu-list > :last-child::after,
.spot-menu .spot-menu-lc .spot-menu-row::after,
.spot-menu .spot-menu-userlinks > a:last-child::after {
    display: none;
}

.spot-menu .spot-menu-ic {
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--spot-bg);
    color: var(--spot-ink);
}

.spot-menu .spot-menu-add .spot-menu-ic {
    background: var(--spot-red-soft);
    color: var(--spot-red-fg);
}

.spot-menu .spot-menu-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.spot-menu .spot-menu-sub {
    display: block;
    color: var(--spot-mut);
    font-size: 13px;
    line-height: 17px;
    font-weight: 500;
}

.spot-menu .spot-menu-val {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    color: var(--spot-mut);
    font-size: 14px;
    font-weight: 500;
}

.spot-menu .spot-menu-lname {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-menu .spot-menu-lc .spot-menu-label {
    flex: 0 1 auto;
}

.spot-menu .spot-menu-lc .spot-menu-val {
    margin-right: auto;
}

.spot-menu .spot-menu-code {
    flex: 0 0 auto;
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--spot-bg);
    color: var(--spot-ink-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    vertical-align: 1px;
}

.spot-menu .spot-menu-chev {
    flex: 0 0 18px;
    color: var(--spot-mut);
}

/* строка «Установить приложение» — её дописывает spot_pwa.js (<a class="spot-pwa-install">), без стрелки */
.spot-menu .mobile-fixed-menu-content-link a.spot-pwa-install::before {
    content: "";
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--spot-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231B1D21' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* меню кабинета (Profile::outUserMenu) */
.spot-menu .spot-menu-userlinks {
    padding: 4px 0;
}

.spot-menu .spot-menu-userlinks a i,
.spot-menu .spot-menu-userlinks a svg {
    flex: 0 0 auto;
}

.spot-menu .spot-menu-userlinks .dropdown-box-list-nested > a {
    padding-right: 32px;
    font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
    .spot-menu .spot-menu-row:hover,
    .spot-menu .mobile-fixed-menu-content-link a.spot-pwa-install:hover,
    .spot-menu .spot-menu-userlinks a:hover {
        background: var(--spot-bg);
    }
}

.spot-menu .spot-menu-row:active,
.spot-menu .spot-menu-userlinks a:active {
    background: var(--spot-bg);
}

/* ---------- Лист «Фильтры» (доски Filters, FiltersBrandOn) ---------- */
.spot-flt .spot-ov-head .spot-flt-reset {
    grid-column: 3;
    justify-self: end;
    min-height: 44px;
    margin-left: -8px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--spot-red-fg);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.spot-flt .spot-flt-search {
    padding-top: 12px;
}

.spot-flt .spot-flt-search .header-wow-mobile-sticky-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--spot-control-h);
    padding: 0 12px;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
}

.spot-flt .spot-flt-search .header-wow-mobile-sticky-search-icon {
    position: static;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--spot-mut);
}

.spot-flt .spot-flt-search .header-wow-mobile-sticky-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--spot-ink);
    font-family: var(--spot-font);
}

.spot-flt .modal-form-filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 12px;
}

.spot-flt .modal-form-filter .row {
    display: block;
    margin: 0;
}

.spot-flt .modal-form-filter [class*="col-"] {
    max-width: none;
    padding: 0;
    flex: none;
}

.spot-flt .mt15,
.spot-flt .mb15 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* заголовки разделов: подписи .col-lg-4 из прежней вёрстки */
.spot-flt .modal-form-filter .col-lg-4 > label {
    display: block;
    margin: 0 0 12px;
    color: var(--spot-ink);
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
}

.spot-flt .spot-flt-hide {
    display: none !important;
}

/* поле-кнопка и системный выбор: «Город или регион», «Категория», «Модель», «Район» */
.spot-flt .spot-flt-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.spot-flt .spot-flt-pair .spot-flt-cell:only-child {
    grid-column: 1 / -1;
}

.spot-flt .spot-flt-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 6px 12px 6px 36px;
    box-sizing: border-box;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    text-align: right;
    cursor: pointer;
}

.spot-flt .spot-flt-field-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--spot-mut);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.spot-flt .spot-flt-field-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
}

.spot-flt .spot-flt-field .spot-flt-chev {
    position: absolute;
    left: 12px;
    top: 50%;
    margin-top: -9px;
    color: var(--spot-ink-2);
    pointer-events: none;
}

.spot-flt .spot-flt-selwrap {
    min-height: 44px;
    padding: 0;
}

.spot-flt .spot-flt-selwrap .spot-flt-field-label {
    position: absolute;
    right: 12px;
    top: 6px;
    left: 36px;
    pointer-events: none;
}

.spot-flt select.spot-flt-native {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px 0 36px;
    border: 0;
    border-radius: var(--spot-radius);
    background: transparent;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.spot-flt .spot-flt-selwrap .spot-flt-field-label + select.spot-flt-native {
    height: 54px;
    padding-top: 18px;
    font-weight: 700;
}

.spot-flt .select-box-subcategory:empty,
.spot-flt .select-box-city-options:empty,
.spot-flt .select-box-subcategory:not(:has(*)),
.spot-flt .select-box-city-options:not(:has(*)) {
    display: none;
}

.spot-flt .select-box-subcategory,
.spot-flt .select-box-city-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -16px;
}

.spot-flt .select-box-subcategory .spot-flt-selwrap,
.spot-flt .select-box-city-options .spot-flt-field {
    min-height: 48px;
}

.spot-flt .select-box-city-options .ads-create-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    font-family: var(--spot-font);
}

/* блок фильтров: группы «Дополнительно» / «Ещё параметры» — порядком, без перестановки полей (URL не меняется) */
.spot-flt .select-box-filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spot-flt .select-box-filters > .spot-flt-gh[data-g="extra"] { order: 9; margin-bottom: -12px; }
.spot-flt .select-box-filters > .spot-flt-g-extra { order: 10; }
.spot-flt .select-box-filters > .spot-flt-gh[data-g="more"] { order: 19; margin-bottom: -12px; }
.spot-flt .select-box-filters > .spot-flt-g-more { order: 20; }

.spot-flt .spot-flt-gh {
    font-size: 16px;
    line-height: 21px;
    font-weight: 700;
}

.spot-flt .select-box-filters > .spot-flt-g-extra,
.spot-flt .select-box-filters > .spot-flt-g-more {
    margin-top: -24px;
}

.spot-flt .select-box-filters > .spot-flt-gh + .spot-flt-g-extra,
.spot-flt .select-box-filters > .spot-flt-gh + .spot-flt-g-more {
    margin-top: 0;
}

.spot-flt .filter-items-spacing {
    margin: 0;
    padding: 0;
}

.spot-flt .filter-items.catalog-list-options {
    margin: 0;
    padding: 0;
    border: 0;
}

/* цена: сегменты валюты и поля с единицей */
.spot-flt .spot-flt-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 14px;
    background: var(--spot-field);
}

.spot-flt .spot-flt-seg .spot-flt-seg-btn.currency-button {
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--spot-mut);
    font-family: var(--spot-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
    white-space: normal;
    cursor: pointer;
}

.spot-flt .spot-flt-seg .spot-flt-seg-btn[aria-pressed="true"] {
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(20, 22, 26, .10);
}

.spot-flt .filter-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    height: auto !important;
    margin: 0;
}

.spot-flt .filter-input > div {
    position: relative;
    float: none;
    width: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: var(--spot-control-h);
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-mut);
}

.spot-flt .filter-input > div:focus-within {
    border-color: var(--spot-ink);
    box-shadow: 0 0 0 1px var(--spot-ink);
}

.spot-flt .filter-input > div:first-child {
    margin-left: 0;
}

.spot-flt .filter-input > div > span {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: var(--spot-mut);
    font-size: 15px;
    line-height: 1;
}

.spot-flt .filter-input input {
    flex: 1 1 auto;
    width: 40px;
    min-width: 0;
    height: 42px !important;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    box-shadow: none !important;
    outline: none;
}

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

/* статус и чипы (фильтры типа «кнопки»): флажки прежние, внешний вид — таблетки */
.spot-flt .spot-flt-status .filter-items-spacing,
.spot-flt .spot-flt-chips .uni-select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-flt .spot-flt-status .custom-control.custom-checkbox {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.spot-flt .spot-flt-status .custom-control-input {
    position: absolute;
    z-index: -1;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.spot-flt .spot-flt-status .custom-control-label,
.spot-flt .spot-flt-chips .uni-select-list > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border-radius: 22px;
    background: var(--spot-bg);
    color: var(--spot-ink);
    font-size: 15px;
    line-height: 19px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.spot-flt .spot-flt-status .custom-control-label::before,
.spot-flt .spot-flt-status .custom-control-label::after {
    display: none;
}

.spot-flt .spot-flt-status .custom-control-input:checked + .custom-control-label,
.spot-flt .spot-flt-chips .uni-select-list > label:has(input:checked) {
    background: var(--spot-inv);
    color: #fff;
    font-weight: 700;
}

.spot-flt .spot-flt-status .custom-control-input:checked + .custom-control-label::before,
.spot-flt .spot-flt-chips .uni-select-list > label:has(input:checked)::before {
    content: "";
    display: block;
    position: static;
    width: 14px;
    height: 14px;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    transform: none;
    box-shadow: none;
}

.spot-flt .spot-flt-status .custom-control-input:focus-visible + .custom-control-label,
.spot-flt .spot-flt-chips .uni-select-list > label:has(input:focus-visible) {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-flt .spot-flt-chips .uni-select {
    height: auto;
    border: 0;
    background: none;
}

.spot-flt .spot-flt-chips .uni-select-name {
    display: none;
}

.spot-flt .spot-flt-chips .uni-select-list {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.spot-flt .spot-flt-chips .uni-select-list > label span {
    display: inline;
    padding: 0;
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
}

.spot-flt .spot-flt-chips .uni-select-list > label i {
    display: none !important;
}

/* флажок в чипе — в порядке Tab (раньше display:none, клавиатурой недоступен) */
.spot-flt .spot-flt-chips .uni-select-list input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* марка: плитки с логотипами, лента с прокруткой */
.spot-flt .spot-flt-tiles {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--spot-gutter));
    padding: 2px var(--spot-gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--spot-gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}

.spot-flt .spot-flt-tiles::-webkit-scrollbar {
    display: none;
}

.spot-flt .spot-flt-tile {
    position: relative;
    flex: 0 0 auto;
    min-width: 72px;
    max-width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-height: 80px;
    padding: 10px 4px 6px;
    box-sizing: border-box;
    border: 1px solid var(--spot-line);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    scroll-snap-align: start;
    cursor: pointer;
}

.spot-flt .spot-flt-tile[aria-checked="true"] {
    border: 2px solid var(--spot-ink);
    padding: 9px 3px 5px;
}

.spot-flt .spot-flt-tile .spot-logo {
    width: 40px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.spot-flt .spot-flt-tile-all svg {
    width: 26px;
    height: 26px;
    color: var(--spot-ink-2);
}

.spot-flt .spot-flt-tile-name {
    display: flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    overflow-wrap: break-word;
    text-align: center;
    font-size: 11px;
    line-height: 13px;
    font-weight: 600;
}

.spot-flt .spot-flt-tile-on {
    position: absolute;
    top: -6px;
    left: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--spot-surface);
    border-radius: 12px;
    background: var(--spot-inv);
    color: #fff;
}

.spot-flt .spot-flt-tile-on svg {
    width: 12px;
    height: 12px;
}

.spot-flt .spot-flt-model {
    margin-top: -12px !important;
}

/* переключатели («Дополнительно», тип switch_btn) */
.spot-flt .spot-flt-switchfi .col-lg-4,
.spot-flt .spot-flt-drillfi .col-lg-4 {
    display: none;
}

.spot-flt .spot-flt-switch,
.spot-flt .spot-flt-drill {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid var(--spot-line);
    background: none;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    text-align: right;
    cursor: pointer;
}

.spot-flt .spot-flt-switch-name,
.spot-flt .spot-flt-drill-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.spot-flt .spot-flt-sw {
    position: relative;
    flex: 0 0 51px;
    width: 51px;
    height: 31px;
    border-radius: 16px;
    background: #D6D9DE;
    transition: background-color .2s;
}

.spot-flt .spot-flt-sw::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 27px;
    height: 27px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(20, 22, 26, .2);
    transition: transform .2s;
}

.spot-flt .spot-flt-switch[aria-checked="true"] .spot-flt-sw {
    background: var(--spot-green);
}

.spot-flt .spot-flt-switch[aria-checked="true"] .spot-flt-sw::after {
    transform: translateX(-20px);
}

.spot-flt .spot-flt-drill-val {
    flex: 0 1 45%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    color: var(--spot-mut);
    font-size: 14px;
    font-weight: 500;
}

.spot-flt .spot-flt-drill-val.spot-flt-drill-on {
    color: var(--spot-ink);
    font-weight: 600;
}

.spot-flt .spot-flt-drill .spot-flt-chev {
    flex: 0 0 18px;
    color: var(--spot-mut);
}

/* срок размещения: сегменты */
.spot-flt .spot-flt-period .col-lg-8 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--spot-field);
}

.spot-flt .spot-flt-period .custom-control.custom-radio {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.spot-flt .spot-flt-period .custom-control-input {
    position: absolute;
    z-index: -1;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.spot-flt .spot-flt-period .custom-control-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 4px 4px;
    box-sizing: border-box;
    border-radius: 10px;
    color: var(--spot-mut);
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.spot-flt .spot-flt-period .custom-control-label::before,
.spot-flt .spot-flt-period .custom-control-label::after {
    display: none;
}

.spot-flt .spot-flt-period .custom-control-input:checked + .custom-control-label {
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(20, 22, 26, .10);
}

.spot-flt .spot-flt-period .custom-control-input:focus-visible + .custom-control-label {
    outline: 2px solid var(--spot-focus);
    outline-offset: 1px;
}

/* «Применить» — внизу листа (липкая панель задаётся в styles.css, здесь только вид) */
.spot-flt .modal-form-filter .spot-filter-actions {
    margin: 0 calc(-1 * var(--spot-gutter)) !important;
    padding: 12px var(--spot-gutter) calc(12px + var(--spot-safe-bottom, 0px));
    border-top: 1px solid var(--spot-line);
    background: var(--spot-surface);
    box-shadow: none;
}

.spot-flt .spot-filter-actions .spot-flt-apply.btn-custom,
.spot-sheet .spot-btn-red {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--spot-control-h-l);
    margin: 0;
    border: 0;
    border-radius: var(--spot-radius);
    background: var(--spot-red);
    color: #fff !important;
    font-family: var(--spot-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.spot-flt .spot-filter-actions .spot-flt-apply.btn-custom:active,
.spot-sheet .spot-btn-red:active {
    background: var(--spot-red-dark);
}

/* ---------- Шторки (доски FiltersBrands, FiltersModels, City, CityDistricts) ---------- */
.spot-sheet[hidden] {
    display: none !important;
}

.spot-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-end;
    font-family: var(--spot-font);
    color: var(--spot-ink);
}

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

.spot-sheet-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100% - 40px - var(--spot-safe-top, 0px));
    padding: 0 0 var(--spot-safe-bottom, 0px);
    border-radius: var(--spot-radius-sheet) var(--spot-radius-sheet) 0 0;
    background: var(--spot-surface);
    box-shadow: var(--spot-shadow-sheet);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.spot-sheet-tall .spot-sheet-panel,
.spot-city-sheet .spot-sheet-panel {
    height: calc(100% - 40px - var(--spot-safe-top, 0px));
}

.spot-sheet.spot-sheet-in .spot-sheet-panel {
    animation: spot-sheet-up .24s cubic-bezier(.2, .8, .2, 1);
}

.spot-sheet.spot-sheet-in .spot-sheet-scrim {
    animation: spot-sheet-fade .24s ease-out;
}

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

@keyframes spot-sheet-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spot-sheet-head {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    min-height: 60px;
    padding: 12px calc(16px + var(--spot-safe-left, 0px)) 4px calc(16px + var(--spot-safe-right, 0px));
    touch-action: none;
}

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

.spot-sheet-title {
    grid-column: 2;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
}

.spot-sheet-back {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: none;
    color: var(--spot-ink);
    cursor: pointer;
}

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

.spot-sheet-close {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--spot-bg);
    color: var(--spot-ink);
    cursor: pointer;
}

.spot-sheet-close::after {
    content: "";
    position: absolute;
    inset: -6px;
}

.spot-sheet-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--spot-control-h);
    margin: 8px calc(16px + var(--spot-safe-left, 0px)) 8px calc(16px + var(--spot-safe-right, 0px));
    padding: 0 12px;
    border-radius: var(--spot-radius);
    background: var(--spot-field);
    color: var(--spot-mut);
}

.spot-sheet-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.spot-sheet-search input::placeholder {
    color: var(--spot-mut);
    opacity: 1;
}

.spot-sheet-search:focus-within {
    box-shadow: 0 0 0 2px var(--spot-focus);
}

.spot-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 calc(12px + var(--spot-safe-left, 0px)) 12px calc(12px + var(--spot-safe-right, 0px));
}

.spot-sheet-group[hidden],
.spot-sheet .spot-row[hidden],
.spot-sheet-empty[hidden],
.spot-city-list[hidden],
.spot-city-countries[hidden] {
    display: none !important;
}

.spot-sheet-caption {
    margin: 12px 0 4px;
    padding: 0 4px;
    color: var(--spot-mut);
    font-size: 13px;
    line-height: 17px;
    font-weight: 600;
}

.spot-sheet .spot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin: 2px 0;
    padding: 4px 12px;
    box-sizing: border-box;
    border: 0;
    border-radius: var(--spot-radius);
    background: none;
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    line-height: 21px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.spot-sheet .spot-row:active {
    background: var(--spot-bg);
}

.spot-sheet .spot-row.spot-row-on {
    background: var(--spot-red-soft);
}

.spot-sheet .spot-row-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.spot-sheet .spot-row-check {
    flex: 0 0 20px;
    color: var(--spot-red-fg);
}

.spot-sheet .spot-row[aria-busy="true"] {
    opacity: .6;
}

.spot-sheet .spot-logo {
    flex: 0 0 32px;
    width: 32px;
    height: 22px;
    object-fit: contain;
}

.spot-sheet .spot-logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--spot-bg);
    color: var(--spot-ink-2);
    font-size: 12px;
    font-weight: 800;
}

.spot-sheet .spot-brand-row {
    font-weight: 500;
}

/* строки с флажком: «Модель», «Ещё параметры», «Районы» */
.spot-sheet .spot-check-row {
    position: relative;
    font-weight: 500;
}

.spot-sheet .spot-check {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.spot-sheet .spot-check-box {
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1.5px solid var(--spot-field-border);
    border-radius: 6px;
    background: var(--spot-surface);
    color: transparent;
}

.spot-sheet .spot-check-box svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.spot-sheet .spot-check:checked ~ .spot-check-box {
    border-color: var(--spot-red);
    background: var(--spot-red);
    color: #fff;
}

.spot-area-sheet .spot-check:checked ~ .spot-check-box,
#spot-area-sheet .spot-check:checked ~ .spot-check-box {
    border-color: var(--spot-ink);
    background: var(--spot-inv);
}

.spot-sheet .spot-check:checked ~ .spot-row-text {
    font-weight: 700;
}

.spot-sheet .spot-check:focus-visible ~ .spot-check-box {
    outline: 2px solid var(--spot-focus);
    outline-offset: 2px;
}

.spot-sheet-empty {
    margin: 24px 0;
    color: var(--spot-mut);
    font-size: 15px;
    text-align: center;
}

.spot-sheet-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 10px calc(16px + var(--spot-safe-left, 0px)) 10px calc(16px + var(--spot-safe-right, 0px));
    border-top: 1px solid var(--spot-line);
    background: var(--spot-surface);
}

.spot-sheet .spot-btn-line {
    flex: 0 0 auto;
    min-height: var(--spot-control-h-l);
    padding: 0 20px;
    border: 1px solid var(--spot-field-border);
    border-radius: var(--spot-radius);
    background: var(--spot-surface);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.spot-sheet .spot-btn-line + .spot-btn-red {
    flex: 1 1 auto;
    width: auto;
}

/* чипы стран в шторке города */
.spot-sheet .spot-cchips {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 calc(16px + var(--spot-safe-left, 0px)) 8px calc(16px + var(--spot-safe-right, 0px));
}

.spot-sheet .spot-cchip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 22px;
    background: var(--spot-bg);
    color: var(--spot-ink);
    font-family: var(--spot-font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.spot-sheet .spot-cchip .spot-cchip-check {
    display: none;
}

.spot-sheet .spot-cchip[aria-pressed="true"] {
    background: var(--spot-inv);
    color: #fff;
    font-weight: 700;
}

.spot-sheet .spot-cchip[aria-pressed="true"] .spot-cchip-check {
    display: block;
}

.spot-city-sheet .spot-city-row {
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .spot-sheet .spot-row:hover {
        background: var(--spot-bg);
    }

    .spot-sheet .spot-row.spot-row-on:hover {
        background: var(--spot-red-soft);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spot-sheet.spot-sheet-in .spot-sheet-panel,
    .spot-sheet.spot-sheet-in .spot-sheet-scrim {
        animation: none;
    }

    .spot-sheet-panel,
    .spot-flt .spot-flt-sw,
    .spot-flt .spot-flt-sw::after {
        transition: none;
    }
}

/* ---------- Десктоп (≥ 992): шторки — окно по центру; листы — колонка 560px ---------- */
@media (min-width: 992px) {
    .spot-sheet {
        align-items: center;
        justify-content: center;
    }

    .spot-sheet-panel,
    .spot-sheet-tall .spot-sheet-panel,
    .spot-city-sheet .spot-sheet-panel {
        width: 480px;
        height: auto;
        max-height: min(720px, calc(100vh - 80px));
        border-radius: var(--spot-radius-l);
    }

    .spot-sheet-tall .spot-sheet-panel,
    .spot-city-sheet .spot-sheet-panel {
        height: min(720px, calc(100vh - 80px));
    }

    .spot-sheet-grab {
        display: none;
    }

    .spot-ov .mobile-fixed-menu-content > *,
    .spot-ov .spot-ov-head {
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }

    .spot-ov .spot-ov-head {
        width: 100%;
    }
}

.spot-ov:focus,
.spot-sheet-panel:focus {
    outline: none;
}

/* отметка выбранного города */
.spot-city-sheet .spot-city-row .spot-row-check {
    display: none;
}

.spot-city-sheet .spot-city-row.spot-row-on .spot-row-check {
    display: block;
}

.spot-sheet .spot-area-all:not(.spot-row-on) .spot-row-check {
    visibility: hidden;
}
