/* Секция карусели отзывов */
.reviews-carousel {
    padding: 80px 0;
    background: #FDF8F2;
    border-top: 1px solid rgba(198,164,63,0.1);
    border-bottom: 1px solid rgba(198,164,63,0.1);
}

.reviews-carousel__title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: #2E2E2E;
    text-align: center;
    margin-bottom: 10px;
}

.reviews-carousel__subtitle {
    font-size: 16px;
    color: #4A4A4A;
    text-align: center;
    margin-bottom: 40px;
}

/* Слайдер */
.reviews-carousel__slider {
    margin: 0 -15px; /* компенсация паддингов слайдов */
}

.reviews-carousel__slide {
    padding: 15px;
    box-sizing: border-box;
}

.reviews-carousel__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background-color: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.reviews-carousel__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(198,164,63,0.15);
}

.reviews-carousel__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    border-radius: 20px;
}

.reviews-carousel__item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.reviews-carousel__item:hover::before {
    opacity: 1;
}

.reviews-carousel__item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reviews-carousel__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Точки пагинации */
.reviews-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0 50px 0; /* одинаковые отступы сверху и снизу */
}

.reviews-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.reviews-carousel__dot.active {
    background: #C6A43F;
    transform: scale(1.3);
}

/* Кнопка "Все отзывы" */
.reviews-carousel__button-wrapper {
    text-align: center;
}

.reviews-carousel__button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #7B3FE4 0%, #9f6eff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(123, 63, 228, 0.3);
}

.reviews-carousel__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(123, 63, 228, 0.4);
}

/* Модальное окно */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.reviews-modal.show {
    display: flex;
}

.reviews-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.reviews-modal__image {
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.reviews-modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.reviews-modal__close:hover {
    color: #C6A43F;
}

/* Адаптивность */
@media screen and (max-width: 992px) {
    .reviews-carousel__item {
        height: 280px;
    }
}

@media screen and (max-width: 768px) {
    .reviews-carousel {
        padding: 60px 0;
    }
    .reviews-carousel__title {
        font-size: 28px;
    }
    .reviews-carousel__item {
        height: 250px;
    }
    .reviews-carousel__item::after {
        font-size: 30px;
    }
    .reviews-carousel__dots {
        margin: 30px 0 30px 0;
    }
}

@media screen and (max-width: 480px) {
    .reviews-carousel__title {
        font-size: 24px;
    }
    .reviews-carousel__item {
        height: 220px;
    }
    .reviews-carousel__dots {
        margin: 25px 0 25px 0;
    }
    .reviews-carousel__button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}