* {
    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: linear-gradient(135deg, #f8fdff 0%, #e0f2f1 100%);
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

.main-header,
footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}


.content-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px; 
}

.news-content .news-image {
    margin-bottom: 15px;
}
.news-content .news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.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;
}

.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 .container {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 15px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.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;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 15px; 
    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;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: -30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px; 
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    padding-right: 0px;
}

.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.85rem; 
    letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-teal);
    transform: translateY(-1px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    background-color: var(--white);
    min-width: 220px; 
    max-width: 300px; 
    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;
}

.nav-item:nth-child(2) .dropdown-menu {
    min-width: 260px; 
    max-width: 330px; 
}

.nav-item:nth-last-child(-n+3) .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(-8px);
}

.nav-item:nth-last-child(-n+3):hover .dropdown-menu {
    transform: translateY(0);
}

.nav-item:nth-last-child(-n+3) .dropdown-menu::before {
    left: auto;
    right: 20px;
}

.nav-item:first-child .dropdown-menu,
.nav-item:nth-child(2) .dropdown-menu {
    left: 0;
    right: auto;
    transform: translateY(-8px);
}

.nav-item:first-child:hover .dropdown-menu,
.nav-item:nth-child(2):hover .dropdown-menu {
    transform: translateY(0);
}

.nav-item:first-child .dropdown-menu::before,
.nav-item:nth-child(2) .dropdown-menu::before {
    left: 70px;
    right: auto;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item:nth-last-child(-n+3):hover .dropdown-menu {
    transform: translateY(0);
}

.nav-item:first-child:hover .dropdown-menu,
.nav-item:nth-child(2):hover .dropdown-menu {
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--white);
    border-left: 1px solid var(--light-teal);
    border-top: 1px solid var(--light-teal);
    z-index: 1;
}

.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.85rem; 
    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: 0;
    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: 50px;
    height: 70px;
    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-logo-text span:last-child {
    font-weight: 600;
    font-size: 0.85rem;
}

.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);
    display: none;
}

.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-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.mobile-nav-link.active {
    color: var(--primary-teal);
    border-bottom: 2px solid var(--primary-teal);
}

.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 {
    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;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-phone-item {
    margin-bottom: 10px;
}

.mobile-phone-item:last-child {
    margin-bottom: 0;
}

.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;
}

header:not(.main-header) {
    display: none;
}

.hero {
    background: linear-gradient(135deg, var(--light-teal) 0%, #e0f7fa 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 85%;
    margin: auto;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 ;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.emergency-info {
    background-color: var(--white);
    padding: 50px 0;
    width: 100%;
}

.emergency-info .content-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff, var(--light-teal));
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    border: 1px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.emergency-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.emergency-card h3 {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.emergency-card p {
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
}

.emergency-phone {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
}

.location-link {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

/* Новые стили для информационных блоков (вместо горячих линий) - ВЕРТИКАЛЬНЫЕ */
/* Секция новостей – свежий, чистый дизайн */
.info-cards-section {
    padding: 60px 0;
    width: 75%;
    margin: 40px auto;
    background: linear-gradient(145deg, #ffffff 0%, #fafeff 100%);
    border-radius: 32px;
    box-shadow: 0 15px 35px -10px rgba(0, 137, 123, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 150, 136, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-cards-section:hover {
    box-shadow: 0 25px 45px -12px rgba(0, 137, 123, 0.25);
    transform: translateY(-2px);
}

/* Заголовок с иконкой и линией */
.info-cards-section .section-title {

    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    letter-spacing: -0.5px;
}

.info-cards-section .section-title i {
    color: var(--primary-teal);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Контейнер новостей – больше воздуха */
.info-cards-container {
    padding: 0 40px;
}

/* Карточки новостей – если нужно скорректировать отступы внутри секции */
.news-card {
    /* ваши текущие стили остаются, 
       но можно увеличить отступы между ними */
    margin-bottom: 20px; /* добавьте, если ещё нет */
}
.news-card:last-child {
    margin-bottom: 0;
}



.info-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* отступ между карточками */
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);



    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--light-teal);
    width: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 137, 123, 0.15);
    border-color: var(--primary-teal);
}

.info-card i {
    font-size: 1.5rem; 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    align-self: center; 
}

.info-card h4 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
    width: 100%;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    width: 100%;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .info-cards-container {
        max-height: 400px;
    }
    .info-card {
        padding: 20px 15px;
    }
    .info-card i {
        font-size: 2.4rem;
    }
    .info-card h4 {
        font-size: 1.2rem;
    }
    .info-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-cards-section {
        width: 95%;
    }
    .info-cards-container {
        max-height: 350px;
    }
    .info-card {
        padding: 15px 12px;
    }
    .info-card i {
        font-size: 2rem;
    }
    .info-card h4 {
        font-size: 1.1rem;
    }
    .info-card p {
        font-size: 0.85rem;
    }
}

.hotlines-section {
    padding: 60px 0;
    width: 85%; 
    margin: auto;
}

.hotlines-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.hotline-block {
    background: white;
    border-radius: 12px;
    padding: 35px; 
}

.hotline-block h3 {
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-teal);
}

.salary-hotline-title {
    margin-top: 40px;
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-teal);
}

