/*
 * REDESIGN-STEP1 (Grok Bot, 30.10.2026) — KS v2 listing layer for /wheels_market/ (light theme, mobile-first).
 * Scope: .mp-sf.ks2 (root class from home.php when wm_v2_enabled()). Field names / URL / logic untouched.
 * Desktop (≥901px) stays as before except the «Найдено N» row.
 */
.mp-sf.ks2 {
    --ks2-text: #1f2328;
    --ks2-muted: #5f6772;
    --ks2-line: #e6e8eb;
    --ks2-chip: #f2f3f5;
    --ks2-chip-on: #1f2328;
    --ks2-red: #e23737;
    --ks2-red-h: #e54d4d;
    --ks2-radius: 12px;
    --ks2-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ks2-tpl, .ks2-tpl[hidden] { display: none !important; }

/* «Найдено N · Сохранить · вид» — все ширины */
.mp-sf.ks2 .ks2-found {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 4px 0 12px; font-family: var(--ks2-font);
}
.mp-sf.ks2 .ks2-found__t { margin: 0; font-size: 15px; line-height: 20px; color: var(--ks2-muted); font-weight: 400; }
.mp-sf.ks2 .ks2-found__n { color: var(--ks2-text); font-weight: 600; }
.mp-sf.ks2 .ks2-found__act { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mp-sf.ks2 .ks2-ibtn {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 18px;
    background: var(--ks2-chip); color: var(--ks2-text); font: 500 14px/1 var(--ks2-font); cursor: pointer;
}
.mp-sf.ks2 .ks2-ibtn.is-done { background: #e8f5ec; color: #17803d; }
.mp-sf.ks2 .ks2-seg { display: none; }
.mp-sf.ks2 .ks2-found .ap-serp-toolbar__share { margin: 0; }

/* Sheet (bottom sheet) — appended to body */
.ks2-sheet-wrap { position: fixed; inset: 0; z-index: 11200; display: none; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.ks2-sheet-wrap.is-open { display: block; }
.ks2-sheet__bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.ks2-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; max-height: 82dvh; display: flex; flex-direction: column;
    background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    padding-bottom: env(safe-area-inset-bottom, 0px); animation: ks2-up .18s ease-out;
}
@keyframes ks2-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ks2-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: #d5d9de; margin: 8px auto 0; flex: 0 0 auto; }
.ks2-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 8px; flex: 0 0 auto; }
.ks2-sheet__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: #1f2328; }
.ks2-x { width: 36px; height: 36px; border: 0; border-radius: 18px; background: #f2f3f5; color: #1f2328; font-size: 22px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.ks2-sheet__body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 12px; flex: 1 1 auto; overscroll-behavior: contain; }
.ks2-sheet__foot { display: flex; gap: 8px; padding: 10px 16px 12px; border-top: 1px solid #eef0f2; flex: 0 0 auto; background: #fff; }

/* Shared: list rows, checks, chips, buttons */
.ks2-list { list-style: none; margin: 0; padding: 0; }
.ks2-list li { margin: 0; padding: 0; }
.ks2-list__item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 2px;
    border: 0; border-bottom: 1px solid #f0f1f3; background: none; color: #1f2328; font: 400 16px/20px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box;
}
.ks2-list__item:hover { color: #1f2328; text-decoration: none; }
.ks2-list__item.is-on { font-weight: 600; }
.ks2-list__item[disabled], .ks2-list__item.is-disabled { color: #a3a9b1; cursor: default; }
.ks2-check { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: #e23737 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.ks2-row {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 2px; border: 0; border-bottom: 1px solid #f0f1f3;
    background: none; text-align: left; cursor: pointer; box-sizing: border-box; font-family: inherit;
}
.ks2-row__l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ks2-row__k { font-size: 13px; line-height: 16px; color: #5f6772; }
.ks2-row__v { font-size: 16px; line-height: 20px; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Wheel-Size поколение/версия: мельче, одна строка (годы не рвут поле на 2 строки) */
.mp-sf.ks2 .ks2-row--wrap .ks2-row__v {
    font-size: 13px !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.mp-sf.ks2 .js-wm-car-block .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 13px !important;
    line-height: 40px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 28px !important;
}
.mp-sf.ks2 .js-wm-car-block #wm-gen + .select2-container .select2-selection--single,
.mp-sf.ks2 .js-wm-car-block #wm-mod + .select2-container .select2-selection--single,
.mp-sf.ks2 .js-wm-car-block .js-wm-gen + .select2-container .select2-selection--single,
.mp-sf.ks2 .js-wm-car-block .js-wm-mod + .select2-container .select2-selection--single {
    height: 42px !important;
    min-height: 42px !important;
}
.mp-sf.ks2 .js-wm-car-block .select2-container--default .select2-selection--single {
    height: 42px !important;
}
.mp-sf.ks2 .js-wm-car-block .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}
.ks2-row__v.is-empty { color: #8a919a; }
.ks2-row__arr { flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #9aa1aa; border-top: 2px solid #9aa1aa; transform: rotate(45deg); margin-right: 6px; }
.ks2-row[disabled] { cursor: default; }
.ks2-row[disabled] .ks2-row__v { color: #a3a9b1; }
.ks2-row__clr { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 14px; border: 0; background: #f2f3f5; color: #5f6772; font-size: 16px; line-height: 1; }
.ks2-togs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.ks2-tog {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #dde1e6;
    background: #fff; color: #1f2328; font: 500 15px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer;
}
.ks2-tog.is-on { background: #1f2328; border-color: #1f2328; color: #fff; }
.ks2-tog svg { width: 18px; height: 18px; }
.ks2-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0;
    font: 600 16px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none;
}
.ks2-btn--primary { flex: 1 1 auto; background: #e23737; color: #fff; }
.ks2-btn--primary:hover { background: #e54d4d; color: #fff; }
.ks2-btn--primary[disabled], .ks2-btn--primary.is-zero { background: #eceef1; color: #8a919a; cursor: default; }
.ks2-btn--ghost { flex: 0 0 auto; background: #f2f3f5; color: #1f2328; }
.ks2-sub-search { width: 100%; height: 44px; margin: 0 0 6px; padding: 0 14px; border: 1px solid #dde1e6; border-radius: 12px; font: 400 16px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; box-sizing: border-box; background: #f7f8f9; }
.ks2-empty { padding: 16px 0; color: #5f6772; font-size: 15px; }
.ks2-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 11300; padding: 10px 16px; border-radius: 12px; background: #1f2328; color: #fff; font: 500 14px/1.3 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

@media (min-width: 901px) {
    .mp-sf.ks2 .ks2-bar { display: none !important; }
}

/* ======================= MOBILE (≤900px) ======================= */
@media (max-width: 900px) {
    .mp-sf.ks2 { font-family: var(--ks2-font); }

    /* --- Sticky search row: [поиск][Фильтры N] --- */
    .mp-sf.ks2 .mp-sf__sticky-search:not(.mp-sf__sticky-search--ghost) { padding: 8px 12px 6px !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
    .mp-sf.ks2 .mp-sf__sticky-search:not(.mp-sf__sticky-search--ghost) > .mp-sf__sticky-row { padding-right: 0 !important; gap: 8px; }
    html.ks2-js .mp-sf.ks2 .mp-sf__sticky-row .mp-sf__filter-icon,
    html.ks2-js .mp-sf.ks2 .mp-sf__sticky-row .mp-sf__sticky-submit { display: none !important; }
    .mp-sf.ks2 .mp-sf__sticky-q {
        height: 40px !important; min-height: 40px; border-radius: 12px !important; border: 0 !important; background-color: #f2f3f5 !important;
        padding-left: 38px !important; font-size: 16px !important; color: var(--ks2-text);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%235f6772' stroke-width='1.8'/%3E%3Cpath d='M16 16l4 4' stroke='%235f6772' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important; background-position: 11px 50% !important; background-size: 20px !important;
    }
    .mp-sf.ks2 .mp-sf__sticky-q::placeholder { color: #8a919a; }
    .mp-sf.ks2 .ks2-filters-btn {
        display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 40px; padding: 0 12px; border: 0; border-radius: 12px;
        background: #f2f3f5; color: var(--ks2-text); font: 500 15px/1 var(--ks2-font); cursor: pointer; white-space: nowrap;
    }
    .mp-sf.ks2 .ks2-filters-btn__n {
        display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
        background: var(--ks2-red); color: #fff; font-size: 12px; font-weight: 700; box-sizing: border-box;
    }

    /* --- Chip strip --- */
    .mp-sf.ks2 .ks2-bar { display: flex; align-items: center; gap: 8px; margin: 8px -12px 0; padding: 0 0 2px 12px; }
    html.ks2-js .mp-sf.ks2 .ks2-bar > .ks2-filters-btn { display: none; }
    .mp-sf.ks2 .ks2-chips {
        display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
        -webkit-overflow-scrolling: touch; padding: 0 0 2px; scroll-padding-left: 12px;
    }
    .mp-sf.ks2 .ks2-chips::-webkit-scrollbar { display: none; }
    .mp-sf.ks2 .ks2-chip {
        display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 36px; padding: 0 12px; border: 0; border-radius: 18px;
        background: var(--ks2-chip); color: var(--ks2-text); font: 500 14px/1 var(--ks2-font); white-space: nowrap; cursor: pointer; text-decoration: none;
    }
    .mp-sf.ks2 .ks2-chip:hover { color: var(--ks2-text); text-decoration: none; }
    .mp-sf.ks2 .ks2-chip.is-on { background: var(--ks2-chip-on); color: #fff; }
    .mp-sf.ks2 .ks2-chip .ks2-chev { opacity: .7; }
    .mp-sf.ks2 .ks2-chips__sel { display: contents; }
    .mp-sf.ks2 .ks2-chip--sel { background: #fdecec; color: #b42323; }
    .mp-sf.ks2 .ks2-chip--sel:hover { color: #b42323; }
    .mp-sf.ks2 .ks2-chip--sel .ks2-chip__x { font-size: 17px; line-height: 1; margin-left: 2px; }
    .mp-sf.ks2 .ks2-dock { display: flex; gap: 6px; flex: 0 0 auto; padding-right: 12px; }
    .mp-sf.ks2 .ks2-dock:empty { display: none; }
    /* FAB (избранное/корзина/поддержка) перенесены в док полосы — не перекрывают поиск и карточки */
    .mp-sf.ks2 .ks2-dock > * {
        position: static !important; inset: auto !important; transform: none !important; margin: 0 !important;
        width: 36px !important; height: 36px !important; min-width: 0 !important; box-shadow: none !important; flex: 0 0 auto;
    }
    .mp-sf.ks2 .ks2-dock a, .mp-sf.ks2 .ks2-dock button {
        width: 36px !important; height: 36px !important; min-width: 0 !important; border-radius: 18px !important; box-shadow: none !important;
        display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important;
    }
    .mp-sf.ks2 .ks2-dock svg { width: 18px !important; height: 18px !important; }
    .mp-sf.ks2 .ks2-dock #ks-support-fab, .mp-sf.ks2 .ks2-dock .ks-support-fab { background: #f2f3f5 !important; color: #e23737 !important; border: 0 !important; }

    /* --- Content: результаты с первого экрана --- */
    .mp-sf.ks2 .mp-sf__content { padding-top: 6px; }
    .mp-sf.ks2 .wm-serp-context,
    .mp-sf.ks2 .wm-sort-bar,
    .mp-sf.ks2 .wm-serp-results > h2.ap-home-feed-title:first-of-type,
    .mp-sf.ks2 .wm-special-offers > h2.ap-home-feed-title,
    .mp-sf.ks2 .wm-size-suggest__note { display: none !important; }
    html.ks2-js .mp-sf.ks2 .ap-serp-toolbar { display: none !important; }
    .mp-sf.ks2 .ap-home-feed-title { font: 700 18px/24px var(--ks2-font) !important; letter-spacing: 0 !important; margin: 20px 0 10px !important; padding: 0 !important; }
    .mp-sf.ks2 .ap-home-feed-title::before { display: none !important; }
    .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
    .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chip { min-height: 36px; display: inline-flex; align-items: center; border-radius: 18px; white-space: nowrap; }

    /* --- Grid & card (эталон: supplies_offer_card приложения) --- */
    .mp-sf.ks2 .ap-home-feed-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 10px !important; margin: 0 !important; padding: 0 !important; }
    .mp-sf.ks2 .ap-home-feed-grid > .catalog-slide { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
    .mp-sf.ks2 .ap-home-feed-grid > .ap-home-feed-slot--banner { grid-column: 1 / -1; }
    .mp-sf.ks2 .wm-card {
        position: relative; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
        box-shadow: none !important; background: transparent !important; font-family: var(--ks2-font);
    }
    .mp-sf.ks2 .wm-card .catalog__items-link { display: flex !important; flex-direction: column; height: 100%; padding: 0 !important; }
    .mp-sf.ks2 .wm-card .catalog__items-picture {
        position: relative; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; margin: 0 0 8px !important; padding: 0 !important;
        border-radius: 12px !important; overflow: hidden; background: #f2f3f5 !important;
    }
    .mp-sf.ks2 .wm-card .catalog__items-picture a, .mp-sf.ks2 .wm-card .catalog-item-pictures { display: block; width: 100% !important; height: 100% !important; }
    .mp-sf.ks2 .wm-card .catalog__items-picture-image { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 0 !important; }
    .mp-sf.ks2 .wm-card .catalog__items-picture-image.is-nophoto { object-fit: contain !important; padding: 18%; box-sizing: border-box; }
    .mp-sf.ks2 .wm-card .catalog__items-fav {
        position: absolute !important; top: 6px !important; right: 6px !important; left: auto !important; z-index: 3; width: 32px !important; height: 32px !important;
        border-radius: 16px; background: rgba(255,255,255,.9) !important; display: flex !important; align-items: center; justify-content: center; box-shadow: none !important;
    }
    .mp-sf.ks2 .wm-card .catalog__items-block { display: flex !important; flex-direction: column; gap: 4px; padding: 0 2px !important; text-align: left !important; flex: 1 1 auto; }
    .mp-sf.ks2 .wm-card .mp-ads-listing-card__heading { display: flex !important; flex-direction: column; gap: 2px; margin: 0 !important; text-align: left !important; align-items: stretch !important; }
    .mp-sf.ks2 .wm-card .catalog__items-price {
        order: -1; margin: 0 !important; padding: 0 !important; text-align: left !important; justify-content: flex-start !important;
        color: var(--ks2-text) !important; font: 700 17px/22px var(--ks2-font) !important;
    }
    .mp-sf.ks2 .wm-card .catalog__items-price * { color: inherit !important; font: inherit !important; }
    .mp-sf.ks2 .wm-card .wm-price-unit { color: var(--ks2-muted) !important; font-weight: 500 !important; font-size: 13px !important; }
    .mp-sf.ks2 .wm-card .mp-ads-listing-card__title-link { display: block; text-align: left !important; color: var(--ks2-text) !important; text-decoration: none; }
    .mp-sf.ks2 .wm-card .mp-ads-listing-card__title {
        margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; text-align: left !important;
        font: 400 14px/18px var(--ks2-font) !important; color: var(--ks2-text) !important;
        display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important;
    }
    .mp-sf.ks2 .wm-card .mp-ads-listing-card__vehicle { margin: 2px 0 0 !important; text-align: left !important; font: 500 13px/16px var(--ks2-font) !important; color: var(--ks2-text) !important; }
    html.ks2-js .mp-sf.ks2 .wm-card.ks2-card-done .mp-ads-listing-card__vehicle { display: none !important; }
    .mp-sf.ks2 .wm-card .catalog__items-tab {
        display: block !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; text-align: left !important;
        font: 400 13px/17px var(--ks2-font) !important; color: var(--ks2-muted) !important;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mp-sf.ks2 .wm-card .catalog__items-tab-item {
        display: inline !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important;
        font: inherit !important; color: inherit !important; min-height: 0 !important; height: auto !important;
    }
    .mp-sf.ks2 .wm-card .catalog__items-tab-item + .catalog__items-tab-item::before { content: " · "; }
    .mp-sf.ks2 .wm-card .catalog__items-tab-item.ks2-size { color: var(--ks2-text) !important; font-weight: 500 !important; }
    .mp-sf.ks2 .wm-card .catalog__items-location {
        display: flex !important; align-items: center; gap: 4px; margin: auto 0 0 !important; padding: 2px 0 0 !important; border: 0 !important;
        justify-content: flex-start !important; font: 400 13px/17px var(--ks2-font) !important; color: var(--ks2-muted) !important;
    }
    .mp-sf.ks2 .wm-card .catalog__items-location p { margin: 0 !important; font: inherit !important; color: inherit !important; }
    .mp-sf.ks2 .wm-card .catalog__items-location svg { display: none; }
    .mp-sf.ks2 .wm-card .wm-card-special-badge {
        position: absolute; z-index: 2; top: 8px; left: 8px; margin: 0 !important; padding: 3px 8px !important; border: 0 !important; border-radius: 8px !important;
        background: #e23737 !important; color: #fff !important; font: 600 11px/14px var(--ks2-font) !important; letter-spacing: 0 !important; width: auto !important;
    }
    .mp-sf.ks2 .wm-card .catalog-sticker-list:empty { display: none; }
    .mp-sf.ks2 .wm-card [class*="cart"] .btn, .mp-sf.ks2 .wm-card .wm-card-cart { min-height: 36px; }

    /* --- Вид «списком» --- */
    .mp-sf.ks2 .ks2-seg { display: inline-flex; background: var(--ks2-chip); border-radius: 18px; padding: 2px; }
    .mp-sf.ks2 .ks2-seg__b { width: 36px; height: 32px; border: 0; border-radius: 16px; background: none; color: var(--ks2-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
    .mp-sf.ks2 .ks2-seg__b[aria-pressed="true"] { background: #fff; color: var(--ks2-text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
    .mp-sf.ks2 .ks2-ibtn__t { display: none; }
    .mp-sf.ks2 .ks2-ibtn { width: 36px; padding: 0; justify-content: center; }
    .mp-sf.ks2.ks2-view-list .ap-home-feed-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .mp-sf.ks2.ks2-view-list .wm-card .catalog__items-link { display: grid !important; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; }
    .mp-sf.ks2.ks2-view-list .wm-card .catalog__items-picture { grid-row: 1 / span 2; margin: 0 !important; }
    .mp-sf.ks2.ks2-view-list .wm-card .catalog__items-fav { left: 96px !important; right: auto !important; }

    /* --- Полный экран фильтров --- */
    .mp-sf.ks2 .mp-sf__sidebar { padding: 0 16px !important; font-family: var(--ks2-font); }
    .mp-sf.ks2 .mp-sf__sidebar-head { margin: 0 -16px 4px !important; padding: 10px 12px !important; padding-top: max(10px, env(safe-area-inset-top, 0px)) !important; gap: 8px; }
    .mp-sf.ks2 .mp-sf__sidebar-title { font-size: 18px !important; line-height: 24px; flex: 1 1 auto; text-align: center; order: 2; }
    .mp-sf.ks2 .mp-sf__sidebar-close { order: 1; width: 40px; height: 40px; border-radius: 20px; }
    .mp-sf.ks2 .ks2-head-reset { order: 3; border: 0; background: none; color: var(--ks2-red); font: 500 15px/1 var(--ks2-font); padding: 10px 4px; text-decoration: none; }
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .mp-sf-switches,
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-panel__title,
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-reset { display: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-box { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ap-home-field { margin: 0 !important; }
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-has-row > label,
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-has-row > select,
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-has-row > .select2,
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-has-row > .select2-container { display: none !important; }
    html.ks2-js .mp-sf.ks2 .mp-sf__sidebar .ap-home-field[hidden] { display: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ks2-row__k { font-size: 13px !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ks2-row__v { font-size: 16px !important; }
    /* WMTABS1112: вкладки режима снова видны в колонке фильтров */
    .mp-sf.ks2 .mp-sf__sidebar .wm-mode-toggle-row { display: block !important; margin: 0 0 14px; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-mode-toggle-row.ks2-gone { display: block !important; } /* страховка от старого hide */
    .mp-sf.ks2 .mp-sf__sidebar .wm-mode-toggle { display: flex; background: var(--ks2-chip); border-radius: 12px; padding: 3px; border: 0 !important; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-mode-toggle__btn { flex: 1 1 0; min-height: 40px; border: 0 !important; border-radius: 10px !important; background: none !important; color: var(--ks2-text) !important; font: 500 15px/1.2 var(--ks2-font) !important; box-shadow: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-mode-toggle__btn.is-active { background: #fff !important; box-shadow: 0 1px 3px rgba(0,0,0,.1) !important; font-weight: 600 !important; }
    .mp-sf.ks2 .mp-sf__sidebar .js-wm-car-block { margin: 0 0 12px; }
    /* WMTABS1112: Марка и модель / Гараж / VIN / СТС — 2×2, без ellipsis */
    .mp-sf.ks2 .mp-sf__sidebar .ksctx-tabs[hidden],
    .mp-sf.ks2 .mp-sf__sidebar .ksctx-tools-host[hidden] { display: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ksctx-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        margin: 0 0 12px;
        border-radius: 12px;
        background: var(--ks2-chip, #f2f3f5);
    }
    .mp-sf.ks2 .mp-sf__sidebar .ksctx-tab {
        flex: none !important;
        width: 100%;
        min-width: 0;
        height: auto !important;
        min-height: 36px;
        padding: 8px 10px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.25 !important;
        text-align: center;
        font-size: 13px !important;
    }
    .mp-sf.ks2 .mp-sf__sidebar .ap-home-tool-chip { min-height: 40px !important; border-radius: 20px !important; font: 500 14px/1 var(--ks2-font) !important; background: var(--ks2-chip) !important; border: 0 !important; color: var(--ks2-text) !important; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip { min-height: 40px !important; padding: 0 14px !important; border-radius: 20px !important; border: 1px solid #dde1e6 !important; background: #fff !important; font: 500 15px/1 var(--ks2-font) !important; display: inline-flex !important; align-items: center; gap: 6px; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip.is-active, .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip:has(input:checked) { background: var(--ks2-chip-on) !important; border-color: var(--ks2-chip-on) !important; color: #fff !important; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip:has(input:checked) .wm-filter-chip__text { color: #fff !important; }
    .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip__box { display: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ks2-group-t { margin: 18px 0 2px; font: 700 16px/22px var(--ks2-font); color: var(--ks2-text); }
    .mp-sf.ks2 .mp-sf__sidebar-footer { padding: 10px 0 12px !important; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important; border-top: 1px solid #eef0f2; background: #fff; gap: 8px !important; }
    .mp-sf.ks2 .mp-sf__sidebar-footer .wm-search-submit {
        flex: 1 1 auto; width: 100%; min-height: 50px !important; border-radius: 12px !important; border: 0 !important;
        background: var(--ks2-red) !important; color: #fff !important; font: 600 16px/1.2 var(--ks2-font) !important;
    }
    .mp-sf.ks2 .mp-sf__sidebar-footer .wm-search-submit.is-zero { background: #eceef1 !important; color: #8a919a !important; }
    /* Вложенный список вместо <select> */
    .mp-sf.ks2 .ks2-sub {
        position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; background: #fff; padding: 0 16px;
        padding-top: env(safe-area-inset-top, 0px);
    }
    .mp-sf.ks2 .ks2-sub.is-open { display: flex; }
    .mp-sf.ks2 .ks2-sub__head { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 10px 12px; border-bottom: 1px solid #eef1f4; }
    .mp-sf.ks2 .ks2-sub__back { width: 40px; height: 40px; border: 0; border-radius: 20px; background: #f2f3f5; font-size: 20px; line-height: 1; color: var(--ks2-text); }
    .mp-sf.ks2 .ks2-sub__t { margin: 0; font: 700 18px/24px var(--ks2-font); }
    .mp-sf.ks2 .ks2-sub__body { flex: 1 1 auto; overflow: auto; padding: 10px 0 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}
/* в шторке/полном экране поверх шапки сайта */
.ks2-sheet .ks2-sub { position: absolute; inset: 0; z-index: 5; display: none; flex-direction: column; background: #fff; padding: 0 16px; border-radius: 16px 16px 0 0; }
.ks2-sheet .ks2-sub.is-open { display: flex; }
.ks2-sheet .ks2-sub__head { display: flex; align-items: center; gap: 8px; padding: 12px 0 8px; }
.ks2-sheet .ks2-sub__back { width: 40px; height: 40px; border: 0; border-radius: 20px; background: #f2f3f5; font-size: 20px; line-height: 1; color: #1f2328; }
.ks2-sheet .ks2-sub__t { margin: 0; font: 700 18px/24px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.ks2-sheet .ks2-sub__body { flex: 1 1 auto; overflow: auto; padding: 0 0 16px; overscroll-behavior: contain; }
.ks2-sheet .ks2-row__k { font-size: 13px; }
body.ks2-sheet-open { overflow: hidden; }

/* sheet grows when a nested list is open */
.ks2-sheet.ks2-host-sub { height: min(82vh, 680px); }
.ks2-sheet .ks2-sub__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
    html body .mp-sf.ks2 .ks2-dock button.ks-support-fab, html body .mp-sf.ks2 .ks2-dock .ks-support-fab.ks2-docked {
        width: 36px !important; height: 36px !important; min-height: 0 !important; max-height: 36px !important;
        min-width: 0 !important; max-width: 36px !important; padding: 0 !important; bottom: auto !important; right: auto !important;
    }
    /* бейдж — внизу фото, чтобы не наезжать на «избранное» */
    .mp-sf.ks2 .wm-card .wm-card-special-badge { top: 0 !important; bottom: auto !important; margin: calc(75% - 30px) 0 0 !important; max-width: calc(100% - 16px) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block !important; }
    .mp-sf.ks2.ks2-view-list .wm-card .wm-card-special-badge { margin: 8px 0 0 !important; max-width: 100px !important; }
}
/* без JS: остаётся прежняя разметка/форма (GET), интерактивные v2-элементы скрыты */
html:not(.ks2-js) .mp-sf.ks2 .ks2-bar, html:not(.ks2-js) .mp-sf.ks2 .ks2-found__act { display: none !important; }

/* ======================= STEP1B (Grok Bot, 30.10.2026) ======================= */
/* общий бар контекста в строке вкладок раздела */
.ks2-tabsrow { display: flex; flex-direction: column; }
.ks2-tabsrow > .ksctx { order: 0; }
.ks2-tabsrow > .wm-offer-tabs { order: 1; }
@media (min-width: 901px) {
    .ks2-tabsrow { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e6e8eb; margin-bottom: 16px; }
    .ks2-tabsrow > .wm-offer-tabs { order: 0; border-bottom: 0 !important; margin-bottom: 0 !important; flex: 0 0 auto; }
    .ks2-tabsrow > .ksctx { order: 1; margin: 0 0 6px; flex: 0 1 auto; min-width: 0; }
}
.ks2-gone { display: none !important; }

/* ---- own sticky: CSS only, no JS geometry ---- */
html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search-ph { display: none !important; height: 0 !important; }
html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search {
    position: sticky !important; top: var(--ks2-stick-top, 0px) !important; left: auto !important; right: auto !important; width: auto !important;
    z-index: 60 !important; transform: none !important; transition: box-shadow .15s ease-out !important; background: #fff;
}
/* шапка разделов не схлопывает верхнюю строку на скролле: она уезжает вместе со страницей (без сдвига контента на 40px за 0.7s) */
html.ks2-own body.td-parts-page header.header.scroll .header-top { max-height: 56px !important; min-height: 40px !important; opacity: 1 !important; transform: none !important; border-top-width: 1px !important; border-bottom-width: 1px !important; pointer-events: auto !important; overflow: visible !important; }
html.ks2-own body.td-parts-page header.header .header-top { transition: none !important; }
html.ks2-own body.td-parts-page header.header .catalogs-header-container-pc { transition: none !important; }

@media (min-width: 901px) {
    /* колонка фильтров: в потоке, без внутренней прокрутки; кнопка «Показать N» прилипает к низу экрана */
    html.ks2-own .mp-sf.ks2 .mp-sf__sidebar-col { align-self: stretch; }
    html.ks2-own .mp-sf.ks2 #mp-sf-sidebar.mp-sf__sidebar {
        position: relative !important; top: auto !important; left: auto !important; width: auto !important; height: auto !important; max-height: none !important;
        overflow: visible !important; transform: none !important; padding: 0 !important; border: 1px solid #e6e8eb; border-radius: 14px; background: #fff; box-shadow: none !important;
    }
    html.ks2-own .mp-sf.ks2 .mp-sf__sidebar-body, html.ks2-own .mp-sf.ks2 .mp-sf__sidebar-scroll { overflow: visible !important; max-height: none !important; height: auto !important; padding: 0 !important; }
    .mp-sf.ks2 .mp-sf-switches { padding: 14px 16px 4px; }
    .mp-sf.ks2 .mp-sf-switches__title, .mp-sf.ks2 .ks2-sec__t, .mp-sf.ks2 .ap-home-field > label {
        background: none !important; padding: 0 !important; margin: 0 0 8px !important; text-transform: none !important; letter-spacing: 0 !important;
        font: 400 15px/20px Inter-SemiBold, Inter, sans-serif !important; color: #1f2328 !important;
    }
    .mp-sf.ks2 .mp-sf-chip { min-height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 16px; font-size: 14px; }
    .mp-sf.ks2 .ks2-colhead { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 0; }
    .mp-sf.ks2 .ks2-colhead__t { margin: 0; font: 400 18px/24px Inter-Bold, Inter, sans-serif; color: #1f2328; }
    .mp-sf.ks2 .ks2-colhead__reset { color: #e23737 !important; font-size: 14px; text-decoration: none !important; }
    .mp-sf.ks2 .ks2-colhead__reset:hover { text-decoration: underline !important; }
    /* WMTABS1112 desktop: режим + ksctx tools 2×2 (раньше CSS был только в max-width:900) */
    .mp-sf.ks2 .wm-mode-toggle-row { display: block !important; margin: 10px 0 12px; }
    .mp-sf.ks2 .wm-mode-toggle-row.ks2-gone { display: block !important; }
    .mp-sf.ks2 .wm-mode-toggle { display: flex; background: #f2f3f5; border-radius: 12px; padding: 3px; border: 0 !important; }
    .mp-sf.ks2 .wm-mode-toggle__btn { flex: 1 1 0; min-height: 40px; border: 0 !important; border-radius: 10px !important; background: none !important; color: #1f2328 !important; font: 500 14px/1.2 Inter, sans-serif !important; box-shadow: none !important; white-space: normal; }
    .mp-sf.ks2 .wm-mode-toggle__btn.is-active { background: #fff !important; box-shadow: 0 1px 3px rgba(0,0,0,.1) !important; font-weight: 600 !important; }
    .mp-sf.ks2 .ksctx-tabs[hidden],
    .mp-sf.ks2 .ksctx-tools-host[hidden] { display: none !important; }
    .mp-sf.ks2 .ksctx-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        margin: 0 0 12px;
        border-radius: 12px;
        background: #f2f3f5;
    }
    .mp-sf.ks2 .ksctx-tab {
        flex: none !important;
        width: 100%;
        min-width: 0;
        height: auto !important;
        min-height: 36px;
        padding: 8px 10px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.25 !important;
        text-align: center;
        font-size: 13px !important;
    }
    .mp-sf.ks2 #wm-home-form { padding: 0 16px; }
    .mp-sf.ks2 .ap-home-search-grid { display: block !important; }
    .mp-sf.ks2 .ap-home-search-box { padding: 14px 0 !important; margin: 0 !important; border: 0 !important; border-top: 1px solid #eef0f2 !important; background: none !important; box-shadow: none !important; }
    .mp-sf.ks2 .ap-home-search-box__row { display: flex !important; flex-direction: column; gap: 14px !important; margin: 0 !important; }
    .mp-sf.ks2 .ap-home-field { width: 100% !important; max-width: none !important; margin: 0 !important; flex: 0 0 auto !important; }
    .mp-sf.ks2 .ks2-row { display: none !important; }                    /* мобильные строки — только ≤900 */
    .mp-sf.ks2 .select2-container { width: 100% !important; }
    .mp-sf.ks2 .select2-container .select2-selection--single { height: 40px !important; border-radius: 10px !important; border-color: #dde1e6 !important; }
    .mp-sf.ks2 .select2-container .select2-selection--single .select2-selection__rendered { line-height: 38px !important; padding-left: 12px !important; }
    .mp-sf.ks2 .select2-container .select2-selection--single .select2-selection__arrow { height: 38px !important; }
    .mp-sf.ks2 .ap-home-field select:not(.select2-hidden-accessible) { height: 40px; border-radius: 10px; border: 1px solid #dde1e6; padding: 0 10px; width: 100%; background: #fff; }
    /* размер одной строкой: Ширина / Профиль / Диаметр */
    .mp-sf.ks2 .ks2-size-row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
    .mp-sf.ks2 .ks2-size-row[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-sf.ks2 .ks2-size-row > .ap-home-field > label { font: 400 12px/16px Inter-Regular, Inter, sans-serif !important; color: #5f6772 !important; margin: 0 0 4px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mp-sf.ks2 .ks2-size-row .select2-selection__rendered { padding-left: 6px !important; padding-right: 14px !important; font-size: 12px !important; }
    .mp-sf.ks2 .wm-size-fmt-tabs { margin: 0 0 10px; }
    /* сезон / шипы — чекбоксы */
    .mp-sf.ks2 .ks2-sec-host { display: flex; flex-direction: column; gap: 14px; }
    .mp-sf.ks2 .ks2-checks { display: flex; flex-direction: column; gap: 2px; }
    .mp-sf.ks2 .ks2-check-item { display: flex !important; align-items: center; gap: 10px; min-height: 32px; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
        font: 400 15px/20px Inter-Regular, Inter, sans-serif !important; color: #1f2328 !important; cursor: pointer; width: auto !important; height: auto !important; }
    .mp-sf.ks2 .ks2-check-item > svg, .mp-sf.ks2 .ks2-check-item > img, .mp-sf.ks2 .ks2-check-item .wm-filter-chip__icon { display: none !important; }
    /* сегменты: состояние, доставка, наличие */
    .mp-sf.ks2 .ks2-segfld > select, .mp-sf.ks2 .ks2-segfld > .select2-container { display: none !important; }
    .mp-sf.ks2 .ks2-segctl { display: flex; padding: 3px; border-radius: 10px; background: #f2f3f5; gap: 2px; }
    .mp-sf.ks2 .ks2-segctl__b { flex: 1 1 0; min-width: 0; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: #1f2328; cursor: pointer; font: 400 14px/1 Inter-Regular, Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mp-sf.ks2 .ks2-segctl__b.is-on { background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.14); font-family: Inter-SemiBold, Inter, sans-serif; }
    /* «Показать N» внизу колонки, прилипает к низу экрана */
    html.ks2-own .mp-sf.ks2 .ks2-colfoot {
        position: sticky !important; bottom: 0 !important; z-index: 5; display: flex !important; padding: 12px 16px !important; margin: 0 !important; width: auto !important;
        background: #fff !important; border-top: 1px solid #eef0f2; border-radius: 0 0 14px 14px; box-shadow: 0 -6px 14px rgba(15,23,42,.06);
    }
    .mp-sf.ks2 .ks2-colfoot .ap-home-search-reset { display: none !important; }
    .mp-sf.ks2 .ks2-colfoot .wm-search-submit { flex: 1 1 auto; width: 100% !important; height: 44px !important; border-radius: 10px !important; font: 400 15px/1 Inter-SemiBold, Inter, sans-serif !important; white-space: nowrap; }
    .mp-sf.ks2 .ks2-colfoot .wm-search-submit.is-zero { background: #eceef1 !important; color: #8a919a !important; border-color: #eceef1 !important; }
    .mp-sf.ks2 .ks2-filter-wait {
        display: none; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px;
        padding: 10px 12px; border-radius: 10px; background: #f5f7fa; color: #3d4654;
        font: 400 14px/1.3 Inter-Regular, Inter, sans-serif;
    }
    .mp-sf.ks2 .ks2-filter-wait.is-on { display: flex; }
    .mp-sf.ks2 .ks2-filter-wait__spin {
        width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
        border: 2px solid #c5ccd6; border-top-color: #2f6fed;
        animation: ks2-filter-spin .7s linear infinite;
    }
    @keyframes ks2-filter-spin { to { transform: rotate(360deg); } }
    .mp-sf.ks2.ks2-filter-waiting .wm-search-submit.is-loading {
        font-size: 13px !important; white-space: normal !important; line-height: 1.2 !important;
    }
    /* строка поиска справа: одна высота, без рамки-карточки */
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search { padding: 8px 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
    /* выбранные фильтры + «Найдено N» — одна компактная строка */
    .mp-sf.ks2 .ks2-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
    .mp-sf.ks2 .ks2-achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 16px; background: #f2f3f5; color: #1f2328 !important; text-decoration: none !important; font: 400 14px/1 Inter-Regular, Inter, sans-serif; }
    .mp-sf.ks2 .ks2-achip:hover { background: #e9ebee; }
    .mp-sf.ks2 .ks2-achip__x { font-size: 16px; color: #5f6772; }
    .mp-sf.ks2 .ks2-active__reset { color: #e23737 !important; font-size: 14px; text-decoration: none !important; margin-left: 4px; }
    .mp-sf.ks2.ks2-has-active .ap-serp-toolbar .ap-serp-chip { display: none !important; }
    .mp-sf.ks2 .ks2-found { margin: 0 0 8px; min-height: 32px; }
    .mp-sf.ks2 .ks2-found__t { font-size: 14px; }
    .mp-sf.ks2 .ks2-found .ks2-ibtn { height: 32px; font-size: 14px; }
    /* попап авто */
    .ksctx-pop .ks2-carblock { padding: 0 !important; border: 0 !important; margin: 0 !important; }
}
/* попап авто: общие (все ширины) */
.ksctx-pop .ks2-carblock .ap-home-search-box__row { display: flex !important; flex-direction: column; gap: 10px; }
.ksctx-pop .ks2-carblock .ap-home-field { width: 100% !important; margin: 0 !important; }
.ksctx-pop .ks2-carblock .ap-home-field > label { display: block; margin: 0 0 4px; font: 400 13px/16px Inter-Regular, Inter, sans-serif; color: #5f6772; }
.ksctx-pop .ks2-carblock .ap-home-tool-chips { display: flex; gap: 8px; margin: 0 0 12px; }
.ksctx-pop .ks2-carblock .ap-home-tool-chip { flex: 1 1 0; height: 36px; border-radius: 10px; }
.ksctx-pop .ks2-carblock .wm-size-suggest { display: none; }
.ksctx-pop .ks2-carblock .select2-container { width: 100% !important; }

@media (max-width: 900px) {
    /* t1492u: full text Spezpredlozhenie, slim pill, no font-size:0 / ::before. */
    .mp-sf.ks2 .wm-card .wm-card-special-badge { font-size: 11px !important; font-weight: 500 !important; line-height: 14px !important; font-family: Inter-Medium, Inter, Arial, sans-serif !important; padding: 3px 8px !important; border-radius: 4px !important; width: auto !important; min-width: max-content !important; max-width: calc(100% - 44px) !important; height: auto !important; box-shadow: none !important; white-space: nowrap !important; }
    .mp-sf.ks2 .wm-card .wm-card-special-badge::before,
    .mp-sf.ks2 .wm-card .wm-card-special-badge::after { content: none !important; display: none !important; }
    /* мобильный sticky: строка поиска под фиксированной шапкой, без JS */
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__main { margin-top: 0 !important; }
}

/* STEP1B-2: компактная выдача (desktop) */
.ks2-h1 { margin: 4px 0 12px; font: 400 22px/28px Inter-Bold, Inter, sans-serif; color: #1f2328; letter-spacing: 0; }
.mp-sf.ks2 .ks2-sortsel { height: 32px; padding: 0 28px 0 10px; border: 1px solid #dde1e6; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235f6772' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 9px center no-repeat; -webkit-appearance: none; appearance: none; font: 400 14px/1 Inter-Regular, Inter, sans-serif; color: #1f2328; cursor: pointer; }
@media (min-width: 901px) {
    .mp-sf.ks2 .wm-serp-context, .mp-sf.ks2 .ap-serp-toolbar, .mp-sf.ks2.ks2-sort-in-row .wm-sort-bar { display: none !important; }
    .mp-sf.ks2 .ks2-found--section { display: none !important; }
    .mp-sf.ks2 .ap-home-feed-title { margin-top: 4px !important; margin-bottom: 12px !important; }
    .ks2-h1 { font-size: 22px; }
}
@media (max-width: 900px) {
    .ks2-h1 { font-size: 18px; line-height: 24px; margin: 0 0 6px; padding: 0 12px; }
    .mp-sf.ks2 .ks2-sortsel { display: none; }
    /* бар контекста на мобильном живёт в ленте чипов */
    .ks2-tabsrow:not(:has(.wm-offer-tabs:not([hidden]))) { display: contents; }
    .mp-sf.ks2 .ks2-chips .ksctx { display: contents; }
    .mp-sf.ks2 .ks2-chips .ksctx .ksctx__vtbtn, .mp-sf.ks2 .ks2-chips .ksctx .ksctx__pick { height: 36px; border-radius: 18px; padding: 0 12px; white-space: nowrap; flex: 0 0 auto; font-size: 15px; }
    .mp-sf.ks2 .ks2-chips .ksctx .ksctx__car { flex: 0 0 auto; gap: 6px; }
    .mp-sf.ks2 .ks2-chips .ksctx .ksctx__car > .ksctx__k { display: none; }
    .mp-sf.ks2 .ks2-chips .ksctx .ksctx__car-l { max-width: 150px; font-size: 14px; }
    .mp-sf.ks2 .ks2-chips .ksctx__menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; z-index: 11250; }
}
/* STEP1B-3: mobile — поиск в потоке (own sticky), без двойного отступа под шапку */
@media (max-width: 900px) {
    html.ks2-own body.wm-page .container-page { padding-top: 0 !important; }
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__main { padding-top: 0 !important; }
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search { top: var(--ks2-stick-top, 52px) !important; }
    .ks2-h1 { margin: 8px 0 2px; }
}

/* STEP2: размер всегда первым и видим; мобильный док иконок в строке поиска; H1 в строке «Найдено» */
.mp-sf.ks2 .js-wm-params-block.ks2-force { display: block !important; }
.mp-sf.ks2 .js-wm-car-block.ks2-force { display: block !important; }
.mp-sf.ks2 .ap-home-search-grid > .js-wm-params-block { order: -1; }
@media (max-width: 900px) {
    .mp-sf.ks2 .mp-sf__sticky-row { display: flex; align-items: center; gap: 8px; }
    .mp-sf.ks2 .mp-sf__sticky-row .ks2-filters-btn--row { width: 44px; min-width: 44px; padding: 0 !important; justify-content: center; position: relative; flex: 0 0 auto; }
    .mp-sf.ks2 .mp-sf__sticky-row .ks2-filters-btn--row .ks2-filters-btn__t { display: none; }
    .mp-sf.ks2 .mp-sf__sticky-row .ks2-filters-btn--row .ks2-filters-btn__n { position: absolute; top: -4px; right: -4px; }
    .mp-sf.ks2 .ks2-dock.ks2-dock--row { padding-right: 0; gap: 6px; }
    .mp-sf.ks2 .ks2-dock.ks2-dock--row > * { width: 40px !important; height: 40px !important; }
    .mp-sf.ks2 .ks2-found.ks2-found--h1 { gap: 8px; }
    .mp-sf.ks2 .ks2-found--h1 h1 { margin: 0 !important; padding: 0 !important; font: 400 17px/22px Inter-Bold, Inter, sans-serif !important; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
    .mp-sf.ks2 .ks2-found--h1 .ks2-found__t { font-size: 14px; color: #5f6772; white-space: nowrap; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .mp-sf.ks2 .ks2-found--h1.ks2-found--section .ks2-found__t { font-size: 0; }
    .mp-sf.ks2 .ks2-found--h1.ks2-found--section .ks2-found__t b, .mp-sf.ks2 .ks2-found--h1.ks2-found--section .ks2-found__t strong, .mp-sf.ks2 .ks2-found--h1.ks2-found--section .ks2-found__t [data-ks2-found-n] { font-size: 14px; font-weight: 400; color: #5f6772; }
    .mp-sf.ks2 .wm-serp-context { display: none !important; }
}

/* ===== STEP2-UI (12:50) ===== */
/* липкий поиск: мгновенная позиция (position:sticky), при «прилип» — только тень и фон за 120ms; никакого заезда в шапку */
.ks2-stick-sentinel { height: 0; margin: 0; padding: 0; pointer-events: none; }
html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search { transition: box-shadow .12s ease-out, background-color .12s ease-out !important; animation: none !important; }
@media (min-width: 901px) {
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search { box-shadow: none !important; }
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search.ks2-stuck { box-shadow: 0 6px 16px -8px rgba(15,23,42,.22) !important; background: #fff !important; }
}
@media (max-width: 900px) {
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search { box-shadow: none !important; }
    html.ks2-own .mp-sf.ks2-own-sticky .mp-sf__sticky-search.ks2-stuck { box-shadow: 0 4px 12px -6px rgba(15,23,42,.25) !important; }
}
/* верхняя строка: вкладки 15px Medium, бар 14px, высота 36, ровные отступы */
@media (min-width: 901px) {
    .ks2-tabsrow { align-items: center; gap: 16px; min-height: 48px; }
    .ks2-tabsrow > .ksctx { margin: 0; align-self: center; }
    .ks2-tabsrow > .wm-offer-tabs { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
    .ks2-tabsrow .wm-offer-tabs__item { display: inline-flex !important; align-items: center; height: 48px; padding: 0 14px !important; font: 400 15px/20px Inter-Medium, Inter, sans-serif !important; color: #4b5360 !important; letter-spacing: 0 !important; border-bottom: 2px solid transparent !important; margin-bottom: -1px; text-decoration: none !important; }
    .ks2-tabsrow .wm-offer-tabs__item:hover { color: #1f2328 !important; }
    .ks2-tabsrow .wm-offer-tabs__item.is-active { color: #e23737 !important; border-bottom-color: #e23737 !important; }
}
/* размер шины/диска/сборки: #mp-sf-sidebar бьёт class-селекторы (filterfmt 12/40px) — override с id */
@media (min-width: 901px) {
    .mp-sf.ks2 .ks2-sec--size .ks2-size-row { gap: 4px !important; }
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container .select2-selection--single,
html body .mp-sf.ks2 .ks2-sec--size .select2-container .select2-selection--single {
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__arrow,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__arrow,
html body .mp-sf.ks2 .ks2-sec--size .select2-container .select2-selection--single .select2-selection__arrow {
    width: 14px !important;
    height: 34px !important;
    right: 1px !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered,
html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__rendered,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .ks2-size-row .select2-selection__rendered {
    padding-left: 6px !important;
    padding-right: 14px !important;
    line-height: 34px !important;
    font: 400 12px/34px Inter-Regular, Inter, sans-serif !important;
    color: #1f2328 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    position: relative !important;
}
/* выбранное значение: компактный × слева (не 40px — иначе в 3-колонке × наезжает на «245») */
html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered {
    padding-left: 22px !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear,
html body .mp-sf.ks2 .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    float: none !important;
    margin: 0 !important;
    width: 22px !important;
    height: 100% !important;
    min-height: 34px !important;
    line-height: 34px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #8a929c !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear:hover,
html body .mp-sf.ks2 .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #e23737 !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container.wm-select-empty .select2-selection__clear,
html body .mp-sf.ks2 .ks2-sec--size .select2-container.wm-select-empty .select2-selection__clear,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container.wm-select-empty .select2-selection__clear {
    display: none !important;
}
/* пустое: без стрелки — «Выбрать» целиком в узкой 3-колонке */
html body #mp-sf-sidebar .ks2-sec--size .select2-container.wm-select-empty .select2-selection__arrow,
html body .mp-sf.ks2 .ks2-sec--size .select2-container.wm-select-empty .select2-selection__arrow {
    display: none !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container.wm-select-empty .select2-selection--single .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .select2-container.wm-select-empty .select2-selection--single .select2-selection__rendered {
    padding-left: 6px !important;
    padding-right: 6px !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered .select2-selection__placeholder,
html body .mp-sf.ks2 .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered .select2-selection__placeholder,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    font-size: 12px !important;
    line-height: 34px !important;
    color: #6b7280 !important;
}
html body #mp-sf-sidebar .ks2-sec--size .select2-container--disabled .select2-selection__rendered,
html body .mp-sf.ks2 .ks2-sec--size .select2-container--disabled .select2-selection__rendered {
    color: #9aa1aa !important;
}
/* моб. шторка (44px/12px pad) тоже не должна есть «Выбрать» */
@media (max-width: 900px) {
    html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single { height: 40px !important; }
    html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__arrow { height: 38px !important; width: 14px !important; }
    html body #mp-sf-sidebar .ks2-sec--size .select2-container .select2-selection--single .select2-selection__rendered {
        padding-left: 6px !important;
        padding-right: 14px !important;
        line-height: 38px !important;
        font: 400 12px/38px Inter-Regular, Inter, sans-serif !important;
    }
    html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single:has(.select2-selection__clear) .select2-selection__rendered {
        padding-left: 22px !important;
    }
    html body #mp-sf-sidebar .ks2-sec--size .select2-container--default .select2-selection--single .select2-selection__clear {
        min-height: 38px !important;
        line-height: 38px !important;
    }
}
@media (min-width: 901px) {
    .mp-sf.ks2 .ks2-segctl__b { font: 400 13px/18px Inter-Regular, Inter, sans-serif !important; padding: 0 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mp-sf.ks2 .ks2-segctl__b.is-on { font-family: Inter-Medium, Inter, sans-serif !important; }
}
@media (max-width: 900px) {
    .mp-sf.ks2 .ks2-chips .ksctx .ksctx__vtbtn, .mp-sf.ks2 .ks2-chips .ksctx .ksctx__pick { font-size: 14px; }
}

/* ===== STEP2 (13:45): сезон/шипы — чипы с иконками; пустые блоки; select2 над колонкой; цена; продавец ===== */
.mp-sf.ks2 .ks2-empty { display: none !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-checks, .mp-sf.ks2 .ks2-sec--studs .ks2-checks { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item { position: relative; gap: 6px !important; min-height: 36px !important; padding: 0 12px 0 10px !important; border: 1px solid #dde1e6 !important; border-radius: 18px !important; background: #fff !important; font: 400 14px/18px Inter-Regular, Inter, sans-serif !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item:hover, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item:hover { border-color: #b9c0c9 !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item input[type="checkbox"], .mp-sf.ks2 .ks2-sec--studs .ks2-check-item input[type="checkbox"] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item .wm-filter-chip__box, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item .wm-filter-chip__box { display: none !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item .wm-filter-chip__icon, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item .wm-filter-chip__icon { display: inline-block !important; width: 18px !important; height: 18px !important; flex: 0 0 18px; margin: 0 !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item:has(input:checked), .mp-sf.ks2 .ks2-sec--studs .ks2-check-item:has(input:checked), .mp-sf.ks2 .ks2-sec--chips .ks2-check-item.is-active, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item.is-active { border-color: #e23737 !important; background: #fff1f1 !important; color: #1f2328 !important; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item:has(input:focus-visible), .mp-sf.ks2 .ks2-sec--studs .ks2-check-item:has(input:focus-visible) { outline: 2px solid #e23737; outline-offset: 1px; }
.mp-sf.ks2 .ks2-sec--chips .ks2-check-item *, .mp-sf.ks2 .ks2-sec--studs .ks2-check-item * { color: inherit !important; font-weight: 400 !important; }
/* select2-списки колонки/шторки — поверх липкой колонки и поиска (раньше z 1051 — под колонкой: «размеры не выбираются») */
body .select2-container.select2-container--open:not(.select2) { z-index: 11100 !important; }
body.ksctx-pop-open .select2-container.select2-container--open:not(.select2) { z-index: 12050 !important; }
/* STEP2 (14:08): выбранный чип сезона/шипов — тёмный текст (brand моб. правило красило в белый); моб. шторка — без дублей */
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-check-item.wm-filter-chip:has(input:checked) .wm-filter-chip__text,
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-check-item:has(input:checked) .wm-filter-chip__text { color: #1f2328 !important; }
html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--chips .ks2-check-item:has(input:checked), html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--studs .ks2-check-item:has(input:checked) { background: #fff1f1 !important; border-color: #e23737 !important; color: #1f2328 !important; }
@media (max-width: 900px) {
    .mp-sf.ks2 .ks2-segctl { display: none !important; }
    .mp-sf.ks2 .mp-sf__sidebar .ks2-colhead { display: none !important; }
}

/* ===== STEP2 (14:30): моб. шторка фильтров как у Avito — 16px поля, заголовки 15/600, строки 48+, сегменты, разделители; без дублей ===== */
@media (max-width: 900px) {
    /* Состояние / Доставка / Наличие: один контрол — стилизованный сегмент (как «Продавец»), строка «Не важно ›» скрыта */
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld > .ks2-row { display: none !important; }
    html.ks2-js body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld > label { display: block !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld > select,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld > .select2-container { display: none !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-segfld .ks2-segctl { display: flex !important; gap: 2px; padding: 3px; margin: 0; border-radius: 10px; background: #f2f3f5; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-segfld .ks2-segctl__b { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 6px !important; border: 0 !important; border-radius: 8px; background: none !important; color: #1f2328; -webkit-appearance: none; appearance: none; font: 400 14px/18px Inter-Regular, Inter, sans-serif !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-segfld .ks2-segctl__b.is-on { background: #fff !important; box-shadow: 0 1px 3px rgba(15,23,42,.14); font-family: Inter-Medium, Inter, sans-serif !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-segctl__b:focus-visible { outline: 2px solid #e23737; outline-offset: -2px; }

    /* поля: 16px слева/справа везде, ровная колонка */
    html body .mp-sf.ks2 .mp-sf__sidebar #wm-home-form, html body .mp-sf.ks2 .mp-sf__sidebar-body > form { padding-left: 0 !important; padding-right: 0 !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-box,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-box__row,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-search-grid { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-row { padding-left: 0 !important; padding-right: 0 !important; min-height: 52px; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-row__k { font: 400 13px/16px Inter-Regular, Inter, sans-serif !important; color: #5f6772 !important; }

    /* заголовки секций: 15px / SemiBold, одинаковые отступы */
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec__t,
    html body .mp-sf.ks2 .mp-sf__sidebar .mp-sf-switches__title,
    html body .mp-sf.ks2 .mp-sf__sidebar .ksctx-price__t,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld > label,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field:not(.ks2-has-row) > label {
        display: block; margin: 0 0 10px !important; padding: 0 !important; background: none !important; text-transform: none !important; letter-spacing: 0 !important;
        font: 400 15px/20px Inter-SemiBold, Inter, sans-serif !important; color: #1f2328 !important;
    }
    /* блоки-секции с разделителями */
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field.ks2-segfld,
    html body .mp-sf.ks2 .mp-sf__sidebar .ap-home-field:not(.ks2-has-row),
    html body .mp-sf.ks2 .mp-sf__sidebar .ksctx-price { padding: 14px 0 !important; margin: 0 !important; border-bottom: 1px solid #eceef1 !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec .ap-home-field:not(.ks2-has-row) { border-bottom: 0 !important; padding: 0 !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size { padding-bottom: 0 !important; border-bottom: 0 !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ks2-sec--size .ks2-sec__t { margin-bottom: 0 !important; }
    /* поля ввода и select2 — 44px */
    html body .mp-sf.ks2 .mp-sf__sidebar .ksctx-price__in { height: 44px !important; border-radius: 10px !important; font-size: 16px !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .select2-container .select2-selection--single { height: 44px !important; border-radius: 10px !important; border-color: #dde1e6 !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px !important; padding-left: 12px !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .select2-container .select2-selection--single .select2-selection__arrow { height: 42px !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ksctx-seg { margin-top: 10px; }
    html body .mp-sf.ks2 .mp-sf__sidebar .ksctx-seg__b { height: 36px; font-size: 14px; }
}
/* кнопка поддержки не перекрывает поля, пока открыта шторка фильтров / вложенный список */
body.mp-sf-drawer-open .ks-support-fab, body.ks2-sheet-open .ks-support-fab,
body:has(.mp-sf.is-drawer-open) .ks-support-fab, body:has(.ks2-sheet.is-open) .ks-support-fab { display: none !important; }
/* STEP2 (14:40): первая карточка ≈ как на проде — без flex-gap 10px над/под строкой поиска */
@media (max-width: 900px) {
    html.ks2-own .mp-sf.ks2 .mp-sf__main { row-gap: 0 !important; gap: 0 !important; }
    html.ks2-own .mp-sf.ks2 .mp-sf__main > .mp-sf__content { padding-top: 4px !important; }
    html body .mp-sf.ks2 .mp-sf__sidebar .mp-sf__sidebar-head { box-sizing: border-box !important; max-width: 100% !important; }
}
@media (max-width: 900px) {
    html.ks2-own body.wm-page .wm-page-title-row { margin-bottom: 0 !important; }   /* пустая строка заголовка бренда давала +10px над поиском */
}
@media (max-width: 900px) {
    .mp-sf.ks2 .ks2-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
/* STEP2 (14:50): БАГ «пустые ~100px над поиском» (телефон Max): brand-скрипт после прокрутки принимает наш сторож-сентинел за плейсхолдер (.is-active, height = высота поиска). Сентинел всегда 0px. */
html body .mp-sf .ks2-stick-sentinel, html body .mp-sf .ks2-stick-sentinel.is-active { height: 0 !important; min-height: 0 !important; max-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; }

/* STEP2 (15:05): мобильная строка выбранных фильтров — чипсы с горизонтальной прокруткой (раньше — сырой текст «BMW×1 Series×…×Сбросить всё») */
@media (max-width: 900px) {
    .mp-sf.ks2 .ks2-active { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 4px -16px 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mp-sf.ks2 .ks2-active::-webkit-scrollbar { display: none; }
    .mp-sf.ks2 .ks2-achip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; max-width: 240px; padding: 0 10px 0 12px; border-radius: 16px; background: #f2f3f5; color: #1f2328 !important; text-decoration: none !important; font: 400 14px/1 Inter-Regular, Inter, sans-serif; white-space: nowrap; }
    .mp-sf.ks2 .ks2-achip > span:first-child { overflow: hidden; text-overflow: ellipsis; }
    .mp-sf.ks2 .ks2-achip__x { font-size: 16px; color: #5f6772; }
    .mp-sf.ks2 .ks2-active__reset { flex: 0 0 auto; color: #e23737 !important; font-size: 14px; text-decoration: none !important; white-space: nowrap; padding-right: 16px; }
    .mp-sf.ks2.ks2-has-active .ap-serp-toolbar .ap-serp-chip { display: none !important; }
}

/* ===== STEP2 (15:20): мобильные шины — как запчасти: во всю ширину, поля 16px, без «карточки с тенью»; размеры в одну строку; «Найдено N» не обрезается ===== */
@media (max-width: 900px) {
    /* 52px «прыжок» при скролле: brand ap_site_chrome.css (≤900) ставит .container-page padding-top:52px для body.td-parts-page:has(.header.scroll) — специфичность выше нашей (0,4,1 > 0,3,2) */
    html.ks2-own body.wm-page.td-parts-page .container-page,
    html.ks2-own body.wm-page.td-parts-page:has(.header.scroll) .container-page { padding-top: 0 !important; }
    html.ks2-own body.wm-page .new-container { padding-left: 0 !important; padding-right: 0 !important; }
    html.ks2-own body.wm-page .mp-sf.ks2 .mp-sf__main { padding-left: 0 !important; padding-right: 0 !important; }
    html.ks2-own body.wm-page .mp-sf.ks2.ks2-own-sticky .mp-sf__sticky-search { padding: 8px 0 8px !important; margin: 0 !important; border-radius: 0 !important; box-shadow: 0 1px 0 #eceef1 !important; background: #fff !important; }
    html.ks2-own body.wm-page .mp-sf.ks2.ks2-own-sticky .mp-sf__sticky-search.ks2-stuck { box-shadow: 0 1px 0 #eceef1, 0 6px 12px -10px rgba(15, 23, 42, .25) !important; }
    .mp-sf.ks2 .mp-sf__sticky-row { padding: 0 16px !important; }
    .mp-sf.ks2 .ks2-bar { padding: 0 !important; margin: 0 !important; }
    .mp-sf.ks2 .ks2-bar .ks2-chips { padding: 8px 16px 0 !important; scroll-padding-left: 16px; }
    .mp-sf.ks2 .ks2-bar .ks2-chips::after { content: ""; flex: 0 0 4px; }
    .mp-sf.ks2 .mp-sf__content { padding-left: 16px !important; padding-right: 16px !important; }
    /* размеры по авто — одна прокручиваемая строка */
    html body .mp-sf.ks2 .wm-serp-size-chips { margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
    html body .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chips { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; gap: 8px !important; padding: 0 16px !important; margin: 0 !important; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; }
    html body .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chips::-webkit-scrollbar { display: none; }
    html body .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chips::after { content: ""; flex: 0 0 4px; }
    html body .mp-sf.ks2 .wm-serp-size-chips .wm-size-suggest__chip { flex: 0 0 auto !important; height: 32px !important; min-height: 32px !important; padding: 0 12px !important; margin: 0 !important; border-radius: 16px !important; font: 400 14px/32px Inter-Medium, Inter, sans-serif !important; white-space: nowrap !important; }
    /* «Найдено N объявлений»: текст целиком; иконки переносятся, если не помещаются */
    .mp-sf.ks2 .ks2-found.ks2-found--h1 { flex-wrap: wrap; row-gap: 4px; }
    .mp-sf.ks2 .ks2-found--h1 .ks2-found__t { flex: 1 0 auto !important; min-width: auto !important; overflow: visible !important; text-overflow: clip !important; }
    .mp-sf.ks2 .ks2-found--h1 .ks2-found__act { margin-left: auto; }
    /* избранное / корзина — как на запчастях: 36px, серый фон, цветные иконки */
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock.ks2-dock--row { gap: 4px !important; }
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock.ks2-dock--row > *, html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock.ks2-dock--row a { width: 36px !important; height: 36px !important; min-width: 36px !important; border-radius: 10px !important; background: #f2f3f5 !important; border: 0 !important; }
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock #wm-fav-fab svg path { stroke: #e23737 !important; }
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock #wm-cart-fab a { color: #1f8f4e !important; }
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock #wm-cart-fab svg, html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock #wm-cart-fab svg * { stroke: #1f8f4e !important; }
    html body .mp-sf.ks2:not(.ks2-ap) .ks2-dock svg { width: 20px !important; height: 20px !important; }
    .mp-sf.ks2 .mp-sf__sticky-row .ks2-filters-btn--row { width: 40px; min-width: 40px; height: 40px; }
}
@media (max-width: 380px) {
    .mp-sf.ks2 .mp-sf__sticky-row { gap: 6px !important; }
    .mp-sf.ks2 .ks2-found .ks2-ibtn, .mp-sf.ks2 .ks2-found .ap-serp-toolbar__share { width: 32px !important; height: 32px !important; }
    .mp-sf.ks2 .ks2-found .ks2-seg__b { width: 32px !important; height: 30px !important; }
    .mp-sf.ks2 .ks2-found__act { gap: 6px !important; }
}
@media (max-width: 380px) {
    /* узкие экраны: цена в карточке целиком («18 247 ₽ за шт» не обрезается) */
    html body .mp-sf.ks2 .wm-card .catalog__items-price { font-size: 15px !important; line-height: 20px !important; white-space: nowrap; }
    html body .mp-sf.ks2 .wm-card .catalog__items-price .wm-price-unit { font-size: 12px !important; }
}
/* STEP2 (16:15): фасеты размеров — число объявлений справа, заводские размеры авто зелёным и сверху */
.select2-results__option.ks-fc-li { display: flex; align-items: baseline; gap: 8px; }
.select2-results__option.ks-fc-li .ks-fc { margin-left: auto; color: #8a929c; font: 400 12px/16px Inter-Regular, Inter, sans-serif; font-variant-numeric: tabular-nums; }
.select2-results__option--highlighted.ks-fc-li .ks-fc { color: inherit; opacity: .75; }
.select2-results__option.ks-fc-oem { color: #1d7f4e; }
.select2-results__option.ks-fc-oem.select2-results__option--highlighted { color: #fff; }
.ks2-list__item .ks-fc { margin-left: auto; padding-left: 8px; color: #8a929c; font-size: 13px; font-variant-numeric: tabular-nums; }
.ks2-list__item.ks-fc-oem > span:first-child { color: #1d7f4e; }

/* SHEETFIX-1102: selected chips were unreadable (dark pill + dark text): Bitrix style.css «p, span { color:#353433 }» beats the inherited #fff on the inner <span>.
   Selected = the site's red-accent selected style (sidebar .ks2-check-item / «BMW ×» chips), text always inherits from the chip. */
.ks2-tog span, .ks2-chip span, .ks2-list__item span, .ks2-opt span { color: inherit !important; }
html body .ks2-tog.is-on { background: #fff1f1 !important; border-color: #e23737 !important; color: #1f2328 !important; box-shadow: inset 0 0 0 1px #e23737; }
html body .mp-sf.ks2 .ks2-chip.is-on, html body .mp-sf.ks2-ap .ks2-chip.is-on { background: #fdecec !important; color: #b42323 !important; box-shadow: inset 0 0 0 1px #f3b4b4; }
html body .mp-sf.ks2 .ks2-chip.is-on svg, html body .mp-sf.ks2-ap .ks2-chip.is-on .ks2-chip__arr { color: #b42323; }
html body .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip.is-active span, html body .mp-sf.ks2 .mp-sf__sidebar .wm-filter-chip:has(input:checked) span { color: inherit !important; }

/* t1482u/t1490u: isolated slim photo-badge pills — не ломаются стилями других разделов
   (font-size:0 + ::before «Спец», width/aspect/padding, border-radius:50%, max-width:114px и т.п.) */

html body .catalog-photo-badges > p,
html body .catalog-photo-badges > .wm-card-special-badge,
html body .catalog-sticker-list.catalog-photo-badges > p,
html body .catalog-sticker-list.catalog-photo-badges > .wm-card-special-badge,
html body .ks-photo-badge,
html body p.ks-photo-badge,
html body .rc-card__badges > .ks-photo-badge,
html body .rc-card__badges > .rc-card__badge {
    all: unset;
    display: inline-block !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 3px 8px !important;
    margin: 0 !important;
    border: 1px solid rgba(17, 24, 39, 0.14) !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #111827 !important;
    font-family: Inter-Medium, Inter, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 14px !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex: 0 0 auto !important;
    float: none !important;
    clear: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    transform: none !important;
    vertical-align: middle !important;
    writing-mode: horizontal-tb !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    box-shadow: none !important;
}
html body .catalog-photo-badges > .wm-card-special-badge,
html body .catalog-sticker-list.catalog-photo-badges > .wm-card-special-badge,
html body .catalog-photo-badges > .catalog__items-check--special,
html body .ks-photo-badge--special,
html body p.ks-photo-badge--special {
    background: #E23737 !important;
    color: #fff !important;
    border: 0 !important;
}
html body .catalog-photo-badges > p::before,
html body .catalog-photo-badges > p::after,
html body .catalog-photo-badges > .wm-card-special-badge::before,
html body .catalog-photo-badges > .wm-card-special-badge::after,
html body .catalog-sticker-list.catalog-photo-badges > p::before,
html body .catalog-sticker-list.catalog-photo-badges > p::after,
html body .catalog-sticker-list.catalog-photo-badges > .wm-card-special-badge::before,
html body .catalog-sticker-list.catalog-photo-badges > .wm-card-special-badge::after,
html body .ks-photo-badge::before,
html body .ks-photo-badge::after,
html body .mp-ads-listing-card .catalog-photo-badges .wm-card-special-badge::before,
html body .mp-ads-listing-card .catalog-photo-badges .wm-card-special-badge::after,
html body .mp-ads-listing-card .wm-card-special-badge::before,
html body .mp-ads-listing-card .wm-card-special-badge::after,
html body .mp-sf.ks2 .wm-card .wm-card-special-badge::before,
html body .mp-sf.ks2 .wm-card .wm-card-special-badge::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: none !important;
}
@media (max-width: 899.98px) {
    html body .mp-ads-listing-card .catalog-photo-badges > .wm-card-special-badge,
    html body .mp-ads-listing-card .catalog-sticker-list .wm-card-special-badge,
    html body .mp-ads-listing-card .wm-card-special-badge,
    html body .mp-sf.ks2 .wm-card .wm-card-special-badge,
    html body .ks-photo-badge,
    html body .ks-photo-badge--special {
        font-size: 11px !important;
        line-height: 14px !important;
        padding: 3px 8px !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        border-radius: 4px !important;
        overflow: visible !important;
    }
}

/* t1490u: «Свободен сегодня» — прежний тонкий контур accent (после изоляции, чтобы победить фон/бордер). */
html body .rc-card__badges > .rc-card__badge,
html body .rc-card__badge.ks-photo-badge {
    background: var(--rc-box, #fff) !important;
    border: 1px solid var(--rc-accent, #E23737) !important;
    color: var(--rc-accent, #E23737) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    font-family: Inter-Medium, Inter, Arial, sans-serif !important;
}

