/* === БЛОК ОТЗЫВОВ КЛИЕНТОВ === */
/* Модульный CSS для переиспользования блока отзывов на разных страницах */

.reviews-section {
    padding-top: 80px;
    background-color: var(--color-bg-secondary);
}

/* Слайдер отзывов */
.reviews-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 350px; /* Предотвращаем CLS при загрузке слайдера */
}

.reviews-slides-container {
    display: flex;
    width: 683%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews-slide {
    width: 20%;
    flex-shrink: 0;
    opacity: 1;
    margin-right: 1%;
    padding-right: 8px;
    box-sizing: border-box;
}

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

.reviews-slide.active {
    opacity: 1;
}

.reviews-wrapper {
    border-radius: 30px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.reviews-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/webp/Reviews_Main.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    z-index: 0;
}

/* Стиль для бордового фонового изображения десктопной версии */
.reviews-wrapper.burgundy-bg::after {
    background-image: url('../img/webp/Decide_Main.webp');
    transform: scaleX(-1);
}

.reviews-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-light);
    z-index: 1;
}

.reviews-wrapper > * {
    position: relative;
    z-index: 2;
}

/* Заголовок и навигация */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviews-header h2 {
    color: var(--color-white);
    margin-bottom: 0;
}

/* Белый заголовок для бордовой версии */
.reviews-header.white-title h2 {
    color: var(--color-text-white);
}

.reviews-navigation {
    display: flex;
    gap: 20px;
}

.reviews-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 0.2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.arrow-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.reviews-nav-btn.prev .arrow-icon {
    transform: rotate(180deg);
}

/* Сетка отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0;
}

.review-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 280px;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reviews-section .review-card:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    width: calc(50% - 6.67px);
}
.reviews-section .review-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2;
    width: calc(50% - 3.33px);
    justify-self: end;
}
/* Зеленый кружок с иконкой Play для видео-отзывов */
.review-card.has-video::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

/* Бордовый кружок Play для видео-отзывов */
.review-card.has-video.burgundy-play::after {
    background-color: var(--color-secondary);
}

.review-card.has-video::before {
    content: '';
    position: absolute;
    top: 35px;
    right: 34px;
    width: 18px;
    height: 18px;
    background: url('../img/Vector_Play.svg') no-repeat center center;
    background-size: contain;
    z-index: 4;
}

.review-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Тег(и) в отзыве: перенос в две строки, если не помещается по ширине */
.reviews-section .events-tag,
.reviews-section-mobile .events-tag {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* Информация о рецензенте */
.reviewer-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.reviewer-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-bg-gray-shield);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-avatar img,
.reviewer-avatar .reviewer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Видео-превью в аватаре (создаётся, если есть review_video_url) ===== */
.reviewer-video-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.reviewer-avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* клик уходит на .review-card */
}

.avatar-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    background: rgba(0, 0, 0, .25);
    transition: background .2s ease;
}

.avatar-video-play svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
}

.review-card:hover .avatar-video-play {
    background: rgba(0, 0, 0, .15);
}

/* ===== Плейсхолдер с инициалом ===== */
.reviewer-avatar .avatar-placeholder,
.reviewer-avatar .reviewer-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-plashka);
    background: var(--color-bg-gray-shield);
    text-transform: uppercase;
}

.reviewer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reviewer-name {
    color: var(--color-text-main);
    margin: 0;
}

/* Текст отзыва */
.review-content .text-p3 {
    color: var(--color-text-plashka);
    margin: 0;
}

/* Обрезка длинного текста отзыва до 6 строк */
.review-text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================================
 * МОДАЛЬНОЕ ОКНО ОТЗЫВА — общие стили для всех страниц сайта.
 * Подключается вместе с reviews.css на каждой странице, где есть .review-card.
 * Разметка собирается JS-ом (assets/js/reviews-modal.js) и одинакова везде.
 * ========================================================================== */
.review-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background-color: var(--color-white);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
}
.review-modal-overlay.active .review-modal { transform: scale(1); }

/* Расширенная ширина для видео-отзывов (две колонки: видео слева, текст справа) */
.review-modal.video-review-modal {
    max-width: 1200px;
    width: 95%;
}