.hotline-block h3 i,
.salary-hotline-title i {
    color: var(--primary-teal);
    font-size: 1.2rem;
}

.hotline-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotline-item {
    padding: 18px; 
    background: linear-gradient(135deg, #f8fdff 0%, #e8f7f6 100%);
    border-radius: 8px;
    border: 1px solid rgba(0, 137, 123, 0.1);
    transition: all 0.3s;
}

.hotline-item:hover {
    background: linear-gradient(135deg, #e8f7f6 0%, #d8f0ee 100%);
    border-color: rgba(0, 137, 123, 0.2);
}

.hotline-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.hotline-phone {
    font-size: 1.1rem;
    color: var(--primary-teal);
    font-weight: 600;
    display: inline-block;
    padding: 8px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--light-teal);
    margin-right: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.hotline-phone:hover {
    background: var(--light-teal);
    color: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 137, 123, 0.2);
}

.hotline-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

section {
    padding: 60px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    color: var(--dark-gray);
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-blue));
    border-radius: 2px;
}


.useful-links-carousel {
    position: relative;
    background: #ffffff;
    width: 100%;
    margin: auto;
    padding: 20px 0; 
    bottom: 30px;
}

.carousel-container {
    position: relative;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 15px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 137, 123, 0.15);
    background-color: var(--white);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
}

.slide-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
}

@media (min-width: 768px) {
    .slide-content {
        flex-direction: row;
        align-items: center;
        padding: 50px;
    }
}

.slide-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .slide-image {
        margin-bottom: 0;
        margin-right: 40px;
        width: 40%;
    }
}

.slide-image i {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slide-text {
    flex: 1;
}

.slide-text h3 {
    color: var(--dark-gray);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.slide-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-blue));
    border-radius: 2px;
}

.slide-text p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.slide-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 137, 123, 0.3);
}

.full-image-slide {
    padding: 0;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-teal);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
}

.indicator.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
}

.carousel-slide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.contacts-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--dark-gray);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-teal);
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
}

.contact-info i {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: 20px;
    margin-top: 3px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-teal), #e0f7fa);
    border-radius: 50%;
    color: var(--primary-teal);
    text-decoration: none;
    font-size: 1.1rem;
}

.map {
    flex: 1;
}

.map-placeholder { 
    text-align: center;
    padding: 0px;
}

.map-placeholder i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.map-placeholder p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

footer {
    background: linear-gradient(135deg, #263238, #37474f);
    color: var(--white);
    padding: 50px 0 20px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-blue));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 15px; 
}

.footer-logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon_1 {
    margin-bottom: 0;
}

.logo-image_1 {
    width: 70px;
    height: 80px;
    object-fit: contain;
    display: block;
    background-size: 100% 100%;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1.3rem;
}

.footer-logo h3 span {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-logo p {
    color: #b0bec5;
    line-height: 1.6;
    margin-top: 5px;
}

.footer-links {
    flex: 1;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-teal);
    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: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-teal);
    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, var(--primary-teal), var(--secondary-blue));
    -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: 1000px; 
    margin: 0 auto;
    padding: 20px 15px 0; 
}

.footer-bottom p {
    margin-bottom: 5px;
}

@media (max-width: 1200px) {
    .header-top .container,
    .header-main .container,
    .footer-content,
    .footer-bottom {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 15px; 
    }
    
    .nav-link {
        font-size: 0.85rem; 
    }
    
    .search-input {
        min-width: 180px;
    }
    
    .content-container {
        max-width: 900px; 
        padding: 0 15px;
    }
}

@media (max-width: 1100px) {
    .header-top .container,
    .header-main .container,
    .footer-content,
    .footer-bottom {
        padding: 0 15px;
    }
    
    .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;
    }
    
    .contacts-content {
        gap: 30px;
    }
    
    .nav-list {
        gap: 12px; 
    }
    
    .nav-link {
        font-size: 0.82rem; 
    }
    
    .search-input {
        min-width: 160px;
    }
    
    .content-container {
        max-width: 800px; 
        padding: 0 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%;
        left: 0;
    }
    
    .nav-list {
        justify-content: center;
        gap: 10px; 
        flex-wrap: wrap;
        margin-left: 0;
        padding-right: 0;
    }
    
    .dropdown-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-8px);
    }
    
    .dropdown-menu::before {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) rotate(45deg);
    }
    
    .nav-item:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .emergency-info .content-container {
        flex-wrap: wrap;
    }
    
    .emergency-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .hotlines-section {
        width: 90%;
    }
    
    .contacts-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 calc(50% - 15px);
    }
    
    .content-container {
        max-width: 700px; 
        padding: 0 15px;
    }
}

