.testimonials {
    padding-top: 4em;
    padding-bottom: 2.8em;
    overflow: hidden;
}

.testimonials .subtitle {
    margin-top: 1em;
    font-size: var(--font-size-regular);
    font-family: var(--font-gilroy);
    color: var(--text-green);
    font-weight: 500;
}

.testimonials .wrap {
    max-width: calc(1440px + 10em);
    padding: 0 5em;
}

.testimonials .articles {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 2.8em;
    user-select: none;
    touch-action: pan-y;
}

.testimonials .stars {
    margin-bottom: 2em;
    padding: 0.62em 0 0.62em 5.3em;
    background: url('../assets/quotes.png') no-repeat left center;
    color: var(--text-green-light);
}

.testimonials article {
    min-width: 100%;
}

.testimonials article .side:first-child {
    padding-right: 3.5em;
    cursor: grab;
}

.testimonials article .content {
    font-size: 1.4em;
    color: var(--text-green);
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.testimonials article .author {
    margin-top: 2.625em;
    max-height: 60px;
    height: 100%;
}

.testimonials article .author .author-icon {
    max-width: 60px;
    max-height: 60px;
    border: 3px solid #679E69;
    border-radius: 50%;
    background: var(--text-green);
}

.testimonials article .author .author-icon .icon {
    font-size: 2.6em;
    color: var(--text-green);
    border-radius: 50%;
    color: #fff;
}

.testimonials article .author .line {
    margin: 0 1.3em;
    align-self: stretch;
    width: 1px;
    background: red;
    height: 100%;
    background: rgba(28, 50, 43, 0.2);
}

.testimonials article .author .name {
    font-size: 1.25em;
    color: var(--text-green);
    font-weight: var(--font-bold);
}

.testimonials article .author .city {
    font-size: var(--font-size-regular);
    color: var(--text-green);
}

.testimonials article .carousel-controls {
    margin-top: 1.875em;
}

.testimonials article .carousel-controls .arrow-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(28, 50, 43, 0.2);
    background: transparent;
    color: var(--text-green);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (min-width: 1200px) {
    .testimonials article .carousel-controls .arrow-button:hover {
        background: rgba(28, 50, 43, 0.05);
    }
}

.testimonials article .carousel-controls .arrow-button + .arrow-button {
    margin-left: 0.625em;
}

.testimonials article .carousel-controls .counter {
    margin-left: 33px;
    font-size: 16px;
    color: var(--text-green);
}

.testimonials article .carousel-controls .counter .current {
    display: inline-block;
    font-size: 20px;
    font-weight: var(--font-bold);
    transform: translateY(1px);
}

.testimonials article .carousel-controls .counter .total {
    opacity: 0.6;
}

.testimonials article.active:not(:last-of-type) {
    margin-right: -12%;
}

.testimonials article.active .image {
    z-index: 10;
}

.testimonials article:not(.active) .side:first-child {
    display: none;
}

.testimonials article:not(.active) .image {
    opacity: 0.2;
    max-width: 416px;
}

.page-template-template-about-page .testimonials {
    padding-top: calc(4em - var(--padding-element));
    padding-bottom: calc(3.5em - var(--padding-element));
}

@media all and (max-width: 1650px) {
    
    .testimonials article .image {
        max-width: 416px;
    }

    .testimonials article:not(.active) .image {
        max-width: 350px;
    }
}

@media all and (max-width: 1400px) {
    .testimonials article .content {
        font-size: 1.3em;
    }
}

@media all and (max-width: 1350px) {
    
    .testimonials article .image {
        max-width: 350px;
    }

    .testimonials article:not(.active) .image {
        max-width: 300px;
    }
}

@media all and (max-width: 1200px) {
    .testimonials article .image {
        max-width: 270px;
    }

    .testimonials article:not(.active) .image {
        max-width: 240px;
    }
}

@media all and (max-width: 1100px) {
    .testimonials article .content {
        font-size: 1.2em;
    }
}

@media all and (max-width: 1000px) {
    .testimonials {
        padding-top: 2.2em;
        padding-bottom: 0.5em;
    }
    .testimonials .wrap {
        max-width: calc(1440px + 5em);
        padding: 0 2.5em;
    }

    .testimonials article {
        height: 1px;
        opacity: 0;
    }
    .testimonials article .content {
        font-size: 1.2em;
    }
    .testimonials article .side:first-child {
        width: 60%;
    }
    .testimonials article .side:last-child {
        width: 40%;
    }
    .testimonials .stars {
        margin-bottom: 1em;
    }
    .testimonials article.active {
        display: flex;
        height: auto;
        opacity: 1;
        margin-right: 0;
    }
    .testimonials article .author {
        margin-top: 2em;
    }
    .page-template-template-about-page .testimonials {
        padding-top: 2.2em;
        padding-bottom: 2.2em;
    }

    .testimonials article .carousel-controls .arrow-button {
        width: 50px;
        height: 50px;
    }
}

@media all and (max-width: 900px) {
    .testimonials article.active {
        padding-bottom: 1.6em;
    }
}

@media all and (max-width: 700px) {
    .testimonials .articles {
        margin-top: 2em;
    }
    .testimonials article .content {
        font-size: 1.2em;
    }
    .testimonials article .side:first-child {
        width: 100%;
        padding-right: 0;
    }
    .testimonials article .side:last-child {
        display: none;
    }
    .testimonials article .author .author-icon {
        max-width: 40px;
        max-height: 40px;
    }
    .testimonials article .author .author-icon .icon {
        font-size: 2.6em;
    }
    .testimonials article .author .name {
        font-size: 1.2em;
    }
    .testimonials article .author .city {
        font-size: 1em;
    }

    .testimonials article .carousel-controls .arrow-button {
        width: 45px;
        height: 45px;
    }
}

@media all and (max-width: 500px) {
    .testimonials article .content {
        font-size: 1em;
    }
    .testimonials .stars {
        margin-bottom: 1em;
    }
    .testimonials article .author {
        margin-top: 1em;
    }
}

@media all and (max-width: 400px) {
    .testimonials .subtitle {
        font-size: 0.9em;
    }
}
