.pacientam-main {
    background: linear-gradient(135deg, #f8fdff 0%, #e0f2f1 100%);
    min-height: calc(100vh - 400px);
    padding: 40px 0 80px;
}

.container.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;
    align-self: flex-start;
}
.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: 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;
}

.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;
}

.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;
}

.quick-nav {
    margin-bottom: 40px;
}

.quick-nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: linear-gradient(135deg, #ffffff, #e0f2f1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    justify-content: center;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 150px;
    flex: 1;
}

.quick-nav-item:hover {
    transform: translateY(-2px);
    border-color: #b2dfdb;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
}


.quick-nav-item i {
    font-size: 1.8rem;
    color: #90a4ae;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.quick-nav-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #666666;
}

.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 {
    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;
}

.info-card:hover {
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.1);
}

.info-card h3 {
    color: #00897b;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;

}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.info-subsection {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0f2f1;
    width: 100%;
}

.info-subsection p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666666;
    width: 100%;
}

.info-subsection p strong {
    color: #333333;
}

.info-subsection h4 {
    color: #00695c;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0f2f1;
}

.info-subsection h4 i {
    color: #00897b;
    margin-right: 10px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    align-items: flex-start;
    width: 100%;
}

.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;
    max-width: 100%;
}

.info-row a {
    color: #00897b;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    word-wrap: break-word;
}

.info-row a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.info-row a i {
    margin-right: 8px;
}

.info-list {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
    width: 100%;
}

.info-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: #666666;
    line-height: 1.5;
    width: 100%;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00897b;
    font-weight: bold;
}

.info-list.numbered {
    list-style-type: decimal;
    padding-left: 40px;
}

.info-list.numbered li {
    position: static;
    padding-left: 0;
    margin-bottom: 10px;
}

.info-list.numbered li:before {
    content: none;
}

.info-notice {
    background: #f0f9f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    width: 100%;
    box-sizing: border-box;
}

.info-notice.warning {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.info-notice h4 {
    color: #00695c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-notice.warning h4 {
    color: #ff9800;
}

.info-notice p {
    color: #666666;
    margin: 8px 0;
    line-height: 1.6;
    width: 100%;
}

.info-notice.warning p {
    color: #795548;
}

.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;
    width: 100%;
}

.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;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fdff;
    border-radius: 8px;
    border-left: 3px solid #00897b;
    width: 100%;
}

.contact-method i {
    color: #00897b;
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-method div {
    flex: 1;
}

.contact-method strong {
    display: block;
    color: #333333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-method p {
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.news-list {
    margin: 25px 0;
    width: 100%;
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0f2f1;
    width: 100%;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: white;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
    height: 100px;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 1rem;
    margin: 5px 0;
}

.news-date .year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-content h4 {
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.news-content p {
    color: #666666;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.news-link {
    color: #00897b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.news-link:hover {
    color: #4fc3f7;
    text-decoration: underline;
}



.news-link:hover:after {
    transform: translateX(3px);
}

.sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
    width: 100%;
}

.sitemap-section h4 {
    color: #00897b;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 10px;
}

.sitemap-list a {
    color: #666666;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: all 0.3s;
    border-radius: 4px;
    padding-left: 10px;
}

.sitemap-list a:hover {
    color: #00897b;
    background: #f0f9f8;
    padding-left: 15px;
}

.sitemap-list a.active {
    color: #00897b;
    font-weight: 600;
    background: #e0f2f1;
    border-left: 3px solid #00897b;
}

.contact-schedule {
    margin: 20px 0;
    width: 100%;
}

.schedule-card {
    background: #f8fdff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #b2dfdb;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.05);
    width: 100%;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0f2f1;
}

.schedule-header i {
    color: #00897b;
    font-size: 1.5rem;
}

.schedule-header h5 {
    color: #333333;
    margin: 0;
    font-size: 1.2rem;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.schedule-day {
    color: #333333;
    font-weight: 500;
}

.schedule-time {
    color: #666666;
}

.schedule-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #666666;
}

.schedule-contact i {
    color: #00897b;
}

.department-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.department-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.department-card:hover {
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
    transform: translateY(-2px);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.department-header i {
    color: #00897b;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.department-header h5 {
    color: #333333;
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.department-person {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0f2f1;
}

.department-person strong {
    color: #00695c;
    font-weight: 600;
}

.department-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
}

.department-contact i {
    color: #00897b;
    font-size: 1rem;
}

.ambulatory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.ambulatory-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.ambulatory-card:hover {
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
    transform: translateY(-2px);
}

.ambulatory-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0f2f1;
}

.ambulatory-header h5 {
    color: #333333;
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.ambulatory-address {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0f2f1;
}

.ambulatory-address strong {
    color: #333333;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ambulatory-address p {
    color: #666666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.ambulatory-person {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0f2f1;
}

.ambulatory-person strong {
    color: #00695c;
    font-weight: 600;
    font-size: 1rem;
}

.ambulatory-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
}

.ambulatory-contact span {
    color: #666666;
}

.territorial-program-intro {
    background: #e0f2f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.territorial-program-intro p {
    color: #00695c;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.territorial-program-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.program-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b2dfdb;
    transition: all 0.3s ease;
    width: 100%;
}

.program-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
}

.program-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333333;
    background: #f8fdff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.program-link:hover {
    background: #e0f2f1;
    color: #00897b;
}

