* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-teal: #00897b;
    --dark-teal: #00695c;
    --light-teal: #e0f2f1;
    --accent-teal: #26a69a;
    --secondary-blue: #4fc3f7;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #444444;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-group {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0f2f1;
}

.section-group h3 {
    color: #00897b;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
    margin-bottom: 15px;
}

.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);
    height: 100%;
}

.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;
    margin-top: auto;
}


.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;
}


.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;
    max-height: calc(100vh - 40px);
    align-self: flex-start;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    border-bottom: 1px solid #e0f2f1;
    position: relative;
}

.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, #01cab6, #004463);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-link.active:hover {
    color: #44746c;
    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;
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: #f8fdff;
    transition: max-height 0.3s ease;
}


.sidebar-submenu.active {
    max-height: 1000px;
}

.sidebar-subitem {
    border-bottom: 1px solid #e0f2f1;
}

.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;
}

.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 {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    border: 1px solid #b2dfdb;
}

.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 {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.info-card h3 {
    color: #00897b;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0f2f1;
}

/* НОВЫЕ СТИЛИ ДЛЯ РУКОВОДСТВА - ГОРИЗОНТАЛЬНЫЙ ФОРМАТ */
.leadership-section {
    background: #f8fdff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #b2dfdb;
}

.leader-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0f2f1;
    box-shadow: 0 3px 15px rgba(0, 137, 123, 0.08);
    position: relative;
    overflow: hidden;
}

.leader-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00897b, #4fc3f7);
}

.leader-container:last-child {
    margin-bottom: 0;
}

.leader-photo-placeholder {
    width: 220px;
    flex-shrink: 0;
}

.photo-frame {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #b2dfdb;
    background: #f5f5f5;
    position: relative;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #90a4ae;
    background: linear-gradient(135deg, #e0f2f1, #ffffff);
}

.photo-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #b2dfdb;
}

.photo-placeholder span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
}

.leader-info {
    flex: 1;
    min-width: 0;
}

.leader-position {
    color: #00897b;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 8px 15px;
    background: rgba(0, 137, 123, 0.1);
    border-radius: 6px;
    display: inline-block;
    border-left: 3px solid #00897b;
}

.leader-name {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* НОВАЯ СТРУКТУРА: ИНФОРМАЦИЯ В СТРОКУ */
.leader-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0f2f1;
}

.leader-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f8fdff;
    border-radius: 6px;
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.leader-info-item:hover {
    border-color: #00897b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.1);
}

