.stats-section--homepage {
    position: relative;
    z-index: 1;
    background: var(--off-white);
    padding-bottom: 36px;
    margin-bottom: 30px;
}

.stats-bottom  {
    position: absolute;
    z-index: -1;
    width: 150px;
    right: -32px;
    bottom: -18px;

}

.counter-flex {
    row-gap: 24px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.counter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
}

.counter-item {
    width: 100%;
}

.counter {
    display: block;
    color: var(--primary-color);
    font-size: 40px;
    font-style: normal;
    font-weight: bold;
    line-height: 1.2em
}

.counter-col p {
    text-transform: uppercase;
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2em
}

.stats-section .btn-group {
    margin-top: 24px;
}

@media (min-width: 768px) {
    .stats-section--homepage{
        padding-bottom: 76px;
        margin-bottom: 0;
    }

    .stats-bottom  {
        width: 200px;
        right: -51px;
        bottom: -75px;

    }

    .counter-flex {
        row-gap: 60px;
        padding: 0;
    }

    .counter-row {
        row-gap: 60px;
    }

    .counter-item {
        width: 50%;
        padding: 0 60px;
        border-right: 1px solid #D1D3D4;
    }

    .counter-item:nth-child(2n),
    .counter-item:last-child {
        border-right: none;
    }

    .counter-col {
        padding-bottom: 8px;
    }

    .counter {
        font-size: 55px;
    }

    .counter-col p {
        font-size: 18px;
    }

    .stats-section .btn-group {
        margin-top: 36px;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .stats-bottom  {
        width: 332px;
        right: -84px;
    }

    .counter-flex {
        margin: 0 -30px;
        justify-content: center;
    }

    .counter-item,
    .counter-item:nth-child(2n) {
        width: auto;
        padding: 0 30px;
        border-right: 1px solid #D1D3D4;
    }

    .counter-item:last-child {
        border-right: none;
    }

    .counter-col {
        padding-bottom: 0;
    }

    .counter {
        font-size: 65px;
    }

    .counter-col p {
        font-size: 20px;
        margin-top: -6px;
    }

    .stats-section .btn-group {
        margin-top: 52px;
    }
}

@media (min-width: 1366px) {
    .counter-item {
        padding: 0 40px;
    }
}

@media (min-width: 1367px) {
    .counter-item {
        padding: 0 60px;
    }
}


/* Testimonials */

.homepage-testimonials {
    position: relative;
    z-index: 1;
    background: var(--off-white);
    padding: 60px 0 0 0;
}

.homepage-testimonials .flex-row {
    align-items: center;
}

.testimonials-top {
    position: absolute;
    z-index: -1;
    width: 150px;
    left: 0;
    top: -66px;
}

.homepage-testimonials__text {
    margin-top: 29px;
    position: relative;
}

.quote {
    margin-bottom: 20px;
}

.homepage-testimonials__text p {
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2em;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .homepage-testimonials {
        padding: 76px 0 36px 0;
    }

    .testimonials-top {
        width: 200px;
        top: -76px;
    }

    .homepage-testimonials__image {
        max-width: 616px;
    }

    .homepage-testimonials__text {
        padding-right: 48px;
    }

    .homepage-testimonials__text p {
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .homepage-testimonials {
        padding-bottom: 52px;
    }

    .testimonials-top {
        width: 332px;
        left: 10px;
    }

    .homepage-testimonials__text {
        margin-top: 0;
        padding-right: 0;
    }

    .homepage-testimonials__text p {
        font-size: 24px;
    }
}