@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 10px;
    }
    
    .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 10px;
        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, var(--primary-teal), var(--dark-teal)) !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, var(--dark-teal), var(--primary-teal));
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.98);
    }
    
    .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;
    }
    
    .hero {
        padding: 0;
        margin-top: 0;
        height: 200px;
        width: 95%;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .section-title::after {
        width: 60px;
        bottom: -10px;
    }
    
    .emergency-info {
        padding: 30px 0;
    }
    
    .emergency-info .content-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .emergency-card {
        flex: 1;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .emergency-card i {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .emergency-card h3 {
        font-size: 1.1rem;
    }
    
    .emergency-card p {
        font-size: 0.95rem;
    }
    
    .hotlines-section {
        width: 95%;
        padding: 40px 0;
    }
    
    .hotline-block {
        padding: 25px;
    }
    
    .hotline-block h3,
    .salary-hotline-title {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .salary-hotline-title {
        margin-top: 30px;
    }
    
    .hotline-item {
        padding: 15px;
    }
    
    .hotline-name {
        font-size: 0.95rem;
    }
    
    .hotline-phone {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    .hotline-phones {
        flex-direction: column;
        gap: 8px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* ИЗМЕНЕНИЕ: уменьшена высота секции для мобильных устройств с 60px до 40px */
    .useful-links-carousel {
        padding: 40px 0; /* Изменено с 60px 0 */
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    .carousel-wrapper {
        border-radius: 10px;
    }
    
    .full-image-slide {
        height: 250px;
    }
    
    .carousel-slide .full-image {
        max-width: 95% !important;
        max-height: 95% !important;
        padding: 10px !important;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 40%;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .carousel-indicators {
        margin-top: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .contacts-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .map-placeholder {
        height: 300px;
        overflow: hidden;
    }
    
    .map-placeholder iframe {
        height: 300px !important;
        width: 100% !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        flex: 0 0 100%;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .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 10px 0;
        font-size: 0.85rem;
    }
    
    .content-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    
    .header-top .container {
        padding: 0 5px;
    }
    
    .header-main .container {
        padding: 8px 5px;
        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;
    }
    
    .hero {
        padding: 0;
        height: 180px;
        width: 98%;
    }
    
    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .emergency-card {
        padding: 15px;
    }
    
    .emergency-card i {
        font-size: 1.8rem;
    }
    
    .emergency-card h3 {
        font-size: 1rem;
    }
    
    .emergency-card p {
        font-size: 0.9rem;
    }
    
    .hotlines-section {
        width: 98%;
        padding: 30px 0;
    }
    
    .hotline-block {
        padding: 20px;
    }
    
    .hotline-block h3,
    .salary-hotline-title {
        font-size: 1rem;
    }
    
    .salary-hotline-title {
        margin-top: 25px;
    }
    
    .hotline-name {
        font-size: 0.9rem;
    }
    
    .hotline-phone {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    
    .full-image-slide {
        height: 200px;
    }
    
    .carousel-slide .full-image {
        max-width: 90% !important;
        max-height: 90% !important;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    .mobile-menu {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-dropdown-menu {
        max-height: 300px;
    }
    
    .mobile-dropdown-item {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    
    .mobile-search-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .content-container {
        max-width: 100%;
        padding: 0 5px;
    }
}

@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;
    }
}

@media (max-height: 500px) {
    .mobile-menu-header {
        padding: 10px 15px;
    }
    
    .mobile-nav-item {
        margin-bottom: 3px;
    }
    
    .mobile-nav-link,
    .mobile-dropdown-toggle {
        padding: 8px 0;
    }
    
    .mobile-dropdown-item {
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal)) !important;
        color: white !important;
        border: 2px solid white !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .header-main {
        min-height: 60px !important;
    }
}

.mobile-nav-item.quick-nav {
    background-color: #00695c;
    border-radius: 6px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.mobile-nav-item.quick-nav .mobile-nav-link {
    color: white !important;
    font-weight: 600;
    border-bottom: none;
    padding: 15px 0;
    text-align: center;
}

.mobile-nav-item.quick-nav .mobile-nav-link:hover {
    background-color: #005a4f;
    border-radius: 6px;
}


.new-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}


.new-carousel-wrapper {
    overflow: hidden;
    border-radius: 15px; 
    background-color: transparent;
    box-shadow: none;
}

.new-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.new-carousel-slide {
    min-width: 100%;
    padding: 30px;
}


.carousel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; 
    height: 70%;
}


.carousel-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 10px; 
    padding: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.carousel-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
    background: transparent;
    border: none;
}

.carousel-grid-item img {
    width: 100%;
    height: 100px; 
    object-fit: contain;
    margin-bottom: 0;
    border-radius: 8px; 
    background: transparent;
    padding: 0;
}

.carousel-item-title {
    display: none;
}

.new-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: none;
    width: 45px; 
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; 
    color: var(--primary-teal);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.new-carousel-btn:hover {
    background: var(--primary-teal);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.new-prev-btn {
    left: -15px;
}

.new-next-btn {
    right: -15px;
}

.new-carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 10px; 
}

.new-indicator {
    width: 12px; 
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: var(--medium-gray);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.new-indicator.active {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
    transform: scale(1.1); 
}


@media (max-width: 1400px) {
    .carousel-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px; 
    }
    
    .new-carousel-container {
       width: 450px; 
    }
    
    .carousel-grid-item img {
        height: 160px;
    }
    
    .new-carousel-slide {
        padding: 25px; 
    }
    
    .new-prev-btn {
        left: -10px; 
    }
    
    .new-next-btn {
        right: -10px;
    }
}

@media (max-width: 1200px) {
    .carousel-grid {
        gap: 35px; 
    }
    
    .new-carousel-slide {
        padding: 25px; 
    }
    
    .carousel-grid-item img {
        height: 150px; 
    }
}

@media (max-width: 992px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px; 
    }
    
    .new-carousel-container {
        max-width: 700px; 
    }
    
    .carousel-grid-item img {
        height: 150px; 
    }
    
    .new-carousel-slide {
        padding: 25px; 
    }
    
    .new-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem; 
    }
    
    .new-prev-btn {
        left: -10px;
    }
    
    .new-next-btn {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px; 
    }
    
    .new-carousel-slide {
        padding: 20px; 
    }
    
    .carousel-grid-item {
        padding: 0;
    }
    
    .carousel-grid-item img {
        height: 140px; 
        width: 100%;
        max-width: 180px; 
        margin: 0 auto;
    }
    
    .new-carousel-btn {
        width: 35px; 
        height: 35px;
        font-size: 1rem; 
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .new-prev-btn {
        left: 5px;
    }
    
    .new-next-btn {
        right: 5px;
    }
    
    .new-carousel-container {
        padding: 0 10px; 
    }
    
    .new-carousel-wrapper {
        border-radius: 10px;
    }
    
    .new-carousel-indicators {
        margin-top: 20px; 
    }
}

@media (max-width: 576px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px; 
    }
    
    .new-carousel-slide {
        padding: 15px; 
    }
    
    .carousel-grid-item img {
        height: 120px; 
        max-width: 160px; 
    }
    
    .new-carousel-btn {
        width: 30px; 
        height: 30px;
        font-size: 0.9rem; 
    }
    
    .new-prev-btn {
        left: 5px;
    }
    
    .new-next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .new-carousel-slide {
        padding: 12px; 
    }
    
    .carousel-grid-item img {
        height: 100px; 
        max-width: 140px; 
    }
    
    .new-carousel-btn {
        width: 25px; 
        height: 25px;
        font-size: 0.8rem; 
    }
    
    .new-prev-btn {
        left: 2px;
    }
    
    .new-next-btn {
        right: 2px;
    }
}

@media (max-width: 360px) {
    .carousel-grid {
        grid-template-columns: 1fr;
        gap: 15px; 
    }
    
    .carousel-grid-item img {
        height: 130px; 
        max-width: 180px; 
    }
    
    .new-carousel-slide {
        padding: 10px; 
    }
}
/* Сетка новостей */
.info-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 137, 123, 0.1);
     margin-bottom: 30px; 
}



.news-card:last-of-type {
    border-bottom: none;
}

/* Блок с картинкой (увеличен) */
.news-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-teal), #e0f2f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%; /* растягиваем на всю высоту родителя */
}

.news-description {
    flex-grow: 1; /* занимает оставшееся пространство между заголовком и мета-блоком */
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);
}