.review-modal-header {
    padding: 32px 32px 20px 32px;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
}
.review-modal-header h3 {
    margin: 0;
    color: var(--color-text-main);
}

.review-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.review-modal-close:hover { background-color: var(--color-bg-secondary, var(--color-bg-gray-shield)); }

.review-modal-close::before,
.review-modal-close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 1px;
}
.review-modal-close::before { transform: rotate(45deg); }
.review-modal-close::after  { transform: rotate(-45deg); }

.review-modal-content { padding: 20px 32px 32px 32px; }

.review-modal-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.review-modal-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Аватар внутри модалки (если используется самостоятельно) */
.review-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}
.review-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-reviewer-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-modal-media { width: 300px; }

/* Двухколоночный layout для видео-отзыва */
.review-modal-main.video-review {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: flex-start;
}
.review-modal-main.video-review .review-modal-left,
.review-modal-main.video-review .review-modal-media {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}
.review-modal-main.video-review .review-video {
    width: 100%;
    height: auto;
    min-height: 250px;
    aspect-ratio: 16/9;
}

.review-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #000;
    max-height: 500px;
    object-fit: contain;
}
.review-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.review-modal-text-section {
    flex: 1;
    min-width: 0;
}
.review-modal-main.video-review .review-modal-text-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding-left: 0;
}
.review-modal-main.no-media .review-modal-text-section { width: 100%; }

.review-modal-author-info { margin-bottom: 16px; }

.review-modal-position {
    color: var(--color-text-secondary);
    margin: 0 0 8px 0;
}

