.svedeniya-main {
    background: linear-gradient(135deg, #f8fdff 0%, #e0f2f1 100%);
    min-height: calc(100vh - 400px);
    padding: 40px 0 80px;
}

.main-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

.sidebar-menu {
    width: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    overflow: hidden;
    border: 1px solid #b2dfdb;
    position: sticky;
    top: 20px;
    height: fit-content; /* Автоматическая высота по контенту */
    align-self: flex-start;
    /* УБРАНО: max-height, overflow-y */
}

.sidebar-header {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для контактной информации */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background: #f8fdff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #b2dfdb;
}

.contact-map {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #b2dfdb;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* Стили для таблиц */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.info-table tr:hover {
    background: #f8f9fa;
}

/* Стили для карточек с информацией */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0f2f1;
}

.info-card h3 {
    color: #00897b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0f2f1;
}

.info-content {
    line-height: 1.6;
    color: #444;
}

.info-content p {
    margin-bottom: 15px;
}

.info-content ul, .info-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 8px;
}

/* Быстрая навигация */
.quicknav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quicknav-card {
    background: linear-gradient(135deg, #ffffff, #f8fdff);
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    border: 1px solid #b2dfdb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 137, 123, 0.08);
}

.quicknav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 137, 123, 0.15);
    border-color: #00897b;
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
}

.quicknav-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #00897b;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quicknav-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.quicknav-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Стили для медийных элементов в контенте */
.info-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.info-content iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
}

/* Стили для видео контейнеров */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Стили для документов */
.document-links {
    margin: 20px 0;
}

.document-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0f2f1;
    transition: all 0.3s;
}

.document-link:hover {
    background: #e0f2f1;
    border-color: #00897b;
    transform: translateX(5px);
}

.document-link i {
    margin-right: 15px;
    color: #00897b;
    font-size: 1.5rem;
}

.document-link span {
    flex: 1;
}

.document-size {
    color: #666;
    font-size: 0.9rem;
}

