/* doctors/specialty.css */

.specialty-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.specialty-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 12px;
}

.specialty-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.specialty-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.specialty-list li a i.fa-solid:not(.arrow) {
    width: 22px;
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
}

.specialty-list li a .arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.25s;
}

.specialty-list li:hover a {
    background: var(--bg-light);
    color: var(--primary-red);
}

.specialty-list li:hover a .arrow {
    opacity: 1;
}

.specialty-list li.active a {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    font-weight: 600;
}

.specialty-list li.active a i.fa-solid:not(.arrow) {
    color: var(--primary-blue);
}

/* CTA в sidebar */
.sidebar-cta {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 16px;
    text-align: center;
    border: 1px dashed var(--border-color);
}

.sidebar-cta i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 12px;
    line-height: 1.5;
}

.sidebar-cta a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.sidebar-cta a:hover {
    color: var(--primary-red);
}

/* ===== CONTENT ===== */
.specialty-content {
    background: #fff;
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary-red);
}

.breadcrumbs .sep {
    color: var(--border-color);
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 600;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.spec-badge i {
    font-size: 16px;
}

.spec-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.spec-intro {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 720px;
}

.spec-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.spec-info-card i {
    font-size: 28px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.spec-info-card p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

.spec-section {
    margin-bottom: 36px;
}

.spec-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.spec-section > p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.7;
}

/* Services grid */
.spec-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.spec-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.spec-service-item:hover {
    transform: translateY(-4px);
}

.spec-service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.spec-service-icon i {
    font-size: 26px;
    color: var(--primary-blue);
}

.spec-service-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.spec-service-text span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Symptoms */
.symptoms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.symptom-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-body);
    transition: background 0.2s;
}

.symptom-item:hover {
    background: var(--primary-red-light);
}

.symptom-item i {
    color: var(--primary-blue);
    font-size: 8px;
    flex-shrink: 0;
}

/* CTA block */
.spec-cta-block {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-blue-light), #fff);
    border-radius: 20px;
    margin: 40px 0 24px;
    border: 1px solid var(--border-color);
}

.spec-cta-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.spec-cta-icon i {
    font-size: 36px;
    color: var(--primary-blue);
}

.spec-cta-text {
    flex: 1;
}

.spec-cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.spec-cta-text p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.spec-disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 20px;
    font-style: italic;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .spec-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .specialty-page {
        grid-template-columns: 1fr;
    }
    .specialty-sidebar {
        position: static;
        max-height: none;
    }
    .specialty-content {
        padding: 32px 28px;
    }
    .spec-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .specialty-content {
        padding: 24px 18px;
    }
    .spec-title {
        font-size: 32px;
    }
    .spec-services-grid {
        grid-template-columns: 1fr;
    }
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    .spec-cta-block {
        flex-direction: column;
        text-align: center;
    }
    .specialty-sidebar {
        padding: 20px 14px;
    }
    .specialty-list li a {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .spec-title {
        font-size: 26px;
    }
    .spec-section h2 {
        font-size: 20px;
    }
}

/* ===== СЕКЦИЯ ВРАЧЕЙ ===== */
.doctors-section {
    margin-top: 20px;
    padding-top: 36px;
    border-top: 2px solid var(--border-color);
}

.doctors-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.doctors-section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.doctor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.doctor-photo-wrapper {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--bg-light), var(--primary-blue-light));
    position: relative;
    overflow: hidden;
}

