/* testimonials.css — стили для отзывов и карусели */

/* === ОБЩИЕ СТИЛИ === */
.testimonials-page,
.testimonials-carousel-shortcode {
    padding: 60px 0;
    background: #f9f9f9;
}

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

.page-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    position: relative;
}

.page-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #28a745;
    display: block;
    margin: 12px auto 0;
}

/* === ФИЛЬТР ПО АППЛАЕНСУ === */
.appliance-filter {
    text-align: center;
    margin-bottom: 40px;
}

#appliance-filter {
    padding: 12px 20px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    min-width: 250px;
    cursor: pointer;
}

#appliance-filter:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* === СЕТКА ОТЗЫВОВ (3 колонки как в блоге) === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* === КАРТОЧКА ОТЗЫВА === */
.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto 0;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 12px;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.testimonial-city {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.testimonial-rating {
    text-align: center;
    margin-bottom: 12px;
}

.testimonial-rating .star {
    font-size: 1.1rem;
    color: #ddd;
}

.testimonial-rating .star.filled {
    color: #ffc107;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
    flex-grow: 1;
}

.testimonial-appliance {
    text-align: center;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* === ПАГИНАЦИЯ === */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* === КАРУСЕЛЬ НА ГЛАВНОЙ === */
.testimonials-carousel-shortcode {
    padding: 80px 0;
    text-align: center;
}

.testimonials-carousel-shortcode .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.testimonials-carousel-shortcode .section-title::after {
    background: #28a745;
}

/* Swiper контейнер */
.testimonials-swiper {
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.testimonials-swiper .testimonial-card {
    max-width: 380px;
    margin: 0 auto;
}

/* Стрелки и точки */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #28a745;
    font-weight: bold;
}

.testimonials-swiper .swiper-button-next:after,
.testimonials-swiper .swiper-button-prev:after {
    font-size: 18px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #28a745;
}

/* === АДАПТИВНОСТЬ === */
/* Планшет */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title,
    .testimonials-carousel-shortcode .section-title {
        font-size: 1.8rem;
    }
}

/* Мобильный */
@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-photo {
        width: 70px;
        height: 70px;
    }
    .testimonials-page,
    .testimonials-carousel-shortcode {
        padding: 40px 0;
    }
    #appliance-filter {
        min-width: 200px;
        font-size: 0.95rem;
    }
}