/* Витрина главной /Automotive_parts/ */
.td-wizard-wrap.ap-home-wrap {
    max-width: 1200px;
}
/* Хлебные крошки — как на основном сайте (bitrix breadcrumb/.default) */
.breadcrumb-wrap {
    padding: 16px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 2px;
}
.breadcrumb-wrap a,
.breadcrumb-wrap > .breadcrumb-list-item-current,
.breadcrumb-wrap > .breadcrumb-list-split {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}
.breadcrumb-wrap a {
    text-decoration: none;
}
.breadcrumb-list-item {
    color: #E23737;
}
.breadcrumb-list-item,
.breadcrumb-list-item-current {
    font-size: 1.35rem;
    font-family: "Inter-Regular", Inter, system-ui, sans-serif;
    line-height: 1.2;
}
.breadcrumb-list-item-current {
    color: #AAA6A1;
}
.breadcrumb-list-split {
    display: flex;
    align-items: center;
    justify-content: center;
}
.breadcrumb-list-split svg path {
    fill: #E23737 !important;
    stroke: none !important;
}
.ap-home-page-h1 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}
@media (min-width: 768px) {
    .ap-home-page-h1 { font-size: 1.75rem; }
}
.ap-home-hero {
    margin: 0 0 20px;
    /* Hide large promo hero; keep markup for future switch-plates / admin. */
    display: none !important;
}
.ap-home-hero .main-banner {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    min-height: 120px;
    text-decoration: none;
    color: #fff;
}
@media (min-width: 768px) {
    .ap-home-hero .main-banner { min-height: 180px; }
}
.ap-home-hero .main-banner__bg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 375px;
    object-fit: cover;
    opacity: 0.55;
}
.ap-home-hero .main-banner__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    gap: 6px;
    max-width: none;
    pointer-events: none;
    color: #fff;
}
.ap-home-hero .main-banner__headline,
.ap-home-hero .main-banner__subtitle {
    color: #fff;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 2px 10px rgba(0, 0, 0, 0.65),
        0 6px 20px rgba(0, 0, 0, 0.45);
}
.ap-home-hero .main-banner__headline {
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.2;
}
.ap-home-hero .main-banner__subtitle {
    font-size: 1.35rem;
    opacity: 0.95;
}
.ap-home-hero .main-banner-erid {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.8);
}
/* Единый блок поиска запчастей (название + фильтры). */
/* SERP: сводка фильтра + «Изменить фильтр» */
.ap-home-search-panel--serp-filter-bar {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border: none;
}
.ap-home-serp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}
.ap-home-serp-filter-bar:hover {
    border-color: #E23737;
}
.ap-home-serp-filter-bar__summary {
    flex: 1 1 200px;
    min-width: 0;
    font-family: Inter-Medium, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: #353433;
}
.ap-home-serp-filter-bar__btn.btn {
    flex: 0 0 auto;
    margin: 0;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #353433;
    font-family: Inter-Medium, sans-serif;
    font-size: 15px;
    white-space: nowrap;
    pointer-events: none;
}
.ap-home-serp-filter-bar:hover .ap-home-serp-filter-bar__btn {
    border-color: #E23737;
    color: #E23737;
}
.ap-home-filter-overlay__title {
    margin: 0 36px 14px 0;
    font-size: 1.65rem;
    font-family: JetBrainsMono-Bold, sans-serif;
    color: #1a1a1a;
}
.ap-home-filter-overlay__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ap-home-cat-plates--in-overlay {
    margin: 0 0 4px;
}
.ap-home-filter-overlay__body .ap-home-search-panel {
    margin: 0;
}
.ap-home-filter-overlay__body .ap-home-search-modes {
    margin: 0;
}
.ap-home-search-panel--in-overlay {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
/* legacy back (если остался где-то) */
.ap-home-search-panel--serp-back {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 16px;
    padding: 0;
}
.ap-home-serp-back.btn,
a.ap-home-serp-back {
    margin-right: 45px;
    width: 200px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #353433;
    font-family: Inter-Medium, sans-serif;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(53, 52, 51, 0.06);
    white-space: nowrap;
}
.ap-home-serp-back.btn:hover,
a.ap-home-serp-back:hover {
    border-color: #E23737;
    color: #E23737;
}
.ap-home-search-panel {
    --ap-ctrl-h: 32px;
    --ap-ctrl-radius: 8px;
    --ap-ctrl-border: #d5dadc;
    --ap-ctrl-fs: 14px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
    width: 100%;
    box-sizing: border-box;
}
.ap-home-search-panel__title {
    margin: 0 0 12px;
    font-size: 2rem;
    font-weight: 700;
    font-family: JetBrainsMono-Bold, sans-serif;
    color: var(--td-text, #1a1a1a);
}
.ap-home-search-panel__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.ap-home-search-panel__row--query {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: flex-end;
}
.ap-home-search-panel__row--vehicle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: flex-end;
}
@media (max-width: 900px) {
    .ap-home-search-panel__row--vehicle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ap-home-more-filters-btn {
        grid-column: 1 / -1;
    }
}
.ap-home-more-filters-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    height: var(--ap-ctrl-h) !important;
    min-height: var(--ap-ctrl-h) !important;
}
.ap-home-more-filters {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: #f8fafc;
}
.ap-home-more-filters.is-open {
    display: flex;
}
.ap-home-more-filters__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 0.85fr)) minmax(0, 1.4fr);
    gap: 8px;
    align-items: end;
}
.ap-home-more-filters__grid > .ap-home-field--city-compact,
.ap-home-more-filters__grid > .ap-home-field--compact {
    min-width: 0;
}
.ap-home-more-filters__grid > .ap-home-field--city-compact {
    max-width: 180px;
}
.ap-home-more-filters__grid > .ap-home-field--compact {
    max-width: 140px;
}
.ap-home-more-filters__grid > .ap-home-field--seller {
    grid-column: span 1;
    min-width: 160px;
    max-width: none;
}
@media (max-width: 1100px) {
    .ap-home-more-filters__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .ap-home-more-filters__grid > .ap-home-field--city-compact,
    .ap-home-more-filters__grid > .ap-home-field--compact {
        max-width: none;
    }
}
@media (max-width: 720px) {
    .ap-home-more-filters__grid {
        grid-template-columns: 1fr 1fr;
    }
}
.ap-home-oe-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
}
.ap-home-oe-inline--in-more {
    margin-top: 12px;
}
.ap-home-oe-inline__label {
    font-family: Inter-Medium, sans-serif;
    font-weight: 400;
    font-size: 15px !important;
    color: #353433;
    margin-right: 4px;
}
.ap-home-oe-inline__label .ap-home-oe-catalog-link {
    font-size: 12px;
    font-weight: 600;
    color: #E23737;
    text-decoration: none;
    cursor: pointer;
}
.ap-home-oe-inline__label .ap-home-oe-catalog-link:hover {
    color: #e54d4d;
    text-decoration: underline;
}
.ap-home-oe-inline__form,
.ap-home-oe-inline__field {
    display: flex;
    flex: 1 1 220px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.ap-home-oe-inline .ap-home-oe-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: var(--ap-ctrl-h);
    border: 1px solid var(--ap-ctrl-border, #d5dadc);
    border-radius: var(--ap-ctrl-radius, 8px);
    padding: 0 12px;
}
.ap-home-filter-actions--tools {
    margin-top: 0;
    margin-bottom: 10px;
}
.ap-home-tool-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
}
.ap-home-tool-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    margin: 0;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #353433;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ap-home-tool-chip:hover {
    border-color: #E23737;
    color: #E23737;
    background: #fff5f5;
}
.ap-home-filter-actions--footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef1f4;
    justify-content: flex-end;
}
.ap-home-filter-actions--footer .ap-home-search-find {
    min-width: 120px;
}
.ap-home-search-panel .visually-hidden,
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ap-home-field--query {
    flex: 1 1 auto;
    min-width: 0;
}
.ap-home-search-panel__submit {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    height: var(--ap-ctrl-h);
}
/* Базовая высота контролов. Select2 search__field исключён — иначе multi «Продавец» разъезжается. */
.ap-home-search-panel .ap-home-field input:not(.select2-search__field),
.ap-home-search-panel .ap-home-field select,
.ap-home-search-panel .ap-home-search-panel__submit .btn,
.ap-home-search-panel .ap-home-filter-actions .btn {
    box-sizing: border-box;
    height: var(--ap-ctrl-h) !important;
    min-height: var(--ap-ctrl-h) !important;
    max-height: var(--ap-ctrl-h) !important;
    margin: 0;
    border: 1px solid var(--ap-ctrl-border);
    border-radius: var(--ap-ctrl-radius);
    padding: 0 6px !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    font-family: Inter-Medium, sans-serif !important;
    color: #353433;
    line-height: calc(var(--ap-ctrl-h) - 2px) !important;
    background: #fff;
    vertical-align: middle;
}
/* Native select: без appearance браузер рисует системный шрифт → визуально «другой». */
.ap-home-search-panel .ap-home-field select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: Inter-Medium, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6562' d='M1.2 1.5 6 6.3l4.8-4.8 1.1 1.1L6 8.5 0.1 2.6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px 8px !important;
    padding-right: 28px !important;
}
/* «Не важно» (value="") — серый, как «Любой» */
.ap-home-search-panel .ap-home-field select:has(option[value=""]:checked) {
    color: #6b6562 !important;
}
.ap-home-search-panel .ap-home-field select:not(:has(option[value=""]:checked)) {
    color: #353433 !important;
}
.ap-home-search-panel .ap-home-field select option[value=""] {
    color: #6b6562;
    font-family: Inter-Medium, sans-serif;
    font-size: 14px;
}
.ap-home-search-panel .ap-home-field select option:not([value=""]) {
    color: #353433;
    font-family: Inter-Medium, sans-serif;
    font-size: 14px;
}
.ap-home-search-panel .ap-home-search-panel__submit .btn,
.ap-home-search-panel .ap-home-filter-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 600;
    cursor: pointer;
    line-height: 1 !important;
}
.ap-home-search-panel .ap-home-search-find.btn-secondary {
    background: #fff;
    color: #E23737;
    border-color: #E23737;
}
.ap-home-search-panel .ap-home-search-reset.btn-light,
.ap-home-search-panel a.ap-home-search-reset {
    background: #E23737;
    color: #fff;
    border-color: #E23737;
    text-decoration: none;
}
.ap-home-search-panel .ap-home-filter-actions .btn-light {
    background: #fff !important;
    color: #353433 !important;
    border-color: #cfc9c4 !important;
}
/* Select2 single = та же высота, что у input/native select */
.ap-home-search-panel .ap-home-field--searchable .select2-container {
    width: 100% !important;
}
.ap-home-search-panel .ap-home-field--searchable .select2-container .select2-selection--single {
    box-sizing: border-box !important;
    height: var(--ap-ctrl-h) !important;
    min-height: var(--ap-ctrl-h) !important;
    border: 1px solid var(--ap-ctrl-border) !important;
    border-radius: var(--ap-ctrl-radius) !important;
    background: #fff !important;
}
/* Марка/модель/поколение/регион/город/удалённость/параметры — один шрифт с «Любой» */
.ap-home-search-panel .ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__rendered {
    box-sizing: border-box;
    line-height: calc(var(--ap-ctrl-h) - 2px) !important;
    padding-left: 10px !important;
    padding-right: 42px !important;
    color: #353433;
    font-family: Inter-Medium, sans-serif !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
}
.ap-home-search-panel .ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-family: Inter-Medium, sans-serif !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    color: #6b6562 !important;
    -webkit-font-smoothing: antialiased;
}
.ap-home-search-panel .ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__rendered .ap-home-mark-opt__name {
    font-family: Inter-Medium, sans-serif !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    color: inherit;
}
.ap-home-search-panel .ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(var(--ap-ctrl-h) - 2px) !important;
    top: 0 !important;
    width: 24px;
    right: 4px;
}
.ap-home-search-panel .ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: -4px;
    height: calc(var(--ap-ctrl-h) - 2px);
    line-height: calc(var(--ap-ctrl-h) - 2px);
    float: right;
}
/* Multi (продавец): пустой = одна строка по центру; с чипами — растёт вниз (float-layout Select2). */
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple {
    box-sizing: border-box !important;
    min-height: var(--ap-ctrl-h) !important;
    height: auto !important;
    max-height: none !important;
    border: 1px solid var(--ap-ctrl-border) !important;
    border-radius: var(--ap-ctrl-radius) !important;
    padding: 3px 6px !important;
    background: #fff !important;
    position: relative;
    display: block !important;
    overflow: hidden;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    list-style: none;
    overflow: hidden; /* contain floats */
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 2px 4px 2px 0 !important;
    /* Select2 4.1: × слева — padding-left */
    padding: 0 8px 0 22px !important;
    height: 24px;
    line-height: 24px;
    background: #f1f5f9;
    border-color: #cbd5e1;
    font-family: Inter-Medium, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #353433 !important;
    border-radius: 6px;
    float: left;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100%;
    width: 20px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-radius: 6px 0 0 6px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1 !important;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding: 0 !important;
    font-family: Inter-Medium, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #353433 !important;
    line-height: 24px !important;
    vertical-align: middle;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    position: absolute !important;
    left: 8px !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-family: Inter-Medium, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b6562 !important;
    float: none !important;
    pointer-events: none;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-search--inline {
    float: left;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
}
/* «Любой» у продавца — это placeholder у search__field; нужен appearance:none + Inter */
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: Inter-Medium, sans-serif !important;
    width: 7.5em !important;
    min-width: 7.5em !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 2px !important;
    line-height: 24px !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    color: #353433 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.ap-home-search-panel .ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    font-family: Inter-Medium, sans-serif !important;
    font-size: var(--ap-ctrl-fs) !important;
    font-weight: 400 !important;
    color: #6b6562 !important;
    opacity: 1 !important;
}

