.brands-page {
    background: #fff;
    color: #171717;
}

.brands-page__shell {
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
}

.brands-page__masthead {
    border-top: 1px solid #ececec;
    background: #f6f6f6;
    padding: 0.9rem 0 1.15rem;
    text-align: center;
}

.brands-page__masthead h1 {
    margin: 0;
    color: #060606;
    font-family: var(--font-body);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.08;
}

.brands-page__masthead h1 span {
    color: rgb(var(--brand));
}

.brands-page__breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    color: #9a9a9a;
    font-size: 0.84rem;
}

.brands-page__breadcrumb a {
    color: #9a9a9a;
    text-decoration: none;
}

.brands-page__breadcrumb a:hover,
.brands-page__breadcrumb span:last-child {
    color: rgb(var(--brand));
}

.brands-page__section {
    padding: 1.9rem 0 5rem;
}

.brands-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.9rem 2rem;
}

.brands-page__card {
    display: flex;
    min-width: 0;
    aspect-ratio: 1.58;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 2px;
    background:
        radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.58), transparent 35%),
        linear-gradient(135deg, #dbe9ee 0%, #edf5f7 100%);
    padding: clamp(1rem, 2vw, 1.45rem);
    box-shadow: 12px 12px 8px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brands-page__card:hover {
    transform: translateY(-3px);
    border-color: rgb(var(--brand) / 0.22);
    box-shadow: 14px 16px 14px rgba(15, 23, 42, 0.16);
}

.brands-page__card img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 7.4rem;
    object-fit: contain;
}

.brands-page__empty {
    grid-column: 1 / -1;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #f8fafc;
    padding: 3rem 1.5rem;
    color: #5b6472;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 991px) {
    .brands-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .brands-page__shell {
        width: calc(100% - 24px);
    }

    .brands-page__masthead {
        padding: 1rem 0 1.15rem;
    }

    .brands-page__section {
        padding: 1.25rem 0 3.5rem;
    }

    .brands-page__grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .brands-page__card {
        aspect-ratio: 1.7;
        box-shadow: 8px 8px 7px rgba(15, 23, 42, 0.16);
    }
}
