/* Общие шрифты каталога */
.page-regions,
.page-regions * {
    font-family: "Geologica", sans-serif !important;
}

/* Заголовки — как на всём сайте */
.section-title,
.brand-title,
.model-title {
    font-family: "Unbounded", sans-serif !important;
    font-weight: 600;
}

/* ========================================================================== */
/* Основной контейнер каталога */
/* ========================================================================== */

.page-regions {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* ========================================================================== */
/* Заголовки */
/* ========================================================================== */

.section-title {
    font-size: 32px;
    font-weight: 300;
    color: #2b3243;
    margin: 0 0 24px;
    line-height: 1.2;
}

.page-catalog-title {
    margin-bottom: 24px;
}

/* ========================================================================== */
/* Фильтры */
/* ========================================================================== */

.region-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
    margin-bottom: 40px;
}

.region-filters input,
.region-filters select {
    height: 56px;
    border-radius: 16px;
    border: 1px solid #d9dfe7;
    font-size: 16px;
    padding: 0 18px;
    background: #fff;
}

/* ========================================================================== */
/* НОВЫЕ карточки ПОПУЛЯРНЫХ брендов (вариант №3) */
/* ========================================================================== */

.brand-popular-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f0f3f5;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    width: 100%;
    min-height: 260px;
    transition: border-color .25s ease;
}

.brand-popular-card:hover {
    border-color: #e2e2e2;
}

.brand-popular-card .brand-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 16px;
}

.brand-popular-card .brand-title {
    font-size: 20px;
    font-weight: 300;
    color: #2b3243;
    margin-bottom: 6px;
}

.brand-popular-card .brand-count {
    font-size: 14px;
    color: #7c818f;
}

/*
    ВАЖНО‼️
    Кнопки в каталоге теперь ИСПОЛЬЗУЮТ КЛАСС .pr-btn — как в регионах.
    Никаких .brand-btn больше не существует!
*/

/* ========================================================================== */
/* СЛАЙДЕР */
/* ========================================================================== */

.popular-slider-wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
    margin-bottom: 48px;
}

.popular-slider-container {
    width: 100%;
}

.popular-swiper .swiper-slide {
    display: flex;
    height: auto;
}

/* ========================================================================== */
/* СТРЕЛКИ */
/* ========================================================================== */

.popular-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f3f3f3;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-arrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 2px solid #4a4f5f;
    border-right: 2px solid #4a4f5f;
}

.popular-prev::before {
    transform: rotate(-135deg);
}

.popular-next::before {
    transform: rotate(45deg);
}

/* ========================================================================== */
/* Обычные карточки ВСЕ МАРКИ */
/* ========================================================================== */

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.brand-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f3f5;
    padding: 26px 30px;
    transition: 0.25s;
    box-sizing: border-box;
}

.brand-card:hover {
    border-color: #dcdfe3;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 4px;
    color: #2b3243;
}

.brand-count {
    font-size: 14px;
    color: #8a8f9b;
}

/* ========================================================================== */
/* Адаптив */
/* ========================================================================== */

@media (max-width: 768px) {

    .popular-arrow {
        display: none !important;
    }

    .popular-slider-wrapper {
        gap: 0;
        margin-bottom: 32px;
    }

    .popular-swiper {
        display: block;
    }

    .popular-swiper .swiper-wrapper {
        display: block !important;
        transform: none !important;
    }

    .popular-swiper .swiper-slide {
        display: block !important;
        width: 100% !important;
        max-width: 380px;
        margin: 0 auto 20px !important;
    }

    .brand-popular-card {
        min-height: 220px;
    }

    .regions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .brand-popular-card .brand-logo {
        width: 64px;
        height: 64px;
    }
}