/* Сетка 2×2 по макету */
.ap-home-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}
.ap-home-search-box {
    box-sizing: border-box;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    padding: 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.ap-home-search-box__row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}
.ap-home-search-box__row .ap-home-field {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.ap-home-search-box--vehicle .ap-home-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    height: auto;
    margin: 0;
}
.ap-home-search-box--vehicle .ap-home-filter-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px !important;
    font-size: 1.35rem !important;
}
.ap-home-search-box--geo .ap-home-field--compact {
    flex: 0 1 110px;
    max-width: 130px;
}
.ap-home-search-box--geo .ap-home-field--region-compact {
    flex: 0 1 160px;
    max-width: 200px;
    min-width: 120px;
}
.ap-home-search-box--geo .ap-home-field--city-compact {
    flex: 0 1 180px;
    max-width: 220px;
    min-width: 140px;
}
.ap-home-search-box--deal .ap-home-field--price {
    flex: 0 1 140px;
    max-width: 160px;
    min-width: 120px;
}
.ap-home-search-box--deal .ap-home-field--seller {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
}
.ap-home-search-panel__submit--after-filters {
    margin-top: 12px;
    width: 100%;
    justify-content: flex-start;
    height: auto;
}
.ap-home-search-panel__submit--after-filters .btn {
    flex: 0 1 auto;
    min-width: 120px;
}
@media (max-width: 640px) {
    .ap-home-search-panel__submit--after-filters {
        flex-wrap: wrap;
    }
    .ap-home-search-panel__submit--after-filters .btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}
