.reviews-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews-controls {
    display: flex;
    gap: 12px;
}

/* Карусели */
.reviews-carousel, .yandex-reviews-container {
    -webkit-overflow-scrolling: touch;
}

.reviews-carousel::-webkit-scrollbar, .yandex-reviews-container::-webkit-scrollbar {
    display: none;
}

.review-card {
    width: 380px;
    /* min-width: 380px; */
    /* height: 399px; */
    border-radius: 8px;
    border: 1px solid rgba(232, 230, 212, 0.2);
    background: rgba(132, 168, 172, 0.2);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 19.97px 0;
    border-bottom: 1px solid rgba(132, 168, 172, 0.2);
}

.review-clinic-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #E8E6D4;
}

.review-source {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #84A8AC;
    padding-top: 1px;
}

.review-user-info {
    padding: 36px 19.97px 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    border-bottom: 1px solid rgba(132, 168, 172, 0.2);
}

.review-user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: var(--color-orange);
    grid-column: 1;
    grid-row: 1;
}

.review-date {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #E8E6D4;
    grid-column: 1;
    grid-row: 2;
}

.review-read-more {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #E8E6D4;
    text-decoration: none;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    transition: opacity 0.3s;
}

.review-read-more:hover {
    opacity: 0.7;
}

.review-content {
    padding: 25px 19.97px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #E8E6D4;
    flex-grow: 1;
}

.review-more-button {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange);
    border: 1px solid rgba(232, 230, 212, 0.2);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    color: #E8E6D4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.review-more-button:hover {
    background: #E8E6D4;
    color: var(--color-orange);
}

/* Яндекс отзыв */
.yandex-review-item {
    /* min-width: 380px; */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    margin: 0 5px;
    flex-direction: column;
}

.yandex-review-item h3, .clinic-title {
    padding: 15px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
    background: #f8f8f8;
}

.yandex-review-item iframe {
    width: 100%;
    height: 400px;
    border: none;
}
.reviews:not(.slick-initialized){
    overflow: hidden;
    flex-wrap: nowrap;
}
.reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews .review-card {
    width: calc( 33.33333% - 10px);
    padding: 20px 20px 60px 20px;
    position: relative;
}

.reviews .review-card__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
}

.reviews .review-card__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}
.reviews .review-card__text p{
    margin: 0;
}

.reviews .review-card__bottom {
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 0;
    background: var(--color-text-green);
    left: 0;
    right: 0;
    justify-content: center;
    padding: 11px 0;
    height: auto!important;
}

.reviews .review-card__bottom a {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-white);
}

.reviews .review-card__bottom a:hover {
    text-decoration: underline;
}

.reviews .review-card__company {
    color: #E8E6D4;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.reviews .review-card__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(132, 168, 172, 0.20);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.reviews .review-card__info .read-more {
    color: #E8E6D4;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
    margin: auto 0 0 auto;
    display: block;
    height: auto;
    width: auto;
    white-space: nowrap;
    cursor: pointer;
}

.reviews .review-card__name {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-text-green);
    font-size: 16px;
    font-weight: 600;
}

.reviews .review-card__source {
    color: #84A8AC;
    font-size: 14px;
    font-weight: 500;
}

.reviews .review-card__name span {
    color: #E8E6D4;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.12px;
}

@media (max-width: 768px) {
    .reviews-section, .yandex-reviews-section {
        padding: 0;
        margin: 60px 0;
        max-width: calc( 100% - 20px );
    }

    .yandex-reviews-container {
        gap: 10px;
    }

    .reviews-header {
        width: 100%;
        margin-bottom: 30px;
    }

    .review-card, .yandex-review-item {
        /* min-width: 300px; */
        height: auto;
    }

    .yandex-review-item {
        min-width: 300px;
    }
    .reviews .review-card{
        /* width: calc( 100vw - 45px )!important; */
    }
}

/* Popup для отзывов */
.popup-review-wrapper {
    max-width: 600px;
    width: 90%;
}

.popup-review {
    background: #E8E6D4;
    border-radius: 8px;
    border: 1px solid #76824A;
    padding: 30px;
    position: relative;
}

.popup-review__name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    color: #76824A;
    margin-bottom: 10px;
}

.popup-review__date {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    color: #18383C;
    margin-bottom: 20px;
}

.popup-review__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #18383C;
}

@media (max-width: 768px) {
    .popup-review-wrapper {
        max-width: 90%;
        width: 95%;
    }
    
    .popup-review {
        padding: 20px;
    }
    
    .popup-review__name {
        font-size: 16px;
    }
    
    .popup-review__text {
        font-size: 14px;
    }
}
