/* Страница «Производители»: карточки брендов */
.brands-layout {
    margin: 28px 0 8px;
}

/* ---- сетка карточек ---- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}
.brands-count-line {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 4px;
    padding: 0 4px;
}

/* ---- фильтр по категориям ---- */
.brands-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}
.brands-filter-chip {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 0.88rem;
    line-height: 1;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.brands-filter-chip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.brands-filter-chip.is-active {
    background: #2547eb;
    border-color: #2547eb;
    color: #fff;
    font-weight: 600;
}
.brand-card[hidden] {
    display: none;
}

.brand-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    border-color: #bfdbfe;
}
.brand-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.brand-card-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c1, #2563eb), var(--c2, #7c3aed));
    user-select: none;
}
.brand-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}
.brand-card-desc {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}
.brand-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.brand-card-badge {
    font-size: 0.74rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
}
.brand-card-badge.-vol {
    background: #f0fdf4;
    color: #166534;
}