@media (max-width: 980px) {
    .ap-home-search-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .ap-home-search-panel__row--query {
        flex-wrap: wrap;
    }
    .ap-home-search-panel__submit {
        width: 100%;
        height: auto;
    }
    .ap-home-search-panel__submit .btn {
        flex: 1 1 auto;
    }
    .ap-home-search-box__row {
        flex-wrap: wrap;
    }
    .ap-home-search-box__row .ap-home-field,
    .ap-home-search-box--geo .ap-home-field--compact,
    .ap-home-search-box--geo .ap-home-field--region-compact,
    .ap-home-search-box--geo .ap-home-field--city-compact,
    .ap-home-search-box--deal .ap-home-field--price,
    .ap-home-search-box--deal .ap-home-field--seller {
        flex: 1 1 100%;
        max-width: none;
    }
    .ap-home-search-box--vehicle .ap-home-filter-actions {
        flex-wrap: wrap;
    }
    .ap-home-search-box--vehicle .ap-home-filter-actions .btn {
        flex: 1 1 100%;
    }
}

.ap-home-filters {
    /* legacy rows unused in new grid */
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
.ap-home-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    flex: 1 1 140px;
}
.ap-home-field label {
    font-size: 1.35rem;
    color: #6b6562;
}
.ap-home-field select,
.ap-home-field input {
    box-sizing: border-box;
    height: 40px;
    border: 1px solid #d5dadc;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 38px;
    background: #fff;
}
.ap-home-field--searchable .select2-container {
    width: 100% !important;
}
.ap-home-field--searchable .select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #d5dadc;
    border-radius: 8px;
    background: #fff;
}
.ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 6px;
    padding-right: 42px;
    color: #353433;
    font-size: 1.35rem;
}
.ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    width: 18px;
    right: 2px;
}
.ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 14px;
    font-size: 14px;
    float: right;
}
.ap-home-field--searchable .select2-dropdown {
    border: 1px solid #d5dadc;
    border-radius: 8px;
    z-index: 1200;
    font-size: 1.35rem;
}
.ap-home-field--searchable .select2-search--dropdown .select2-search__field {
    border: 1px solid #d5dadc;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 1.35rem;
}
.ap-home-field--searchable .select2-results__option {
    padding: 5px 8px;
    font-size: 1.35rem;
}
.ap-home-field--seller .select2-results__option[aria-disabled=true] {
    padding: 4px 8px;
    cursor: default;
}
.ap-home-field--seller .ap-seller-sep {
    display: block;
    height: 0;
    margin: 4px 0;
    border: 0;
    border-top: 1px solid #cfc8c2;
}
.ap-home-mark-opt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    line-height: 1.15;
    vertical-align: middle;
}
.ap-home-mark-opt__logo,
.ap-home-mark-opt__logo-fb {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef1f4;
}
.ap-home-mark-opt__logo-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 600;
    color: #6c757d;
    background: #eef1f4;
}
.ap-home-mark-opt__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.35rem;
}
/* В закрытом поле — без логотипа, чтобы влезало название */
.ap-home-field--searchable .select2-selection__rendered .ap-home-mark-opt__logo,
.ap-home-field--searchable .select2-selection__rendered .ap-home-mark-opt__logo-fb {
    display: none;
}
.ap-home-field--searchable .select2-selection__rendered .ap-home-mark-opt {
    gap: 0;
}
.select2-results__option .ap-home-mark-opt {
    display: flex;
    width: 100%;
    gap: 6px;
}
.select2-results__option .ap-home-mark-opt__logo,
.select2-results__option .ap-home-mark-opt__logo-fb {
    width: 22px;
    height: 22px;
}
.select2-results__option .ap-home-mark-opt__name {
    font-size: 1.35rem;
}
.ap-home-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ap-home-filter-actions .btn,
.ap-home-filter-apply {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #E23737;
    background: #E23737;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.ap-home-filter-actions .btn:hover,
.ap-home-filter-apply:hover {
    background: #e54d4d;
    border-color: #e54d4d;
    color: #fff;
}
.ap-home-filter-actions .btn-light {
    background: #fff;
    color: #353433;
    border-color: #cfc9c4;
}
.ap-home-filter-actions .btn-light:hover {
    background: #f7f7f6;
    border-color: #bdb7b2;
    color: #353433;
}
.ap-home-filter-actions .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
/* Радиус без нас.пункта — блёклый disabled */
.ap-home-field--radius.is-disabled,
.ap-home-field--radius:has(select:disabled) {
    opacity: 0.55;
}
.ap-home-field--radius select:disabled,
.ap-home-field--radius .select2-container--disabled .select2-selection--single {
    background-color: #f0eeec !important;
    color: #9a948e !important;
    border-color: #e2ddd8 !important;
    cursor: not-allowed !important;
}
/* Десктоп: «Применить» в первой строке; адаптив: после «Доставка» */
.ap-home-filter-apply--extra {
    display: none;
}
@media (max-width: 1100px) {
    .ap-home-filter-apply--main {
        display: none !important;
    }
    .ap-home-filter-apply--extra {
        display: inline-flex;
        flex: 1 1 125px;
        max-width: 175px;
        min-width: 125px;
        align-self: flex-end;
        margin: 0;
    }
}
/* На витрине шаги визарда не показываем (на случай старого layout.php). */
.ap-home-wrap > .steps {
    display: none !important;
}
.ap-home-search-modes {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
}

/* OE-блок: кнопка каталога слева, короткая строка поиска + «Найти» справа с зазором */
.ap-home-oe-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px 28px;
    width: 100%;
}
.ap-home-oe-catalog-btn {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #E23737;
    background: #fff;
    color: #E23737;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}
.ap-home-oe-catalog-btn:hover {
    background: #fff5f5;
    border-color: #e54d4d;
    color: #e54d4d;
}
.ap-home-oe-find {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    min-width: 0;
}
.ap-home-oe-input,
.ap-home-oe-find input[type=text].ap-home-oe-input {
    flex: 0 1 200px;
    width: 200px;
    max-width: 220px;
    min-width: 140px;
    padding: 12px 14px;
    font-size: 1.35rem;
    border: 1px solid #c5cdd6;
    border-radius: 8px;
    box-sizing: border-box;
}
.ap-home-oe-find-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #E23737;
    background: #E23737;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}
.ap-home-oe-find-btn:hover {
    background: #e54d4d;
    border-color: #e54d4d;
    color: #fff;
}
@media (max-width: 640px) {
    .ap-home-oe-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ap-home-oe-catalog-btn {
        width: 100%;
    }
    .ap-home-oe-find {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    /* size=20 у input даёт огромный intrinsic width; на реальных шрифтах Android
       карточка раздувается шире viewport (в DevTools часто не видно). */
    .ap-home-oe-block,
    .ap-home-search-modes > .search-mode-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .ap-home-oe-input,
    .ap-home-oe-find input[type=text].ap-home-oe-input,
    .vin-form.ap-home-oe-find input[type=text] {
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}
.ap-home-feed-title,
.ap-home-section-title {
    text-align: center;
    margin: 35px 35px 35px;
    font-size: 2.5rem;
    font-weight: 700;
}
.ap-name-serp-empty,
.ap-name-serp-empty span {
    display: block;
    text-align: center;
    margin: 30px auto;
    font-family: Inter-Medium, sans-serif;
    font-size: 16px;
    color: #353433;
}
.ap-home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    align-items: stretch;
}
@media (min-width: 900px) {
    .ap-home-feed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ap-home-feed-grid > li {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: auto;
}
.ap-home-feed-grid > li > .mp-ads-listing-card,
.ap-home-feed-grid > li > .ap-home-feed-banner,
.ap-home-feed-grid > li > .ap-home-top100-gallery {
    width: 100%;
    max-width: none;
    min-width: 0;
}
/* Карточки в ряду — одна высота; CTA внизу */
.ap-home-feed-grid > li > .mp-ads-listing-card,
.ap-home-feed-grid > li > .ap-home-top100-gallery,
.ap-home-feed-grid > li > .ap-home-feed-banner {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}
.ap-home-feed-grid .mp-ads-listing-card.catalog__items {
    height: 100%;
    max-width: none;
}
.ap-home-feed-grid .mp-ads-listing-card .catalog__items-link {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}
.ap-home-feed-grid .mp-ads-listing-card .catalog__items-block {
    flex: 1 1 auto;
}
.ap-home-feed-grid .mp-ads-listing-card .catalog__items-block-btn {
    margin-top: auto;
}
.ap-home-feed-grid .ap-home-top100-gallery:not(.ap-home-top100-gallery--wide) {
    /* px-высота с JS; внутри карточка тянется, CTA внизу */
    display: flex;
    flex-direction: column;
}
.ap-home-feed-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: 0;
    height: auto;
    aspect-ratio: unset;
    max-height: none;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1.35;
    text-align: center;
    padding: 16px 12px;
}
.ap-home-feed-banner__title,
.ap-home-feed-banner__hint {
    display: block;
    margin: 0;
    float: none;
    width: 100%;
}
.ap-home-feed-banner__title {
    font-weight: 600;
    color: #475569;
}
.ap-home-feed-banner__hint {
    font-size: 1.35rem;
    color: #94a3b8;
}
.portal-vehicle-crosslink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 20px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #f1caca;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 55%, #f8fafc 100%);
    color: #353433;
    text-decoration: none;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.portal-vehicle-crosslink:hover {
    border-color: #E23737;
    box-shadow: 0 4px 18px rgba(226, 55, 55, 0.14);
    transform: translateY(-1px);
    color: #353433;
}
.portal-vehicle-crosslink__label {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #E23737;
}
.portal-vehicle-crosslink__hint {
    font-size: 1.35rem;
    line-height: 1.35;
    color: #64748b;
}
@media (max-width: 640px) {
    .portal-vehicle-crosslink {
        padding: 14px 16px;
    }
    .portal-vehicle-crosslink__label {
        font-size: 16px;
    }
}
.ap-home-marks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
@media (min-width: 700px) {
    .ap-home-marks-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.ap-home-mark-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #353433;
    text-align: center;
    transition: border-color .15s, box-shadow .15s;
}
.ap-home-mark-card:hover {
    border-color: #E23737;
    box-shadow: 0 2px 10px rgba(226, 55, 55, 0.12);
}
.ap-home-mark-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.ap-home-mark-card__logo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.ap-home-mark-logo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 8px;
}
.ap-home-mark-logo-fallback.is-visible {
    display: flex;
}
.ap-home-seo-mark__logo-fallback {
    display: none;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 6px;
}
.ap-home-seo-mark__logo-fallback.is-visible {
    display: inline-flex;
}
.ap-home-mark-card span {
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 600;
}
.ap-home-seo-marks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
@media (min-width: 560px) {
    .ap-home-seo-marks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 900px) {
    .ap-home-seo-marks {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.ap-home-seo-mark {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ap-home-seo-mark__logo {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 4px; /* визуально на уровне текста в плашке названия */
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 6px;
}
.ap-home-seo-mark__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ap-home-seo-mark:hover {
    background: #fff;
    border-color: #e8a5a5;
    box-shadow: 0 2px 8px rgba(226, 55, 55, .08);
}
.ap-home-seo-mark__name {
    display: block;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-home-seo-mark__ads {
    display: block;
    align-self: flex-end;
    margin: 0;
    padding: 0 2px;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}
.ap-home-seo-mark:hover .ap-home-seo-mark__name {
    border-color: #f0c4c4;
}
.ap-home-seo-catalog {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0 0 28px;
}
.ap-home-seo-section__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
}
.ap-home-seo-section .ap-home-seo-marks {
    margin-bottom: 0;
}
.ap-home-seo-section.is-abc-empty {
    display: none;
}

/* Алфавит каталога */
.ap-home-catalog-abc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
    margin: -8px 0 14px;
    padding: 0;
}
.ap-home-catalog-abc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.ap-home-catalog-abc__btn:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}
.ap-home-catalog-abc__btn.is-active {
    background: #E23737;
    border-color: #E23737;
    color: #fff;
}
.ap-home-catalog-abc__btn--all {
    min-width: auto;
    padding: 0 10px;
    font-weight: 600;
    margin-right: 4px;
}
.ap-home-seo-marks > li.is-abc-hidden {
    display: none;
}

/* Каталог — подкат 400px с размытием вниз */
.ap-home-catalog-fold {
    margin: 0 0 28px;
}
.ap-home-catalog-fold.is-abc-filtered[data-collapsed="1"] .ap-home-catalog-fold__viewport {
    max-height: none;
}
.ap-home-catalog-fold.is-abc-filtered .ap-home-catalog-fold__fade {
    display: none;
}
.ap-home-catalog-fold.is-abc-filtered .ap-home-catalog-fold__toggle {
    display: none;
}
.ap-home-catalog-fold__viewport {
    position: relative;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.ap-home-catalog-fold[data-collapsed="1"] .ap-home-catalog-fold__viewport {
    max-height: 400px;
}
.ap-home-catalog-fold[data-collapsed="0"] .ap-home-catalog-fold__viewport {
    max-height: none;
}
.ap-home-catalog-fold__inner .ap-home-seo-catalog {
    margin-bottom: 0;
}
.ap-home-catalog-fold__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 35%,
        rgba(255, 255, 255, 0.92) 70%,
        #fff 100%
    );
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    opacity: 1;
    transition: opacity 0.25s ease;
}
.ap-home-catalog-fold[data-collapsed="0"] .ap-home-catalog-fold__fade {
    opacity: 0;
    pointer-events: none;
}
.ap-home-catalog-fold__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ap-home-catalog-fold__toggle:hover {
    background: #fff;
    border-color: #e8a5a5;
    color: #E23737;
}
.ap-home-catalog-fold__toggle-less {
    display: none;
}
.ap-home-catalog-fold[data-collapsed="0"] .ap-home-catalog-fold__toggle-more {
    display: none;
}
.ap-home-catalog-fold[data-collapsed="0"] .ap-home-catalog-fold__toggle-less {
    display: inline;
}
.ap-home-catalog-fold.is-short .ap-home-catalog-fold__fade,
.ap-home-catalog-fold.is-short .ap-home-catalog-fold__toggle {
    display: none;
}
.ap-home-catalog-fold.is-short[data-collapsed="1"] .ap-home-catalog-fold__viewport {
    max-height: none;
}

/* Category pills (Grok mock) */
.ap-home-cat-plates {
    margin: 4px 0 20px;
}
.ap-home-cat-plates__title {
    text-align: center;
    margin: 28px 16px 18px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.ap-home-cat-plates--in-overlay .ap-home-cat-plates__title {
    margin: 8px 0 14px;
    font-size: 2rem;
    text-align: center;
}
.ap-home-cat-plates-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 700px) {
    .ap-home-cat-plates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1000px) {
    .ap-home-cat-plates-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .ap-home-cat-plates--pills .ap-home-cat-plates-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.ap-home-cat-plates--pills .ap-home-cat-plate {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f1f3;
    color: #353433;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.2;
    font-size: 1.25rem;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ap-home-cat-plates--pills .ap-home-cat-plate:hover {
    background: #e6e8eb;
    color: #1a1a1a;
    box-shadow: none;
}
.ap-home-cat-plates--pills .ap-home-cat-plate.is-active {
    background: #fff;
    border-color: #E23737;
    color: #E23737;
    box-shadow: 0 1px 4px rgba(226, 55, 55, 0.12);
}
.ap-home-cat-plates--pills .ap-home-cat-plate--link {
    background: #eef2ff;
}
.ap-home-cat-plates--pills .ap-home-cat-plate--all {
    background: #e8eaed;
    font-weight: 600;
}
.ap-home-cat-plates__viewport {
    overflow: visible;
}
.ap-home-cat-plates[data-expanded="0"] .ap-home-cat-plates__viewport {
    max-height: none;
}
.ap-home-cat-plates[data-expanded="1"] .ap-home-cat-plates__viewport {
    max-height: none;
}
.ap-home-cat-plates[data-expanded="0"] .ap-home-cat-plate-li--extra {
    display: none;
}
.ap-home-cat-plates__toggle {
    display: inline-flex !important;
    margin-top: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    font: inherit;
    width: auto;
    max-width: 100%;
}
.ap-home-cat-plates[data-expanded="0"] .ap-home-cat-plates__toggle-less {
    display: none;
}
.ap-home-cat-plates[data-expanded="1"] .ap-home-cat-plates__toggle-more {
    display: none;
}
.ap-home-cat-plate__icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #5c5a58;
}
.ap-home-cat-plate__icon svg {
    width: 18px;
    height: 18px;
}
.ap-home-cat-plates--pills .ap-home-cat-plate.is-active .ap-home-cat-plate__icon {
    color: #E23737;
}
.ap-home-cat-plate__label,
.ap-home-cat-plate__label p,
.ap-home-cat-plate__label span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
    font-family: Inter-Medium, sans-serif;
    font-size: 14px;
    color: #252937;
}
.ap-home-cat-plate--all .ap-home-cat-plates__toggle-more,
.ap-home-cat-plate--all .ap-home-cat-plates__toggle-less {
    font-weight: 400;
    font-size: 16px;
}
.ap-home-cat-plates-l2 {
    margin-top: 16px;
    padding: 14px 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}
.ap-home-cat-plates-l2__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
}
.ap-home-cat-plates-l2__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.ap-home-cat-plates-l2__foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}
a.ap-home-cat-plates-l2__reset.btn,
.ap-home-cat-plates-l2__reset.btn {
    background: #E23737;
    color: #fff;
    border-color: #E23737;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    line-height: 1.2;
}
a.ap-home-cat-plates-l2__reset.btn:hover,
.ap-home-cat-plates-l2__reset.btn:hover {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}
.ap-home-cat-plates-grid--l2 .ap-home-cat-plate {
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dde3ea;
    font-weight: 400;
    font-size: 1.35rem;
    padding: 8px 12px;
}

