/* =====================================================
   МПКМ — Бренды строительной химии
   Основано на финальном Kimi макете
   ===================================================== */

.mpkm-brands-page {
    --mpkm-primary: #fbbf24;
    --mpkm-primary-dark: #f59e0b;
    --mpkm-dark: #0f172a;
    --mpkm-dark-light: #1e293b;
    --mpkm-gray-50: #f8fafc;
    --mpkm-gray-100: #f1f5f9;
    --mpkm-gray-200: #e2e8f0;
    --mpkm-gray-300: #cbd5e1;
    --mpkm-gray-400: #94a3b8;
    --mpkm-gray-500: #64748b;
    --mpkm-gray-600: #475569;
    --mpkm-gray-700: #334155;
    --mpkm-gray-800: #1e293b;
    --mpkm-gray-900: #0f172a;
    --mpkm-white: #ffffff;
    --mpkm-radius: 16px;
    --mpkm-radius-sm: 12px;
    --mpkm-radius-xs: 8px;
    --mpkm-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --mpkm-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --mpkm-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --mpkm-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --mpkm-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mpkm-brands-page .brands-hero *,
.mpkm-brands-page .brands-filter *,
.mpkm-brands-page .brands-grid *,
.mpkm-brands-page .brands-empty *,
.mpkm-brands-page .brands-cta * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mpkm-brands-page .brands-hero,
.mpkm-brands-page .brands-filter,
.mpkm-brands-page .brands-grid,
.mpkm-brands-page .brands-empty,
.mpkm-brands-page .brands-cta {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mpkm-brands-page {
    margin: 0 0 24px;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.mpkm-brands-page .brands-hero {
    position: relative;
    background: linear-gradient(135deg, var(--mpkm-dark) 0%, var(--mpkm-dark-light) 50%, var(--mpkm-dark) 100%);
    color: var(--mpkm-white);
    padding: 80px 20px 100px;
    overflow: hidden;
}

.mpkm-brands-page .brands-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mpkm-brands-page .brands-hero__blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.mpkm-brands-page .brands-hero__blur--1 {
    width: 400px;
    height: 400px;
    background: var(--mpkm-primary);
    top: -100px;
    right: -100px;
}

.mpkm-brands-page .brands-hero__blur--2 {
    width: 400px;
    height: 400px;
    background: #60a5fa;
    bottom: -100px;
    left: -100px;
}

.mpkm-brands-page .brands-hero__blur--3 {
    width: 500px;
    height: 500px;
    background: var(--mpkm-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

.mpkm-brands-page .brands-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.mpkm-brands-page .brands-hero__content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.mpkm-brands-page .brands-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #fde68a;
    margin-bottom: 28px;
}

.mpkm-brands-page .brands-hero__pulse {
    width: 8px;
    height: 8px;
    background: var(--mpkm-primary);
    border-radius: 50%;
    animation: mpkmPulse 2s ease-in-out infinite;
}

@keyframes mpkmPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.mpkm-brands-page .brands-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
}

.mpkm-brands-page .brands-hero__accent {
    background: linear-gradient(135deg, #fde68a 0%, var(--mpkm-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mpkm-brands-page .brands-hero__subtitle {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 680px;
    margin: 0 auto 48px;
}

.mpkm-brands-page .brands-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

/* Узкий экран: сетка 2×2 — визуально товары → страны → бренды → годы (как на ≥480 остаётся исходный DOM-порядок) */
@media (max-width: 479px) {
    .mpkm-brands-page .brands-hero__stat--products {
        order: 1;
    }

    .mpkm-brands-page .brands-hero__stat--countries {
        order: 2;
    }

    .mpkm-brands-page .brands-hero__stat--brands {
        order: 3;
    }

    .mpkm-brands-page .brands-hero__stat--years {
        order: 4;
    }
}

.mpkm-brands-page .brands-hero__stat {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--mpkm-radius);
    padding: 20px;
    transition: var(--mpkm-transition);
}

.mpkm-brands-page .brands-hero__stat:hover {
    background: rgba(255,255,255,0.1);
}

.mpkm-brands-page .brands-hero__stat-icon {
    width: 24px;
    height: 24px;
    color: var(--mpkm-primary);
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}

.mpkm-brands-page .brands-hero__stat:hover .brands-hero__stat-icon {
    transform: scale(1.1);
}

.mpkm-brands-page .brands-hero__stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--mpkm-white);
    line-height: 1;
    margin-bottom: 6px;
}

.mpkm-brands-page .brands-hero__stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.mpkm-brands-page .brands-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 50px;
}

