/* ===== BRANDS PAGE ===== */
.brands-page {
    padding: 28px 0 48px;
}

.brands-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.brands-page__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text, #2d2d2d);
    margin: 0 0 8px;
}

.brands-page__text {
    margin: 0;
    max-width: 640px;
    color: var(--text-muted, #5a6472);
    line-height: 1.5;
}

.brands-page__meta {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #1a56a0);
    white-space: nowrap;
}

.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 12px;
    background: #fff;
}

.brands-alphabet__link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text, #2d2d2d);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.brands-alphabet__link:hover {
    border-color: var(--blue, #1a56a0);
    color: var(--blue, #1a56a0);
    background: rgba(26, 86, 160, 0.06);
}

.brands-groups {
    display: grid;
    gap: 28px;
}

.brands-group__letter {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text, #2d2d2d);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent, #f2a900);
    display: inline-block;
    min-width: 32px;
}

.brands-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.brands-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px 14px;
    border: 1.5px solid var(--border, #e0e4ea);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--text, #2d2d2d);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    height: 100%;
}

.brands-card:hover {
    border-color: var(--blue, #1a56a0);
    box-shadow: 0 4px 14px rgba(26, 86, 160, 0.12);
    transform: translateY(-2px);
}

.brands-card__logo {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-card__logo img {
    max-width: 130px;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(25%);
    transition: filter 0.2s;
}

.brands-card:hover .brands-card__logo img {
    filter: grayscale(0);
}

.brands-card--no-logo .brands-card__logo img {
    filter: none;
    opacity: 0.95;
    max-width: 56px;
    max-height: 56px;
}

.brands-card--no-logo:hover .brands-card__logo img {
    opacity: 1;
}

.brand-hero__logo--placeholder img {
    opacity: 0.95;
    max-width: 88px;
    max-height: 88px;
}

.brands-card__placeholder {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--text, #2d2d2d);
}

.brands-card__name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.brand-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(11, 14, 35, 0.06);
}

.brand-hero__logo {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 10px;
    background: #fafbfc;
}

.brand-hero__logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

.brand-hero__content .brands-page__title {
    margin-bottom: 10px;
}

.brand-hero__content .brands-page__meta {
    display: inline-block;
    margin-top: 14px;
}

.brand-description {
    margin-bottom: 28px;
    padding: 20px 24px;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 12px;
    background: #fff;
    line-height: 1.6;
    color: var(--text, #2d2d2d);
}

.brand-products__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.brand-products__head h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text, #2d2d2d);
}

.brands-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--border, #e0e4ea);
    border-radius: 12px;
    background: #fff;
}

.brands-empty h2 {
    margin: 0 0 8px;
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
}

.brands-empty p {
    margin: 0 0 16px;
    color: var(--text-muted, #5a6472);
}

.brands-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--blue, #1a56a0);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .brands-page__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .brands-page__title {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .brands-page {
        padding: 20px 0 36px;
    }

    .brands-alphabet {
        gap: 4px;
        padding: 10px;
    }

    .brands-alphabet__link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .brands-card {
        padding: 12px 8px 10px;
    }

    .brands-card__logo {
        height: 52px;
    }

    .brands-card__logo img {
        max-width: 100px;
        max-height: 44px;
    }
}
