/**
 * Боковая панель каталога (выезд слева + затемнение через .fade)
 */

/* Главная: число в подзаголовке не разрывается по пробелам между разрядами */
.quick-search_subtitle-number {
    white-space: nowrap;
}

/*
 * Быстрый поиск на главной поднимает открытые Choices-списки через z-index.
 * Sticky header должен оставаться выше выпадающих списков при скролле.
 */
.header {
    z-index: 100;
}

:root {
    --av-red: #ff3b2f;
    --av-black: #111318;
    --av-ink: #222833;
    --av-muted: #798291;
    --av-line: #e7e9ee;
    --av-soft: #f5f6f8;
}

.header {
    width: 100%;
    background: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
}

.av-header {
    width: min(1536px, 100%);
    margin: 0 auto;
    color: var(--av-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.av-header,
.av-header * {
    box-sizing: border-box;
}

.av-header svg {
    display: block;
}

.av-header a {
    color: inherit;
    text-decoration: none;
}

.av-header button:not(.av-header__location) {
    font: inherit;
}

.av-header .av-header__search-input[type="search"] {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: var(--av-ink);
    font-family: 'HelveticaNeueCyr', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.av-header .av-header__search-input[type="search"]::placeholder {
    color: #8b94a3;
}

.av-header .cart {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.av-header__container {
    width: 100%;
    padding: 0 42px;
}

.av-header__top {
    height: 34px;
    background: var(--av-black);
    box-shadow: 0 0 0 100vmax var(--av-black);
    clip-path: inset(0 -100vmax);
    color: #cfd3da;
    font-size: 13px;
    letter-spacing: 0.1px;
}

.av-header__top-inner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.av-header__location,
.av-header__top-links,
.av-header__top-link {
    display: flex;
    align-items: center;
}

.av-header__location {
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.av-header__top .av-header__location {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.av-header__top-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.av-header__top-links {
    margin-left: auto;
    gap: 22px;
}

.av-header__top-link {
    gap: 7px;
    color: #cfd3da;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.av-header__top .av-header__top-link--catalog-placement {
    color: #fff;
}

.av-header__top .av-header__top-link--phone,
.av-header__top .av-header__top-link--phone:hover,
.av-header__top .av-header__top-link--phone:focus,
.av-header__top .av-header__top-link--phone:visited {
    color: #fff;
}

.av-header__pixel-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.av-header__main {
    height: 85px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--av-line);
}

.av-header__main-inner {
    height: 85px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.av-header__logo {
    width: 168px;
    height: 50px;
    flex: 0 0 168px;
    display: block;
    margin: 0;
    position: relative;
    background: url(/src/img/logo.svg) no-repeat left top / auto 90%;
    color: var(--av-ink);
    text-decoration: none;
}

.av-header__logo-text {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    color: #8f8f8f;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
}

.av-header__logo--shop {
    background: none;
    display: flex;
    align-items: center;
}

.av-header__logo-img {
    display: block;
    max-width: 168px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.av-header__logo--shop-name {
    width: auto;
    max-width: 220px;
    flex: 0 1 auto;
}

.av-header__logo-name {
    display: block;
    overflow: hidden;
    color: var(--av-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av-header__catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 17, 17, 0.08);
    color: #0f1111;
    font-family: 'HelveticaNeueCyr', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.av-header__catalog-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.av-header__catalog-icon-layer {
    fill: none;
    stroke: #1d2022;
    stroke-width: 2px;
    stroke-linejoin: round;
}

.av-header__catalog-icon-layer--bottom {
    stroke: #e14d43;
}

.av-header__search-wrap {
    position: relative;
    flex: 1 1 690px;
    max-width: 690px;
    min-width: 260px;
}

@media (min-width: 1024px) {
    .av-header__search-wrap {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        display: flex;
        justify-content: center;
    }

    .av-header__search {
        width: 100%;
        max-width: 690px;
    }

    .av-header__search-wrap .search-popup {
        left: 50%;
        right: auto;
        width: min(690px, 100%);
        transform: translateX(-50%);
    }

    .av-header__actions {
        flex: 0 0 auto;
        margin-left: 0;
    }
}

.av-header__search {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid #e1e5eb;
    border-radius: 16px;
    background: #f2f4f7;
}

.av-header__search-wrap .search-popup {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    margin: 0;
    padding: 12px 16px 20px;
    border: 1px solid var(--av-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    max-height: min(70vh, 520px);
    overflow: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.av-header__search-wrap .search-popup.opened {
    display: block;
}

.av-header__search-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--av-ink);
}

.av-header__search-submit {
    display: none;
}

.av-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.av-header__action {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #3d4552;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.av-header__action-icon-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}

.av-header__action-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: var(--av-ink);
}

.av-header__badge,
.av-header__action .cart_count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--av-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.15px;
    box-sizing: border-box;
}

.av-header__action-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.av-header__action-label {
    color: #8992a1;
    font-size: 13px;
    line-height: 1.1;
}

.av-header__action-value {
    color: var(--av-black);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
}

.av-header__mobile-menu-btn,
.av-header__mobile-menu {
    display: none;
}

.av-header__action--search-mobile {
    display: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.header-catalog-drawer-host {
    position: relative;
    z-index: 0;
}

body.catalog-drawer-open .header-catalog-drawer-host {
    z-index: 10070;
}

.header-catalog-drawer-host .menu {
    width: auto;
    height: 0;
    min-height: 0;
}

@media (max-width: 1023px) {
    .av-header__container {
        padding: 0 16px;
    }

    .av-header__main {
        height: auto;
    }

    .av-header__main-inner {
        height: auto;
        min-height: 77px;
        flex-wrap: wrap;
        gap: 10px 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .av-header__logo {
        width: 168px;
        height: 50px;
        min-width: 168px;
        flex-basis: 168px;
        margin: 0;
    }

    .av-header__logo-text {
        font-size: 10px;
    }

    .av-header__logo-name {
        font-size: 14px;
    }

    .av-header__logo--shop-name {
        max-width: 180px;
    }

    .av-header__logo-img {
        max-width: 168px;
    }

    .av-header__catalog-btn {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        padding: 0;
    }

    .av-header__catalog-btn span {
        display: none;
    }

    .av-header__actions {
        gap: 8px;
    }

    .av-header__action {
        width: 36px;
        justify-content: center;
        gap: 0;
    }

    .av-header__action-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .av-header__search-wrap {
        display: none;
    }

    .av-header__action--profile {
        display: none;
    }

    .av-header__action--search-mobile {
        display: flex;
    }

    .av-header__mobile-menu.opened,
    .header_mobile-menu.opened.av-header__mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10020;
        width: min(360px, 88vw);
        height: 100vh;
        display: block;
        padding: 22px 24px;
        overflow-y: auto;
        background: #fff;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.16);
    }
}

@media (max-width: 767px) {
    .av-header__top {
        height: auto;
        min-height: 34px;
    }

    .av-header__top-inner {
        height: auto;
        min-height: 34px;
        padding: 5px 0;
        gap: 10px;
    }

    .av-header__top-link:first-child {
        display: none;
    }

    .av-header__location {
        flex: 1 1 0;
        min-width: 0;
        font-size: 12px;
    }

    .av-header__location > span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .av-header__top-links {
        flex: 0 1 auto;
        gap: 8px;
        min-width: 0;
        max-width: 68%;
    }

    .av-header__top-link {
        font-size: 11px;
    }

    .av-header__top-link--catalog-placement {
        white-space: normal;
        font-size: 14px;
        line-height: 1.2;
        text-align: right;
    }

    .av-header__top-link--catalog-placement .av-header__pixel-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        align-self: flex-start;
        margin-top: 1px;
    }

    .av-header__logo-text {
        font-size: 9px;
    }

    .av-header__logo-name {
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .av-header__container {
        padding: 0 12px;
    }

    .av-header__logo {
        width: 132px;
        min-width: 132px;
        height: 50px;
        flex-basis: 132px;
    }

    .av-header__logo-text {
        font-size: 8px;
    }

    .av-header__logo-name {
        font-size: 12px;
    }

    .av-header__logo--shop-name {
        max-width: 132px;
    }

    .av-header__logo-img {
        max-width: 132px;
    }
}

body.header-city-opened {
    overflow: hidden;
}

body.header-city-opened .header,
body.filters-opened.header-city-opened .header {
    z-index: 10100;
}

.header-city-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
}

.header-city-modal.is-open {
    display: block;
}

.header-city-modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.45);
}

.header-city-modal__dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(420px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header-city-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
}

.header-city-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.header-city-modal__close {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 0;
    font-weight: normal;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.header-city-modal__close:active {
    background: transparent;
    color: inherit;
}

.header-city-modal__close::before,
.header-city-modal__close::after {
    content: '';
    position: absolute;
    left: 7px;
    right: 7px;
    top: 14px;
    border-top: 2px solid #333;
}

.header-city-modal__close::before {
    transform: rotate(45deg);
}

.header-city-modal__close::after {
    transform: rotate(-45deg);
}

.header-city-modal__search {
    padding: 10px 16px 8px;
    border-bottom: 1px solid #f2f2f2;
}

.header-city-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.header-city-modal__input:focus {
    outline: 0;
    border-color: #f93f20;
}

.header-city-modal__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 4px 0 28px;
    max-height: min(52vh, 420px);
}

.header-city-modal__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    width: 100%;
    min-height: 50px;
    text-align: left;
    padding: 6px 16px;
    border: 0;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
    cursor: pointer;
    font: inherit;
    box-sizing: border-box;
}

.header-city-modal__item:last-child {
    border-bottom: none;
}

.header-city-modal__item:hover {
    background: #fafafa;
}

.header-city-modal__item--active {
    background: #fff3ef;
}

.header-city-modal__item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 6px;
    row-gap: 1px;
    width: 100%;
    min-width: 0;
}

.header-city-modal__item-title {
    font-size: 16px;
    line-height: 1.25;
    color: #202020;
    white-space: nowrap;
}

.header-city-modal__item-sub {
    display: inline;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #8a8a8a;
    white-space: nowrap;
}


.header-city-modal__empty {
    padding: 20px 16px;
    color: #7a7a7a;
    text-align: center;
    font-size: 15px;
}

@media (min-width: 1124px) {
    .header-city-modal__dialog {
        width: min(720px, calc(100vw - 80px));
        max-height: calc(100vh - 80px);
        margin: 40px auto;
        border-radius: 14px;
    }

    .header-city-modal__head {
        padding: 18px 24px;
    }

    .header-city-modal__title {
        font-size: 20px;
    }

    .header-city-modal__search {
        padding: 14px 24px 12px;
    }

    .header-city-modal__input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .header-city-modal__list {
        max-height: min(75vh, 680px);
        padding: 6px 0 32px;
    }

    .header-city-modal__item {
        min-height: 54px;
        padding: 8px 24px;
    }

    .header-city-modal__item-title {
        font-size: 17px;
    }

    .header-city-modal__item-sub {
        font-size: 13px;
    }

    .header-city-modal__empty {
        padding: 28px 24px;
        font-size: 16px;
    }
}

/* Всплывающая подсказка выбора города (только основной домен, город не выбран) */
.header-city-prompt {
    position: fixed;
    z-index: 9000;
    box-sizing: border-box;
    width: min(340px, calc(100vw - 24px));
    padding: 18px 18px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    animation: header-city-prompt-in 0.18s ease-out;
}

.header-city-prompt[hidden] {
    display: none;
}

.header-city-prompt__arrow {
    position: absolute;
    top: -8px;
    left: 26px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 4px 0 0 0;
    transform: rotate(45deg);
    box-shadow: -3px -3px 9px rgba(0, 0, 0, 0.05);
}

.header-city-prompt__body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.header-city-prompt__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fdece8;
}

.header-city-prompt__icon svg {
    display: block;
}

.header-city-prompt__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 2px;
    min-width: 0;
}

.header-city-prompt__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #1c1c1c;
}