.mpkm-brands-page .brands-hero__wave svg {
    width: 100%;
    height: 100%;
}

/* Hero: mobile — плашка второстепенная, H1 главный (desktop без изменений: от 640px) */
@media (max-width: 639px) {
    .mpkm-brands-page .brands-hero {
        padding: 56px 16px 80px;
    }

    /* 11px + !important; в Chrome часто действует min font-size ~12–18px — scale визуально уменьшает плашку */
    .mpkm-brands-page .brands-hero__badge {
        font-size: 11px !important;
        font-weight: 500;
        padding: 5px 11px !important;
        border-radius: 8px !important;
        margin-bottom: 14px;
        gap: 6px;
        max-width: 100%;
        transform: scale(0.88);
        transform-origin: center top;
    }

    .mpkm-brands-page .brands-hero__badge,
    .mpkm-brands-page .brands-hero__badge span {
        font-size: 11px !important;
    }

    .mpkm-brands-page .brands-hero__badge span:last-child {
        line-height: 1.35;
        text-align: left;
    }

    .mpkm-brands-page .brands-hero__pulse {
        width: 6px;
        height: 6px;
        flex-shrink: 0;
    }

    .mpkm-brands-page h1.brands-hero__title,
    .mpkm-brands-page .brands-hero__title {
        font-size: clamp(28px, 8.5vw, 36px) !important;
        line-height: 1.12;
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .mpkm-brands-page .brands-hero__subtitle {
        margin-bottom: 32px;
    }
}

/* =====================================================
   FILTER SECTION
   ===================================================== */
.mpkm-brands-page .brands-filter {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--mpkm-gray-200);
    box-shadow: var(--mpkm-shadow);
    padding: 16px 0;
    margin: 0;
}

.mpkm-brands-page .brands-filter__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
}

.mpkm-brands-page .brands-filter__search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.mpkm-brands-page .brands-filter__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mpkm-gray-400);
    pointer-events: none;
}

.mpkm-brands-page input.brands-filter__input {
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 36px 0 38px !important;
    background: var(--mpkm-gray-50) !important;
    border: 1px solid var(--mpkm-gray-200) !important;
    border-radius: var(--mpkm-radius-sm) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
    color: var(--mpkm-gray-800) !important;
    transition: var(--mpkm-transition);
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.mpkm-brands-page #searchInput {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.mpkm-brands-page input.brands-filter__input::placeholder {
    color: var(--mpkm-gray-400) !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

.mpkm-brands-page input.brands-filter__input:focus {
    background: var(--mpkm-white) !important;
    border-color: var(--mpkm-primary) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

.mpkm-brands-page .brands-filter__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--mpkm-gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mpkm-brands-page .brands-filter__clear:hover {
    color: var(--mpkm-gray-600);
}

.mpkm-brands-page .brands-filter__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    flex: 0 0 auto;
    flex-wrap: wrap;
}

.mpkm-brands-page .brands-filter__select-wrap {
    position: relative;
    min-width: 0;
}

.mpkm-brands-page .brands-filter__select-wrap.is-active .brands-filter__select {
    border-color: var(--mpkm-primary) !important;
    background: var(--mpkm-white) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16) !important;
}

.mpkm-brands-page select.brands-filter__select {
    appearance: none;
    -webkit-appearance: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    width: 142px;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 32px 0 14px !important;
    background: var(--mpkm-gray-50) !important;
    border: 1px solid var(--mpkm-gray-200) !important;
    border-radius: var(--mpkm-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
    color: var(--mpkm-gray-700) !important;
    cursor: pointer;
    transition: var(--mpkm-transition);
    outline: none !important;
    box-shadow: none !important;
}

.mpkm-brands-page #categorySelect,
.mpkm-brands-page #countrySelect {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.mpkm-brands-page select.brands-filter__select:focus {
    background: var(--mpkm-white) !important;
    border-color: var(--mpkm-primary) !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2) !important;
}

.mpkm-brands-page .brands-filter__select-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mpkm-gray-400);
    pointer-events: none;
}