/* Стили для аккордеона/вкладок */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid #e0f2f1;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    padding: 15px 20px;
    background: #f8fdff;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: #e0f2f1;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-content {
        padding: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .quicknav-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .document-link {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .document-link i {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 15px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .contact-info,
    .contact-map {
        padding: 15px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .accordion-header {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .accordion-content.active {
        padding: 15px;
    }
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 1.2rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid #e0f2f1;
    position: relative;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, #e0f2f1, #ffffff);
    color: #00897b;
    padding-left: 25px;
}

.sidebar-link:hover i:first-child {
    color: #00897b;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-link.active:hover {
    background: linear-gradient(135deg, #00695c, #00897b);
    color: #ffffff;
    padding-left: 20px;
}

.sidebar-link.active i {
    color: #ffffff;
}

.sidebar-link i:first-child {
    margin-right: 12px;
    font-size: 1.1rem;
    color: #90a4ae;
    width: 20px;
    text-align: center;
}

.sidebar-link span {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.9rem;
    color: #90a4ae;
    transition: transform 0.3s ease;
}

.sidebar-link.active .dropdown-arrow {
    color: #ffffff;
    transform: rotate(180deg);
}

.sidebar-link:not(.active) .dropdown-arrow {
    transform: rotate(0deg);
}

/* Подменю */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: #f8fdff;
    transition: max-height 0.3s ease;
    /* УБРАНО: overflow-y, max-height */
}

.sidebar-submenu.active {
    max-height: none; /* Автоматическая высота */
}

.sidebar-subitem {
    border-bottom: 1px solid #e0f2f1;
}

.sidebar-subitem:last-child {
    border-bottom: none;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 50px;
    text-decoration: none;
    color: #666666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
}

.sidebar-sublink:hover {
    background: #e0f2f1;
    color: #00897b;
    padding-left: 55px;
}

.sidebar-sublink.active {
    background: linear-gradient(135deg, #b2dfdb, #e0f2f1);
    color: #00897b;
    font-weight: 600;
    border-left: 2px solid #00897b !important;
}

.sidebar-sublink.active:hover {
    background: linear-gradient(135deg, #a5d6a7, #b2dfdb);
    padding-left: 50px;
}

.sidebar-sublink i {
    margin-right: 12px;
    font-size: 0.9rem;
    color: #90a4ae;
    width: 16px;
    text-align: center;
}

.sidebar-sublink.active i {
    color: #00897b;
}

/* Основной контент */
.main-content {
    flex: 1;
    min-width: 0; /* Для корректной работы flex */
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00897b, #4fc3f7);
}

.page-title {
    color: #333333;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-subtitle {
    color: #666666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.content-sections {
    position: relative;
}

.info-section {
    display: none;
}

.info-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00897b;
}

.section-header h2 {
    color: #333333;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header i {
    color: #00897b;
    font-size: 1.6rem;
}

.info-card {
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.info-card h3 {
    color: #00897b;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0f2f1;
}

/* Стили для контейнера врача */
.leader-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.leader-container:last-child {
    margin-bottom: 0;
}

/* Место для фото слева */
.leader-photo-placeholder {
    width: 250px;
    flex-shrink: 0;
}

.photo-frame {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px double #b2dfdb;
    color: #90a4ae;
    transition: all 0.3s ease;
    background-image: url(mya.jpg);
    background-size: cover;
}

/* Информация справа */
.leader-info {
    flex: 1;
}

.leader-position {
    color: #00897b;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.leader-name {
    color: #333;
    font-size: 1.8rem;
    margin: 0 0 25px 0;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #00897b;
}

.leader-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leader-info-row {
    display: flex;
    flex-direction: column;      /* на узких экранах лучше колонкой */
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
    width: 100%;
    box-sizing: border-box;
}

.leader-info-row:last-child {
    border-bottom: none;
}

.leader-info-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    width: 100%;
}

.leader-info-value {
    color: #333;
    font-size: 1rem;
    flex: 1;
}

.leader-info-value a {
    color: #00897b;
    text-decoration: none;
    transition: color 0.3s;
}

.leader-info-value a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

/* Разделитель между врачами */
.leader-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b2dfdb, transparent);
    margin: 40px 0;
    position: relative;
}

.leader-divider:before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0f2f1, transparent);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.info-row strong {
    color: #333333;
    font-weight: 600;
    min-width: 250px;
    flex-shrink: 0;
}

.info-row p {
    color: #666666;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.info-row a {
    color: #00897b;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}

.info-row a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.info-row a i {
    margin-right: 8px;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0f2f1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.info-table thead {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
}

.info-table th {
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}

.info-table tbody tr {
    border-bottom: 1px solid #e0f2f1;
    transition: background-color 0.3s;
}

.info-table tbody tr:nth-child(even) {
    background-color: #f8fdff;
}

.info-table tbody tr:hover {
    background-color: #e0f2f1;
}

.info-table td {
    padding: 15px;
    color: #666666;
    font-size: 1rem;
    border: none;
}

/* Мобильная версия */
@media (max-width: 1200px) {
    .leader-photo-placeholder {
        width: 220px;
    }
    
    .photo-frame {
        height: 270px;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-menu {
        width: 100%;
        position: static;
    }
    
    .sidebar-link {
        padding: 14px 20px;
    }
    
    .sidebar-sublink {
        padding: 12px 20px 12px 50px;
    }
    
    .leader-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .leader-photo-placeholder {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .photo-frame {
        height: 250px;
    }
    
    .leader-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .leader-name {
        font-size: 1.5rem;
    }
    
    .leader-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .leader-info-label {
        min-width: auto;
        width: 100%;
        padding-right: 0;
    }
    
    .leader-info-value {
        width: 100%;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .info-row strong {
        min-width: auto;
        width: 100%;
    }
    
    .info-table th,
    .info-table td {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .leader-name {
        font-size: 1.3rem;
    }
    
    .leader-position {
        font-size: 1rem;
    }
    
    .leader-info-label,
    .leader-info-value {
        font-size: 0.95rem;
    }
    
    .photo-frame {
        height: 200px;
    }
    
    .photo-frame i {
        font-size: 3rem;
    }
    
    .main-container {
        padding: 0 15px;
    }
    
    .svedeniya-main {
        padding: 20px 0 60px;
    }
    
    .info-table {
        min-width: 400px;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .sidebar-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .sidebar-sublink {
        padding: 10px 15px 10px 45px;
        font-size: 0.9rem;
    }
}

.leader-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.leader-photo-placeholder {
    flex: 0 0 200px;
}

.photo-frame {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame i {
    font-size: 60px;
    color: #4CAF50;
}

.leader-info {
    flex: 1;
    min-width: 300px;
}

.leader-position {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.leader-name {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #00897b;
    padding-bottom: 10px;
}

.leader-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.leader-info-row {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

.leader-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 200px;
    padding-right: 15px;
}

.leader-info-value {
    flex: 1;
    color: #333;
}

.leader-info-value a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s;
}

.leader-info-value a:hover {
    color: #388E3C;
    text-decoration: underline;
}

.leader-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    margin: 40px 0;
    border: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .leader-container {
        flex-direction: column;
        padding: 15px;
    }
    
    .leader-photo-placeholder {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .photo-frame {
        width: 150px;
        height: 200px;
    }
    
    .leader-name {
        font-size: 24px;
    }
    
    .leader-info-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-info-row {
        flex-direction: column;
    }
    
    .leader-info-label {
        min-width: auto;
        margin-bottom: 5px;
    }
}

.leadership-section {
    width: 100%;
}

.leader-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;                /* растягиваем на всю ширину родителя */
    box-sizing: border-box;     /* учитываем padding в ширине */
}
.leader-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 40px 0;
}

.leader-photo-placeholder {
    flex-shrink: 0;             /* фото не сжимается */
    width: 250px;               /* можно оставить фиксированную ширину */
    max-width: 100%;            /* на мобильных не вылезает */
}

.photo-frame {
    width: 100%;
    height: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.photo-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.photo-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.photo-upload-hint {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.leader-info {
    flex: 1 1 0%;               /* занимает всё оставшееся пространство */
    min-width: 0;               /* позволяет тексту переноситься корректно */
    width: 100%;                /* для надёжности */
}

.leader-position {
    color: #00897b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 15px;
    background: #f8fdff;
    border-radius: 6px;
    display: inline-block;
}

.leader-name {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.leader-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.leader-info-row {
    display: flex;
    flex-direction: column;      /* на узких экранах лучше колонкой */
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
    width: 100%;
    box-sizing: border-box;
}

.leader-info-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.leader-info-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-info-label:before {
    content: '▸';
    color: #4CAF50;
}

.leader-info-value {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.leader-info-value a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.leader-info-value a:hover {
    color: #388E3C;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .leader-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .photo-frame {
        width: 180px;
        height: 230px;
        margin: 0 auto;
    }
    
    .leader-name {
        font-size: 24px;
    }
    
    .leader-info-grid {
        grid-template-columns: 1fr;
    }
}

.content-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e0f2f1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-section {
    display: none;
    margin-bottom: 40px;
}

.info-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ САЙДБАРА (как в пациентах) */
.sidebar-link.active {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    font-weight: 600;
    border: none;
}

.sidebar-link.active:hover {
    background: linear-gradient(135deg, #00695c, #00897b);
    color: #ffffff;
}

.sidebar-sublink.active {
    background: linear-gradient(135deg, #b2dfdb, #e0f2f1);
    color: #00897b;
    font-weight: 600;
    border-left: 4px solid #00897b;
}

.sidebar-sublink.active:hover {
    background: linear-gradient(135deg, #a5d6a7, #b2dfdb);
    padding-left: 50px;
    color: #00897b;
}

/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ КОНТЕНТА (как в пациентах) */
.section-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #b2dfdb;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.05);
    transition: box-shadow 0.3s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
}

.section-content:hover {
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.1);
}

.section-content h3 {
    color: #00897b;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0f2f1;
}

/* Мобильное меню */
.mobile-menu-header {
    display: none;
    padding: 15px 20px;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: white;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-nav-wrapper {
    transition: max-height 0.4s ease;
}

@media (max-width: 992px) {
    .sidebar-menu {
        width: 100%;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .mobile-menu-header {
        display: flex;
    }

    .sidebar-nav-wrapper {
        max-height: 0;
        overflow: hidden;
        background: white;
    }

    .sidebar-nav-wrapper.open {
        max-height: 2000px; /* достаточно большое значение */
        border-top: 1px solid #e0f2f1;
    }

    .sidebar-nav {
        padding: 10px 0;
    }

    .sidebar-link {
        padding: 14px 20px;
    }

    .sidebar-submenu.active {
        max-height: none;
    }

    /* Уменьшаем отступы на совсем маленьких */
    .sidebar-sublink {
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .sidebar-link {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    .sidebar-sublink {
        padding-left: 35px;
    }
}
@media (max-width: 992px){
    .sidebar-link {
    padding: 12px 16px; /* чуть меньше */
}
.sidebar-sublink {
    padding: 10px 16px 10px 45px;
}
}
@media (max-width: 768px) {
    .header-top {
        padding: 20px 0; 
        min-height: 80px; 
    }

    /* Добавляем отступы внутри контейнера с названием */
    .hospital-name-top {
        padding: 8px 0;
    }

    /* Увеличиваем межстрочный интервал и отступы между строками */
    .hospital-full-name,
    .hospital-specific-name {
        line-height: 1.5;
        margin-bottom: 5px;
    }

    /* Если нужно увеличить высоту всей шапки (включая логотип и поиск) */
    .header-main {
        min-height: 70px;
        padding: 15px 0;
    }
}
@media (max-width: 768px) {
    /* Делаем текст крупнее */
    .hospital-full-name {
        font-size: 1.2rem !important;   /* примерно 19px */
        line-height: 1.4 !important;
    }
    .hospital-specific-name {
        font-size: 1.5rem !important;   /* примерно 24px */
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }
    /* Если есть телефоны, их тоже можно увеличить */
    .phone-number {
        font-size: 1.3rem !important;   /* примерно 21px */
    }
    .phone-label {
        font-size: 1rem !important;     /* примерно 16px */
    }
}


/* ========== СТИЛИ ДЛЯ РАЗДЕЛА "РУКОВОДСТВО" (УТОЧНЕННАЯ ВЕРСИЯ) ========== */

.leadership-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px 0;
}

.leader-card {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.06), 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid #d4eae7;
    transition: box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.leader-card:hover {
    box-shadow: 0 12px 28px rgba(0, 137, 123, 0.1);
}

/* Фото */
.leader-photo-wrapper {
    flex-shrink: 0;
    width: 200px;
}

.leader-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);

    border: 2px solid white;
    outline: 1px solid #b2dfdb;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4b9b93;
    background: #e0f2f1;
}

.photo-placeholder i {
    font-size: 44px;
    margin-bottom: 8px;
    color: #00897b;
}

.photo-placeholder span {
    font-size: 12px;
    font-weight: 500;
    color: #00695c;
}

/* Правая часть */
.leader-details {
    flex: 1;
    min-width: 280px;
}

/* Плашка должности - увеличенный текст */
.leader-position-badge {
    display: inline-block;
    background: #00897b;
    color: white;
    font-size: 16px;          /* Увеличено */
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 137, 123, 0.2);
}

.leader-position-badge i {
    margin-right: 6px;
    font-size: 14px;
}

/* Имя */
.leader-fullname {
    font-size: 28px;
    font-weight: 700;
    color: #1e2b3a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 15px;
}

/* Сетка контактов - теперь в одну колонку для читаемости */
.leader-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Карточка контакта - более компактная, с иконкой фиксированного размера */
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    background: #f9fdfc;
    border-radius: 12px;
    border: 1px solid #e0f2f1;
}

/* Иконка контакта - меньше */
.contact-icon {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00897b;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

/* Контент контакта - весь в одной строке */
.contact-content {
    flex: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #5f8b85;
    min-width: 70px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: #1e2b3a;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
}

.contact-value a {
    color: #00897b;
    text-decoration: none;
    font-weight: 500;
}

.contact-value a:hover {
    text-decoration: underline;
    color: #004d40;
}

/* Блок дополнительной информации */
.leader-extra {
    margin-top: 10px;
    padding: 14px 18px;
    background: #f6fbfa;
    border-radius: 14px;
    border-left: 5px solid #00897b;
}

.extra-title {
    font-size: 15px;
    font-weight: 700;
    color: #00695c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-title i {
    font-size: 16px;
    color: #00897b;
}

.extra-text {
    font-size: 14px;
    line-height: 1.6;
    color: #2c4040;
}

/* Гарантируем видимость иконок */
.leader-card i,
.leader-details i,
.contact-icon i,
.extra-title i {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .leader-card {
        padding: 20px;
        gap: 20px;
    }

    .leader-photo-wrapper {
        width: 160px;
        margin: 0 auto;
    }

    .leader-fullname {
        font-size: 24px;
        text-align: center;
    }

    .leader-position-badge {
        display: table;
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
        padding: 6px 16px;
    }

    .contact-content {
        flex-direction: column;
        gap: 2px;
    }

    .contact-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .leader-photo-wrapper {
        width: 140px;
    }

    .leader-fullname {
        font-size: 22px;
    }

    .leader-position-badge {
        font-size: 14px;
    }

    .contact-item {
        padding: 8px 10px;
    }
}