.header-city-prompt__subtitle {
    font-size: 13.5px;
    line-height: 1.35;
    color: #7a828e;
}

.header-city-prompt__actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.header-city-prompt__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.header-city-prompt__btn--primary {
    background: #f93f20;
    color: #fff;
}

.header-city-prompt__btn--primary:hover {
    background: #e63414;
}

.header-city-prompt__btn--ghost {
    background: #fff;
    color: #2a2a2a;
    border-color: #d9dce1;
}

.header-city-prompt__btn--ghost:hover {
    background: #fafafa;
    border-color: #b9bec6;
}

@keyframes header-city-prompt-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Быстрый поиск в хлебных крошках: выпадающие списки поверх контента страницы */
.catalog-quick-search-wrap {
    position: relative;
    z-index: 2;
}

.catalog-quick-search-wrap--panel {
    margin-top: 24px;
    margin-bottom: 10px;
}

.catalog-quick-search-panel {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px 16px;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.catalog-quick-search-panel .quick-search_filters.catalog-quick-search {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.catalog-quick-search-panel .quick-search_filters-item {
    width: 100%;
    min-width: 0;
    margin: 0;
}

@media all and (min-width: 1124px) {
    .catalog-quick-search-panel .quick-search_filters.catalog-quick-search {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
        align-items: end;
    }
}

.catalog-quick-search-wrap:has(.choices.is-open),
.catalog-quick-search-wrap:has(.brand-modal.is-open),
.catalog-quick-search-wrap:has(.model-modal.is-open),
.catalog-quick-search-wrap:has(.generation-modal.is-open),
.catalog-quick-search-wrap:has(.engine-modal.is-open) {
    z-index: 90;
}

/* Каталог: быстрый поиск — выбранное авто в «коробке» вместо селектов (под H1) */
.catalog-quick-search-wrap--below-h1 {
    width: 100%;
    margin: 18px 0 0;
    box-sizing: border-box;
}

.catalog-quick-search-wrap--selected-car {
    width: 100%;
}

.catalog-quick-search-selected-car {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.catalog-quick-search-selected-car--in-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.catalog-quick-search-selected-car__thumb {
    width: 120px;
    height: 72px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-quick-search-selected-car__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.catalog-quick-search-selected-car__thumb-icon {
    display: block;
    width: 56px;
    height: 40px;
    background: url("/src/img/car.svg?v=92") no-repeat center / contain;
}

.catalog-quick-search-selected-car__text {
    min-width: 0;
    flex: 1 1 auto;
}

.catalog-quick-search-selected-car__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.catalog-quick-search-selected-car__title-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline dotted;
    -webkit-text-decoration: underline dotted;
    text-underline-offset: 2px;
}

.catalog-quick-search-selected-car__title-link:hover,
.catalog-quick-search-selected-car__title-link:focus {
    color: inherit;
    text-decoration: underline dotted;
    -webkit-text-decoration: underline dotted;
}

.catalog-quick-search-selected-car__description {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b6b6b;
}

.catalog-quick-search-selected-car__unselect {
    flex: 0 0 24px;
    box-sizing: border-box;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    line-height: 1;
    font-size: 0;
    font-weight: normal;
    margin-left: auto;
    border: 0;
    padding: 0;
    background-color: #f93f20;
    -webkit-mask: url("src/img/trash.svg") no-repeat center / contain;
    mask: url("src/img/trash.svg") no-repeat center / contain;
    cursor: pointer;
    opacity: 0.9;
    align-self: center;
}

.catalog-quick-search-selected-car__unselect:hover {
    opacity: 1;
}

body.header-saved-cars-opened {
    overflow: hidden;
}

body.header-saved-cars-opened .header,
body.filters-opened.header-saved-cars-opened .header {
    z-index: 10100;
}

.header-saved-cars-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
}

.header-saved-cars-modal.is-open {
    display: block;
}

.header-saved-cars-modal__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.45);
}