.leader-info-icon {
    color: #00897b;
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.leader-info-content {
    flex: 1;
    min-width: 0;
}

.leader-info-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-info-text {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.leader-info-text a {
    color: #00897b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.leader-info-text a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.leader-info-text a i {
    font-size: 12px;
}

/* АЛЬТЕРНАТИВНЫЙ ВАРИАНТ: ТАБЛИЧНЫЙ ФОРМАТ */
.leader-info-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.leader-info-row {
    background: #f8fdff;
    border-radius: 6px;
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
}

.leader-info-row:hover {
    border-color: #00897b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.1);
}

.leader-info-cell {
    padding: 12px 15px;
}

.leader-info-label-cell {
    color: #666;
    font-weight: 600;
    width: 180px;
    border-right: 1px solid #e0f2f1;
    background: #f1f9f8;
}

.leader-info-value-cell {
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
}

.leader-info-value-cell a {
    color: #00897b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.leader-info-value-cell a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

/* СТИЛЬ С РАЗДЕЛЕНИЕМ НА БЛОКИ */
.leader-info-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.leader-info-block {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f8fdff;
    border-radius: 8px;
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
}

.leader-info-block:hover {
    border-color: #00897b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.1);
}

.leader-info-block-title {
    color: #00897b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0f2f1;
}

.leader-info-block-title i {
    font-size: 14px;
}

.leader-info-block-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

.leader-info-block-content a {
    color: #00897b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.leader-info-block-content a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

/* ДОПОЛНИТЕЛЬНАЯ ИНФОРМАЦИЯ */
.leader-additional-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8fdff;
    border-radius: 8px;
    border: 1px solid #e0f2f1;
}

.leader-additional-title {
    color: #00897b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-additional-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.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);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .main-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .leader-info-item {
        min-width: 180px;
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar-menu {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .leader-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .leader-photo-placeholder {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .photo-frame {
        height: 300px;
    }
    
    .leader-info-item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .leader-info-table {
        display: block;
    }
    
    .leader-info-row {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .leader-info-label-cell {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0f2f1;
    }
}

@media (max-width: 768px) {
    .svedeniya-main {
        padding: 20px 0 40px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .info-section {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .leader-name {
        font-size: 1.4rem;
    }
    
    .leader-container {
        padding: 20px;
    }
    
    .leader-info-item {
        padding: 8px 12px;
    }
    
    .leader-info-blocks {
        gap: 10px;
    }
    
    .leader-info-block {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
        gap: 15px;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .photo-frame {
        height: 220px;
    }
    
    .leader-position {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .leader-info-title,
    .leader-info-text {
        font-size: 0.9rem;
    }
}
.main-header {
    font-family: 'Segoe UI', Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
    width: 100%;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hospital-name-top {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.hospital-full-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hospital-specific-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-phones {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 20px;
}

.social-link {
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.social-link.fa-vk:hover {
    color: #4c75a3;
    background: rgba(255, 255, 255, 0.9);
}

.social-link.fa-telegram:hover {
    color: #2ca5e0;
    background: rgba(255, 255, 255, 0.9);
}

.social-link.fa-whatsapp:hover {
    color: #25d366;
    background: rgba(255, 255, 255, 0.9);
}

.phone-item {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.phone-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
}

.phone-link:hover {
    opacity: 0.9;
}

.phone-number {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.phone-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 2px;
}

.header-main {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--light-teal);
    width: 100%;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--light-teal);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.search-form:focus-within {
    border-color: var(--primary-teal);
    box-shadow: 0 2px 8px rgba(0, 137, 123, 0.15);
}

.search-input {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--dark-gray);
    min-width: 200px;
    background: transparent;
}

.search-input::placeholder {
    color: var(--medium-gray);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    color: var(--white);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
}

.search-btn i {
    font-size: 0.9rem;
}

.main-nav {
    flex-grow: 1;
    margin: 0;
    position: relative;
    left: -40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-teal);
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    background-color: var(--white);
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid var(--light-teal);
    max-height: 500px;
    overflow-y: auto;
    margin-top: 10px;
    transform: translateY(-10px);
}

.nav-item .dropdown-menu {
    left: 70px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 40px;
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border-left: 1px solid var(--light-teal);
    border-top: 1px solid var(--light-teal);
    transform: rotate(45deg);
    z-index: 1;
}

.nav-item:nth-child(7) .dropdown-menu::before,
.nav-item:nth-child(8) .dropdown-menu::before,
.nav-item:nth-child(9) .dropdown-menu::before,
.nav-item:nth-child(10) .dropdown-menu::before,
.nav-item:nth-child(11) .dropdown-menu::before {
    left: auto;
    right: 40px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-teal);
    color: var(--primary-teal);
    padding-left: 20px;
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: var(--accent-teal);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-link.has-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
    min-width: 50px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    margin-left: 20px;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary-teal);
}


.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: right 0.3s;
    overflow-y: auto;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid var(--light-teal);
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.2;
    max-width: 180px;
    color: var(--white);
}

.mobile-logo-text span:first-child {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
}

.mobile-search {
    padding: 15px;
    border-bottom: 1px solid var(--light-teal);
    background: var(--white);
}

.mobile-search-form {
    display: flex;
    gap: 0;
    background: var(--light-teal);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.mobile-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--dark-gray);
    background: transparent;
}

.mobile-search-input::placeholder {
    color: var(--medium-gray);
}

.mobile-search-btn {
    background: var(--primary-teal);
    color: var(--white);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 15px;
}

.mobile-nav-item {
    position: relative;
    margin-bottom: 5px;
}

.mobile-dropdown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 0;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.mobile-dropdown-toggle:hover {
    color: var(--primary-teal);
}

.mobile-dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.mobile-dropdown-toggle.active::after {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    max-width: 100%;
    background-color: rgba(240, 255, 255, 0.5);
    margin: 5px 0;
    border-radius: 4px;
}

.mobile-dropdown-menu.active {
    max-height: 500px;
    overflow-y: auto;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    color: var(--primary-teal);
    background-color: rgba(224, 242, 241, 0.3);
    padding-left: 15px;
}

.mobile-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.mobile-contacts {
    padding: 15px;
    border-top: 1px solid var(--medium-gray);
    background-color: var(--light-teal);
    margin-top: 10px;
}

.mobile-phone-item {
    margin-bottom: 10px;
}

.mobile-phone {
    display: block;
    color: var(--dark-gray);
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--white);
    border: 1px solid var(--light-teal);
    transition: all 0.3s;
}

.mobile-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mobile-phone-content {
    display: flex;
    flex-direction: column;
}

.mobile-phone-number {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-teal);
    margin-bottom: 3px;
}

.mobile-phone-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.mobile-social-link.fa-vk:hover {
    background: #4c75a3;
}

.mobile-social-link.fa-telegram:hover {
    background: #2ca5e0;
}

.mobile-social-link.fa-whatsapp:hover {
    background: #25d366;
}


.ostalnoye-content {
    background: linear-gradient(135deg, #f8fdff 0%, #e0f2f1 100%);
    min-height: calc(100vh - 400px);
    padding: 40px 0 80px;
    width: 100%;
}

.main-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}




.sidebar-header {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffffff;
}

.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: #e0f2f1;
    color: #00897b;
}


.sidebar-link.active {
    color: #333; 
    font-weight: 600;
    background: none !important;
}


.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: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;
}

.sidebar-submenu.active {
    max-height: 500px;
}

.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: 4px solid #00897b;
}

.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;
}

