/* ============================================
   АРХИВ ВРАЧЕЙ - ДЕЛОВОЙ СТИЛЬ
   ============================================ */
.doctors-archive-1277 {
    padding: 40px 0 80px;
    background: #fff;
}

.container_123 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовок архива */
.archive-header-1277 {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.archive-title-1277 {
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.archive-description-1277 {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
}

.archive-description-1277 p {
    margin-bottom: 12px;
}

.archive-description-1277 p:last-child {
    margin-bottom: 0;
}

/* Сетка врачей - 3 в ряд */
.doctors-grid-1277 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 0;
}

/* Карточка врача */
.doctor-card-1277 {
    background: #fff;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-left: 15px;
    margin-right: 15px;
}

.doctor-card-1277:hover {
    border-color: #0073aa;
    box-shadow: 0 5px 20px rgba(0, 115, 170, 0.08);
    transform: translateY(-2px);
}

/* Кликабельная область */
.doctor-card-link-1277 {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* Изображение врача */
.doctor-image-wrapper-1277 {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #f8f9fa;
}

.doctor-thumbnail-container-1277 {
    width: 100%;
    height: 100%;
}

.doctor-thumbnail-1277 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.doctor-card-1277:hover .doctor-thumbnail-1277 {
    transform: scale(1.03);
}

.doctor-thumbnail-placeholder-1277 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

/* Информационный блок */
.doctor-content-wrapper-1277 {
    padding: 25px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-info-1277 {
    position: relative;
    flex: 1;
}

.doctor-title-1277 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: color 0.3s ease;
    text-align: center;
}

.doctor-card-link-1277:hover .doctor-title-1277 {
    color: #0073aa;
}

/* Контейнер описания с кнопкой раскрытия */
.doctor-excerpt-container-1277 {
    margin-bottom: 20px;
    position: relative;
}

.doctor-excerpt-1277 {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
    text-align: center;
    max-height: 63px; /* 3 строки по 1.5 line-height */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.doctor-excerpt-1277.expanded {
    max-height: 500px;
}

.read-more-toggle-1277 {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 3px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.read-more-toggle-1277:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

.read-more-toggle-1277 svg {
    transition: transform 0.3s ease;
}

.read-more-toggle-1277.expanded svg {
    transform: rotate(90deg);
}

/* Блок с кнопкой */
.doctor-actions-1277 {
    padding: 0 25px 25px;
    margin-top: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.doctor-appointment-btn-1277 {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    border: 1px solid #0073aa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.doctor-appointment-btn-1277:hover {
    background: #005a82;
    border-color: #005a82;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

/* Нет врачей */
.no-doctors-found-1277 {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #888;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
}

/* Пагинация */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #eaeaea;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.page-numbers:hover:not(.current) {
    background: #f8f9fa;
    border-color: #0073aa;
    color: #0073aa;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .doctors-grid-1277 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .archive-title-1277 {
        font-size: 32px;
    }
    
    .archive-description-1277 {
        font-size: 15px;
    }
    
    .doctor-image-wrapper-1277 {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .doctors-archive-1277 {
        padding: 30px 0 50px;
    }
    
    .doctors-grid-1277 {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        gap: 30px;
    }
    
    .archive-header-1277 {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .archive-title-1277 {
        font-size: 28px;
    }
    
    .doctor-image-wrapper-1277 {
        height: 450px;
    }
    
    .doctor-content-wrapper-1277 {
        padding: 20px;
    }
    
    .doctor-actions-1277 {
        padding: 0 20px 20px;
    }
    
    .doctor-appointment-btn-1277 {
        padding: 11px 25px;
        font-size: 13px;
    }
}

.read-more-toggle-1277 {
    display: none;
}