.review-modal-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}
.review-modal-rating .rating-star { flex-shrink: 0; }
.review-modal-rating .rating-star.filled { color: var(--color-warning, #FFD700); }
.review-modal-rating .rating-star.empty  { color: var(--color-border-light); }

.review-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.review-modal-tags .events-tag { font-size: var(--font-size-xs); }

.review-modal-text {
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.review-modal-date {
    color: var(--color-text-secondary);
    margin: 12px 0 0 0;
    font-size: var(--font-size-xs);
    text-align: left;
}

/* Адаптив модалки */
@media screen and (max-width: 768px) {
    .review-modal { max-width: calc(100vw - 32px); width: calc(100vw - 32px); }
    .review-modal-header { padding: 24px 24px 16px 24px; }
    .review-modal-content { padding: 16px 24px 24px 24px; }
    .review-modal-main,
    .review-modal-main.video-review {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .review-modal-media { width: 100%; }
}

/* === АДАПТИВНОСТЬ БЛОКА ОТЗЫВОВ === */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .reviews-wrapper {
        padding: 40px;
    }
    
    .reviews-header {
        margin-bottom: 32px;
    }
    
    .review-card {
        padding: 24px;
        min-height: 250px;
    }
    
    .review-content {
        gap: 16px;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
    
    /* Адаптация кружка Play для планшетов */
    .review-card.has-video::after {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }
    
    .review-card.has-video::before {
        top: 28px;
        right: 26px;
        width: 16px;
        height: 16px;
        background: url('../img/Vector_Play.svg') no-repeat center center;
        background-size: contain;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-wrapper {
        padding: 32px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .reviews-slides-container {
        transition: transform 0.4s ease-in-out;
    }
    
    .review-card {
        padding: 20px;
        min-height: 220px;
    }
    
    .review-content {
        gap: 12px;
    }
    
    .reviewer-info {
        gap: 12px;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
    }
    
    /* Адаптация кружка Play для мобильных устройств */
    .review-card.has-video::after {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .review-card.has-video::before {
        top: 23px;
        right: 22px;
        width: 14px;
        height: 14px;
        background: url('../img/Vector_Play.svg') no-repeat center center;
        background-size: contain;
    }
    
    /* Адаптивность модального окна */
    .review-modal {
        width: 95%;
        margin: 20px;
    }
    
    .review-modal-header {
        padding: 30px 30px 15px 30px;
    }
    
    .review-modal-content {
        padding: 15px 30px 30px 30px;
        flex-direction: column;
        gap: 30px;
    }
    
    .review-modal-avatar {
        width: 120px;
        height: 120px;
        align-self: center;
    }
    
    .review-modal-video {
        width: 100%;
        height: 180px;
        align-self: center;
    }
}

/* === МОБИЛЬНЫЙ СЛАЙДЕР ОТЗЫВОВ === */
/* Скрываем мобильный слайдер на больших экранах */
.reviews-section-mobile {
    display: none;
}

.reviews-wrapper-mobile {
    border-radius: 30px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.reviews-wrapper-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/webp/Reviews_Main.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleY(-1);
    z-index: 0;
}

/* Стиль для бордового фонового изображения */
.reviews-wrapper-mobile.burgundy-bg::after {
    background-image: url('../img/webp/Decide_Main.webp');
    transform: scaleX(-1) scaleY(-1);
}



/* Объединённый слайдер: на мобиле тот же DOM трансформируется в горизонтальный
   scroll-snap с мобильным оформлением карточек (как раньше делала отдельная
   секция .reviews-section-mobile). */
@media screen and (max-width: 480px) {
    /* Контейнер слайдов → горизонтальный скролл с снапом по карточкам */
    .reviews-section .reviews-slider {
        overflow: visible;
        min-height: max-content;
    }
    .reviews-section .reviews-slides-container {
        display: flex !important;
        width: auto !important;
        transform: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 10px;
    }
    .reviews-section .reviews-slides-container::-webkit-scrollbar { display: none; }

    /* .reviews-slide / .reviews-grid убираем из layout — карточки становятся
       прямыми flex-детьми контейнера в одну строку. */
    .reviews-section .reviews-slide,
    .reviews-section .reviews-grid {
        display: contents !important;
        width: auto !important;
        opacity: 1 !important;
    }

    /* Мобильное оформление карточки (как было у .review-card-mobile) */
    .reviews-section .review-card {
        flex: 0 0 348px;
        min-width: 320px;
        max-width: 100%;
        padding: 22px;
        border-radius: 20px;
        box-shadow: none;
        scroll-snap-align: center;
        height: auto;
    }
    .reviews-section .review-card .review-text {
        max-height: 130px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        line-clamp: 6;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }


    .reviews-wrapper-mobile {
        padding: 20px;
    }
    
    .reviews-wrapper-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('../img/Reviews_bg.svg') no-repeat center center;
        background-size: cover;
        opacity: 0.1;
        z-index: 1;
    }
    
    .reviews-wrapper-mobile > * {
        position: relative;
        z-index: 2;
    }
    
    .reviews-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 16px;
    }
    
    .reviews-header-mobile h2 {
        text-align: left;
        margin: 0;
    }
    
    /* Белый заголовок для мобильной бордовой версии */
    .reviews-header-mobile.white-title h2 {
        color: var(--color-text-white);
    }
    
    .reviews-navigation-mobile {
        display: flex;
        gap: 15px;
    }
    
    .reviews-nav-btn-mobile {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        border: 0.2px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .reviews-nav-btn-mobile:hover {
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .reviews-nav-btn-mobile .arrow-icon {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }
    
    .reviews-nav-btn-mobile.prev .arrow-icon {
        transform: rotate(180deg);
    }
    
    .reviews-slider-mobile {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        margin: 0;
    }
    
    .reviews-slider-mobile::-webkit-scrollbar {
        display: none;
    }
    
    .reviews-cards-container-mobile {
        display: flex;
        gap: 10px;
        padding: 0;
        align-items: stretch;
        width: 100%;
    }
    
    .review-card-mobile {
        width: max-content; /* фиксированная длина контейнера */
        min-width: 320px;
        max-width: 100%;
        flex: 0 0 348px;
        padding: 22px; /* как в плашке "Знакомство" */
        box-sizing: border-box;
        background: var(--color-white);
        border-radius: 20px;
        box-shadow: none; /* без тени как у "Знакомство" */
        position: relative;
        cursor: pointer;
        transition: transform 0.3s ease;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .review-card-mobile:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    
    /* Ограничение высоты текста отзыва в мобильной версии */
    .reviews-section-mobile .review-text {
        max-height: 130px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        line-clamp: 6;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    /* Зеленый кружок Play для видео-отзывов */
    .review-card-mobile.has-video::after {
        content: '';
        position: absolute;
        top: 16px;
        right: 16px;
        width: 30px;
        height: 30px;
        background-color: var(--color-primary);
        border-radius: 50%;
        z-index: 3;
    }
    
    /* Бордовый кружок Play для видео-отзывов */
    .review-card-mobile.has-video.burgundy-play::after {
        background-color: var(--color-secondary);
    }
    
    /* Иконка Play */
    .review-card-mobile.has-video::before {
        content: '';
        position: absolute;
        top: 25px;
        right: 24px;
        width: 12px;
        height: 12px;
        background: url('../img/Vector_Play.svg') no-repeat center center;
        background-size: contain;
        z-index: 4;
    }
}

/* Очень маленькие экраны - оригинальные стили для десктопного слайдера */
@media screen and (max-width: 480px) {
    .reviews-nav-btn {
        width: 36px;
        height: 36px;
    }
    .arrow-icon {
        width: 18px;
        height: 18px;
    }

    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-wrapper {
        padding: 20px;
        overflow: hidden;
        border-radius: 30px;
    }
    
    .reviews-header {
        margin-bottom: 20px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: self-start;
        gap: 16px;
    }
    
    .reviews-header h2 {
        text-align: left;
        margin-right: auto;
        color: var(--color-text-main);
    }
    
    .reviews-navigation {
        gap: 15px;
    }
    
    /* Убираем ограничение строк для тегов в отзывах на мобильных */
    .reviews-section .events-tag,
    .reviews-section-mobile .events-tag {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }
    
    /* Мобильный горизонтальный скролл - каждая плашка отдельный слайд */
    .reviews-slider {
        overflow-x: visible; /* позволяем карточке выходить за контейнер по высоте */
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0;
        margin: 0;
    }
    
    .reviews-slider::-webkit-scrollbar {
        display: none;
    }
    
    .reviews-slides-container {
        display: flex;
        gap: 0;
        padding: 0;
        align-items: stretch;
        width: auto;
        transform: none !important;
        transition: none !important;
    }
    
    /* Каждый слайд содержит все плашки в горизонтальной линии */
    .reviews-slide {
        display: flex;
        flex-shrink: 0;
        width: auto;
        margin-right: 0;
        padding-right: 0;
        opacity: 1 !important;
    }
    
    /* Показываем все плашки в горизонтальной линии */
    .reviews-grid {
        display: flex;
        flex-direction: row;
        gap: 0; /* убираем зазор, чтобы не торчал следующий отзыв */
        width: auto;
        margin: 0;
    }
    
    .review-card {
        width: 348px;
        min-width: 348px;
        max-width: 348px;
        flex: 0 0 348px;
        padding: 22px; /* как у плашки "Знакомство" */
        box-sizing: border-box;
        height: auto;
    }
    
    /* Показываем все плашки отзывов */
    .review-card:not(:first-child) {
        display: block;
    }
    
    .review-card:nth-child(3),
    .review-card:nth-child(4) {
        grid-column: unset;
        grid-row: unset;
        width: 100%;
        justify-self: unset;
    }
    
    .review-content {
        gap: 16px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .reviewer-info {
        gap: 12px;
        flex-shrink: 0;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
    
    .reviewer-name {
        margin-bottom: 4px;
    }
    
    /* Адаптация кружка Play для очень маленьких экранов */
    .review-card.has-video::after {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }
    
    .review-card.has-video::before {
        top: 20px;
        right: 19px;
        width: 12px;
        height: 12px;
        background: url('../img/Vector_Play.svg') no-repeat center center;
        background-size: contain;
    }
    
    /* Модальное окно на маленьких экранах */
    .review-modal {
        width: 95%;
        margin: 10px;
    }
    
    .review-modal-header {
        padding: 20px 20px 10px 20px;
    }
    
    .review-modal-content {
        padding: 10px 20px 20px 20px;
        gap: 25px;
    }
    
    .review-modal-avatar {
        width: 100px;
        height: 100px;
    }
    
    .review-modal-video {
        width: 100%;
        height: 160px;
    }
    
    .review-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* === КОНЕЦ БЛОКА ОТЗЫВОВ КЛИЕНТОВ === */