@property --home-stat-number {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

.home-stats-section {
    position: relative;
    z-index: 2;
    margin-top: -88px;
}

.home-stats-section + .home-seo-heading-section { margin-top: 40px; }

.home-stats {
    --stats-card-min: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--stats-card-min)), 1fr));
    gap: 54px;
    width: calc(100% - 64px);
    max-width: 1400px;
    padding: 20px 60px;
    margin-inline: auto;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(6 29 43 / 8%);
    font-family: "Manrope", sans-serif;
}

.home-stats__card {
    display: flex;
    min-width: 0;
    min-height: 132px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px 8px;
    border-radius: 24px;
    background: #f1f5f5;
    text-align: center;
}

.home-stats__card.animation { transition-property: opacity, transform; }

.home-stats__number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #009f9f;
    font: 800 48px/1.2 "Manrope", sans-serif;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.home-stats__animated {
    counter-reset: home-stat var(--home-stat-number);
    transition: --home-stat-number 3s ease;
}

.home-stats__card.scroll-animation .home-stats__animated { --home-stat-number: var(--stats-target); }
.home-stats__animated::after { content: counter(home-stat); }

.home-stats__caption {
    margin-top: 8px;
    color: #64748b;
    font: 600 12px/1.5 "Manrope", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.home-stats__caption > :first-child { margin-top: 0; }
.home-stats__caption > :last-child { margin-bottom: 0; }
.home-stats__card--dark .home-stats__caption { color: #d1dee5; }

@media (max-width: 1599.98px) {
    .home-stats { max-width: 1280px; gap: 32px; padding-inline: 40px; }
}

@media (max-width: 1199.98px) {
    .home-stats { --stats-card-min: 140px; gap: 24px; padding-inline: 24px; }
    .home-stats__number { font-size: 40px; }
    .home-stats__caption { font-size: 11px; }
}

@media (max-width: 767.98px) {
    .home-stats-section { margin-top: -32px; }
    .home-stats-section + .home-seo-heading-section { margin-top: 32px; }
    .home-stats {
        --stats-card-min: 80px;
        width: calc(100% - 32px);
        max-width: 540px;
        gap: 8px;
        padding: 16px;
        border-radius: 24px;
    }
    .home-stats__card { min-height: 98px; padding: 24px 8px 8px; }
    .home-stats__number { font-size: 24px; line-height: 1.2; }
    .home-stats__caption { margin-top: 16px; font-size: 10px; line-height: 1.4; font-weight: 500; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-stats__card.animation { visibility: visible; opacity: 1; transform: none; transition: none; }
    .home-stats__animated { --home-stat-number: var(--stats-target); transition: none; }
}
