/* ===== ОТЗЫВЫ ===== */
.reviews {
    padding: 40px 50px 80px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* карточка отзыва */
.review-card {
    background-color: #f3e1d3; /* мягкий беж */
    border: 1px solid #d2b6a2;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* изображение отзыва */
.review-card img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* текст отзыва */
.review-text {
    font-size: 15px;
    line-height: 1.4;
    color: #1c1c1c;
}

/* ссылки внутри отзывов */
.reviews li a {
    list-style: none;
    text-decoration: none;
    color: inherit;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .reviews {
        padding: 30px 20px 60px;
    }

    .review-card img {
        max-height: 200px;
    }

    .review-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .review-card {
        padding: 14px;
    }

    .review-card img {
        max-height: 180px;
    }

    .close {
        font-size: 24px;
        top: 5px;
        right: 10px;
    }

    .modal-img {
        max-height: 70%;
    }
}
