/* ========= СТРАНИЦА ОТЗЫВОВ ========= */
.reviews-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 150px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(42, 125, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.review-author h4 {
    margin-bottom: 5px;
    color: #212529;
}

.review-project {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.review-rating {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
}

.review-text::before {
    content: "❝";
    font-size: 3rem;
    color: rgba(42, 125, 46, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-verified {
    background-color: rgba(42, 125, 46, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-reviews {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.add-review-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    margin-top: 60px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #ffc107;
}

/* Уведомления */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #2a7d2e;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

.notification-content i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-success i {
    color: #2a7d2e;
}

.notification-error i {
    color: #dc3545;
}

.notification-content span {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.notification-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2a7d2e, #3fbf6b);
    animation: progress 5s linear forwards;
}

.notification-error .notification-progress {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}