.mpkm-brands-page button.brands-filter__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    height: 44px !important;
    padding: 0 14px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: var(--mpkm-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #dc2626 !important;
    cursor: pointer;
    transition: var(--mpkm-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.mpkm-brands-page button.brands-filter__reset:hover {
    color: #b91c1c !important;
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

.mpkm-brands-page .brands-filter__meta {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    box-sizing: border-box;
}

.mpkm-brands-page .brands-filter__results {
    margin: 0;
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--mpkm-gray-500);
}

.mpkm-brands-page .brands-filter__active {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mpkm-brands-page .brands-filter__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    padding: 6px 10px;
}

.mpkm-brands-page .brands-filter__badge-label {
    color: #92400e;
}

.mpkm-brands-page .brands-filter__badge-value {
    color: #b45309;
}

.mpkm-brands-page .brands-filter__results,
.mpkm-brands-page .brands-filter__active {
    max-width: 1200px;
    min-height: 20px;
}

.mpkm-brands-page .brands-filter__results strong {
    color: var(--mpkm-gray-700);
}

/* =====================================================
   BRAND GRID
   ===================================================== */
.mpkm-brands-page .brands-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    align-items: stretch;
}

.mpkm-brands-page .brands-card {
    position: relative;
    background: var(--mpkm-white);
    border: 1px solid var(--mpkm-gray-200);
    border-radius: var(--mpkm-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mpkm-brands-page .brands-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    border-color: #d1d5db;
}

.mpkm-brands-page .brands-card__inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.mpkm-brands-page .brands-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.mpkm-brands-page .brands-card__logo {
    width: 68px;
    height: 68px;
    border-radius: var(--mpkm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: var(--mpkm-gray-700);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--mpkm-white);
    border: 1px solid var(--mpkm-gray-200);
    box-sizing: border-box;
}

.mpkm-brands-page .brands-card__logo--neutral {
    background: #fff;
    color: var(--mpkm-gray-700);
}

.mpkm-brands-page .brands-card__logo--fallback {
    background: #fff;
}

.mpkm-brands-page .brands-card__logo-fallback-text {
    color: var(--mpkm-gray-700);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mpkm-brands-page .brands-card__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
    box-sizing: border-box;
}

.mpkm-brands-page .brands-card__title-wrap {
    flex: 1;
    min-width: 0;
}

.mpkm-brands-page .brands-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--mpkm-gray-900);
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.mpkm-brands-page .brands-card:hover .brands-card__title {
    color: #0f172a;
}

.mpkm-brands-page .brands-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    min-height: calc(12px * 1.5 * 2);
    color: var(--mpkm-gray-500);
    align-content: flex-start;
}

.mpkm-brands-page .brands-card__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--mpkm-gray-600);
    margin-bottom: 12px;
    min-height: calc(1.55em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpkm-brands-page .brands-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
    min-height: 58px;
    align-content: flex-start;
    align-items: flex-start;
}

.mpkm-brands-page .brands-card__tag {
    display: inline-block;
    padding: 5px 10px;
    background: var(--mpkm-gray-100);
    color: var(--mpkm-gray-600);
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    line-height: 1;
}

.mpkm-brands-page .brands-card__tag--more {
    background: var(--mpkm-gray-50);
    color: var(--mpkm-gray-400);
}

.mpkm-brands-page .brands-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.mpkm-brands-page .brands-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    border-radius: var(--mpkm-radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--mpkm-transition);
}

.mpkm-brands-page .brands-card__btn--primary {
    background: var(--mpkm-dark);
    color: var(--mpkm-white);
}

.mpkm-brands-page .brands-card__btn--primary:hover {
    background: #334155;
    color: var(--mpkm-white);
}

.mpkm-brands-page .brands-card__btn--primary svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.mpkm-brands-page .brands-card__btn--primary:hover svg {
    transform: translateX(3px);
}

.mpkm-brands-page .brands-card__accent {
    height: 3px;
    width: 100%;
    background: var(--mpkm-gray-200);
    margin-top: auto;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.mpkm-brands-page .brands-empty {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.mpkm-brands-page .brands-empty__icon {
    width: 64px;
    height: 64px;
    background: var(--mpkm-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--mpkm-gray-400);
}

.mpkm-brands-page .brands-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--mpkm-gray-700);
    margin-bottom: 6px;
}

