.banner {
    background-image: url("../images/pages/services.jpg");
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: unset;
    background-color: var(--color-gray);
}

.banner__title {
    width: 100%;
    text-align: center;
    padding: 45px 0px 0px 0;
}

.title {
    color: initial;
    text-align: center;
}

.testimonials-content {
    padding: 20px;
}

.testimonials-title.title h1,
.testimonials-title.title p {
    margin: 0;
}

.testimonial-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: calc(50% - 40px);
    max-width: 850px;
    height: 460px;
    margin: 20px;
    color: white;
    position: relative;
    z-index: 8;
}

.testimonial-item-bg {
    background-color: #000;
    height: 100%;
    width: 100%;
    left: 0;
    opacity: 0.3;
    position: absolute;
    z-index: -1;
    transition: all 0.3s;
}

.testimonial-item:hover .testimonial-item-bg {
    background-color: var(--main-color);
    opacity: 0.7;
    transition: all 0.3s;
}

.testimonial-item-content {
    z-index: 10;
}

.testimonial-item-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.testimonial-item-content > p {
    text-align: center;
    margin: 0;
}

.testimonial-item-description {
    max-height: 0px;
    opacity: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80%;
    margin: 0 auto;
    transition: max-height 0.6s, opacity 0.3s;
}

.testimonial-item-description > p {
    margin: 0;
    width: 100%;
    text-align: center;
}

.testimonial-item:hover .testimonial-item-description {
    max-height: 300px;
    opacity: 1;
    /*max-height: 60px;*/
    transition: max-height 0.5s, opacity 1s;
}

.mobile-yt-button {
    display: none;
}

.youtube-btn {
    width: 58px;
    height: auto;
    cursor: pointer;
}

.youtube-btn #The_Sharpness {
    -moz-transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1), fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
    -webkit-transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1), fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
    transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1), fill-opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
    fill: #212121;
    fill-opacity: 0.8;
}

.youtube-btn:hover #The_Sharpness {
    fill: rgb(255, 0, 0);
}

.quote-mark {
    display: none;
    fill: #cd4044;
    width: 3rem;
    height: 3rem;
}

.pagination-items {
    margin: 0 auto;
    width: 100%;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.pagination-item {
    margin: 0 10px;
}

.pagination-item a {
    position: relative;
    color: white;
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.pagination-item a:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    z-index: -1;
}

.pagination-item a span {
    z-index: 5;
}

.pagination-item:hover a:after {
    border: 2px solid #337ab7;
}

.pagination-item.active a:after {
    background-color: #337ab7;
}

.pagination-item.active a {
    color: white;
}

.pagination-item.active:hover a:after {
    border: none;
}

.pagination-item.active:hover a {
    cursor: not-allowed;
}

.popup-videos-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 11;
}

.popup-videos__items {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.popup-videos__block {
    height: 90%;
    width: 90%;
    max-width: 840px;
    max-height: 500px;
    line-height: 0;
}

.popup-videos__block iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 990px) {
    .testimonial-item-description > p {
        margin: 0;
        font-size: 16px;
        margin-top: 10px;
    }

    .testimonial-item:hover .testimonial-item-description {
        height: 130px;
    }

    .testimonial-item {
        width: 100%;
    }

    .testimonials-title.title h1 {
        font-size: 26px;
    }

    .testimonials-title.title p {
        font-size: 16px;
    }
}

@media (max-width: 770px) {
    .youtube-btn {
        width: 55px;
        height: auto;
        position: absolute;
        right: 50%;
        top: -28%;
        transform: translate(50%, -50%);
    }

    .youtube-btn #The_Sharpness {
        fill: rgb(255, 0, 0);
    }

    .quote-mark {
        display: block;
        position: absolute;
        top: -5px;
        width: 58px;
        height: auto;
    }

    .testimonial-item-description {
        min-height: 190px;
        width: 100%;
        opacity: 1;
        overflow: unset;
        max-width: unset;
        position: absolute;
        bottom: 0;
        left: 0;
        transform: translate(0px, 100%);
        background-color: #e9e9e9;
        border: none;
    }

    .testimonial-item {
        max-width: calc(100% - 40px);
        margin: 20px 20px 190px 20px;
    }

    .testimonial-item-description > p {
        color: rgb(43, 42, 40);
        padding: 0 10%;
        margin-top: 0;
        display: flex;
        align-items: center;
        font-style: italic;
        font-weight: 700;
        font-size: 16px;
        text-align: center;
    }

    .testimonial-item:hover .testimonial-item-bg {
        opacity: 0.7;
        transition: all 0.3s;
    }

    .testimonial-item:hover .testimonial-item-description {
        height: 190px;
        transition: height 0.5s, opacity 1s;
    }

    .youtube-btn {
        display: none;
    }

    .mobile-yt-button {
        display: block;
        text-align: center;
        margin: 10px;
    }

    .mobile-yt-button .youtube-btn {
        position: unset;
        transform: unset;
        display: inline;
    }

    .testimonial-item-title {
        font-size: 26px;
    }
}

@media (max-width: 580px) {
    .testimonial-item {
        max-width: 100%;
        height: 400px;
        margin: 20px 0px 190px 0px;
    }

    .popup-videos__block {
        max-height: 300px;
    }
}

@media (max-width: 360px) {
    .testimonial-item-description > p {
        font-size: 16px;
    }

    .testimonial-item-title {
        font-size: 22px;
    }

    .testimonial-item {
        height: 300px;
    }
}