.ap-home-mid-gallery {
    margin: 8px 0 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* SERP: шины для авто — 1 ряд */
.ap-wheels-fitment-gallery {
    margin: 24px 0 28px;
}
.ap-wheels-fitment-gallery__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.ap-wheels-fitment-gallery__title {
    margin: 16px 0 !important;
    text-align: left !important;
    font-size: 2rem !important;
}
.ap-wheels-fitment-gallery__all {
    flex: 0 0 auto;
    color: #E23737;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 899px) {
    .ap-wheels-fitment-gallery__title {
        font-size: 1.4rem !important;
        margin: 12px 0 !important;
        text-align: left !important;
    }
    .ap-wheels-fitment-gallery__all {
        font-family: Inter-Medium, sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #E23737;
        text-decoration: none;
        cursor: pointer;
    }
}
.ap-wheels-fitment-gallery__all:hover {
    text-decoration: underline;
}
.ap-wheels-fitment-gallery__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.ap-wheels-fitment-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    padding: 12px 14px;
    box-sizing: border-box;
    min-height: 112px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.ap-wheels-fitment-card.is-oem {
    border-color: #86efac;
}
.ap-wheels-fitment-card:hover {
    border-color: #E23737;
}
.ap-wheels-fitment-card__media {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ap-wheels-fitment-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ap-wheels-fitment-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ap-wheels-fitment-card__headline,
.ap-wheels-fitment-card__size {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #1a1a1a;
}
.ap-wheels-fitment-card__price {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #E23737;
}
.ap-wheels-fitment-card__kind {
    display: none;
}
.ap-wheels-fitment-card__title {
    display: none;
}
.ap-wheels-fitment-card__oem {
    display: none;
}
.ap-home-overlay {
    position: fixed;
    inset: 0;
    /* Выше mobile filter-drawer (.mp-sf__sidebar ~10050), иначе Гараж/VIN/СТС «молчали» под drawer. */
    z-index: 11060;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
}
.ap-home-overlay.is-open { display: flex; }
.ap-home-overlay__box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: min(420px, calc(100% - 32px));
    position: relative;
}
/* После базового .ap-home-overlay__box (420px) — иначе width перебивается. */
.ap-home-overlay__box.ap-home-overlay__box--filter {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
    max-height: min(92vh, 960px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 22px 18px;
    box-sizing: border-box;
}
.ap-home-overlay__box.ap-home-overlay__box--filter .ap-home-search-grid {
    /* В оверлее всегда 2 колонки, пока шире ~700px (базовый брейк 980px срабатывал на 420px). */
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
    .ap-home-overlay__box.ap-home-overlay__box--filter .ap-home-search-grid {
        grid-template-columns: 1fr;
    }
}
.ap-home-overlay__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}
.ap-home-overlay__ask {
    margin: 12px 0 8px;
    font-weight: 600;
}
.ap-home-overlay__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.ap-home-overlay__box--garage {
    width: min(480px, calc(100% - 32px));
}
.ap-home-overlay__box--vin {
    width: min(480px, calc(100% - 32px));
    padding: 14px 16px 12px;
}
.ap-home-overlay__box--vin h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    padding-right: 24px;
}
.ap-home-overlay__box--vin .muted {
    margin: 0 0 4px;
    font-size: 1.35rem;
    line-height: 1.35;
}
.ap-home-overlay__box--vin .ap-home-overlay__actions {
    margin-top: 10px;
    gap: 6px;
}
.ap-home-vin-label {
    display: block;
    margin: 4px 0 2px;
    font-size: 1.35rem;
    color: #4a555b;
}
.ap-home-vin-input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #d5dadc;
    box-sizing: border-box;
}
.ap-home-sts-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ap-home-sts-file {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.ap-home-sts-file__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    margin: 0;
    cursor: pointer;
    box-sizing: border-box;
}
.ap-home-sts-file__name {
    flex: 1 1 140px;
    min-width: 0;
    font-size: 1.35rem;
    color: #6b757b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ap-home-sts-file__name.is-chosen {
    color: #1f2a30;
    font-weight: 600;
}
.ap-home-sts-input:focus-visible + .ap-home-sts-file__btn {
    outline: 2px solid #9ec5e8;
    outline-offset: 2px;
}
.ap-home-vin-summary {
    margin: 0 0 2px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: #1f2a30;
}
.ap-home-vin-hint {
    margin: 4px 0 8px;
    font-size: 1.35rem;
    line-height: 1.35;
    color: #6b757b;
}
.ap-home-vin-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ap-home-vin-fields .ap-home-field {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    gap: 2px;
}
.ap-home-vin-fields .ap-home-field label {
    font-size: 1.35rem;
    line-height: 1.2;
}
.ap-home-vin-fields .ap-home-field select {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d5dadc;
    padding: 0 10px;
    background: #fff;
}
.ap-home-overlay__box--vin .ap-home-garage-msg {
    margin: 6px 0 0;
    font-size: 1.35rem;
}
.ap-home-garage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    max-height: min(50vh, 360px);
    overflow: auto;
}
.ap-home-garage-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #d5dadc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.ap-home-garage-item:hover {
    border-color: #9aa3a8;
    background: #f7f9fa;
}
.ap-home-garage-item.is-busy {
    opacity: 0.6;
    pointer-events: none;
}
.ap-home-garage-item.is-default {
    border-color: #9ec5e8;
    background: #f3f8fc;
}
.ap-home-garage-item__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}
.ap-home-garage-item__title {
    font-weight: 600;
    color: #1f2a30;
}
.ap-home-garage-item__badge {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    background: #e8f2fb;
    color: #1a5f96;
}
.ap-home-garage-item__sub {
    font-size: 1.35rem;
    color: #6b757b;
}
.ap-home-garage-empty {
    margin-top: 12px;
}
.ap-home-garage-msg {
    margin-top: 12px;
    color: #1f2a30;
}
.ap-home-garage-msg.is-error {
    color: #b42318;
}

