.home-banners {
    width: min(1180px, calc(100% - 24px));
    margin: 1.25rem auto 0;
}

.home-banners__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.home-banners__head h2 {
    margin: 0;
    color: #0b1f3a;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 900;
}

.home-banners__rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .15rem .2rem 1rem;
    scrollbar-width: thin;
}

.home-banners__rail.is-empty {
    display: none;
}

.home-banners__empty {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    padding: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(11, 31, 58, .08);
}

.home-banners__empty[hidden] {
    display: none;
}

.home-banner-card {
    flex: 0 0 min(520px, 82vw);
    aspect-ratio: 16 / 6;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: none;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform .18s ease;
}

.home-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.home-banner-card picture,
.home-banner-card img {
    width: 100%;
    height: 100%;
    display: block;
}

.home-banner-card img {
    object-fit: cover;
}

@media (max-width: 640px) {
    .home-banners {
        width: 100%;
        margin-top: 1rem;
        padding-left: 12px;
    }

    .home-banners__head {
        padding-right: 12px;
    }

    .home-banner-card {
        flex-basis: 82vw;
    }
}
