/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ОТЗЫВОВ (КАК НА ГЛАВНОЙ) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --accent-color: #8b5cf6;
    --dark-bg: #0a0c0f;
    --dark-surface: #15181c;
    --dark-card: #1e2227;
    --dark-border: #2c3138;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --transition: all 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Фоновые паттерны как на главной */
.electrical-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(90deg, var(--primary-color) 0px, var(--primary-color) 1px, transparent 1px, transparent 40px);
    background-size: 80px 80px;
    animation: none;
}

.electrical-symbols {
    display: none;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 100px 0 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--text-primary);
}

/* Секция отзывов */
.reviews-content {
    opacity: 1;
    visibility: visible;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.reviews {
    padding: 0px 0 80px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Карточка отзыва */
.review-card {
    background: rgba(30, 34, 39, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-border);
    padding: 25px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

/* Шапка отзыва */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
    background: var(--dark-bg);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.review-author-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.review-service {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--dark-border);
}

/* Текст отзыва */
.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 20px 0;
    flex: 1;
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.review-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

/* Фото в отзыве */
.review-photos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.review-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.review-photo:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

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

/* Подвал отзыва */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--dark-border);
    font-size: 13px;
    color: var(--text-muted);
}

.review-footer i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Пустое состояние */
.no-reviews {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    background: rgba(30, 34, 39, 0.5);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--dark-border);
}

.no-reviews i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--primary-color);
    opacity: 0.5;
}

.no-reviews h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-reviews p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Блок CTA (призыв к действию) */
.review-cta {
    text-align: center;
    margin: 50px 0;
    padding: 50px;
    background: rgba(30, 34, 39, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-border);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.review-cta:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.review-cta i.fa-pen {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.review-cta h3, .review-cta h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.review-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки для связи */
.review-contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.review-contact-btn {
    min-width: 140px;
}

.email-btn {
    background: var(--primary-color);
    color: white;
}

.email-btn:hover {
    background: var(--primary-dark);
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #0077b3;
}

.vk-btn {
    background: #4a76a8;
    color: white;
}

.vk-btn:hover {
    background: #3a5f8a;
}

/* Лайтбокс */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: #dc2626;
    transform: rotate(90deg) scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .review-cta h3, .review-cta h2 {
        font-size: 24px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 80px 0 20px;
    }
    
    .reviews {
        padding: 0px 0 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        gap: 12px;
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
    }
    
    .review-avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .review-author-info h3 {
        font-size: 16px;
    }
    
    .review-text {
        font-size: 14px;
        padding: 15px;
    }
    
    .review-photos {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .review-cta {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .review-cta h3, .review-cta h2 {
        font-size: 22px;
    }
    
    .review-cta p {
        font-size: 14px;
    }
    
    .review-contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .review-contact-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .review-photos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .review-footer {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}