/* Страница марки (/bmw/): компактная шапка + свёрнутые серии */
.mark-head--vitrine {
    padding: 16px 18px;
    margin-bottom: 18px;
}
.mark-head-vitrine-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mark-head--vitrine .mark-head-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.mark-head-vitrine-text {
    min-width: 0;
    flex: 1 1 auto;
}
.mark-head-vitrine-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.35;
    font-family: Inter-SemiBold, sans-serif;
    color: var(--td-text, #353433);
}
.mark-head-vitrine-name {
    font-weight: 700;
}
.mark-head-vitrine-name-ru {
    font-weight: 600;
    margin-left: 0.15em;
}
.mark-head-vitrine-stats {
    margin-left: 0.45em;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--td-muted, #6b6562);
    white-space: nowrap;
}
.mark-head-vitrine-search {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 1.35rem;
    border: 1px solid #c5cdd6;
    border-radius: 999px;
}
.ap-mark-series-fold {
    margin-bottom: 22px;
}
.ap-mark-series-fold .series-section-title {
    margin-top: 0;
}

/* Корень каталога модификации: крупные карточки разделов + список подразделов */
.cat-grid--vitrine {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.cat-card--vitrine {
    display: block;
    min-height: 0;
    padding: 16px 16px 14px;
    box-sizing: border-box;
    overflow: hidden; /* clear float */
}
.cat-card--vitrine h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 600;
}
.cat-card--vitrine .cat-card-subs,
.cat-card--vitrine .cat-card-sub {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 400;
    color: #64748b;
    font-family: Inter-Regular, Inter-Medium, sans-serif;
}
.cat-card--vitrine .cat-card-subs {
    margin: 0;
}
.cat-card--vitrine .cat-card-sub {
    display: inline;
    margin-right: 0.35em;
    white-space: normal;
}
.cat-card-img--vitrine {
    float: right;
    width: 64px;
    height: 64px;
    margin: 0 0 8px 12px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eef2f6;
}
.ap-section-subs-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 12px;
}
.ap-section-subs-list {
    margin: 0;
}
.ap-section-sub-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.ap-section-sub-filter__label {
    font-size: 1.35rem;
    color: var(--td-muted, #6b6562);
}
.ap-section-sub-select {
    flex: 1 1 220px;
    max-width: 420px;
    padding: 8px 12px;
    font-size: 1.35rem;
    border: 1px solid #c5cdd6;
    border-radius: 8px;
    background: #fff;
}
@media (min-width: 900px) {
    .cat-grid--vitrine {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .cat-card--vitrine {
        padding: 18px 16px 16px;
        min-height: 148px;
    }
    .cat-card-img--vitrine {
        width: 72px;
        height: 72px;
        margin: 0 0 10px 14px;
    }
}
@media (max-width: 640px) {
    .mark-head-vitrine-title {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.2em 0.35em;
    }
    .mark-head-vitrine-stats {
        margin-left: 0;
        white-space: normal;
    }
}

/* Карточка объявления: левая колонка 460px (между «узко» 400 и «широко» 556) */
.ap-offer-page {
    max-width: 100%;
}
.ap-offer-page .mp-ads-wizard-preview-detail.catalog-title__block > h1.items-catalog__title {
    display: block;
}
.ap-offer-page .items-catalog__block {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
}
.ap-offer-page .items-catalog__block-price {
    width: 460px;
    max-width: 460px;
    flex: 0 0 460px;
    height: 100%;
    margin-right: 0;
    box-sizing: border-box;
}
.ap-offer-page .block-price__new {
    margin: 25px auto;
    font-size: 20px !important;
    line-height: 26px;
    font-weight: 700;
}
.ap-offer-page .items-catalog__block-feature {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ap-offer-page .items-catalog__slider {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.ap-offer-page .items-catalog__slider > .slider {
    max-width: 100%;
}
.ap-offer-page .slide-bgr {
    background-color: #ccc;
    display: flex;
    border-radius: 8px;
    max-height: 460px;
    height: 460px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ap-offer-page .sl_img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: #ccc;
}
.ap-offer-page .sl2 {
    max-width: 100%;
    overflow: hidden;
    margin-top: 0;
}
.ap-offer-page .sl2 .slick-list {
    margin: 0;
}
.ap-offer-page .sl-detail-img {
    padding-right: 12px;
}
.ap-offer-page .sl_slide img {
    width: 170px;
    height: 100px;
    margin-top: 16px;
    cursor: pointer;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #ccc;
}
.ap-offer-page .catalog-items__message-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.ap-offer-page .catalog-items__message {
    flex: 1 1 50%;
    margin-top: 0;
    min-width: 0;
    width: auto;
}
.ap-offer-page .catalog-items__message .catalog-item-button,
.ap-offer-page .catalog-items__message .btn_form {
    width: 100%;
}
.ap-offer-page .catalog-item-send-message {
    flex: 1 1 50%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
}
.ap-offer-page .catalog-item-send-message:focus,
.ap-offer-page .catalog-item-send-message:focus-visible,
.ap-offer-page .catalog-item-send-message:active {
    outline: none;
    border-color: #B0ADA9;
    box-shadow: 0 0 0 2px rgba(176, 173, 169, 0.45);
}
.ap-offer-page .items-catalog__slider > .slider:not(.slick-initialized) > .slide:not(:first-child),
.ap-offer-page .mob-items-catalog__slider-slider:not(.slick-initialized) > .slide:not(:first-child) {
    display: none;
}
@media (min-width: 991px) {
    .ap-offer-page .mob-catalog {
        display: none !important;
    }
}
@media (max-width: 1100px) {
    .ap-offer-page .items-catalog__block-price {
        width: 400px;
        max-width: 400px;
        flex-basis: 400px;
    }
    .ap-offer-page .slide-bgr {
        height: 400px;
        max-height: 400px;
    }
    .ap-offer-page .sl_slide img {
        width: 150px;
        height: 88px;
    }
}
/* Mob-клон характеристик: на desktop скрыт (oils/wheels/boards/AP) */
.ap-offer-page .catalog-items__list.catalog-items__characteristic--mob {
    display: none;
    margin: 16px 0 0;
}
@media (max-width: 990px) {
    .ap-offer-page .items-catalog__block {
        flex-direction: column;
    }
    .ap-offer-page .items-catalog__block-price,
    .ap-offer-page .items-catalog__block-feature {
        width: 100%;
        max-width: 100%;
        flex: none;
    }
    /* Десктоп-галерея скрыта (есть mob-slider). */
    .ap-offer-page .items-catalog__slider {
        display: none;
    }
    /* Характеристики на адаптиве: показываем --mob; иначе (нет клона) — основной список */
    .ap-offer-page .catalog-items__list.catalog-items__characteristic--mob {
        display: block !important;
    }
    .ap-offer-page:has(.catalog-items__characteristic--mob)
        .catalog-items__list.catalog-items__characteristic:not(.catalog-items__characteristic--mob) {
        display: none;
    }
    .ap-offer-page .items-catalog__block-price .items-catalog__block-info,
    .ap-offer-page .items-catalog__block-price .block-price_items {
        display: none !important;
    }
    .ap-offer-page .mob-catalog {
        display: block;
        margin-top: 24px;
    }
    .ap-offer-page .mob-catalog .items-catalog__block-info,
    .ap-offer-page .mob-catalog .block-price_items {
        display: flex !important;
    }
    .ap-offer-page .slide-bgr {
        height: 50vw;
        max-height: 420px;
    }
}
