/* ============================================================
   SEC-386 — "Service Cards (Home Redesign)" universal block.

   Service-style card (image background + title + "Спробувати від …" price
   pill) like the home-services cards, but uniform and the SAME SIZE as the
   promo cards (.home-promotions__item: 340px desktop / 260px mobile).
   Own .service-cards* classes so the bento .home-services grid is untouched.
   ============================================================ */

.service-cards__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.service-cards__card {
    position: relative;
    display: block;
    flex: 1 1 0;
    min-width: 0;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #afdee8;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-decoration: none;
}

.service-cards__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 75%);
}

/* Badge — same look as the promo badge (.home-promotions__item-badge). */
.service-cards__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px 9px 12px;
    background: #0047bb;
    border-radius: 6px;
    color: #fff;
    font-family: "Raleway", sans-serif, serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.service-cards__title {
    margin: 0;
    color: #fff;
    font-family: "Raleway", sans-serif, serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 40px;
}

.service-cards__goto {
    position: absolute;
    left: 32px;
    bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 44px 0 rgba(176, 183, 195, 0.6);
    color: #101820;
    font-family: "Raleway", sans-serif, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-cards__goto span {
    color: #0047bb;
}

.service-cards__card:hover .service-cards__goto {
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    .service-cards__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .service-cards__card {
        flex: 0 0 89.1%;
        height: 260px;
        scroll-snap-align: start;
    }
    .service-cards__content {
        padding: 16px;
    }
    .service-cards__title {
        font-size: 24px;
        line-height: 32px;
    }
    .service-cards__goto {
        left: 16px;
        bottom: 16px;
    }
}