.header-saved-cars-modal__dialog {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(760px, calc(100vw - 40px));
    max-height: calc(100vh - 60px);
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header-saved-cars-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
}

.header-saved-cars-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.header-saved-cars-modal__close {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 0;
    font-weight: normal;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    position: relative;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.header-saved-cars-modal__close:active {
    background: transparent;
    color: inherit;
}

.header-saved-cars-modal__close::before,
.header-saved-cars-modal__close::after {
    content: '';
    position: absolute;
    left: 7px;
    right: 7px;
    top: 14px;
    border-top: 2px solid #333;
}

.header-saved-cars-modal__close::before {
    transform: rotate(45deg);
}

.header-saved-cars-modal__close::after {
    transform: rotate(-45deg);
}

.header-saved-cars-modal__body {
    overflow: auto;
    padding: 8px 0;
}

.header-saved-cars-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
}

.header-saved-cars-modal__item + .header-saved-cars-modal__item {
    border-top: 1px solid #f2f2f2;
}

.header-saved-cars-modal__item:hover {
    background: #fafafa;
}

.header-saved-cars-modal__item--active {
    background: #fff3ef;
}

.header-saved-cars-modal__thumb {
    width: 120px;
    height: 72px;
    flex: 0 0 120px;
    border-radius: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-saved-cars-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-saved-cars-modal__text {
    min-width: 0;
    flex: 1 1 auto;
}

.header-saved-cars-modal__item-title {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    color: #202020;
}

.header-saved-cars-modal__item-description {
    display: block;
    margin-top: 3px;
    color: #737373;
    font-size: 14px;
    line-height: 1.35;
}

.header-saved-cars-modal__remove {
    flex: 0 0 24px;
    box-sizing: border-box;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    line-height: 1;
    font-size: 0;
    font-weight: normal;
    margin-left: auto;
    align-self: flex-start;
    border: 0;
    padding: 0;
    background-color: #f93f20;
    -webkit-mask: url("src/img/trash.svg") no-repeat center / contain;
    mask: url("src/img/trash.svg") no-repeat center / contain;
    cursor: pointer;
    opacity: 0.9;
}

.header-saved-cars-modal__remove:hover {
    opacity: 1;
}

.header-saved-cars-modal__empty {
    padding: 20px 16px;
    color: #7a7a7a;
    text-align: center;
}

body.filters-opened .filters.opened {
    z-index: 10020;
}

body.filters-opened .fade.opened {
    z-index: 10010;
}

body.filters-opened .header,
body.filters-opened .header.popup-opened {
    z-index: 1;
}

/* Когда открыт каталог слева, затемнение должно накрывать и sticky header,
   но сама панель каталога оставаться поверх оверлея. */
body.catalog-drawer-open .fade.opened {
    z-index: 10060;
}

/* Список внутри панели всегда в потоке (перебивает display:none у .menu_list из основого бандла) */
.menu .catalog-drawer .menu_list {
    display: block;
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
}

/* Панель: на всю высоту окна, поверх затемнения */
.catalog-drawer {
    position: fixed;
    z-index: 10070;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(100vw, 760px);
    max-width: 100%;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.menu.opened .catalog-drawer {
    pointer-events: none;
    visibility: visible;
    transition-delay: 0s;
}

.catalog-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 100%);
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

.menu.opened .catalog-drawer__panel {
    transform: translateX(0);
}

.catalog-drawer__scroll {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.catalog-drawer__header {
    padding: 20px 16px 20px;
}

/*
 * В шапке сайта логотип — фон на всей ссылке с фикс. высотой, подпись absolute снизу.
 * В каталоге на мобилке подпись должна быть под графикой, не внутри блока с фоном:
 * фон переносим на ::before, у ссылки height: auto и колонка.
 */
.catalog-drawer .header_logo.catalog-drawer__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    min-height: 0;
    background: none;
}

.catalog-drawer .header_logo.catalog-drawer__logo::before {
    content: '';
    display: block;
    width: 190px;
    max-width: 100%;
    height: 45px;
    flex-shrink: 0;
    background: url(/src/img/logo.svg) no-repeat center / auto 90%;
}

@media all and (min-width: 768px) {
    .catalog-drawer .header_logo.catalog-drawer__logo::before {
        height: 55px;
        background-position: left top;
    }
}

@media all and (min-width: 1124px) {
    .catalog-drawer .header_logo.catalog-drawer__logo::before {
        height: 65px;
    }
}

/* Подпись под логотипом: в основом хедере скрыта на узких экранах — в каталоге показываем всегда */
.catalog-drawer .catalog-drawer__logo.header_logo .header_logo-text,
.catalog-drawer .header_logo.catalog-drawer__logo .header_logo-text {
    display: block;
    position: static;
    margin: 6px 0 0;
    padding: 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 10px;
    line-height: 1.25;
    color: #8f8f8f;
    white-space: nowrap;
}

.catalog-drawer__section {
    padding-top: 16px;
}

.catalog-drawer__section-title {
    margin: 0;
    padding: 12px 16px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.menu .catalog-drawer .menu_list-item {
    border-top: none;
}

.catalog-drawer__global-spinner {
    display: none;
    padding: 10px 0 4px;
}

.catalog-drawer__global-spinner .loader {
    margin: 0 auto;
}

.catalog-drawer__submenu-spinner {
    list-style: none;
    padding: 10px 0;
}

.catalog-drawer__submenu-spinner .loader {
    margin: 0 auto;
}

.loader {
    position: relative;
    width: 72px;
    height: 72px;
    margin: auto;
    display: none;
}

.loader.active {
    display: block;
}

.loader div {
    display: none;
}

.loader::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 6px solid rgba(249, 63, 32, 0.2);
    border-top-color: #f93f20;
    border-radius: 50%;
    box-sizing: border-box;
    animation: av-loader-spin 0.8s linear infinite;
}

@keyframes av-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.catalog-drawer__empty {
    list-style: none;
    color: #818181;
    padding: 8px 0 8px;
}

/* Правая колонка — панель категорий выбранной группы */
.catalog-drawer__categories {
    position: absolute;
    left: min(380px, 100%);
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: calc(100% - min(380px, 100%));
    display: none;
    flex-direction: column;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 5;
    pointer-events: auto;
}

.catalog-drawer__categories.is-open {
    display: flex;
}

.catalog-drawer__categories-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 16px 10px 12px;
    border-bottom: 1px solid var(--av-line);
}

