.counter-2 {
    background: var(--wp--preset--color--black);
    padding: 40px 0;
}

/* ── Item ───────────────────────────────────────────────────── */
.counter-2-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding-top: 20px;
}

/* ── Counter animation ──────────────────────────────────────── */
.counter-2-anim {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: 'EYInterstate', sans-serif;
    font-size: 64px;
    font-weight: 400;
    color: var(--wp--preset--color--yellow);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.counter-2-anim .spacer {
    display: inline-block;
    width: 0.25em;
}

.counter-2-anim .number {
    display: inline-block;
    position: relative;
    min-height: 1em;
    text-align: center;
}

.counter-2-anim .placeholder {
    display: block;
    transition: opacity 0.1s ease;
}

.counter-2-anim .placeholder.go-out {
    opacity: 0;
}

.counter-2-anim .animate-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-2-anim .animate-number.blur {
    animation: c2-blur 0.15s ease-out both;
}

.counter-2-anim .animate-number.slow {
    animation: c2-fade 0.3s ease-out both;
}

.counter-2-anim .animate-number.final {
    animation: c2-final 0.2s ease-out both;
}

@keyframes c2-blur {
    from { opacity: 0; filter: blur(6px); }
    to   { opacity: 1; filter: none; }
}

@keyframes c2-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes c2-final {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Label ──────────────────────────────────────────────────── */
.counter-2-text {
    font-family: 'EYInterstate', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Desktop: grid (bypass Swiper) ─────────────────────────── */
@media (min-width: 992px) {
    .counter-2-swiper.swiper {
        overflow: visible;
    }

    .counter-2-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
        transform: none !important;
        will-change: auto;
    }

    .counter-2-swiper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }

    .counter-2-swiper .swiper-pagination {
        display: none;
    }
}

/* ── Mobile: Swiper ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .counter-2 {
        padding: 32px 0 48px;
    }

    .counter-2-anim {
        font-size: 56px;
    }

    .counter-2-swiper.swiper {
        overflow: hidden;
    }

    .counter-2-swiper .swiper-wrapper {
        display: flex;
    }

    .counter-2-swiper .swiper-slide {
        width: 100%;
    }

    .counter-2-swiper .swiper-pagination {
        position: static;
        margin-top: 24px;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .counter-2-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.3);
        opacity: 1;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .counter-2-swiper .swiper-pagination-bullet-active {
        background-color: var(--wp--preset--color--yellow);
    }
}
