/* ========== СТРАНИЦА ОТЗЫВОВ ========== */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.reviews-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(15, 35, 48, 0.6);
    border-radius: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group label {
    color: var(--text-light);
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Guidy', Arial, sans-serif;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

#sortSelect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-secondary);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Guidy', Arial, sans-serif;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(15, 35, 48, 0.6);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.stat-card .stars {
    margin-top: 8px;
    display: inline-block;
}

.review-item {
    background: rgba(15, 35, 48, 0.4);
    border: 1px solid rgba(238, 167, 37, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.review-item:hover {
    border-color: rgba(238, 167, 37, 0.3);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-author {
    font-weight: 600;
    color: var(--accent-secondary);
}

.review-category {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

.review-rating {
    color: var(--accent-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.review-date {
    color: var(--text-gray);
    font-size: 12px;
}

.review-content p {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 10px;
}

.review-photo {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 10px;
}

.review-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(238, 167, 37, 0.15);
}

.review-helpful {
    color: var(--text-gray);
    font-size: 13px;
}

.helpful-btn {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Guidy', Arial, sans-serif;
    font-size: 12px;
}

.helpful-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Guidy', Arial, sans-serif;
}

.page-btn.active,
.page-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

.add-review {
    text-align: center;
    margin: 40px 0;
}

/* ========== МОДАЛЬНОЕ ОКНО ДЛЯ ОТЗЫВА ========== */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.review-modal__content {
    background: linear-gradient(145deg, #0A1A24, #0C1F2A);
    border: 2px solid var(--accent-secondary);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    padding: 30px;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) rgba(255, 255, 255, 0.1);
    margin-right: 10px;
}

/* Полоса прокрутки */
.review-modal__content::-webkit-scrollbar {
    width: 6px;
}

.review-modal__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.review-modal__content::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 10px;
}

.review-modal__content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.review-modal {
    display: none;
    justify-content: center;
    align-items: center;
}

.review-modal__content {
    margin-left: auto;
    margin-right: auto;
}

.review-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-modal__header h3 {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    margin: 0;
}

.review-modal__close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.review-modal__close:hover {
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 167, 37, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Guidy', Arial, sans-serif;
}

.rating-input {
    display: flex;
    gap: 10px;
}

.rating-star {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.rating-star:hover,
.rating-star.active {
    color: var(--accent-secondary);
}

textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 167, 37, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    resize: vertical;
}

input[type="file"] {
    color: var(--text-gray);
}

small {
    display: block;
    color: var(--text-gray);
    font-size: 11px;
    margin-top: 5px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
}

.checkbox a {
    color: var(--accent-primary);
    text-decoration: none;
}

.checkbox a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.review-modal__info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(238, 167, 37, 0.2);
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}


#submitReviewBtn {
    margin-bottom: 15px;
}

.rating-input {
    display: flex;
    gap: 10px;
}

.rating-star {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
}

.rating-star:hover,
.rating-star.active {
    color: var(--accent-secondary);
}

textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 167, 37, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    resize: vertical;
}

.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-secondary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 4000;
    display: none;
    animation: fadeInOut 3s ease forwards;
    white-space: nowrap;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
    }
    
    .review-date {
        align-self: center;
    }
    
    .notification-toast {
        white-space: normal;
        text-align: center;
        max-width: 90vw;
        font-size: 12px;
    }

    .review-modal__content {
        margin-right: 5px;
        padding: 20px;
    }
    
    .review-modal__header h3 {
        font-size: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .checkbox label {
        font-size: 12px;
    }
    
    .rating-star {
        font-size: 24px;
    }
}