.news-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Мета-информация (кнопка и дата) */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* прижимаем к низу */
    font-size: 0.95rem;
}
.news-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    color: white;
    text-decoration: none;
    border-radius: 30px; /* более округлая кнопка */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 137, 123, 0.2);
}
.news-detail-link:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 137, 123, 0.3);
}

.news-detail-link i {
    font-size: 0.85rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--accent-teal);
    white-space: nowrap;
    background: rgba(0, 137, 123, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-date i {
    font-size: 0.9rem;
    color: var(--primary-teal);
}


/* Блок "Все новости" */
.all-news {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.all-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 24px;
    border: 2px solid var(--primary-teal);
    border-radius: 40px;
    transition: all 0.3s;
}

.news-detail-link:hover {
    background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 137, 123, 0.3);
}

.news-detail-link i {
    font-size: 0.85rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--accent-teal);
    white-space: nowrap;
    background: rgba(0, 137, 123, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-date i {
    font-size: 0.9rem;
    color: var(--primary-teal);
}

/* Карточка "Все новости" */
.all-news {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.all-news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 24px;
    border: 2px solid var(--primary-teal);
    border-radius: 40px;
    transition: all 0.3s;
}

.all-news-link:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateX(5px);
}

.all-news-link i {
    transition: transform 0.3s;
}

.all-news-link:hover i {
    transform: translateX(3px);
}

/* === МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ === */

/* Планшеты и небольшие десктопы (до 1200px) */
@media (max-width: 1200px) {
    .header-top .container,
    .header-main .container,
    .footer-content,
    .footer-bottom {
        padding: 0 15px;
    }

    .nav-list {
        gap: 15px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .search-input {
        min-width: 180px;
    }

    .content-container {
        max-width: 900px;
        padding: 0 15px;
    }
}

/* Средние экраны (до 1100px) */
@media (max-width: 1100px) {
    .header-top-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-phones {
        flex-direction: row;
        gap: 15px;
        order: 2;
        justify-content: center;
    }

    .header-social {
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        padding-right: 15px;
        margin-right: 0;
    }

    .contacts-content {
        gap: 30px;
    }

    .nav-list {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .search-input {
        min-width: 160px;
    }

    .content-container {
        max-width: 800px;
    }
}

/* Узкие десктопы и большие планшеты (до 950px) */
@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;
        min-width: auto;
    }

    .header-search {
        order: 1;
        margin-right: 15px;
    }

    .main-nav {
        order: 4;
        width: 100%;
        margin-top: 15px;
        left: 0;
    }

    .nav-list {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-left: 0;
    }

    /* Выравнивание дропдаунов */
    .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) translateY(-8px);
    }

    .dropdown-menu::before {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg);
    }

    .nav-item:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .emergency-info .content-container {
        flex-wrap: wrap;
    }

    .emergency-card {
        flex: 0 0 calc(50% - 10px);
    }

    .hotlines-section {
        width: 90%;
    }

    .contacts-content {
        flex-direction: column;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 calc(50% - 15px);
    }

    .content-container {
        max-width: 700px;
    }
}

