/* Страница архива отзывов */
.reviews-archive {
    padding: 30px 0;
    background: #f9f9f9;
    min-height: 500px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хлебные крошки */
.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #333;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .breadcrumb_last {
    color: #999;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: #333;
}

/* Табы - черно-белые кнопки */
.reviews-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #000;
    background: white;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    background: #f0f0f0;
}

.tab-button.active {
    background: #000;
    border-color: #000;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Элемент отзыва */
.review-archive-item {
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.review-archive-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.review-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.review-archive-author {
    font-size: 18px;
}

.review-archive-author strong {
    color: #333;
}

.review-archive-position {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.review-archive-date {
    color: #999;
    font-size: 14px;
}

.review-archive-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.review-archive-text p {
    margin: 0 0 10px 0;
}

.review-archive-text p:last-child {
    margin-bottom: 0;
}

/* Изображение отзыва */
.review-archive-image {
    margin: 20px 0;
}

.review-thumbnail {
    max-width: 200px;
    max-height: 150px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: opacity 0.3s ease;
    object-fit: cover;
}

.review-thumbnail:hover {
    opacity: 0.9;
}

/* Ссылка на источник */
.review-archive-link {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.review-archive-link a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-archive-link a:hover {
    text-decoration: underline;
}

/* Нет отзывов */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #eee;
    color: #999;
    font-size: 16px;
}

/* Модальное окно */
.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close-modal:hover {
    color: #ccc;
}

.reviews-archive .page-title:after {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reviews-archive {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Кнопки рядом на мобилках */
    .reviews-tabs {
        flex-direction: row; /* Меняем с column на row */
        flex-wrap: wrap; /* Разрешаем перенос */
        gap: 10px;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .tab-button {
        width: auto; /* Убираем ширину 100% */
        min-width: 200px; /* Минимальная ширина */
        flex: 0 1 auto; /* Не растягиваются */
        text-align: center;
    }
    
    .review-archive-item {
        padding: 20px;
    }
    
    .review-archive-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-thumbnail {
        max-width: 100%;
        max-height: 200px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media (max-width: 480px) {
    .reviews-tabs {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .tab-button {
        min-width: 150px; /* Поменьше минимальная ширина */
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* Для совсем узких экранов */
@media (max-width: 360px) {
    .tab-button {
        min-width: 130px;
        padding: 8px 10px;
        font-size: 12px;
    }
}



/* Секция с формой отзыва */
.review-form-section {
    background: white;
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.review-form-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.review-form-wrapper {
    /*max-width: 600px;*/
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border: 1px solid #eee;
}

/* Стили для полей Contact Form 7 */
.review-form-wrapper .wpcf7-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.review-form-wrapper .wpcf7-form input[type="text"],
.review-form-wrapper .wpcf7-form input[type="url"],
.review-form-wrapper .wpcf7-form textarea,
.review-form-wrapper .wpcf7-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    background: white;
    font-family: inherit;
}

.review-form-wrapper .wpcf7-form textarea {
    height: 150px;
    resize: vertical;
}

.review-form-wrapper .wpcf7-form input[type="submit"] {
    background: #000;
    color: white;
    border: 2px solid #000;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-form-wrapper .wpcf7-form input[type="submit"]:hover {
    background: white;
    color: #000;
}

.review-form-wrapper .wpcf7-response-output {
    margin: 20px 0 0;
    padding: 10px;
    font-size: 14px;
}

.review-form-wrapper .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .review-form-section {
        padding: 40px 0;
    }
    
    .review-form-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .review-form-wrapper {
        padding: 25px;
    }
}