.doctor-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-photo-wrapper img {
    transform: scale(1.05);
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-placeholder i {
    font-size: 100px;
    color: var(--primary-blue);
    opacity: 0.3;
}

.doctor-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.doctor-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-position {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 10px;
    line-height: 1.5;
}

.doctor-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.doctor-experience {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-appointment {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-appointment:hover {
    color: var(--primary-red-dark);
    gap: 12px;
}

.btn-appointment i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-appointment:hover i {
    transform: translateX(4px);
}

/* Адаптив для секции врачей */
@media (max-width: 768px) {
    .doctors-section h2 {
        font-size: 24px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .doctor-photo-wrapper {
        height: 280px;
    }
    
    .doctor-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .doctor-photo-wrapper {
        height: 260px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .doctor-name {
        font-size: 17px;
    }
    
    .doctor-position {
        font-size: 14px;
    }
}

/* ===== СЕКЦИЯ ВРАЧЕЙ (ГОРИЗОНТАЛЬНАЯ КАРТОЧКА) ===== */
.doctors-section {
    margin-top: 20px;
    padding-top: 36px;
    border-top: 2px solid var(--border-color);
}

.doctors-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.doctors-section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.doctors-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doctor-horizontal-card {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.doctor-horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

/* Левая часть: фото */
.doctor-photo-side {
    width: 280px;
    min-height: 320px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg-light), var(--primary-blue-light));
    position: relative;
    overflow: hidden;
}

.doctor-photo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-horizontal-card:hover .doctor-photo-side img {
    transform: scale(1.05);
}

.doctor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-placeholder i {
    font-size: 100px;
    color: var(--primary-blue);
    opacity: 0.3;
}

/* Правая часть: информация */
.doctor-info-side {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doctor-info-content {
    flex: 1;
}

.doctor-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.doctor-position {
    font-size: 18px;
    color: var(--text-body);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.doctor-category {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--primary-blue-light);
    border-radius: 8px;
    display: inline-block;
}

.doctor-education {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.5;
}

.doctor-education i {
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.doctor-experience {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Кнопка записи */
.btn-appointment-horizontal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-appointment-horizontal:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

.btn-appointment-horizontal i {
    font-size: 14px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .doctor-horizontal-card {
        flex-direction: column;
    }
    
    .doctor-photo-side {
        width: 100%;
        min-height: 280px;
        max-height: 320px;
    }
    
    .doctor-info-side {
        padding: 24px;
    }
    
    .doctor-name {
        font-size: 20px;
    }
    
    .doctor-position {
        font-size: 16px;
    }
    
    .btn-appointment-horizontal {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .doctor-photo-side {
        min-height: 240px;
    }
    
    .doctor-info-side {
        padding: 20px;
    }
    
    .doctor-name {
        font-size: 18px;
    }
    
    .doctor-position {
        font-size: 15px;
    }
    
    .doctor-education {
        font-size: 14px;
    }
    
    .btn-appointment-horizontal {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ===== СЕКЦИЯ МАНИПУЛЯЦИЙ С ЦЕНАМИ ===== */
.procedures-section {
    margin-top: 20px;
    padding-top: 36px;
    border-top: 2px solid var(--border-color);
}

.procedures-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

.procedures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.procedure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.procedure-item:hover {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.procedure-name {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.procedure-name i {
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
}

.procedure-name span {
    font-size: 16px;
    color: var(--text-body);
    font-weight: 500;
}

.procedure-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
    white-space: nowrap;
    margin-left: 20px;
}

.procedures-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: var(--primary-blue-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 20px;
}

.procedures-note i {
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== АДАПТИВ ДЛЯ МАНИПУЛЯЦИЙ ===== */
@media (max-width: 768px) {
    .procedures-section h2 {
        font-size: 22px;
    }
    
    .procedure-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
    
    .procedure-name {
        width: 100%;
    }
    
    .procedure-price {
        margin-left: 28px;
        font-size: 16px;
    }
    
    .procedures-note {
        font-size: 13px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .procedures-section h2 {
        font-size: 20px;
    }
    
    .procedure-name span {
        font-size: 15px;
    }
    
    .procedure-price {
        font-size: 15px;
    }
}

/* ===== СЕКЦИЯ СТОИМОСТИ ПРИЁМА (в стиле прайса манипуляций) ===== */
.appointment-prices-section {
    margin-top: 20px;
    padding-top: 36px;
    border-top: 2px solid var(--border-color);
}

.appointment-prices-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.appointment-prices-section .section-intro-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Длительность приёма (мелким шрифтом под названием) */
.procedure-duration {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.procedure-duration i {
    font-size: 11px;
    color: var(--primary-blue);
    margin-right: 4px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .appointment-prices-section h2 {
        font-size: 22px;
    }
    
    .procedure-duration {
        font-size: 12px;
    }
}