.brands-page {
    padding-top: 0;
    padding-bottom: clamp(40px, 5vw, 80px);
}
.brands-page > .brands-page__hero {
    padding: clamp(28px, 4vw, 60px);
    border-radius: 0 0 14px 14px;
    background: linear-gradient(118deg, #edf7fb 0%, #f7fbfc 55%, #e5f2f7 100%);
}
.brands-page__hero h1 {
    margin: 0;
    color: #244352;
    font-size: clamp(34px, 3.1vw, 52px);
    line-height: 1.05;
}
.brands-page__hero p {
    max-width: 720px;
    margin: 15px 0 0;
    font-size: 20px;
    line-height: 1.35;
}
.brands-page > .brands-page__section {
    margin-top: clamp(15px, 2vw, 30px);
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.brand-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px;
    box-sizing: border-box;
    border: 1px solid #d4e2e8;
    border-radius: 12px;
    background: #fff;
    color: var(--c-main-font);
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-card:hover {
    border-color: #95c8dc;
    box-shadow: 0 10px 24px rgba(29, 92, 119, .12);
    transform: translateY(-3px);
}
.brand-card__logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-card__logo img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.brand-card__logo-placeholder {
    max-width: 100%;
    color: #7b969f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.brand-card__name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}
.brand-card__count {
    color: #68818b;
    font-size: 16px;
}
.brands-page__empty {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #d6e3e8;
    border-radius: 12px;
    background: #f7fbfc;
}

@media screen and (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .brands-page > .brands-page__hero {
        padding: 24px 18px;
    }
    .brands-page__hero p {
        font-size: 18px;
    }
    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .brand-card {
        min-height: 185px;
        padding: 15px;
    }
    .brand-card__logo {
        height: 85px;
    }
    .brand-card__logo img {
        max-height: 85px;
    }
    .brand-card__name {
        font-size: 19px;
    }
}