.mpkm-brands-page .brands-empty p {
    font-size: 14px;
    color: var(--mpkm-gray-500);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.mpkm-brands-page .brands-cta {
    position: relative;
    background: var(--mpkm-dark);
    color: var(--mpkm-white);
    padding: 80px 0;
    overflow: hidden;
}

.mpkm-brands-page .brands-cta__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mpkm-brands-page .brands-cta__blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}

.mpkm-brands-page .brands-cta__blur--1 {
    width: 350px;
    height: 350px;
    background: var(--mpkm-primary);
    top: -80px;
    right: -80px;
}

.mpkm-brands-page .brands-cta__blur--2 {
    width: 350px;
    height: 350px;
    background: #60a5fa;
    bottom: -80px;
    left: -80px;
}

.mpkm-brands-page .brands-cta__content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    box-sizing: border-box;
}

.mpkm-brands-page .brands-cta__privacy {
    grid-column: 1 / -1;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 56em;
}

.mpkm-brands-page .brands-cta__privacy a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mpkm-brands-page .brands-cta__privacy a:hover {
    color: #fff;
}

.mpkm-brands-page .brands-cta__title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

.mpkm-brands-page .brands-cta__title span {
    color: var(--mpkm-primary);
}

.mpkm-brands-page .brands-cta__text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}

.mpkm-brands-page .brands-cta__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.mpkm-brands-page .brands-cta__benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.mpkm-brands-page .brands-cta__benefit-icon {
    width: 36px;
    height: 36px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpkm-primary);
    flex-shrink: 0;
}

.mpkm-brands-page .brands-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.mpkm-brands-page .brands-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--mpkm-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--mpkm-transition);
}

.mpkm-brands-page .brands-cta__btn--primary {
    background: var(--mpkm-primary);
    color: var(--mpkm-dark);
}

.mpkm-brands-page .brands-cta__btn--primary:hover {
    background: #fde68a;
}

.mpkm-brands-page .brands-cta__btn--secondary {
    background: rgba(255,255,255,0.1);
    color: var(--mpkm-white);
    border: 1px solid rgba(255,255,255,0.2);
}

.mpkm-brands-page .brands-cta__btn--secondary:hover {
    background: rgba(255,255,255,0.2);
}

.mpkm-brands-page .brands-cta__note {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.mpkm-brands-page .brands-cta__form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--mpkm-radius);
    padding: 32px;
}

.mpkm-brands-page .brands-cta__form h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mpkm-brands-page .brands-cta__form > p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}

.mpkm-brands-page .brands-cta__form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (min-width: 480px) {
    .mpkm-brands-page .brands-hero__stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) {
    .mpkm-brands-page .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mpkm-brands-page .brands-cta__benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .mpkm-brands-page .brands-filter__container {
        flex-wrap: nowrap;
    }
    
    .mpkm-brands-page .brands-filter__meta {
        align-items: center;
    }
    
    .mpkm-brands-page .brands-cta__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .mpkm-brands-page .brands-filter {
        padding: 14px 14px;
    }

    .mpkm-brands-page .brands-filter__container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .mpkm-brands-page .brands-filter__search {
        width: 100%;
        max-width: 100%;
    }

    .mpkm-brands-page .brands-filter__controls {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mpkm-brands-page .brands-filter__select-wrap {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .mpkm-brands-page select.brands-filter__select {
        width: 100%;
    }

    .mpkm-brands-page button.brands-filter__reset {
        flex: 1 1 100%;
        width: 100%;
    }

    .mpkm-brands-page .brands-filter__meta {
        margin-top: 6px;
    }
}

@media (min-width: 1024px) {
    .mpkm-brands-page .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .mpkm-brands-page .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* SEO fold (как на витрине бренда) */
.mpkm-brands-page .brands-seo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold,
.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold {
    margin: 0;
    border: 0;
    padding: 0;
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum:hover,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum::-webkit-details-marker,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum::-webkit-details-marker {
    display: none;
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum-btn::after,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum-btn::after {
    content: "↓";
    font-size: 1rem;
    margin-left: 0.25rem;
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold[open] .mpkm-brand-page__seo-fold-sum-btn::after,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold[open] .mpkm-brand-page__seo-fold-sum-btn::after {
    content: "↑";
}

.mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-body,
.mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-body {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    margin-top: -6px;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
}

@media (max-width: 640px) {
    .mpkm-brands-page .catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum,
    .mpkm-brands-page.catalog-section--mpkm-brand .mpkm-brand-page__seo-fold-sum {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
}