.program-link i {
    color: #00897b;
    font-size: 1.2rem;
    min-width: 25px;
    flex-shrink: 0;
}

.program-link span {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    word-wrap: break-word;
    flex: 1;
}

.dispansery-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.dispansery-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b2dfdb;
    transition: all 0.3s ease;
    width: 100%;
}

.dispansery-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
}

.dispansery-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333333;
    background: #f8fdff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.dispansery-link:hover {
    background: #e0f2f1;
    color: #00897b;
}

.dispansery-link i {
    color: #4fc3f7;
    font-size: 1.2rem;
    min-width: 25px;
    flex-shrink: 0;
}

.dispansery-link span {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    word-wrap: break-word;
    flex: 1;
}

.paid-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.paid-services-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b2dfdb;
    transition: all 0.3s ease;
    width: 100%;
}

.paid-services-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
}

.paid-services-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333333;
    background: #f8fdff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.paid-services-link:hover {
    background: #e0f2f1;
    color: #00897b;
}

.paid-services-link i {
    color: #ff9800;
    font-size: 1.2rem;
    min-width: 25px;
    flex-shrink: 0;
}

.paid-services-link span {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    word-wrap: break-word;
    flex: 1;
}

.quality-evaluation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.quality-evaluation-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #b2dfdb;
    transition: all 0.3s ease;
    width: 100%;
}

.quality-evaluation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
}

.quality-evaluation-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333333;
    background: #f8fdff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.quality-evaluation-link:hover {
    background: #e0f2f1;
    color: #00897b;
}

.quality-evaluation-link i {
    color: #673ab7;
    font-size: 1.2rem;
    min-width: 25px;
    flex-shrink: 0;
}

.quality-evaluation-link span {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    word-wrap: break-word;
    flex: 1;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    color: #333333;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #b2dfdb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    color: #333333;
    background: #ffffff;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.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 {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8fdff;
    border-radius: 6px;
    border: 1px solid #b2dfdb;
    width: 100%;
    box-sizing: border-box;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #00897b;
}

.form-checkbox label {
    color: #666666;
    font-size: 0.95rem;
    font-weight: normal;
    line-height: 1.4;
}

.captcha {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.captcha label {
    color: #333333;
    margin-bottom: 10px;
    display: block;
}

.captcha label strong {
    color: #00897b;
    font-weight: 600;
}

.captcha input {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.submit-btn {
    background: linear-gradient(135deg, #00897b, #4fc3f7);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00695c, #03a9f4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 137, 123, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 1.2rem;
}

.search-results {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.1);
    display: none;
    border: 1px solid #e0f2f1;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-results h3 {
    color: #00897b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2f1;
    font-size: 1.3rem;
}

.search-result-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fdff;
    border-radius: 8px;
    border-left: 3px solid #00897b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #e0f2f1;
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 137, 123, 0.1);
}

.search-result-item h4 {
    color: #00695c;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.search-result-item p {
    color: #666666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.search-result-item .highlight {
    background: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #333333;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #666666;
}

