.reviews-section {
    margin: 7rem 4rem 0rem 4rem;
    background-color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    margin: 20px 0 0 0;
}

.reviews-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Включаем "примагничивание" */
    padding: 20px 20px 40px 20px;
    -webkit-overflow-scrolling: touch; /* Плавность на iOS */
}

/* Стилизация полосы прокрутки для Chrome/Safari */
.reviews-slider::-webkit-scrollbar {
    height: 8px;
    display: block;
}
.reviews-slider::-webkit-scrollbar-track {
    background: rgb(36, 128, 76);
    border-radius: 10px;
}
.reviews-slider::-webkit-scrollbar-thumb {
    background: white;
    border-radius: 10px;
    border-width: 2px;
}

/* Карточка в слайдере */
.review-card {
    flex: 0 0 350px; /* Карточка не сжимается и имеет ширину 350px */
    scroll-snap-align: center; /* Карточка центрируется при остановке скролла */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.05);
}

/* Заглушка для фото (чтобы не было ошибки ERR_NAME_NOT_RESOLVED) */
.client-photo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgb(36, 128, 76);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.review-header { display: flex; align-items: center; margin-bottom: 15px; }
.client-name { display: block; font-weight: bold; }
.client-meta { display: block; font-size: 0.85rem; color: #777; }
.rating { color: #ffc107; margin-bottom: 15px; }
.review-text { line-height: 1.6; color: #555; font-style: italic; }

/* Адаптивность */
@media (max-width: 480px) {
    .review-card {
        flex: 0 0 85%; /* На мобильных карточка занимает 85% ширины экрана */
    }
}