.catalog-drawer__categories-back,
.catalog-drawer__categories-close {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #222;
    font: inherit;
    font-size: 0;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.catalog-drawer__categories-back:hover,
.catalog-drawer__categories-close:hover {
    background: var(--av-soft);
    color: #222;
}

.catalog-drawer__categories-back:active,
.catalog-drawer__categories-close:active {
    background: var(--av-soft);
    color: #222;
}

.catalog-drawer__categories-back svg,
.catalog-drawer__categories-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.catalog-drawer__categories-title {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--av-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-drawer__categories-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
}

/* Список категорий: статичный поток внутри правой панели, сверху вниз */
.menu .catalog-drawer .menu_sublist {
    display: block;
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
}

.menu .catalog-drawer .menu_sublist > li,
.menu .catalog-drawer .menu_sublist-item {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
}

.menu .catalog-drawer .menu_sublist-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 2px 16px 2px 12px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}

.menu .catalog-drawer .menu_sublist-icon {
    width: 40px;
    height: 35px;
    flex: 0 0 40px;
    display: block;
    object-fit: contain;
}

.menu .catalog-drawer .menu_sublist-text {
    min-width: 0;
}

@media all and (min-width: 768px) {
    .catalog-drawer {
        width: min(100vw, 760px);
    }

    .catalog-drawer__section-title,
    .menu .catalog-drawer .menu_list--catalog-drawer {
        width: 380px;
        box-sizing: border-box;
    }
}

@media all and (max-width: 767px) {
    .catalog-drawer {
        width: min(100vw, 380px);
    }

    .catalog-drawer__categories {
        left: 0;
        width: 100%;
        max-width: 100%;
    }
}

.menu .catalog-drawer .menu_list-link {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 40px !important;
    padding: 2px 52px 2px 62px !important;
    cursor: pointer;
    font-weight: 400 !important;
}

.menu .catalog-drawer .menu_list-item.active > .menu_list-link {
    background: var(--av-soft) url(/src/img/chevron-right.svg) no-repeat center right 12px;
    color: var(--av-ink);
}

.menu .catalog-drawer .menu_list-item.active > .menu_list-link:hover {
    color: var(--av-ink);
}

.menu .catalog-drawer .menu_list-link .menu_list-icon {
    width: 40px;
    height: 35px;
    flex: 0 0 40px;
    display: block;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    margin: 0 !important;
    object-fit: contain;
}

/* Каталог: двигатель не выбран — подсветка последнего селекта в фильтре */
.dynamic-filter--engine-required select[name="engines"] {
    border: 2px solid #f93f20;
    box-sizing: border-box;
}

.dynamic-filter--engine-required .choices .choices__inner {
    border: 2px solid #f93f20 !important;
    box-sizing: border-box;
}

.filters__saved-cars-title {
    margin: 25px 0 22px;
}

.filters__car-title {
    font-size: 14px;
}

.saved-car-card {
    width: 100%;
    cursor: pointer;
    margin: 12px 0;
}

.saved-car-card__body {
    min-width: 0;
    width: 100%;
}

.saved-car-card__title {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.saved-car-card__title-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    margin-bottom: 8px;
}

