.ktolechit-page-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.ktolechit-page-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Сетка карточек заболеваний */
.diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.disease-card {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.disease-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.disease-card-header {
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.disease-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.disease-title {
    flex: 1;
}
.disease-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.disease-specialty {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.disease-description {
    padding: 16px 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    border-top: 1px solid var(--border-light);
    height: 100%;
}

.disease-footer {
    padding: 16px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    width: 100%;
}
.doctor-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
}
.doctor-tag a {
    font-weight: 600;
    color: var(--primary);
}
.book-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.book-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Пустой результат поиска */
.empty-result {
    text-align: center;
    padding: 60px;
    background: var(--bg-light);
    border-radius: 32px;
    color: var(--text-muted);
}

/* Адаптивность */
@media (max-width: 700px) {
    .diseases-grid {
        grid-template-columns: 1fr;
    }
    .ktolechit-page-header h1 {
        font-size: 32px;
    }
    .system-header h2 {
        font-size: 24px;
    }
}
