/* ========================================
   Общие стили для секции отзывов
   ======================================== */
.feedback-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    color: #333;
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.feedback-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feedback-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   Список отзывов и карточки
   ======================================== */
.feedback-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feedback-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease forwards;
}

.feedback-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.feedback-item::before {
    content: "“";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(52, 152, 219, 0.1);
    line-height: 1;
}

.feedback__content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.feedback-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.feedback-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.feedback-rating {
    margin-top: 5px;
    font-size: 1rem;
    color: #f39c12;
}

/* ========================================
   Пагинация
   ======================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    border-right: 1px solid #eee;
}

.page-item:last-child .page-link {
    border-right: none;
}

/* Состояние при наведении */
.page-link:hover {
    background: #3498db;
    color: #fff;
}

/* Текущая активная страница */
.page-link.active {
    background: #3498db;
    color: #fff;
    cursor: default;
}

/* Заблокированные кнопки */
.page-link.disabled {
    color: #bdc3c7;
    pointer-events: none;
    background: #f5f5f5;
    cursor: default;
}

/* Иконки стрелок */
.page-link i.fas, .page-link i.far {
    vertical-align: middle;
}

/* ========================================
   Анимации
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-item:nth-child(2) { animation-delay: 0.1s; }
.feedback-item:nth-child(3) { animation-delay: 0.2s; }
.feedback-item:nth-child(4) { animation-delay: 0.3s; }
.feedback-item:nth-child(5) { animation-delay: 0.4s; }

/* ========================================
   Адаптив для мобильных
   ======================================== */
@media (max-width: 768px) {
    .feedback-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .feedback-title h2 {
        font-size: 2rem;
    }
    .feedback-item {
        padding: 25px;
    }
    .pagination {
        flex-wrap: wrap;
        border-radius: 10px;
    }
    .page-item {
        flex: 1;
        text-align: center;
    }
    .page-link {
        padding: 10px 15px;
        border-right: 1px solid #eee;
    }
}
@media (max-width: 425px) {
    .feedback-list {
        grid-template-columns: repeat(1, 1fr);
    }