.grp-home-brands {
    margin: 32px 0;
    padding: 0 15px;
}

.grp-home-brands__inner {
    max-width: 1320px;
    margin: 0 auto;
}

.grp-home-brands__header {
    margin-bottom: 18px;
    text-align: center;
}

.grp-home-brands__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f2933;
}

.grp-home-brands__intro {
    max-width: 820px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: #5f6b7a;
}

.grp-home-brands__scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.grp-home-brand-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
}

.grp-home-brand-card__link {
    display: flex;
    height: 100%;
    padding: 18px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #1f2933;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.grp-home-brand-card__link:hover,
.grp-home-brand-card__link:focus {
    color: #1f2933;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.grp-home-brand-card__media {
    display: flex;
    width: 160px;
    height: 80px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
}

.grp-home-brand-card__media img {
    display: block;
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.grp-home-brand-card__placeholder {
    display: flex;
    width: 150px;
    height: 64px;
    padding: 8px;
    border-radius: 10px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.grp-home-brand-card__name {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.grp-home-brand-card__text {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.35;
    color: #64748b;
}

.grp-home-brand-card__cta {
    display: inline-flex;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

@media (min-width: 768px) {
    .grp-home-brands__scroller {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow: visible;
    }

    .grp-home-brand-card {
        flex: none;
    }
}

@media (max-width: 767px) {
    .grp-home-brands {
        margin: 24px 0;
        padding: 0 10px;
    }

    .grp-home-brands__title {
        font-size: 22px;
    }

    .grp-home-brand-card {
        flex-basis: 185px;
    }

    .grp-home-brand-card__link {
        min-height: 220px;
        padding: 15px 12px;
    }

    .grp-home-brand-card__media {
        width: 140px;
        height: 70px;
    }

    .grp-home-brand-card__media img {
        max-width: 140px;
        max-height: 70px;
    }

    .grp-home-brand-card__name {
        font-size: 16px;
    }
}