.statistics-testimonials {
    position: relative;
    overflow: hidden;
}

.statistics-testimonials__flex {
    position: relative;
    z-index: 1;
}

.statistics-box {
    background-color: var(--white);
    text-align: center;
    padding: 0 15px;
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    height: 119px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.statistics-box h2 {
    color: var(--paragraph-text-color);
    margin: 0 0 5px;
}

.statistics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.statistics-column {
    width: 100%;
}

.half-statistics {
    margin-bottom: 62px;
}

.statistics-box p {
    color: var(--paragraph-text-color);
}

.statistics-testimonials .section-graphics-bottom {
    width: 601px;
    height: 504px;
    right: unset;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: -160px;
}

.location-area.bg-white:has(+.statistics-testimonials.bg-white) {
    padding-bottom: 0;
}

.location-area.bg-white+.statistics-testimonials.bg-white {
    padding-top: var(--section-margins);
}

@media(min-width: 768px) {
    .statistics-box h2 {
        margin: 0;
    }

    .statistics-box {
        height: 175px;
    }

    .statistics-column {
        width: calc(50% - 17px);
    }

    .statistics-row {
        gap: 40px 33px;
    }

    .half-statistics {
        margin-bottom: 75px;
    }

    .statistics-testimonials .section-graphics-bottom {
        width: 983px;
        height: 569px;
        right: -369px;
        left: unset;
        transform: unset;
        bottom: 0;
    }
}

@media(min-width: 1200px) {
    .statistics-testimonials__flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .half-statistics {
        margin-bottom: 0;
        width: calc(50% - 14px);
    }

    .half-testimonials {
        width: calc(50% - 14px);
        max-width: 576px;
    }

    .statistics-testimonials .section-graphics-bottom {
        right: 0;
    }
}

.reviews {
    margin: 0 auto;
    width: 262px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 13px 9px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius);
}

.reviews__image {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 62px;
	height: 62px;
}

.reviews__image img {
	max-width: 45px;
}

.reviews__details {
    width: calc(100% - 62px);
    padding-left: 6px;
}

.reviews__details h4 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
    text-wrap: balance;
}

.reviews__description {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    line-height: 1em;
    color: var(--primary-color);
}

.reviews__description span {
    color: var(--primary-color);
    font-size: 26px;
    padding-right: 3px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .reviews {
        margin: 0;
    }
}

.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials__rating {
    background: rgba(255, 255, 255, 0.45);
    width: 262px;
    height: 89px;
    border-radius: 5px;
    padding: 14px 15px 12px 8px;
}

.bg-dark .testimonials__rating {
    background: rgba(217, 217, 217, 0.13);
    border: 1px solid var(--white);
}

.testimonial-item {
    position: relative;
    background-color: var(--white);
    padding: 42px 24px 41px 19px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.testimonial-item p {
    color: var(--paragraph-text-color);
    margin: 0 0 12px;
    line-height: 1.625em;
}

.testimonial-item h3 {
    font-weight: 900;
    font-size: 18px;
    line-height: 1.222em;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paragraph-text-color);
    margin: 0;
}

.testimonial-item h3 span {
    padding-left: 15px;
    position: relative;
}

.testimonial-item h3 span:after {
    content: "";
    position: absolute;
    left: 3px;
    width: 2px;
    height: 22px;
    background-color: #C0C0C0;
    top: 0;
}

.testimonial-slider .slick-slide {
    vertical-align: top;
}

.testimonial-item:after {
    content: "\e91b";
    font-family: 'rmfx-icon';
    color: var(--primary-color);
    font-size: 49px;
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translate(-50%, 0);
}

.testimonial-slider,
.testimonial-grid {
    padding-bottom: 50px;
}

.testimonial-slider .slick-prev {
    left: 0;
    margin-left: 0;
}

.testimonial-slider .slick-next {
    left: 46px;
    margin-left: 0;
}

.testimonials__bottom-content {
    margin-top: 20px;
}

.testimonials__heading {
    margin-bottom: 31px;
}

.testimonials__heading.no-content {
    padding-bottom: 31px;
}

.testimonial-item__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-grid .testimonial-item {
    justify-content: flex-start;
}

.testimonial__description {
    max-height: 260px;
    margin-bottom: var(--paragraph-spacing);
    overflow: auto;

    @supports not (selector(::-webkit-scrollbar-thumb)) {
        scrollbar-color: var(--light) var(--primary-color);
        scrollbar-width: thin;
    }
}

.testimonial__description::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.testimonial__description::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 100px;
}

.testimonial-listing__title {
    padding-bottom: var(--section-margins);
}

.testimonial__description::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 100px;
}

.testimonial-listing__title .reviews {
    margin: 0 auto;
    background: var(--light);
    border-radius: 5px;
}