.saved-car-card__title-wrap .saved-car-card__change {
    margin-top: 0;
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1;
    align-self: flex-start;
    gap: 8px;
}

.saved-car-card__title-wrap .saved-car-card__change::after {
    order: -1;
    transform: rotate(45deg) translateY(-6px);
    margin-right: 10px;
}

.saved-car-card--selected .saved-car-card__title {
    margin-bottom: 0;
}

.saved-car-card--selected .saved-car-card__change {
    margin-top: 0;
    width: auto;
    margin-left: 0;
    padding: 0;
}

.saved-car-card__edit {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("../src/img/pencil-red.svg") no-repeat center / contain;
    transform: rotate(-12deg);
}

.saved-car-card__change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 0;
    color: #f93f20;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    margin-left: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}

.saved-car-card__change:hover {
    text-decoration: underline;
}

.saved-car-card__change::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid #f93f20;
    border-bottom: 2px solid #f93f20;
    transform: rotate(45deg) translateY(-2px);
}

.saved-car-picker--dropdown-open .saved-car-card__change::after {
    transform: rotate(-135deg) translateY(-1px);
}

.saved-car-picker--standalone {
    margin-top: 22px;
}

.saved-car-picker--standalone .saved-car-card__change {
    justify-content: flex-start;
    font-size: 14px;
    align-items: flex-start;
}

.saved-car-picker--standalone .saved-car-card__change::after {
    order: -1;
    margin-right: 6px;
    transform: rotate(45deg);
}

.saved-car-picker--standalone.saved-car-picker--dropdown-open .saved-car-card__change::after {
    transform: rotate(-135deg);
}