.no-results i {
    font-size: 3rem;
    color: #b2dfdb;
    margin-bottom: 15px;
}

.no-results h3 {
    color: #666666;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: none;
}

.no-results p {
    color: #999999;
    font-size: 0.95rem;
}

.search-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #00897b;
}

.search-loading.active {
    display: block;
}

.search-loading i {
    animation: spin 1s linear infinite;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    margin: 0;
    font-size: 0.95rem;
    color: #666666;
}

.search-count {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0f2f1;
}

.search-count strong {
    color: #00897b;
    font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-menu {
        width: 100%;
    }
    
    .sidebar-link {
        padding: 14px 20px;
    }
    
    .sidebar-sublink {
        padding: 12px 20px 12px 50px;
    }
    
    .quick-nav-container {
        gap: 10px;
        padding: 20px;
    }
    
    .quick-nav-item {
        min-width: 130px;
        padding: 12px;
    }
    
    .info-row strong {
        min-width: 200px;
    }
    
    .sitemap-container {
        grid-template-columns: 1fr;
    }
    
    .ambulatory-list {
        grid-template-columns: 1fr;
    }
    
    .program-link,
    .dispansery-link,
    .paid-services-link,
    .quality-evaluation-link {
        padding: 15px;
        gap: 12px;
    }
    
    .program-link i,
    .dispansery-link i,
    .paid-services-link i,
    .quality-evaluation-link i {
        font-size: 1.1rem;
    }
    
    .program-link span,
    .dispansery-link span,
    .paid-services-link span,
    .quality-evaluation-link span {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .quick-nav-container {
        gap: 8px;
    }
    
    .quick-nav-item {
        min-width: 120px;
        padding: 10px 8px;
    }
    
    .quick-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .quick-nav-item span {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .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;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-date {
        min-width: 100px;
        height: auto;
        padding: 15px;
        align-self: flex-start;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ambulatory-list {
        gap: 15px;
    }
    
    .department-header,
    .ambulatory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .program-link,
    .dispansery-link,
    .paid-services-link,
    .quality-evaluation-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px;
    }
    
    .program-link i,
    .dispansery-link i,
    .paid-services-link i,
    .quality-evaluation-link i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .program-link span,
    .dispansery-link span,
    .paid-services-link span,
    .quality-evaluation-link span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .quick-nav-container {
        flex-direction: column;
    }
    
    .quick-nav-item {
        min-width: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
    }
    
    .quick-nav-item i {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .main-container {
        padding: 0 15px;
    }
    
    .pacientam-main {
        padding: 20px 0 60px;
    }
    
    .info-table {
        min-width: 400px;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .form-checkbox {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-checkbox input[type="checkbox"] {
        margin-top: 0;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.official-info-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.official-info-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.official-links-block h5 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.official-links-block h5:first-child {
    margin-top: 0;
}

.official-links-block p {
    margin: 8px 0;
    line-height: 1.5;
    color: #555;
}

.official-links-block strong {
    color: #2c3e50;
    font-weight: 600;
}

.official-links-block a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.official-links-block a:hover {
    text-decoration: underline;
    color: #2980b9;
}

.standards-list-minzdrav {
    margin: 15px 0 15px 20px;
    padding: 0;
}

.standards-list-minzdrav li {
    margin: 10px 0;
    color: #2c3e50;
    line-height: 1.5;
}

.standards-list-minzdrav strong {
    font-weight: 600;
    color: #2c3e50;
}
/* Стили для отображения графиков работы */
.work-schedule-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.schedule-main-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 24px;
}

.schedule-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
    font-size: 16px;
    color: #495057;
}

.department-schedule {
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.department-schedule:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.department-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-title:before {
    content: '🏥';
    font-size: 24px;
}

.department-description {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #95a5a6;
    line-height: 1.7;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.info-table th {
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid #b2dfdb;
}

.info-table th:last-child {
    border-right: none;
}

.info-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    color: #495057;
    font-size: 14.5px;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:nth-child(even) {
    background: #f8fafc;
}

.info-table tr:hover {
    background: #e3f2fd;
}

.info-table td small {
    color: #6c757d;
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.info-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.info-notice h5 {
    color: #856404;
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .department-schedule {
        padding: 15px;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px 12px;
        font-size: 13.5px;
    }
    
    .schedule-main-title {
        font-size: 20px;
    }
    
    .department-title {
        font-size: 18px;
    }
}

/* Анимация появления */
.department-schedule {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Исправление мобильного меню — фикс вылетания и липкости */
@media (max-width: 992px) {
    /* Отключаем липкое позиционирование */
    .sidebar-menu {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 20px;
        /* гарантируем, что всё содержимое остаётся внутри */
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Принудительно применяем box-sizing ко всем элементам меню */
    .sidebar-menu *,
    .sidebar-nav,
    .sidebar-link,
    .sidebar-sublink {
        box-sizing: border-box;
    }

    /* Основной контейнер тоже защищаем от выхода контента */
    .main-container {
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Если меню имеет фиксированную ширину в пикселях, сбрасываем её */
    .sidebar-nav {
        width: 100%;
    }

    /* Для ссылок убираем лишние отступы, которые могут вытолкнуть меню */
    .sidebar-link,
    .sidebar-sublink {
        max-width: 100%;
        word-wrap: break-word;
    }
}
@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 */
    }
}
/* Адаптация изображений в контенте для пациентов */
.pacientam-main .info-card img,
.pacientam-main .info-content img,
.pacientam-main .main-content img {
    max-width: 100%;
    height: auto;
    display: block; /* убирает лишние отступы снизу */
}

/* Дополнительная защита для контейнеров, где могут быть встроенные изображения */
.pacientam-main .info-subsection img,
.pacientam-main .department-card img,
.pacientam-main .ambulatory-card img,
.pacientam-main .dispansery-item img {
    max-width: 100%;
    height: auto;
}

/* === НОВЫЕ СТИЛИ ДЛЯ КАРТОЧЕК НОВОСТЕЙ (вертикальное расположение) === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 137, 123, 0.1);
    border: 1px solid #b2dfdb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 137, 123, 0.15);
}

.news-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f9f8;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h4 {
    color: #00695c;
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-content p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #e0f2f1;
    padding-top: 15px;
}

.news-link {
    color: #00897b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;   
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.news-link:hover {
    color: #4fc3f7;
    text-decoration: underline;
}


.news-link:hover:after {
    transform: translateX(5px);
}

.news-date {
    color: #6c757d;
    font-size: 0.95rem;
    background: #f0f9f8;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-date:before {
    content: "📅";
    font-size: 0.9rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        padding: 20px;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .news-content h4 {
        font-size: 1.2rem;
    }

    .news-image {
        height: 160px;
    }
}

/* === ОБНОВЛЁННЫЙ БЛОК НОВОСТЕЙ (карточки в столбик) === */
.info-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0f2f1;
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,137,123,0.15);
}

.news-image {
    flex: 0 0 130px;
    height: 120px; 
    border-radius: 23px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid #b2dfdb;
    transition: border-color 0.3s;
}

.news-card:hover .news-image {
    border-color: #00897b;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.news-title {
     font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #00695c;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.news-description {
    color: #555;
     font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid #e0f2f1;
    padding-top: 8px;  
}

.news-detail-link {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
     padding: 4px 14px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
     font-size: 0.8rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.news-detail-link:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,100,80,0.3);
    text-decoration: none;
    color: white;
}

.news-detail-link:active {
    transform: translateY(0);
}

.news-date {
    color: #777;
     font-size: 0.75rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline-block;
}
.news-date:before {
    content: none;
}

/* Мобильная адаптация для новостных карточек */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        padding: 15px;
    }
    .news-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .news-title {
        font-size: 1.2rem;
    }
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 160px;
    }
}

/* Новая кнопка без иконок */
.news-btn {
    background: linear-gradient(135deg, #00897b, #00695c);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.news-btn:hover {
    background: linear-gradient(135deg, #00695c, #004d40);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,100,80,0.3);
    text-decoration: none;
    color: white;
}

.news-btn:active {
    transform: translateY(0);
}

/* Гарантированно убираем любые иконки у новой кнопки */
.news-btn::before,
.news-btn::after {
    display: none !important;
    content: none !important;
}
.news-detail-link:after,
.news-link:after {
    content: none !important;
}
.news-detail-link::before,
.news-link::before {
    content: none !important;
}