.half-testimonials .testimonial-slide .testimonial-item .testimonial-star {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

@media(min-width: 768px) {
    .testimonial-slider .slick-slide {
        width: 507px;
        margin: 0 17px;
        height: auto;
    }

    .testimonial-slider .slick-track {
        display: flex;
    }

    .testimonial-slider .slick-slide>* {
        height: 100%;
    }

    .testimonial-slide {
        height: 100%;
    }

    .testimonial-item {
        height: calc(100% - 40px);
        padding: 42px 37px 62px 29px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .testimonials .testimonial-item {
        height: calc(100% - 40px);
    }

    .testimonial-slider {
        margin: 0 -52px 0 0;
    }

    .testimonials__heading {
        position: relative;
        margin-bottom: 21px;
    }

    .testimonials__heading:not(.no-google-review) {
        padding-right: 300px;
    }

    .testimonials__heading.no-content {
        padding-bottom: 100px;
    }

    .testimonials__rating {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(0, -50%);
    }

    .testimonials__bottom-content {
        margin-top: -23px;
        text-align: right;
    }
}

@media(min-width: 1200px) {
    .testimonial-slider .slick-list {
        width: 2500px;
    }

    .testimonial-slider {
        margin: 0;
    }

    .testimonials__bottom-content {
        margin-top: -23px;
        text-align: left;
    }

    .testimonial-slider .slick-next {
        left: unset;
        margin-right: 0;
        right: 0;
    }

    .testimonial-slider .slick-prev {
        left: unset;
        margin-left: 0;
        right: 0;
        margin-right: 46px;
    }

    .testimonial-item p {
        margin: 0 0 12px;
        line-height: 1.555em;
    }

    .testimonial__description p {
        line-height: 1.75em;
    }

    .testimonial-item {
        padding: 49px 37px 45px 30px;
    }

    .testimonial-item:after {
        top: -26px;
    }

    .testimonials__heading {
        margin-bottom: 40px;
    }

    .testimonials__heading.no-content {
        padding-bottom: 40px;
    }

    .testimonials .section-graphics-bottom {
        width: 983px;
        height: 503px;
    }
}

.half-testimonials .testimonial-item {
    background: transparent;
    padding: 42px 3px 30px 3px;
}

.testimonial-star {
    margin: 0 auto 14px;
    display: table;
    display: flex;
    gap: 5px;
}

.testimonial-star i {
    font-size: 18px;
    color: var(--primary-color);
}

body.home .half-testimonials .testimonial-item:after {
    color: var(--secondary-color);
}

.half-testimonials .testimonial-item h3 span:after {
    background-color: var(--paragraph-text-color);
}

.half-testimonials .testimonials__bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.half-textimonial-slider .slick-slide {
    vertical-align: top;
}

.bg-dark .half-testimonials .testimonial-item p,
.bg-dark .half-testimonials .testimonial-item h3,
.bg-medium .half-testimonials .testimonial-item p,
.bg-medium .half-testimonials .testimonial-item h3 {
    color: var(--body-with-dark-background);
}

.bg-dark .half-testimonials .testimonial-item h3 span:after,
.bg-medium .half-testimonials .testimonial-item h3 span:after {
    background: var(--body-with-dark-background);
}

.half-testimonials .testimonial-item:after {
    color: var(--secondary-color);
}

@media(min-width: 768px) {
    .half-testimonials .testimonials__bottom-content .testimonials__rating {
        position: relative;
        top: 0;
        transform: unset;
        left: 0;
        right: unset;
    }

    .half-testimonials .testimonials__bottom-content {
        justify-content: space-between;
    }

    .half-textimonial-slider {
        margin: 0 auto;
        max-width: 501px;
    }

    .half-testimonials .testimonial-item {
        padding: 42px 0 30px 0;
    }
}

@media(min-width: 1200px) {
    .half-testimonials .testimonial-item {
        padding: 48px 41px 69px 36px;
    }

    .half-textimonial-slider {
        margin: 0;
        max-width: 576px;
        z-index: 1;
    }

    .half-textimonial-slider .slick-track {
        display: flex;
        align-items: end;
    }

    .half-textimonial-slider .slick-arrow {
        bottom: 36px;
    }

    .half-testimonials .testimonials__bottom-content {
        margin-top: 17px;
        justify-content: flex-start;
        gap: 22px;
    }

    .half-testimonials .testimonial-item:after {
        color: var(--primary-color);
    }

    .half-textimonial-slider:after {
        content: "";
        position: absolute;
        z-index: -1;
        width: 100%;
        height: calc(100% - 40px);
        background-color: #ccc;
        bottom: 0;
        left: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.45);
    }

    .statistics-testimonials--homepage .statistics-testimonials__flex {
        align-items: center;
    }

    .statistics-testimonials--homepage .half-testimonials .testimonials__bottom-content {
        margin-top: 27px;
        gap: 25px;
    }

    .bg-white .half-textimonial-slider:after {
        background-color: transparent;
    }
}

.reviews {
    margin: 0 auto;
    width: 262px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 13px 9px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius);
}

.reviews__image {
    width: 62px;
}

.reviews__details {
    width: calc(100% - 62px);
    padding-left: 6px;
}

.reviews__description {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    line-height: 1em;
    color: var(--primary-color);
}

.reviews__description span {
    color: var(--primary-color);
    font-size: 26px;
    padding-right: 3px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .reviews {
        margin: 0;
    }
}

.testimonials .reviews--dark {
    margin: 0;
    background: rgba(217, 217, 217, 0.13);
    border: 1px solid var(--white);
}

@media (min-width: 768px) {
    .testimonials .reviews--dark {
        position: absolute;
        right: 0;
        top: 0;
    }
}

@media (min-width: 1200px) {
    .testimonials .reviews--dark {
        top: -12px;
    }
}

.testimonial__item {
    display: flex;
    padding: 30px 40px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    text-align: left;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.09);
    padding: 20px;
    margin-bottom: 30px;
}

.testimonial__item .testimonial-star {
    margin: 20px 0 20px 0;
}

.testimonial__name {
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.testimonial__date {
    font-weight: normal;
    text-transform: capitalize;
}

.testimonials.bg-dark+.testimonials.bg-dark {
    padding-top: 20px;
}