﻿/* Общие стили для архива специалистов */
.site-main {
    padding-bottom: 80px;
}


/* Заголовок архива */
.specialists-archive-header {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.archive-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.archive-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #008BD0;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* Категории специалистов */
.specialists-categories {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 15px 0;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.category-image {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.category-name a {
    color: inherit;
    text-decoration: none;
}

.category-name a:hover {
    color: #008BD0;
}

.category-count {
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.category-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

.category-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px 0;
}

.preview-specialists {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-specialist {
    display: flex;
    gap: 10px;
    align-items: center;
}

.preview-photo {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.preview-position {
    font-size: 12px;
    color: #666;
}

.category-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: #008BD0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* Все специалисты */
.all-specialists {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Фильтры */
.specialists-filters {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn,
.sort-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active,
.sort-btn:hover,
.sort-btn.active {
    background: #008BD0;
    border-color: #008BD0;
    color: white;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.specialist-search {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.specialist-search:focus {
    border-color: #008BD0;
}

.search-btn {
    padding: 12px 30px;
    background: #008BD0;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #005a87;
}

/* Табы категорий специалистов (как в каталоге) */
.specialists-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    align-items: center;
}
.specialists-category-tags .specialists-category-tag {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f0f0;
    border-radius: 6px;
    color: #333;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.specialists-category-tags .specialists-category-tag:hover {
    background: #e0e0e0;
    color: #000;
}
.specialists-category-tags .specialists-category-tag--current {
    background: #0073aa;
    color: #fff;
}
.specialists-category-tags .specialists-category-tag-count {
    opacity: .85;
    font-size: .9em;
}

/* Сетка специалистов — стили как на single (related-grid, related-card) подключаются из single-specialist.css */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd700;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.specialist-info {
    padding: 25px;
}

.specialist-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f9fa;
    color: #008BD0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: #008BD0;
    color: white;
}

.specialist-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.specialist-name a {
    color: inherit;
    text-decoration: none;
}

.specialist-name a:hover {
    color: #008BD0;
}

.specialist-position {
    font-size: 16px;
    font-weight: 600;
    color: #008BD0;
    margin-bottom: 10px;
}

.specialist-experience {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.specialist-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 20px;
}

.specialist-actions {
    display: flex;
    gap: 10px;
}

.specialist-btn {
    flex: 1;
    padding: 10px;
    background: #008BD0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.specialist-btn:hover {
    background: #005a87;
}

.consultation-btn {
    flex: 1;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consultation-btn:hover {
    background: #218838;
}

/* Статистика внизу */
.archive-bottom-stats {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #008BD0;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* CTA блок */
.specialists-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #008BD0 0%, #005a87 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.cta-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-btn.primary {
    background: white;
    color: #008BD0;
}

.cta-btn.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #specialists-grid.related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .archive-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .archive-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    #specialists-grid.related-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .specialists-filters {
        padding: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .specialist-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .archive-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-image {
        margin: 0 auto;
    }
    
    .specialist-photo {
        height: 200px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}