.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;
}

.section-content {
    
    border-radius: 10px;
    
    margin-bottom: 25px;
    
    
    
}

/* В разделе стилей добавим */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-map {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 5px;
}

.employee-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00897b;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.2);
}

.btn-back:hover {
    background: linear-gradient(135deg, #00695c, #00897b);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3);
}

.btn-back i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

.employee-detail-header h2 {
    color: #333333;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-detail-header h2 i {
    color: #00897b;
}

.employee-info-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    border: 1px solid #b2dfdb;
}

.employee-info-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0f2f1;
}

.employee-info-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.employee-info-section h3 {
    color: #00695c;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
}

.employee-info-section h3 i {
    color: #26a69a;
    font-size: 1.2rem;
}

.employee-info-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.employee-info-label {
    width: 220px;
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
    flex-shrink: 0;
}

.employee-info-value {
    flex: 1;
    color: #444444;
    font-size: 1rem;
    line-height: 1.5;
}

.employee-certificates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.employee-certificates-table th {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.employee-certificates-table td {
    padding: 15px;
    border-bottom: 1px solid #e0f2f1;
    background: white;
    color: #444444;
}

.employee-certificates-table tr:last-child td {
    border-bottom: none;
}

.employee-certificates-table tr:nth-child(even) td {
    background: #f8fdff;
}

.employee-certificates-table tr:hover td {
    background: #e0f2f1;
}

.employee-card {
    flex: 1;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #e0f2f1;
    border-radius: 8px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.employee-card:hover {
    background: linear-gradient(135deg, #e0f2f1, #ffffff);
    border-color: #26a69a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.15);
}

.employee-card.active {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    border-color: #00695c;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.25);
}


.vacancies-list {
    margin: 25px 0;
}

.vacancy-item {
    background: linear-gradient(135deg, #e0f2f1, #f0f9ff);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #26a69a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.vacancy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.vacancy-item h3 {
    color: #00695c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.vacancy-details {
    margin-bottom: 20px;
}

.vacancy-details p {
    margin-bottom: 8px;
    color: #444444;
}

.medication-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.info-card {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #26a69a;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    color: #444444;
    margin-bottom: 20px;
    line-height: 1.5;
}

.link-arrow {
    color: #00897b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.3s;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

.supervisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.supervisory-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
}

.supervisory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #26a69a;
}

.supervisory-card h3 {
    color: #00695c;
    margin-bottom: 15px;
    font-size: 1.2rem;
    min-height: 60px;
}

.supervisory-card p {
    margin-bottom: 10px;
    color: #444444;
}

.supervisory-card a {
    color: #00897b;
    text-decoration: none;
    font-weight: 500;
}

.supervisory-card a:hover {
    text-decoration: underline;
}

.documents-tabs {
    margin: 30px 0;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 5px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #e0f2f1;
    color: #00897b;
}

.tab-button.active {
    background-color: #00897b;
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #e0f2f1;
    border-radius: 8px;
    gap: 20px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background-color: #b2dfdb;
    transform: translateX(5px);
}

.document-item i {
    font-size: 2rem;
    color: #f44336;
}

.document-item div {
    flex-grow: 1;
}

.document-item h4 {
    color: #333333;
    margin-bottom: 5px;
}

.document-item p {
    color: #444444;
    font-size: 0.9rem;
}

.btn-download {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #00695c, #00897b);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.3);
}


.add-review-form {
    background: linear-gradient(135deg, #e0f2f1 0%, #e0f7fa 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 137, 123, 0.1);
}

.add-review-form h3 {
    color: #00695c;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-review-form h3 i {
    color: #26a69a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #00695c;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #26a69a;
    width: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group.half-width {
    width: calc(50% - 10px);
}

.form-submit {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    font-weight: 600;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
    color: #00897b;
    border: 1px solid #00897b;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: #ffffff;
    transform: translateY(-2px);
}

.section-divider {
    border: none;
    border-top: 2px solid #e0f2f1;
    margin: 40px 0;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.review-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #26a69a;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar i {
    font-size: 1.8rem;
    color: #ffffff;
}

.review-date {
    color: #444444;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-date i {
    color: #26a69a;
}

.review-content {
    color: #444444;
    line-height: 1.6;
    font-size: 1rem;
}


footer {
    background: linear-gradient(135deg, #263238, #37474f);
    color: #ffffff;
    padding: 50px 0 20px;
    position: relative;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00897b, #4fc3f7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo {
    flex: 1;
}

.logo-icon_1 {
    margin-bottom: 15px;
}

.logo-image_1 {
    width: 50px;
    height: 70px;
    object-fit: contain;
    display: block;
    background-size: 100% 100%;
}

.footer-logo h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.footer-logo h3 span {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    color: #b0bec5;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #26a69a;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    display: inline-block;
}

.footer-contact {
    flex: 1;
}

.footer-contact h4 {
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #26a69a;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0bec5;
}

.footer-contact i {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: 18px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #90a4ae;
    font-size: 0.9rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px 0;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 35px;
    }
    
    .nav-list {
        gap: 18px;
    }
    
    .nav-link {
        font-size: 0.88rem;
    }
    
    .search-input {
        min-width: 180px;
    }
    
    .footer-content {
        padding: 0 35px;
    }
}

@media (max-width: 1100px) {
    .container {
        padding: 0 30px;
    }
    
    .header-top-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .header-phones {
        flex-direction: row;
        gap: 15px;
        text-align: center;
        order: 2;
        justify-content: center;
    }
    
    .header-social {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        padding-right: 15px;
    }
    
    .phone-item {
        text-align: center;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .search-input {
        min-width: 160px;
    }
    
    .footer-content {
        padding: 0 30px;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 950px) {
    .header-main .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
    
    .header-right {
        order: 2;
        margin-left: 0;
        margin-right: 0;
        min-width: auto;
    }
    
    .header-search {
        order: 1;
        margin-right: 15px;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .nav-list {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .dropdown-menu {
        left: -20px;
    }
    
    .nav-item:nth-child(7) .dropdown-menu,
    .nav-item:nth-child(8) .dropdown-menu,
    .nav-item:nth-child(9) .dropdown-menu,
    .nav-item:nth-child(10) .dropdown-menu,
    .nav-item:nth-child(11) .dropdown-menu {
        left: auto;
        right: -20px;
    }
    
    .dropdown-menu::before {
        left: 40px;
    }
    
    .nav-item:nth-child(7) .dropdown-menu::before,
    .nav-item:nth-child(8) .dropdown-menu::before,
    .nav-item:nth-child(9) .dropdown-menu::before,
    .nav-item:nth-child(10) .dropdown-menu::before,
    .nav-item:nth-child(11) .dropdown-menu::before {
        left: auto;
        right: 40px;
    }
    
    .medication-info,
    .supervisory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .employee-info-card {
        padding: 25px;
    }
    
    .employee-info-label {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
    }
    
    .header-top {
        padding: 10px 0;
    }
    
    .header-top .container {
        padding: 0 20px;
    }
    
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .hospital-name-top {
        padding: 5px 0;
    }
    
    .hospital-full-name {
        font-size: 0.8rem;
        line-height: 1.2;
        white-space: normal;
    }
    
    .hospital-specific-name {
        font-size: 0.9rem;
        line-height: 1.2;
        white-space: normal;
    }
    
    .header-phones {
        display: none;
    }
    
    .header-main {
        padding: 0;
        border-bottom: none;
        background: white;
    }
    
    .header-main .container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
        position: relative;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-search {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #00897b, #00695c) !important;
        color: white !important;
        border: none;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 10px rgba(0, 137, 123, 0.3);
        margin-left: auto;
        position: relative;
        z-index: 1001;
        flex-shrink: 0;
        order: 2;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, #00695c, #00897b);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.98);
    }
    
    .header-right {
        display: flex;
        align-items: center;
        order: 1;
        width: auto;
        margin-left: 0;
    }
    
    .ostalnoye-content {
        padding: 30px 0 40px;
    }
    
    .main-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .sidebar-menu {
        width: 100%;
    }
    
    .sidebar-link {
        padding: 14px 20px;
    }
    
    .sidebar-sublink {
        padding: 12px 20px 12px 50px;
    }
    
    .page-header {
        padding: 25px 0;
        margin-bottom: 25px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .employee-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    .employee-detail-header h2 {
        font-size: 1.5rem;
    }
    
    .employee-info-card {
        padding: 20px;
    }
    
    .employee-info-section {
        padding-bottom: 20px;
    }
    
    .employee-info-row {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .employee-info-label {
        width: 100%;
        font-size: 0.95rem;
    }
    
    .employee-info-value {
        font-size: 0.95rem;
    }
    
    .employee-certificates-table th,
    .employee-certificates-table td {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .personnel-table > div {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .employee-card {
        width: 100%;
        min-height: 50px;
        padding: 12px 10px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .search-box > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
    }
    
    .search-box button {
        padding: 12px 20px;
    }
    
    .stats-box > div {
        gap: 20px;
        justify-content: space-around;
    }
    
    .stats-box > div > div {
        flex: 1;
        min-width: 100px;
    }
    
    .content-section .section-content > div:last-child {
        padding: 15px;
        gap: 8px;
    }
    
    .content-section .section-content > div:last-child a {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 35px;
        text-align: center;
    }
    
    .medication-info,
    .supervisory-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card,
    .supervisory-card,
    .review-card {
        padding: 20px;
    }
    
    .vacancy-item {
        padding: 15px;
    }
    
    .tabs-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .document-item i {
        font-size: 1.5rem;
    }
    
    .btn-download {
        width: 100%;
        text-align: center;
    }
    
    .add-review-form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group.half-width {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        display: block;
    }
    
    .mobile-menu {
        width: 85%;
        max-width: 300px;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-dropdown-menu {
        max-height: 350px;
    }
    
    .mobile-dropdown-item {
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: normal;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 20px;
        margin-bottom: 30px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 20px 20px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    
    .header-top .container {
        padding: 0 15px;
    }
    
    .header-main .container {
        padding: 8px 15px;
        min-height: 50px;
    }
    
    .hospital-full-name {
        font-size: 0.75rem;
    }
    
    .hospital-specific-name {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .page-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .employee-card {
        font-size: 0.85rem;
        padding: 10px 8px;
    }
    
    .stats-box > div > div {
        min-width: 80px;
    }
    
    .stats-box p:first-child {
        font-size: 1rem;
    }
    
    .stats-box > div > div p:last-child {
        font-size: 1.3rem;
    }
    
    .info-card,
    .supervisory-card,
    .review-card {
        padding: 15px;
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-dropdown-menu {
        max-height: 300px;
    }
    
    .mobile-dropdown-item {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    
    .contact-map img {
        width: 100%;
        height: auto;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    
    .mobile-menu {
        width: 70%;
        max-width: 350px;
    }
    
    .mobile-nav-list {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .mobile-dropdown-menu {
        max-height: 200px;
    }
}


.info-section.active,
.info-section {
background-color: rgb(250, 255, 250) !important;
    transition: none !important;
}

.trix-content * {
    background-color: transparent !important;
}



/* Убираем все переходы фона */
[style*="background-color: rgb(255, 253, 231)"],
[style*="background-color:rgb(255,253,231)"] {
    background-color: transparent !important;
    transition: none !important;
}




.employee-card {
    flex: 1;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #00897b;
    background: #f0f9f8;
}

.employee-card.active {
    border-color: #00897b;
    background: #e0f2f1;
}

.employee-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.employee-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.employee-card small {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Детальная информация о сотруднике */
.employee-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.btn-back {
    padding: 10px 20px;
    background: #00897b;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #00695c;
    transform: translateX(-5px);
}

/* Стили для детальной информации */
.employee-info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.employee-info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.employee-info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.employee-info-section h3 {
    color: #00897b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.employee-info-section h3 i {
    font-size: 1.1rem;
}

.employee-info-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.employee-info-label {
    width: 220px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.employee-info-value {
    flex: 1;
    color: #555;
    line-height: 1.6;
}

.employee-certificates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border: 1px solid #ddd;
}

.employee-certificates-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.employee-certificates-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.employee-certificates-table tr:hover {
    background: #f8f9fa;
}

/* Поиск сотрудников */
.search-box {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #80cbc4;
}

.search-box p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #004d40;
    text-align: center;
    font-size: 1.1rem;
}

#employee-search {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #4db6ac;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
}

#employee-search:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.2);
}

#search-button {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    white-space: nowrap;
}

#search-button:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 105, 92, 0.3);
}

/* Статистика */
.stats-box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 5px solid #00897b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-box p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.stats-box span {
    color: #00897b;
    font-size: 1.4rem;
    font-weight: 700;
}

.stats-box .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.stats-box .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-box .stat-item p:first-child {
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-box .stat-item p:last-child {
    color: #00897b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.pagination a {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    background-color: white;
    border: 1px solid #e0e0e0;
    min-width: 44px;
    text-align: center;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #00897b;
    color: white;
    border-color: #00897b;
}

.pagination a.active {
    background-color: #00897b;
    color: white;
    border-color: #00897b;
}

.pagination a:first-child,
.pagination a:last-child {
    background-color: #e0f2f1;
    border: 1px solid #b2dfdb;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background-color: #00897b;
    color: white;
    border-color: #00897b;
}

/* Адаптивность */
@media (max-width: 768px) {
    .employee-info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .employee-info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .employee-card {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .stats-box .stat-item {
        min-width: 150px;
        margin-bottom: 15px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 14px;
    }
}
/* Дополнительные стили для поиска */
.search-box {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #bbdefb;
}

.search-box p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 1.1rem;
}

.search-input-container {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input-container input:focus {
    outline: none;
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.search-input-container button {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 120px;
}

.search-input-container button:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3);
}

.search-input-container button:active {
    transform: translateY(0);
}

.search-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.staff-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.staff-card.active {
    border: 2px solid #4fc3f7;
}
/* ========== МОБИЛЬНОЕ МЕНЮ ДЛЯ САЙДБАРА (ПЛАНШЕТЫ И ТЕЛЕФОНЫ) ========== */
@media (max-width: 992px) {
    /* 1. Отключаем sticky, фиксируем ширину */
    .sidebar-menu {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 20px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .sidebar-menu *,
    .sidebar-nav,
    .sidebar-link,
    .sidebar-sublink {
        box-sizing: border-box;
    }

    /* 2. Гамбургер-шапка */
    .sidebar-mobile-header {
        display: flex !important;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        background: linear-gradient(135deg, #00897b, #4fc3f7);
        color: white;
        cursor: pointer;
    }

    .sidebar-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        padding: 5px;
        cursor: pointer;
    }

    .sidebar-mobile-toggle .bar {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .sidebar-mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .sidebar-mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .sidebar-mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .sidebar-mobile-title {
        font-size: 1.1rem;
        font-weight: 500;
    }

    /* 3. Оборачиваем навигацию – скрыта по умолчанию */
    .sidebar-nav-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: white;
    }

    .sidebar-nav-wrapper.open {
        max-height: 2000px; /* хватит для любого меню */
        border-top: 1px solid #e0f2f1;
    }

    /* 4. Скрываем все подменю, кроме активного */
    .sidebar-submenu {
        max-height: 0 !important;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar-item.active .sidebar-submenu {
        max-height: 500px !important; /* если большое – увеличьте */
    }

    /* 5. Стрелка у пунктов с подменю */
    .sidebar-item.has-submenu > .sidebar-link {
        position: relative;
        padding-right: 40px;
    }

    .sidebar-item.has-submenu > .sidebar-link::after {
        content: '\f107'; /* иконка FontAwesome "chevron-down" */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s;
        color: inherit;
    }

    .sidebar-item.has-submenu.active > .sidebar-link::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* 6. Компактные отступы */
    .sidebar-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .sidebar-sublink {
        padding: 10px 16px 10px 40px;
        font-size: 0.9rem;
        background-color: #f9f9f9;
    }

    .sidebar-sublink:hover {
        background-color: #e0f2f1;
    }

    /* 7. Для совсем маленьких экранов */
    @media (max-width: 480px) {
        .sidebar-link {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
        .sidebar-sublink {
            padding: 8px 12px 8px 32px;
            font-size: 0.85rem;
        }
        .sidebar-link i:first-child {
            font-size: 1rem;
            margin-right: 8px;
        }
        .sidebar-sublink i {
            font-size: 0.85rem;
            margin-right: 8px;
        }
    }
}
@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;  
        line-height: 1.4 !important;
    }
    .hospital-specific-name {
        font-size: 1.5rem !important;  
        font-weight: 700 !important;
        line-height: 1.4 !important;
    }
    .phone-number {
        font-size: 1.3rem !important;  
    }
    .phone-label {
        font-size: 1rem !important;     
    }
}
/* ========== АДАПТАЦИЯ ОТЗЫВОВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */
@media (max-width: 768px) {
    /* Статистика отзывов */
    .reviews-stats {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 15px;
    }

    .reviews-stats > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e0f2f1;
        padding-bottom: 10px;
    }

    .reviews-stats > div:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .reviews-stats > div > div:first-child {
        font-size: 20px;
        min-width: 50px;
        text-align: left;
    }

    .reviews-stats > div > div:last-child {
        font-size: 16px;
        color: #333;
    }

    /* Сетка отзывов */
    .reviews-grid {
        gap: 15px;
    }

    /* Карточка отзыва */
    .review-card {
        padding: 20px;
    }

    .review-card > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rating-display {
        align-self: flex-start;
    }

    /* Форма добавления отзыва */
    .add-review-form {
        padding: 20px;
    }

    .add-review-form form {
        grid-template-columns: 1fr !important; /* отключаем много колонок */
        gap: 15px;
    }

    .add-review-form .form-group[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .add-review-form .rating-input {
        flex-wrap: wrap;
    }

    .add-review-form .stars {
        width: 100%;
        justify-content: center;
    }

    .add-review-form .stars i {
        font-size: 28px;
    }

    .add-review-form button[type="submit"] {
        width: 100%;
        justify-content: center;
    }

    /* Ответ администрации */
    .admin-response {
        margin-top: 15px;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    /* Дополнительные улучшения для очень маленьких экранов */
    .review-card {
        padding: 15px;
    }

    .review-card > div:first-child > div:first-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .review-card > div:first-child > div:first-child > div:first-child {
        font-size: 16px;
    }

    .review-card > div:first-child > div:first-child > div:last-child {
        font-size: 12px;
    }

    .rating-display i {
        font-size: 14px;
    }

    .review-card > div:nth-child(2) {
        font-size: 14px;
        padding: 8px;
    }

    .admin-response > div:last-child {
        font-size: 13px;
        padding: 8px;
    }

    /* Поля формы */
    .add-review-form input,
    .add-review-form textarea {
        font-size: 16px; /* предотвращает зум на iPhone */
        padding: 10px;
    }

    .add-review-form .stars i {
        font-size: 24px;
    }
}
@media (max-width: 768px) {
    /* Таблицы с аккредитацией и квалификационными категориями */
    .employee-certificates-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
    }

    .employee-certificates-table th,
    .employee-certificates-table td {
        white-space: normal;
        word-break: break-word;
        min-width: 140px; /* Минимальная ширина ячейки, чтобы текст был читаем */
        padding: 10px;
        text-align: left;
    }

    /* Если в таблице много колонок, можно задать фиксированную ширину для каждой */
    .employee-certificates-table th:first-child,
    .employee-certificates-table td:first-child {
        min-width: 120px;
    }
}
/* Мобильная версия для карточек быстрой навигации (карта сайта) */
@media (max-width: 768px) {
    .quicknav-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 15px;
    }

    .quicknav-card {
        padding: 20px;
    }

    .quicknav-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .quicknav-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .quicknav-card p {
        font-size: 0.85rem;
    }

    /* Опционально: уменьшаем отступы у заголовков групп */
    .section-group {
        margin-bottom: 25px !important;
    }
}

@media (max-width: 480px) {
    .quicknav-card {
        padding: 15px;
    }

    .quicknav-card i {
        font-size: 1.8rem;
    }

    .quicknav-card h3 {
        font-size: 1rem;
    }

    .quicknav-card p {
        font-size: 0.8rem;
    }
}