.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reviews-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #dc3545;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

.container-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.review-image {
    max-width: 60px;
    max-height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid #dc3545;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-content {
    color: #333;
    line-height: 1.6;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-numbers a,
.page-numbers span {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #dc3545;
    color: #dc3545;
    text-decoration: none;
}

.page-numbers span.active {
    background: #dc3545;
    color: white;
}

.page-numbers a:hover {
    background: #dc3545;
    color: white;
}

.page-numbers a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Стили для кнопок навигации */
.page-numbers a:not([href*="page="]) {
    min-width: 120px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid #dc3545;
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 10px;
    white-space: nowrap;
}

.page-numbers a:not([href*="page="]):hover {
    background: #dc3545;
    color: white;
}

.page-numbers a:not([href*="page="]).disabled {
    opacity: 0.5;
    pointer-events: none;
}

.add-review-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.add-review-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #dc3545;
    outline: none;
}

.rating-select {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.star-select {
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-select:hover,
.star-select.active {
    color: #ffc107;
}

.btn-lg {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .reviews-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .container-cards {
        grid-template-columns: 1fr;
    }
    
    .review-header {
        flex-wrap: wrap;
    }
    
    .review-rating {
        position: absolute;
        top: 0;
        right: 0;
    }
} 