/**
 * Layout: stats
 *
 * Enqueued automatically when a page has a `stats` row
 * in designer_page_sections. Depends on the `designer-base` handle.
 */

.stats .section-header {
    margin-bottom: 40px;
}

.stats .title-h2 {
    margin-bottom: 8px;
}

.stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.stats-card {
    flex: 1 1 calc(25% - 10px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.stats-card__number {
    font-weight: 800;
    font-size: 32px;
    line-height: 125%;
    color: #93c704;
    margin-bottom: 30px;
}

.stats-card .main-txt {
    font-weight: 400;
    font-size: 18px;
    line-height: 122%;
    color: #404040;
}

.stats__bg-img {
    position: absolute;
    width: 813px;
    z-index: 1;
    top: -42px;
    right: -160px;
}

@media(max-width:1366px) {
    .stats__bg-img {
        position: absolute;
        width: 513px;
        z-index: 1;
        top: 30px;
        right: -60px;
    }
}

@media(max-width:1025px) {
    .stats-card {
        flex: 1 1 calc(33.333% - 10px);
    }
}

@media(max-width:821px) {
    .stats__bg-img {
        position: absolute;
        width: 513px;
        top: auto;
        right: 0;
        bottom: 0;
    }

    .stats-card {
        flex: 1 1 100%;
    }
}

@media(max-width:480px) {
    .step-flow .title-h2,
    .stats .section-header {
        margin-bottom: 24px;
    }

    .stats-cards {
        padding: 20px 24px;
    }
}
