.grid-stats-section {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    aspect-ratio: 2.2;
    width: 100%;
}


.grid-stats-arrow {
    display: flex;
    align-items: center;
    width: 1.375rem;
    height: 1.375rem;
    padding: 0.35rem;
    border-radius: 0.75rem;
    color: white;
    margin: 1.25rem 0;
    background: linear-gradient(114deg, #0BC29A -30.97%, #13EDA8 0.09%, #2AD9E2 98.47%);
}

.grid-stats-item {
    position: relative;
}

.grid-stats-item-big {
    grid-row: span 2;
}

.grid-stats-item-big:not(:first-child) {
    border-top: 1px solid var(--border-color);
}

.grid-stats-background-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}


.grid-stats-cx .grid-stats-item-big .grid-stats-background-container:before,
.grid-stats-cx .grid-stats-item-big .grid-stats-background-container:after {
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    left: 0;

    height: min(16rem, 48%);
    width: 100%;
}

.grid-stats-cx .grid-stats-item-white .grid-stats-background-container:before {
    top: 0;
    background: linear-gradient(to bottom, #00000080 0%, #00000033 80%, transparent 100%);
}

.grid-stats-cx .grid-stats-item-white .grid-stats-background-container:after {
    background: linear-gradient(to top, #00000080 0%, #00000033 80%, transparent 100%);
    bottom: 0;
}


.grid-stats-cx .grid-stats-item-black .grid-stats-background-container:before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff80 0%, #ffffff33 80%, transparent 100%);
}

.grid-stats-cx .grid-stats-item-black .grid-stats-background-container:after {
    background: linear-gradient(to top, #ffffff80 0%, #ffffff33 80%, transparent 100%);
    bottom: 0;
}

.grid-stats-background {
    object-fit: cover;
    height: 100%;
    width: 100%;
}


.grid-stats-item-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem var(--container-space);
    gap: 4rem;
    height: 100%;
}

.grid-stats-item-small .grid-stats-item-container {
    /* justify-content: flex-start; */
}

.grid-stats-item-big .grid-stats-item-container {
    height: 100%;
}

.grid-stats-item-small-second {
    border-top: 1px solid var(--border-color);
}

.grid-stats-color-black {
    color: var(--main-text-color);
}

.grid-stats-color-white {
    color: white;

}

.grid-stats-down {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grid-stats-down-title {
    font-size: 1.75rem;
    line-height: 100%;
    font-family: var(--font-family-headline);
}

.grid-stats-down-description {
    line-height: 140%;
}

.grid-stats-up-counter {
    display: flex;
    gap: 0.62rem;
}

.grid-stats-counter-icon .grid-stats-up>span {
    margin-left: 2rem;
}

.grid-stats-item-big .counter-container {
    font-size: 8.75rem;
    font-weight: 400;
}

.grid-stats-item-big .counter-container.counter-number-by {
    font-size: 5rem;
    font-weight: 500;
}

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

.grid-stats-section .grid-stats-item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.grid-stats-item:nth-child(2).grid-stats-item-small-second {
    grid-row: 2;
}

.grid-stats-bottom-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-color);
}

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

.grid-stats-bottom-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2.5rem var(--container-space);
}

/* grid-stats-color-black */

@media (max-width: 1400px) {
    .grid-stats-item-big .counter-container {
        font-size: 8rem;
    }
}

@media (max-width: 1300px) {
    .grid-stats-item-big .counter-container {
        font-size: 7rem;
    }
}

@media (max-width: 1140px) {
    .grid-stats-section {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
        aspect-ratio: unset;
    }

    .grid-stats-section {
        border-top: none;
    }

    .grid-stats-section .grid-stats-item:not(:last-child) {
        border-top: 1px solid var(--border-color);
    }

    .grid-stats-item-big {
        grid-column: span 2;
    }
}


@media (max-width: 768px) {

    .grid-stats-section,
    .grid-stats-bottom-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-stats-item-big {
        grid-column: span 1;
    }

    .grid-stats-item-small-second {
        grid-row: var(--grid-stats-row);
    }

    .grid-stats-item-small .counter-container,
    .grid-stats-item-big .counter-container {
        font-size: 4rem;
        font-weight: 400;
    }

    .grid-stats-up>span {
        font-size: 0.875rem;
    }

    .grid-stats-down-title {
        font-size: 1.25rem;
    }

    .grid-stats-down-description {
        font-size: 0.875rem;
    }

    .grid-stats-item-small .grid-stats-item-container {
        gap: 2.5rem;
    }

    .grid-stats-item-big .grid-stats-item-container {
        aspect-ratio: 1;
    }

    .grid-stats-section .grid-stats-item:not(:last-child) {
        border-right: none;
    }

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

    .grid-stats-bottom-item {
        align-items: center;
    }


}