/* Планшеты и мобильные (до 768px) */
@media (max-width: 768px) {
    /* Фиксированная шапка */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
    }

    /* Верхняя часть шапки */
    .header-top {
        padding: 8px 0;
    }

    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .hospital-name-top {
        padding: 5px 0;
    }

    .hospital-full-name {
        font-size: 0.8rem;
        white-space: normal;
    }

    .hospital-specific-name {
        font-size: 0.9rem;
        white-space: normal;
    }

    .header-phones {
        display: none; /* Скрываем на мобилках, покажем в мобильном меню */
    }

    .header-main {
        padding: 0;
        border-bottom: none;
        background: white;
    }

    .header-main .container {
        padding: 10px;
        min-height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .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, var(--primary-teal), var(--dark-teal)) !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;
        z-index: 1001;
        flex-shrink: 0;
        order: 2;
        transition: all 0.3s;
    }

    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, var(--dark-teal), var(--primary-teal));
        transform: scale(1.05);
    }

    /* Мобильное меню */
    .mobile-menu {
        width: 85%;
        max-width: 300px;
        right: -100%;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
        padding: 15px;
    }

    .mobile-logo-image {
        width: 50px;
        height: 70px;
        object-fit: contain;
    }

    .mobile-logo-text {
        color: white;
    }

    .mobile-menu-close {
        color: white;
        font-size: 1.3rem;
    }

    .mobile-search {
        padding: 15px;
        background: var(--white);
        border-bottom: 1px solid var(--light-teal);
    }

    .mobile-search-form {
        display: flex;
        border: 1px solid var(--medium-gray);
        border-radius: 6px;
        overflow: hidden;
    }

    .mobile-search-input {
        flex: 1;
        padding: 10px 15px;
        border: none;
        outline: none;
        font-size: 0.9rem;
    }

    .mobile-search-btn {
        background: var(--primary-teal);
        color: white;
        border: none;
        padding: 0 15px;
        cursor: pointer;
    }

    .mobile-nav-list {
        list-style: none;
        padding: 15px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .mobile-nav-item {
        margin-bottom: 5px;
    }

    .mobile-nav-link {
        display: block;
        padding: 12px 0;
        color: var(--dark-gray);
        text-decoration: none;
        border-bottom: 1px solid var(--light-gray);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .mobile-nav-link.active {
        color: var(--primary-teal);
        border-bottom: 2px solid var(--primary-teal);
    }

    .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;
    }

    .mobile-dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s;
    }

    .mobile-dropdown-toggle.active::after {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: rgba(224, 242, 241, 0.3);
        border-radius: 4px;
        margin: 5px 0;
    }

    .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;
        transition: all 0.3s;
    }

    .mobile-dropdown-item:hover {
        color: var(--primary-teal);
        background-color: var(--light-teal);
        padding-left: 15px;
    }

    .mobile-dropdown-item i {
        margin-right: 8px;
        width: 16px;
        color: var(--accent-teal);
    }

    .mobile-contacts {
        padding: 15px;
        background: var(--light-teal);
        border-top: 1px solid var(--medium-gray);
    }

    .mobile-phone {
        display: block;
        background: white;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 10px;
        text-decoration: none;
        color: var(--dark-gray);
        border: 1px solid var(--light-teal);
    }

    .mobile-phone-number {
        font-weight: 600;
        color: var(--primary-teal);
    }

    .mobile-phone-label {
        font-size: 0.85rem;
    }

    .mobile-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .mobile-social-link {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
    }

    /* Hero секция */
    .hero {
        height: auto;
        min-height: 200px;
        padding: 30px 0;
        margin-top: 0;
        width: 95%;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Заголовки секций */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 60px;
        bottom: -10px;
    }

    /* Emergency карточки */
    .emergency-info {
        padding: 30px 0;
    }

    .emergency-info .content-container {
        flex-direction: column;
        gap: 15px;
    }

    .emergency-card {
        flex: 1;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .emergency-card i {
        font-size: 2rem;
    }

    .emergency-card h3 {
        font-size: 1.1rem;
    }

    .emergency-card p {
        font-size: 0.95rem;
    }

    /* Новости */
    .info-cards-section {
        width: 95%;
        padding: 30px 0;
        margin: 20px auto;
    }

    .news-card {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        margin-bottom: 0;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-description {
        font-size: 0.95rem;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .news-detail-link {
        padding: 8px 16px;
    }

    .all-news {
        justify-content: center;
    }

    /* Карусель полезных ссылок */
    .useful-links-carousel {
        padding: 30px 0;
    }

    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 5px;
    }

    .carousel-grid-item {
        padding: 10px;
    }

    .carousel-grid-item img {
        max-height: 100px;
    }

    .new-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background-color: rgba(255,255,255,0.95);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .new-prev-btn {
        left: 5px;
    }

    .new-next-btn {
        right: 5px;
    }

    .new-carousel-indicators {
        margin-top: 15px;
    }

    .new-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* Контакты */
    .contacts-content {
        flex-direction: column;
        gap: 25px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 12px;
        word-wrap: break-word;
    }

    .social-links {
        justify-content: center;
    }

    .map-container {
        width: 100% !important;
        height: 300px !important;
    }

    .map-container iframe {
        width: 100% !important;
        height: 300px !important;
    }

    /* Футер */
    footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .footer-logo {
        text-align: center;
        flex-direction: column;
    }

    .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;
        flex-wrap: wrap;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding: 15px 10px 0;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {

    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .emergency-card {
        padding: 15px;
    }

    .emergency-card i {
        font-size: 1.8rem;
    }

    .news-image {
        height: 150px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        align-self: flex-start;
    }

    .carousel-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .carousel-grid-item img {
        max-height: 80px;
    }

    .new-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .footer-logo h3 {
        font-size: 1.1rem;
    }
}

/* Альбомная ориентация на мобильных (маленькая высота) */
@media (max-height: 600px) and (orientation: landscape) {

    .mobile-menu {
        width: 70%;
        max-width: 350px;
    }

    .mobile-nav-list {
        max-height: 50vh;
    }

    .mobile-dropdown-menu {
        max-height: 200px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .carousel-grid {
        gap: 5px;
    }

    .carousel-grid-item img {
        max-height: 60px;
    }

    .new-carousel-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}
/* === МОБИЛЬНАЯ ВЕРСИЯ (до 768px) === */
@media (max-width: 768px) {
    /* Фиксированная шапка */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Запрет прокрутки страницы при открытом меню */
    body.menu-open {
        overflow: hidden;
    }

    /* Верхняя часть шапки */
    .header-top {
        padding: 8px 0;
    }

    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .hospital-full-name,
    .hospital-specific-name {
        white-space: normal;
        font-size: 0.8rem;
    }

    .header-phones,
    .header-search,
    .main-nav {
        display: none; /* Скрываем на мобилках */
    }

    /* Основная часть шапки с логотипом и кнопкой меню */
    .header-main .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        min-height: 60px;
    }

    /* Кнопка гамбургера */
    .mobile-menu-toggle {
        display: flex !important;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal)) !important;
        color: white !important;
        border: none;
        border-radius: 8px;
        font-size: 1.5rem;
        align-items: center;
        justify-content: center;
        box-shadow: 0 3px 10px rgba(0,137,123,0.3);
        cursor: pointer;
        transition: all 0.3s;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
    }

    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100%;
        background: white;
        z-index: 1001;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Затемнение фона */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Шапка мобильного меню */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: linear-gradient(135deg, var(--primary-teal), var(--secondary-blue));
        color: white;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo-image {
        width: 40px;
        height: auto;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }

    /* Поиск в меню */
    .mobile-search {
        padding: 15px;
        border-bottom: 1px solid var(--light-teal);
    }

    .mobile-search-form {
        display: flex;
        border: 1px solid var(--medium-gray);
        border-radius: 6px;
        overflow: hidden;
    }

    .mobile-search-input {
        flex: 1;
        padding: 10px;
        border: none;
        outline: none;
        font-size: 0.9rem;
    }

    .mobile-search-btn {
        background: var(--primary-teal);
        color: white;
        border: none;
        padding: 0 15px;
        cursor: pointer;
    }

    /* Навигация в меню */
    .mobile-nav-list {
        list-style: none;
        padding: 15px;
        margin: 0;
    }

    .mobile-nav-item {
        margin-bottom: 5px;
    }

    .mobile-nav-link {
        display: block;
        padding: 12px 0;
        color: var(--dark-gray);
        text-decoration: none;
        border-bottom: 1px solid var(--light-gray);
        font-weight: 500;
        font-size: 0.95rem;
    }

    .mobile-nav-link.active {
        color: var(--primary-teal);
        border-bottom: 2px solid var(--primary-teal);
    }

    .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;
    }

    .mobile-dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

    .mobile-dropdown-toggle.active::after {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: rgba(224,242,241,0.3);
        border-radius: 4px;
        margin: 5px 0;
    }

    .mobile-dropdown-menu.active {
        max-height: 400px; /* Достаточно для большинства подменю */
        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;
        transition: all 0.3s;
    }

    .mobile-dropdown-item i {
        margin-right: 8px;
        width: 16px;
        color: var(--accent-teal);
    }

    .mobile-dropdown-item:hover {
        color: var(--primary-teal);
        background-color: var(--light-teal);
        padding-left: 15px;
    }

    /* Контакты в меню */
    .mobile-contacts {
        padding: 15px;
        background: var(--light-teal);
        border-top: 1px solid var(--medium-gray);
    }

    .mobile-phone {
        display: block;
        background: white;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 10px;
        text-decoration: none;
        color: var(--dark-gray);
        border: 1px solid var(--light-teal);
    }

    .mobile-phone-number {
        font-weight: 600;
        color: var(--primary-teal);
    }

    .mobile-phone-label {
        font-size: 0.85rem;
    }

    .mobile-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }

    .mobile-social-link {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.3s;
    }

    .mobile-social-link:hover {
        transform: translateY(-2px);
    }

    /* Hero секция */
    .hero {
        height: auto;
        min-height: 200px;
        padding: 30px 15px;
        margin-top: 0;
        width: 100%;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Заголовки секций */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .section-title::after {
        width: 60px;
        bottom: -10px;
    }

    /* Emergency карточки */
    .emergency-info {
        padding: 30px 0;
    }

    .emergency-info .content-container {
        flex-direction: column;
        gap: 15px;
    }

    .emergency-card {
        flex: 1;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .emergency-card i {
        font-size: 2rem;
    }

    /* Новости — убираем ограничение высоты */
    .info-cards-section {
        width: 95%;
        margin: 20px auto;
        padding: 30px 0;
    }

    .info-cards-container {
        max-height: none; /* Убираем фиксированную высоту */
        overflow: visible;
    }

    .news-card {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        margin-bottom: 20px;
    }

    .news-image {
        width: 100%;
        height: 180px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-description {
        font-size: 0.95rem;
    }

    .news-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .news-detail-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .all-news {
        justify-content: center;
    }

    .all-news-link {
        font-size: 1rem;
        padding: 8px 20px;
    }

    /* Карусель полезных ссылок */
    .useful-links-carousel {
        padding: 30px 0;
    }

    .new-carousel-container {
        width: 100%;
        padding: 0 10px;
    }

    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .carousel-grid-item {
        padding: 10px;
    }

    .carousel-grid-item img {
        max-height: 80px;
        width: auto;
    }

    .new-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        background-color: rgba(255,255,255,0.9);
    }

    .new-prev-btn {
        left: 5px;
    }

    .new-next-btn {
        right: 5px;
    }

    .new-carousel-indicators {
        margin-top: 15px;
    }

    .new-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* Контакты */
    .contacts-content {
        flex-direction: column;
        gap: 25px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .map-container {
        width: 100% !important;
        height: 300px !important;
    }

    .map-container iframe {
        width: 100% !important;
        height: 300px !important;
    }

    /* Футер */
    footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
    }

    .footer-links ul,
    .footer-contact p {
        align-items: center;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) === */
@media (max-width: 480px) {

    .mobile-menu-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .news-image {
        height: 150px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        align-self: flex-start;
    }

    .carousel-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .carousel-grid-item img {
        max-height: 60px;
    }

    .new-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* === АЛЬБОМНАЯ ОРИЕНТАЦИЯ (маленькая высота) === */
@media (max-height: 600px) and (orientation: landscape) {

    .mobile-menu {
        width: 70%;
        max-width: 350px;
    }

    .mobile-nav-list {
        max-height: 60vh;
    }

    .mobile-dropdown-menu {
        max-height: 200px;
    }
}
/* ========== ИСПРАВЛЕНИЕ КАРУСЕЛИ НА МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    /* Контейнер карусели */
    .new-carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        right: 0 !important; /* убираем смещение вправо */
        left: 0 !important;
        position: relative !important;
    }

    /* Обёртка */
    .new-carousel-wrapper {
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    /* Трек */
    .new-carousel-track {
        display: flex !important;
        transition: transform 0.3s ease !important;
    }

    /* Слайды – скрыты, кроме активного */
    .new-carousel-slide {
        display: none !important;
        min-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .new-carousel-slide.active {
        display: block !important;
    }

    /* Сетка внутри слайда – 2 колонки */
    .carousel-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 !important;
    }

    /* Элементы сетки (ссылки) */
    .carousel-grid-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        padding: 10px !important;
        text-decoration: none !important;
        color: inherit !important;
        min-height: 100px !important;
        transition: all 0.3s !important;
    }

    .carousel-grid-item:hover {
        transform: translateY(-3px) !important;
        background: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    }

    /* Картинки */
    .carousel-grid-item img {
        max-width: 100% !important;
        max-height: 70px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        margin-bottom: 5px !important;
    }

    /* Заголовки – если есть, скрываем */
    .carousel-item-title {
        display: none !important;
    }

    /* Кнопки навигации */
    .new-carousel-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255,255,255,0.9) !important;
        border: 1px solid #ddd !important;
        border-radius: 50% !important;
        font-size: 1rem !important;
        color: var(--primary-teal) !important;
        cursor: pointer !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

    .new-prev-btn {
        left: 0 !important;
    }

    .new-next-btn {
        right: 0 !important;
    }

    /* Индикаторы */
    .new-carousel-indicators {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .new-carousel-indicator {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: #ccc !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
    }

    .new-carousel-indicator.active {
        background: var(--primary-teal) !important;
        transform: scale(1.2) !important;
    }
}

/* Для очень маленьких экранов (до 480px) – одна колонка */
@media (max-width: 480px) {
    .carousel-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .carousel-grid-item img {
        max-height: 60px !important;
    }
}
/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Центрируем блок с логотипом */
    .footer-logo .logo-and-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Центрируем иконку логотипа */
    .logo-icon_1 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }

    /* Опционально: ограничиваем размер логотипа */
    .logo-icon_1 img {
        max-width: 120px;
        height: auto;
    }

    /* Центрируем текст */
    .logo-text {
        text-align: center;
        width: 100%;
    }

    /* Центрируем контакты в футере (опционально) */
    .footer-contact {
        text-align: center;
        margin-top: 20px;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .logo-icon_1 img {
        max-width: 100px;
    }
}
/* Увеличиваем размер текста во всем футере */
footer {
    font-size: 16px; /* Базовый размер для футера */
}