.saved-car-dropdown {
    display: none;
    margin-top: 10px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.saved-car-dropdown__item {
    padding: 10px 12px;
    cursor: pointer;
}

.saved-car-dropdown__item + .saved-car-dropdown__item {
    border-top: 1px solid #f1f1f1;
}

.saved-car-dropdown__item:hover {
    background: #fafafa;
}

.saved-car-dropdown__item--active {
    background: #fff3ef;
}

.saved-car-dropdown__item--reset {
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-car-dropdown__item--reset::before {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background:
        linear-gradient(45deg, transparent 43%, #f93f20 43%, #f93f20 57%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #f93f20 43%, #f93f20 57%, transparent 57%);
}

.saved-car-dropdown__item--reset .saved-car-dropdown__title {
    color: #222;
}

.saved-car-dropdown__title {
    display: block;
    font-size: 14px;
    color: #222;
}

.saved-car-dropdown__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.saved-car-dropdown__remove {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 0;
    padding: 0;
    background-color: #f93f20;
    -webkit-mask: url("src/img/trash.svg") no-repeat center / contain;
    mask: url("src/img/trash.svg") no-repeat center / contain;
    cursor: pointer;
    opacity: 0.9;
}

.saved-car-dropdown__remove:hover {
    opacity: 1;
}

.saved-car-dropdown__description {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: grey;
}

.saved-car-card__content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.saved-car-card__thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 84px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.saved-car-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.saved-car-card__description {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 13px;
    color: grey;
    word-break: normal;
}


/* Ссылка «Весь каталог» внизу */
.menu .catalog-drawer .menu_list-item--catalog-all .menu_list-link {
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu .catalog-drawer .menu_list-item--catalog-all .menu_list-link a {
    color: inherit;
    text-decoration: none;
    font-weight: 400;
}

.menu .catalog-drawer .menu_list-item--catalog-all .menu_list-link a:hover {
    color: #f93f20;
}

/* Поиск: мобильный полноэкранный popup */
.search-popup__close {
    display: none;
}

@media all and (max-width: 1123px) {
    .header.popup-opened .av-header__search-wrap > .av-header__search {
        visibility: hidden;
        pointer-events: none;
    }

    .header.popup-opened .av-header__search-wrap > .search-popup.opened {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        max-height: none;
        min-height: 100dvh;
        height: auto;
        transform: none;
        border: 0;
        border-radius: 0;
        z-index: 10050;
        padding: calc(max(12px, env(safe-area-inset-top, 0px)) + 48px) 15px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header.popup-opened .av-header__search-wrap > .search-popup.opened .search-popup__close {
        display: block;
        position: absolute;
        top: max(8px, env(safe-area-inset-top, 0px));
        right: max(8px, env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #f0f0f0 url(/src/img/close.svg) no-repeat center / 18px 18px;
        cursor: pointer;
        z-index: 10051;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    .header.popup-opened .search-popup.opened .search-popup__close:active {
        opacity: 0.85;
    }

    .catalog-drawer__header {
        padding: 16px 16px 10px;
    }

    .catalog-drawer__global-spinner {
        padding: 6px 0 0;
    }

    .catalog-drawer__section {
        padding-top: 8px;
    }

    .catalog-drawer__section-title {
        padding: 8px 16px 8px;
    }

    /* Главная: «Подбор по марке» в .grey-section — меньше зазор снизу у .car-brands */
    .grey-section .grey-section_holder > .car-brands:has(.car-brands_columns) {
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .header-city-modal__dialog {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .catalog-quick-search-selected-car {
        gap: 10px;
        padding: 10px 12px;
    }

    .catalog-quick-search-selected-car__thumb {
        width: 88px;
        height: 54px;
        flex-basis: 88px;
    }

    .catalog-quick-search-selected-car__title {
        font-size: 15px;
    }

    .catalog-quick-search-selected-car__description {
        font-size: 13px;
    }

    .header-saved-cars-modal__dialog {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .header-saved-cars-modal__item {
        gap: 10px;
    }

    .header-saved-cars-modal__thumb {
        width: 25%;
        max-width: 25%;
        min-width: 25%;
        height: auto;
        aspect-ratio: 4 / 3;
        flex: 0 0 25%;
    }

    .header-saved-cars-modal__text {
        flex: 1 1 auto;
        min-width: 0;
    }

}

/* -------------------------------------------------------------------------
 * Нижняя плавающая навигация (мобилка, max 1023px). Разметка скрыта в ЛК (PHP).
 * ------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1023px) {
    .content_sidebar #filter_container.filters,
    .content_sidebar #filter_container.filters.opened {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    .has-mobile-bottom-nav {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9980;
        box-sizing: border-box;
        min-height: 60px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        align-items: stretch;
        justify-content: space-around;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-bottom-nav__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        font: inherit;
        color: #8a8a8a;
        font-size: 10px;
        line-height: 1.15;
        font-weight: 500;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    a.mobile-bottom-nav__item {
        -webkit-appearance: none;
        appearance: none;
    }

    body.catalog-drawer-open .mobile-bottom-nav .js-open-catalog-drawer {
        color: #f93f20;
    }

    body.catalog-drawer-open .mobile-bottom-nav .js-open-catalog-drawer .mobile-bottom-nav__label {
        color: #f93f20;
    }

    .mobile-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-bottom-nav__icon svg {
        display: block;
        width: 26px;
        height: 26px;
    }

    /* Корзина: силуэт через mask на отдельном span; счётчик снаружи — иначе маска обрезает бейдж */
    .mobile-bottom-nav__cart-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        overflow: visible;
    }

    .mobile-bottom-nav .mobile-bottom-nav__cart-gfx.cart_icon {
        display: block;
        width: 26px;
        height: 26px;
        margin: 0;
        background: currentColor;
        -webkit-mask-image: url(/src/img/cart.svg);
        mask-image: url(/src/img/cart.svg);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center bottom;
        mask-position: center bottom;
        -webkit-mask-size: 26px auto;
        mask-size: 26px auto;
    }

    .mobile-bottom-nav__cart-wrap .cart_count {
        position: absolute;
        top: -5px;
        right: -8px;
        z-index: 2;
    }

    .mobile-bottom-nav__label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        text-align: center;
    }

    .mobile-bottom-nav__item.is-active,
    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
        color: #f93f20;
    }

    .mobile-bottom-nav__item:active {
        opacity: 0.85;
    }
}

.card {
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.car-models.list-cars {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.car-models_columns {
    margin-bottom: 24px;
}

.car-models_item-year {
    display: block;
    color: #8f8f8f;
}

.car-models_item-value {
    font-size: 16px;
    line-height: 22px;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    white-space: nowrap;
}

.car-models_item-text {
    display: block;
}

.car-models_item-image {
    width: 120px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 120px;
}

.car-models_item-image--placeholder {
    display: block;
    background: #fff url("/images/cars/models/placeholder.svg") no-repeat center / 96px 43px;
    border-radius: 4px;
}

.heading-with-count h2 {
    display: inline;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
}

@media (min-width: 1024px) {
    .car-models_columns {
        columns: 4;
    }
}

@media (min-width: 768px) {
    .car-models_columns.car-models_columns--3 {
        columns: 3;
    }
}

.pages {
    margin-top: 28px;
}

.pages .pages_link {
    min-width: 30px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .pages .pages_link {
        min-width: 46px;
        height: 42px;
        line-height: 42px;
    }
}

.card .card_image {
    width: 220px;
}

.card .card_image-wrap {
    position: static;
}

.card .card_badge {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.card .card_left {
    position: relative;
}

.card .card_badge__new {
    background: rgba(110, 169, 111, 0.8);
}

.card .segment-bars {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    vertical-align: middle;
}

.card .segment-bars__item {
    display: inline-block;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #f4b400;
}

@media (min-width: 1024px) {
    .card .card_data {
        margin-left: 28px !important;
    }
}

@media (max-width: 1023px) {
    .card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card .card_title {
        font-size: 17px;
        line-height: 21px;
    }
}

.card.card_v2 {
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.card.card_v2 .card_v2_left {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.card.card_v2 .card_v2_image-wrap {
    margin-bottom: 0;
    text-align: center;
    flex: 0 0 210px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.card_v2 .card_v2_image {
    width: 200px;
    max-height: 180px;
    object-fit: contain;
    margin: 0;
}

.card.card_v2 .card_v2_data {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.card.card_v2 .card_v2_title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 10px;
    /* text-transform: uppercase; */
}

.card.card_v2 .card_v2_description {
    color: #5d5d5d;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card.card_v2 .card_v2_section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 14px 0 8px;
    border-top: none;
    padding-top: 0;
}

.card.card_v2 .card_v2_section-title__tech {
    margin-top: 10px;
}

.card.card_v2 .card_v2_section-icon,
.card.card_v2 .card_v2_row-icon {
    width: 16px;
    height: 16px;
    line-height: 1;
    color: #8c8c8c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
}

.card.card_v2 .card_v2_section-icon svg,
.card.card_v2 .card_v2_row-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.card.card_v2 .card_v2_row {
    margin-top: 5px;
    font-size: 15px;
}

@media (min-width: 1124px) {
    .card.card_v2 .card_table-row.card_v2_row {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .card.card_v2 .card_v2_row > .card_table-cell:nth-child(1) {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(50% - 24px);
        color: #8f8f8f;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card.card_v2 .card_v2_row > .card_table-cell:nth-child(2) {
        flex: 1 1 0;
        min-width: 12px;
        height: 1px;
        margin: 0 10px;
        border-bottom: 1px solid #ebebeb;
        align-self: center;
    }

    .card.card_v2 .card_v2_row > .card_table-cell:nth-child(3) {
        flex: 0 1 50%;
        width: 50%;
        max-width: 50%;
        min-width: 0;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.card.card_v2 .card_v2_label {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.card.card_v2 .segment-bars {
    margin-right: 6px;
}

.card.card_v2 .segment-bars__item {
    width: 14px;
}

.card.card_v2 .card_v2_price-panel {
    width: 220px;
    border: none;
    border-radius: 10px;
    padding: 16px;
    margin-left: 28px;
    flex-shrink: 0;
    background: #fff;
    box-sizing: border-box;
}

.card.card_v2 .card_controls.card_controls_v2 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
}

.card.card_v2 .card_controls_v2 .card_price,
.card.card_v2 .card_controls_v2 .card_button {
    order: initial;
}

.card.card_v2 .card_controls_v2 .price-stock-line {
    color: #2f9e44;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card.card_v2 .card_controls_v2 .price-stock-line__stale {
    color: #8f8f8f;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
}

.card.card_v2 .card_controls_v2 .price-stock-line__order {
    color: #f39a11;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.card.card_v2 .card_controls_v2 .price-stock-line:before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    flex: 0 0 12px;
}

.card.card_v2 .card_controls_v2 .price-stock-line__stale:before {
    background: #b0b0b0;
}

.card.card_v2 .card_controls_v2 .price-stock-line__order:before {
    background: #f39a11;
}

.card.card_v2 .card_controls_v2 .price-stock-line__link {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.card.card_v2 .card_controls_v2 .price-stock-line__link:hover,
.card.card_v2 .card_controls_v2 .price-stock-line__link:focus-visible {
    text-decoration: underline;
}

.card.card_v2 .card_controls_v2 .price-caption-line {
    font-size: 13px;
    color: #8f8f8f;
}

.card.card_v2 .card_controls_v2 .price-main-line {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.card.card_v2 .card_controls_v2 .price-main-line .card_price {
    flex: 0 1 auto;
    min-width: 0;
}

.card.card_v2 .card_controls_v2 .card_price {
    margin: 0;
}

.card.card_v2 .card_controls_v2 .card_price .price {
    font-size: 20px;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.card.card_v2 .card_controls_v2 .card_price .price .price_value {
    font-size: 24px;
}

.card.card_v2 .card_controls_v2 .card_price .price .price_fractional {
    font-size: 16px;
}

.card.card_v2 .card_controls_v2 .price-muted-line {
    color: #6d6d6d;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.card.card_v2 .card_controls_v2 > .price-stock-line + .price-muted-line {
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.25;
}

.card.card_v2 .card_controls_v2 > .price-stock-line__stale + .price-muted-line {
    margin-top: 0;
}

.card.card_v2 .card_controls_v2 > .price-stock-line__order + .price-muted-line {
    margin-top: 0;
}

/* «В наличии» / статус без строки срока — такой же отступ до цены, как после «Поставка:…» */
.card.card_v2 .card_controls_v2 > .price-stock-line:not(:has(+ .price-muted-line)) {
    margin-bottom: 12px;
}

.card.card_v2 .card_controls_v2 > .price-stock-line + .price-main-line {
    margin-top: 0;
}

/* После строки срока («Поставка:…»): больше воздуха до блока цены */
.card.card_v2 .card_controls_v2 > .price-muted-line + .price-main-line {
    margin-top: 0;
}

.card.card_v2 .card_controls_v2 .price-sellers-line {
    color: #4a4a4a;
    font-size: 13px;
    line-height: 1.3;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card.card_v2 .card_controls_v2 .price-sellers-line:before {
    content: none !important;
}

.card.card_v2 .card_controls_v2 .price-sellers-icon {
    width: 16px;
    height: 16px;
    color: #6f6f6f;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
}

.card.card_v2 .card_controls_v2 .price-sellers-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.card.card_v2 .card_controls_v2 .card_button {
    width: 100%;
    margin-top: 6px;
}

.card.card_v2 .card_controls_v2 .price-action-button:not(.price-action-button--link) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    border: 1px solid #e15757;
    border-radius: 8px;
    background: transparent;
    background-image: none;
    color: #c73838;
    font-size: 14px;
    font-weight: 500 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
    padding: 0 12px;
    line-height: 1;
}

.card.card_v2 .card_controls_v2 .price-action-button .price-sellers-count {
    line-height: 1;
}

.card.card_v2 .card_controls_v2 .price-action-button .price-sellers-icon {
    color: inherit;
}

.card.card_v2 .card_controls_v2 a.price-action-button:not(.price-action-button--link):hover,
.card.card_v2 .card_controls_v2 button.price-action-button:not(.price-action-button--link):hover,
.card.card_v2 .card_controls_v2 a.price-action-button:not(.price-action-button--link):active,
.card.card_v2 .card_controls_v2 a.price-action-button:not(.price-action-button--link):focus-visible,
.card.card_v2 .card_controls_v2 button.price-action-button:not(.price-action-button--link):active,
.card.card_v2 .card_controls_v2 button.price-action-button:not(.price-action-button--link):focus-visible {
    background: #e15757;
    background-image: none;
    color: #fff;
    opacity: 1;
}

.card.card_v2 .card_controls_v2 .price-action-button--compact:not(.price-action-button--link) {
    width: auto;
    min-width: 0;
    max-width: 100%;
    align-self: flex-start;
}

@media (max-width: 1023px) {
    .card.card_v2 {
        display: block;
        padding: 14px;
    }

    .card.card_v2 .card_v2_left {
        display: block;
    }

    .card.card_v2 .card_v2_image-wrap {
        width: 100%;
        margin: 0 0 10px;
        height: 170px;
    }

    .card.card_v2 .card_v2_image {
        width: 100%;
        max-width: 260px;
        max-height: 160px;
        margin: 0;
    }

    .card.card_v2 .card_v2_data {
        margin-top: 8px;
    }

    .card.card_v2 .card_v2_title {
        font-size: 18px;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .card.card_v2 .card_v2_description {
        font-size: 12px;
    }

    .card.card_v2 .card_v2_row {
        font-size: 15px;
    }

    .card.card_v2 .card_v2_price-panel {
        width: 100%;
        margin: 12px 0 0;
        padding: 14px;
        box-sizing: border-box;
    }

    .card.card_v2 .card_controls_v2 .price-stock-line {
        font-size: 18px;
    }

    .card.card_v2 .card_controls_v2 .price-caption-line {
        font-size: 12px;
    }

    .card.card_v2 .card_controls_v2 .price-main-line {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .card.card_v2 .card_controls_v2 .card_price .price,
    .card.card_v2 .card_controls_v2 .card_price .price .price_value {
        font-size: 22px;
    }

    .card.card_v2 .card_controls_v2 .card_price {
        text-align: left;
    }

    .card.card_v2 .card_controls_v2 .card_price .price .price_fractional {
        font-size: 15px;
    }

    .card.card_v2 .card_controls_v2 .price-muted-line {
        font-size: 12px;
    }

    .card.card_v2 .card_controls_v2 .price-sellers-line {
        font-size: 13px;
    }

    .card.card_v2 .card_controls_v2 .price-action-button:not(.price-action-button--link) {
        font-size: 14px;
        height: 40px;
        min-height: 40px;
    }

    .card.card_v2 .card_controls_v2 .price-action-button:not(.price-action-button--link):active,
    .card.card_v2 .card_controls_v2 .price-action-button:not(.price-action-button--link):hover,
    .card.card_v2 .card_controls_v2 .price-action-button:not(.price-action-button--link):focus-visible {
        background: #e15757;
        background-image: none;
        color: #fff;
    }
}

/* ≥1124px: .card — flex; иначе .card_v2_left { width:100% } растягивает карточку на всю ширину */
@media (min-width: 1124px) {
    .content > .content_sidebar + div {
        min-width: 0;
    }

    .card.card_v2 {
        align-items: flex-start;
    }

    .card.card_v2 .card_v2_left {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
    }
}

/* ==========================================================================
   Поисковая подсказка (десктоп) — всплывающее окно поиска
   ========================================================================== */
.search-suggest {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--av-ink);
}

.search-suggest.is-open {
    display: block;
}

.search-suggest__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 19, 24, 0.4);
}

.search-suggest__dialog {
    position: relative;
    z-index: 1;
    width: min(800px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    margin: 72px auto 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
    overflow: hidden;
}

.search-suggest *,
.search-suggest *::before,
.search-suggest *::after {
    box-sizing: border-box;
}

/* Поисковая строка */
.search-suggest__searchbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--av-line);
}

.search-suggest__field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 18px;
    background: #f1f3f6;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
}

.search-suggest__field-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: #8b94a3;
    display: block;
}

.search-suggest .search-suggest__input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: var(--av-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.2;
}

.search-suggest__input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-suggest__input::placeholder {
    color: #8b94a3;
}

.search-suggest__clear {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: normal;
    text-align: initial;
    border: 0;
    background: transparent;
    color: #9aa1ab;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: color 0.15s ease;
}

.search-suggest__clear svg {
    display: block;
}

.search-suggest__clear:active {
    background: transparent;
    color: var(--av-ink);
}

.search-suggest__clear:hover {
    color: var(--av-ink);
}

/* Секции */
.search-suggest__body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.search-suggest__loader,
.search-suggest__body > .search-results,
.search-suggest__body > table,
.search-suggest__body > .cards {
    padding: 16px 24px;
}

.search-suggest__loader {
    display: flex;
    justify-content: center;
}

.search-suggest__body > table {
    width: 100%;
}

.search-suggest__section {
    padding: 16px 24px;
}

.search-suggest__section--products {
    border-top: 1px solid var(--av-line);
}

.search-suggest__section-title {
    margin-bottom: 8px;
    color: #a7adb6;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

/* Категории */
.search-suggest__categories,
.search-suggest__products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-suggest__category-link {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    padding: 7px 0;
    color: var(--av-ink);
    text-decoration: none;
}

.search-suggest__category-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-suggest__category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.search-suggest__category-name {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
}

.search-suggest__category-name strong,
.search-suggest__category-name sup strong,
.search-suggest__category-count strong,
.search-suggest__category-auto strong,
.search-suggest__product-article strong,
.search-suggest__product-name strong {
    font-weight: 700;
    color: var(--av-red);
}

.search-suggest__category-count {
    margin-top: 2px;
    margin-left: 4px;
    color: #a7adb6;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.search-suggest__category-name sup {
    margin-left: 3px;
    color: #a7adb6;
    font-size: 11px;
    font-weight: 400;
    line-height: 0;
    vertical-align: super;
    position: relative;
    top: -0.35em;
    white-space: nowrap;
}

.search-suggest__category-auto {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 32px;
    color: #a7adb6;
    font-size: 15px;
    line-height: 1.25;
}

.search-suggest__category-auto-brand {
    color: var(--av-ink);
    font-weight: 700;
}

.search-suggest__category-auto-details {
    color: #a7adb6;
}

.search-suggest__category-link:hover .search-suggest__category-name {
    color: var(--av-red);
}

.search-suggest__empty {
    color: #8b94a3;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

.search-suggest__section--empty {
    width: 100%;
    padding: 16px 24px;
    text-align: left;
}

/* Товары */
.search-suggest__product-link {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 7px 0;
    color: var(--av-ink);
    text-decoration: none;
}

.search-suggest__product-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f6;
    border: 1px solid var(--av-line);
}

.search-suggest__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-suggest__product-article,
.search-suggest__product-brand {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--av-ink);
    white-space: nowrap;
}

.search-suggest__product-name {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    color: var(--av-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-suggest__match {
    font-weight: inherit;
    color: var(--av-red);
}

.search-suggest__product-link:hover .search-suggest__product-name {
    color: var(--av-red);
}

/* Подвал */
.search-suggest__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--av-line);
    text-align: center;
}

.search-suggest__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f80ed;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.search-suggest__more:hover {
    color: #1f6fd6;
}

.search-suggest__more svg {
    display: block;
}

body.search-suggest-opened {
    overflow: hidden;
}

/* Мобильная версия поисковой подсказки */
@media (max-width: 767px) {
    .search-suggest__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px auto 0;
    }

    .search-suggest__searchbar {
        padding: 12px 14px;
    }

    .search-suggest__field {
        height: 48px;
        padding: 0 14px;
    }

    .search-suggest__section,
    .search-suggest__footer {
        padding: 14px 16px;
    }

    .search-suggest__product-link {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 3px;
    }

    .search-suggest__product-thumb {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
    }

    .search-suggest__product-article {
        grid-column: 1;
        grid-row: 1;
    }

    .search-suggest__product-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .search-suggest__product-name {
        grid-column: 1 / 3;
        grid-row: 2;
        white-space: normal;
    }
}

/* Страница результатов поиска — дизайн в стиле поисковой подсказки (попапа) */
.search-results-page {
    background: #fff;
    border: 1px solid var(--av-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.06);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--av-ink);
}

.search-results-page *,
.search-results-page *::before,
.search-results-page *::after {
    box-sizing: border-box;
}

.search-results-page .search-suggest__product-name {
    white-space: normal;
}

/* Строка товара с кнопкой «Подробнее» */
.search-results-page .search-suggest__product {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.search-results-page .search-suggest__product:last-child {
    margin-bottom: 0;
}

.search-results-page .search-suggest__product-link {
    flex: 1 1 auto;
    min-width: 0;
}

.search-results-page .search-suggest__product-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--av-red);
    border-radius: 6px;
    background: #fff;
    color: var(--av-red);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-results-page .search-suggest__product-btn:hover,
.search-results-page .search-suggest__product-btn:focus {
    background: var(--av-red);
    color: #fff;
}

@media (max-width: 767px) {
    .search-results-page .search-suggest__product-link {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 3px;
    }

    .search-results-page .search-suggest__product-article {
        grid-column: 1;
        grid-row: 1;
    }

    .search-results-page .search-suggest__product-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .search-results-page .search-suggest__product-name {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .search-results-page .search-suggest__product-btn {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
    }
}
