.hero-service {
    position: relative;
    padding-block: 36px 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(196,30,42,0.08), transparent 24%),
        linear-gradient(180deg, rgba(247,249,252,0.96), rgba(230,235,241,0.92));
}

.hero-service-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(98,113,129,0.08) 1px, transparent 1px),
        linear-gradient(rgba(98,113,129,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 90%);
}

.hero-service-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-service-col-media {
    display: flex;
    align-items: flex-start;
    order: 1;
    width: 100%;
}

.hero-service-col-text {
    order: 2;
}

.hero-service-media-card {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 64px rgba(38, 52, 66, 0.16);
    border: 1px solid rgba(109, 124, 140, 0.18);
    background: linear-gradient(145deg, #eef3f7, #dbe3ea);
}

.hero-service-image {
    width: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(145deg, #eef3f7, #dbe3ea);
}

.hero-service-image--primary {
    aspect-ratio: 16 / 11;
    max-height: none;
}

.hero-service-image--fallback {
    background:
        radial-gradient(circle at 30% 30%, rgba(196,30,42,0.12), transparent 20%),
        linear-gradient(145deg, #eef3f7, #dbe3ea);
}

.hero-service-ctas-desktop {
    display: none;
}

.hero-service-headline {
    font-size: clamp(1.95rem, 4.8vw, 3.45rem);
    color: var(--color-dark);
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.hero-service-accent {
    color: var(--color-primary);
}

.hero-service-subheadline {
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    color: var(--color-gray);
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 640px;
}

.hero-service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-service-badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(109,124,140,0.16);
    color: #4b5560;
    font-size: 0.82rem;
    line-height: 1.4;
}

.hero-service-badges li svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-service {
        padding-block: 18px 30px;
    }

    .hero-service-inner {
        gap: 20px;
    }

    .hero-service-media-card {
        border-radius: 24px;
    }

    .hero-service-image--primary {
        aspect-ratio: 1.08;
    }

    .hero-service-headline {
        margin-bottom: 14px;
    }

    .hero-service-subheadline {
        margin-bottom: 18px;
    }

    .hero-service-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hero-service-badges::-webkit-scrollbar {
        display: none;
    }

    .hero-service-badges li {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }
}

@media (min-width: 900px) {
    .hero-service {
        padding-block: 72px 64px;
    }

    .hero-service-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.9fr);
        gap: 58px;
        align-items: center;
        padding-inline: 24px;
    }

    .hero-service-col-text {
        order: 1;
    }

    .hero-service-col-media {
        order: 2;
        align-self: start;
    }

    .hero-service-image--primary {
        aspect-ratio: 0.88;
        max-height: 640px;
    }

    .hero-service-ctas-desktop {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 28px;
    }
}
