.row-stats-section {
    position: relative;
}

.row-stats-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.row-stats-item-up {
    display: flex;
    flex-direction: column;
}

.row-stats-item-up-image img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1.9;
    height: 100%;
    line-height: 0;
}

.row-stats-item-up-content {
    display: flex;
    padding: 2.5rem var(--container-space);
    flex-direction: column;
    flex-grow: 1;
    gap: 2rem;
    min-height: 19.75rem;
}

.row-stats-item-up-content-title {
    font-size: 2rem;
    font-family: var(--font-family-headline);
    line-height: 100%;
    min-height: calc(1em * 2);
    /* 2 rows */
}

.row-stats-item-up-content .row-stats-item-up-detail {
    display: flex;
    align-items: flex-end;
    line-height: 140%;
    flex-grow: 1;
}

.row-stats-items .swiper-wrapper .swiper-slide {
    height: auto;
    display: flex;
}

.row-stats-items .swiper-wrapper .swiper-slide:not(:last-child) .row-stats-item-up {
    border-right: 1px solid var(--border-color);
}

.row-stats-items .row-stats-item {
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.row-stats-bottom .counter-container {
    font-size: 4rem;
}

.row-stats-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3.63rem var(--container-space);
}

.row-stats-bottom-detail {
    font-size: 1.125rem;
    line-height: 140%;
    max-width: 11.5rem;
}

.row-stats-bottom-container {
    display: grid;
    grid-template-columns: repeat(4, 25%);

}

.row-stats-bottom-container .row-stats-bottom:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.row-stats-bottom-container .row-stats-bottom {
    border-bottom: 1px solid var(--border-color);
}

.row-stats-item-reverse .row-stats-item-up {
    flex-direction: column-reverse;
}


@media(max-width: 1500px) {
    .row-stats-bottom {
        flex-direction: column;
    }

    .row-stats-bottom-detail {
        text-align: center;
    }
}

@media (max-width: 1140px) {
    .row-stats-bottom {
        flex-direction: column;
    }

}

@media (max-width: 992px) {
    .row-stats-bottom-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .row-stats-item-up {
        flex-direction: column-reverse;
        border-top: 1px solid var(--border-color);
    }

    .row-stats-item-up-content {
        height: 14rem;
    }

    .row-stats-bottom-container .row-stats-bottom:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 768px) {
    .row-stats-bottom-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .row-stats-item-up-content-title {
        font-size: 1.75rem;
    }

    .row-stats-item-up-content span:nth-child(2) {
        font-size: 0.875rem;
    }

    .row-stats-bottom {
        gap: 0.5rem;
        padding: 2.5rem var(--container-space);
    }

    .row-stats-bottom .counter-container {
        font-size: 3.5rem;
    }

    .row-stats-bottom-detail {
        font-size: 1rem;
    }

    .row-stats-bottom-container .row-stats-bottom {
        border-right: 0 !important;
    }

}