.stats-block {
    padding: 4rem 0 0 0;
    text-align: center;
    position: relative;
}

.stats-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C300,40 900,40 1200,0 L1200,60 L0,60 Z' fill='%23283142'/%3E%3C/svg%3E") no-repeat;
    /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C400,20 800,20 1200,80 L1200,80 L0,80 Z' fill='%23283142'/%3E%3C/svg%3E") no-repeat; */
    /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q600,0 1200,50 L1200,50 L0,50 Z' fill='%23283142'/%3E%3C/svg%3E") no-repeat; */
    /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C200,10 400,10 600,35 C800,60 1000,60 1200,10 L1200,70 L0,70 Z' fill='%23283142'/%3E%3C/svg%3E") no-repeat; */
    /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 L600,0 L1200,40 L1200,40 L0,40 Z' fill='%23283142'/%3E%3C/svg%3E") no-repeat; */
}


.stats-content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.stats-heading {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.stats-description {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding-inline: var(--px-4);
}

.stats-grid {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stats-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stats-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stats-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.stat-item:hover {
    transform: none;
    box-shadow: none;
}

.stat-item.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.stat-number-wrapper {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    color: #cbd5e0;
    text-transform: none;
    letter-spacing: 0.025em;
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .stats-cols-3,
    .stats-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .stats-block {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {

    .stats-cols-2,
    .stats-cols-3,
    .stats-cols-4 {
        grid-template-columns: 1fr;
    }

    .stats-block {
        padding: 2.5rem 0;
    }

    .stats-grid {
        gap: 2.5rem;
    }
}