/* =========================
   REVIEWS SECTION
========================= */

.section-reviews {
    margin: 100px 0;
}

.reviews-title {
    text-align: center;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2f4447;
    margin-bottom: .8rem;
}

.reviews-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: center;
}

.review-info {
    width: 100%;
    background: #f4f4f4;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.review-content {
    max-width: 100%;
}

.review-text {
    line-height: 1.65;
    color: #373737;
    font-size: 16px;
    text-align: left;
}

.review-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.review-gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.review-photo-link,
.review-photo-link:hover,
.review-photo-link:focus,
.review-photo-link:active {
    display: block;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: none !important;
}

.review-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.review-video {
    width: 100%;
    max-width: 320px;
    margin: 0 0 0 auto;
    background: transparent;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #e9e6e0;
    border-radius: 20px;
}

.review-video-placeholder {
    cursor: pointer;
}

.review-video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.review-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(0,0,0,0.72);
}

.review-video-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 20px;
}

/* Slider arrows */
.blocks-reviews-slider .slick-prev,
.blocks-reviews-slider .slick-next,
.blocks-reviews-slider .slick-prev:hover,
.blocks-reviews-slider .slick-next:hover,
.blocks-reviews-slider .slick-prev:focus,
.blocks-reviews-slider .slick-next:focus,
.blocks-reviews-slider .slick-prev:active,
.blocks-reviews-slider .slick-next:active {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94) !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
    transition: none !important;
    animation: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.blocks-reviews-slider .slick-prev {
    left: -76px;
}

.blocks-reviews-slider .slick-next {
    right: -76px;
}

.blocks-reviews-slider .slick-prev::before,
.blocks-reviews-slider .slick-next::before {
    content: "" !important;
    display: none !important;
}

.blocks-reviews-slider .slick-prev::after,
.blocks-reviews-slider .slick-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid #2f4447;
    border-right: 2px solid #2f4447;
    transform-origin: center;
    transition: none !important;
    animation: none !important;
}

.blocks-reviews-slider .slick-prev::after {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.blocks-reviews-slider .slick-next::after {
    transform: translate(-65%, -50%) rotate(45deg);
}

/* Lightbox */
.review-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: none !important;
    animation: none !important;
    z-index: 9999;
    padding: 40px;
}

.review-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.review-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.review-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.review-lightbox *,
.review-lightbox *::before,
.review-lightbox *::after,
.review-lightbox *:hover,
.review-lightbox *:focus,
.review-lightbox *:active {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
}

.review-lightbox-prev,
.review-lightbox-next,
.review-lightbox-close,
.review-lightbox-prev:hover,
.review-lightbox-next:hover,
.review-lightbox-close:hover,
.review-lightbox-prev:focus,
.review-lightbox-next:focus,
.review-lightbox-close:focus,
.review-lightbox-prev:active,
.review-lightbox-next:active,
.review-lightbox-close:active {
    position: absolute;
    border: none !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    text-decoration: none !important;
    transition: none !important;
    animation: none !important;
}

.review-lightbox-prev::before,
.review-lightbox-prev::after,
.review-lightbox-next::before,
.review-lightbox-next::after,
.review-lightbox-close::before,
.review-lightbox-close::after {
    content: none !important;
    display: none !important;
}

.review-lightbox-prev,
.review-lightbox-next {
    top: 50%;
    transform: translateY(-50%) !important;
    width: 32px;
    height: 32px;
    padding: 0;
    background-size: 18px 18px !important;
}

.review-lightbox-prev {
    left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M11.5 3.5L6 9L11.5 14.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.review-lightbox-next {
    right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.5 3.5L12 9L6.5 14.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.review-lightbox-close {
    top: 30px;
    right: 30px;
    width: 28px;
    height: 28px;
    padding: 0;
    background-size: 16px 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 3L13 13M13 3L3 13' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

body.lock {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .review-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 1100px) {
    .blocks-reviews-slider .slick-prev {
        left: -20px;
    }

    .blocks-reviews-slider .slick-next {
        right: -20px;
    }
}

@media (max-width: 900px) {
    .review-card {
        grid-template-columns: 1fr 280px;
        gap: 22px;
    }

    .review-video {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .review-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .section-reviews {
        margin: 60px 0;
    }

    .review-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .review-info {
        padding: 22px;
        border-radius: 18px;
    }

    .review-video {
        max-width: 280px;
        margin: 0 auto;
    }

    .video-wrapper,
    .video-wrapper iframe,
    .review-video-preview {
        border-radius: 18px;
    }

    .blocks-reviews-slider .slick-prev,
    .blocks-reviews-slider .slick-next {
        display: none !important;
    }

    .review-lightbox {
        padding: 20px;
    }

    .review-lightbox-next {
        right: 16px;
    }

    .review-lightbox-prev {
        left: 16px;
    }

    .review-lightbox-close {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 480px) {
    .review-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
.review-video-placeholder.no-preview {
    background: linear-gradient(180deg, #ece7df 0%, #ded7cd 100%);
}

.review-video-placeholder.no-preview::before {
    content:  
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f4447;
    font-weight: 500;
}

.review-video-placeholder.no-preview .review-video-play {
    background: rgba(47, 68, 71, 0.86);
}