/* Заголовок футера */
footer h3 {
    font-size: 24px; /* Увеличенный размер для основного заголовка */
    margin-bottom: 5px;
}

/* Подзаголовок в заголовке */
footer h3 span {
    font-size: 20px; /* Чуть меньше основного заголовка */
}

/* Тэглайн (описание под заголовком) */
footer .footer-tagline {
    font-size: 18px; /* Увеличенный размер для описания */
    line-height: 1.5;
}

/* Заголовок блока контактов */
footer h4 {
    font-size: 22px; /* Увеличенный размер для "Контакты" */
    margin-bottom: 15px;
}

/* Текст контактов */
footer .footer-contact p {
    font-size: 18px; /* Увеличенный размер для текста контактов */
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Иконки в контактах */
footer .footer-contact i {
    font-size: 20px; /* Увеличенные иконки */
    margin-right: 10px;
}

/* Для планшетов (немного уменьшаем, но оставляем больше стандартного) */
@media screen and (max-width: 992px) {
    footer {
        font-size: 15px;
    }
    
    footer h3 {
        font-size: 22px;
    }
    
    footer h3 span {
        font-size: 18px;
    }
    
    footer .footer-tagline {
        font-size: 17px;
    }
    
    footer h4 {
        font-size: 20px;
    }
    
    footer .footer-contact p {
        font-size: 17px;
    }
}

/* Мобильная версия с центрированием и немного уменьшенным текстом */
@media screen and (max-width: 768px) {
    footer {
        font-size: 15px;
    }
    
    /* Центрируем блок с логотипом */
    .footer-logo .logo-and-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Центрируем иконку логотипа */
    .logo-icon_1 {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }

    /* Ограничиваем размер логотипа */
    .logo-icon_1 img {
        max-width: 120px;
        height: auto;
    }

    /* Центрируем текст */
    .logo-text {
        text-align: center;
        width: 100%;
    }

    /* Центрируем контакты в футере */
    .footer-contact {
        text-align: center;
        margin-top: 30px;
    }
    
    /* Заголовки в мобильной версии */
    footer h3 {
        font-size: 20px;
    }
    
    footer .footer-tagline {
        font-size: 16px;
    }
    
    footer h4 {
        font-size: 18px;
    }
    
    footer .footer-contact p {
        font-size: 16px;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .logo-icon_1 img {
        max-width: 100px;
    }
    
    footer h3 {
        font-size: 18px;
    }
    
    footer .footer-tagline,
    footer .footer-contact p {
        font-size: 15px;
    }
}
/* Исправление высоты карточек на мобильных */
@media (max-width: 768px) {
    .info-card {
        height: auto;           /* убираем фиксированную высоту */
        min-height: auto;       /* сбрасываем минимальную высоту */
        padding: 20px;          /* уже есть, но для надёжности */
    }
}

/* Перенос длинных слов и ссылок */
.info-content {
    word-wrap: break-word;      /* устаревшее, но для совместимости */
    overflow-wrap: break-word;  /* современный аналог */
    word-break: break-word;     /* для длинных ссылок */
}

.info-content p,
.info-content div,
.info-row p,
.info-row a {
    max-width: 100%;            /* запрещаем выход за границы */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Адаптация изображений */
.info-content img {
    max-width: 100%;            /* изображение не шире контейнера */
    height: auto;               /* сохраняем пропорции */
    display: block;             /* убираем лишние отступы */
}

/* Для ссылок-документов, чтобы они не разрывались */
.document-link {
    white-space: normal;        /* разрешаем перенос текста внутри кнопки */
    word-break: break-word;
}
