.reviews-carousel-wrap { 
    padding: 60px 60px; 
    background: #fff; 
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.reviews-carousel-wrap .swiper { 
    padding-bottom: 50px; 
    width: 940px;
    margin: 0 auto;
    overflow: hidden;
}

.reviews-carousel-wrap .swiper-wrapper {
    transition-timing-function: linear;
}

.reviews-carousel-wrap .swiper-slide { 
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    height: 400px;
    margin-right: 20px;
    flex-shrink: 0;
}

.reviews-carousel-wrap .swiper-slide:last-child {
    margin-right: 0;
}

.rev_werit.rev_one { 
    background: #fff; 
    border-radius: 20px; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.08); 
    padding: 25px; 
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: 
        "avatar name"
        "avatar stars"
        "avatar date"
        "text text"
        "source source";
    border: 1px solid #f0f0f0;
}

.img_face { 
    grid-area: avatar; 
    margin: 0;
}

.img_fs img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover;
    display: block;
}

.name { 
    grid-area: name; 
    font-weight: 600; 
    font-size: 16px; 
    color: #000;
    margin: 0 0 8px 0;
}

.wpap_stars { 
    grid-area: stars; 
    margin: 0 0 5px 0;
}

.wpap_stars .stars svg {
    width: 16px;
    height: 16px;
    fill: #ffc107;
}

.data { 
    grid-area: date;
    font-size: 13px; 
    color: #999;
    margin: 0;
}

.rev_text { 
    grid-area: text; 
    font-size: 14px; 
    line-height: 1.6; 
    color: #333;
    width: 100%;
    margin: 15px 0 0 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    
}
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.review-modal.active {
    display: flex;
}

.review-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal .modal-close:hover {
    color: #004c41;
}

.review-modal .modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.review-modal .rev_werit.rev_one {
    box-shadow: none;
    border: none;
}

.review-modal .rev_text {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    overflow: visible !important;
}
.review-source {
    grid-area: source;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-decoration: none;
}

.review-source:hover {
    text-decoration: underline;
}

.wrap_rev, .wrap_rev_top, .rev_pl {
    display: contents;
}

.swiper-button-prev, .swiper-button-next { 
    color: #004c41;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #004c41;
    background: #fff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    position: absolute;
}

.swiper-button-prev {
    left: -70px;
}

.swiper-button-next {
    right: -70px;
}

.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 18px;
    color: #004c41;
    font-weight: bold;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    background: #004c41;
}

.swiper-button-prev:hover:after, .swiper-button-next:hover:after {
    color: #fff;
}

.swiper-pagination {
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    opacity: 1;
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #004c41;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .reviews-carousel-wrap .swiper {
        width: 640px;
    }
    .reviews-carousel-wrap .swiper-slide { 
        width: 300px;
        min-width: 300px;
    }
    .swiper-button-prev {
        left: -50px;
    }
    .swiper-button-next {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .reviews-carousel-wrap .swiper { 
        width: 100%;
    }
    .reviews-carousel-wrap .swiper-slide { 
        width: 100%;
        min-width: 100%;
        height: auto;
        margin-right: 0;
    }
    .rev_werit.rev_one {
        height: auto;
    }
    .rev_text {
        max-height: none;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    .swiper-button-prev, .swiper-button-next {
        display: none;
    }
    .reviews-carousel-wrap {
        padding: 40px 20px;
    }
}