body{
    background-color: #F4F4F4;
}
section{
    background-color: white;
    border-radius: 24px;
    margin: 24px 0;
    padding-top: 32px;
    padding-right: 40px;
    padding-bottom: 40px;
    padding-left: 40px;
    border-radius: 24px;
}
header{
    background-color: white;
}
.news-section .text-muted{
    font-family: Manrope;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 3%;

    color:#9F9F9F!important;
}
.news-section .card .card-title{
    font-family: Manrope;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 3%;
    color: #0A0D0F; 
    min-height: 66px;
}

.news-section .card .card-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.news-section .main-card-news{
    background-color: #F9F9F9; 
}
.news-section .main-card-news .card-title{
    font-family: Manrope;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 3%;   
}
.news-section .main-card-news .card-body{
    padding-top: 12px;
    padding-right: 20px;
    padding-bottom: 16px;
    padding-left: 20px;
}
.news-section .button-all-news a{ 
    gap: 8px;
    padding-top: 12px;
    padding-right: 20px;
    padding-bottom: 12px;
    padding-left: 20px;
    border-radius: 8px;
    border-width: 1px; 
    font-family: Manrope;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 2%;
    border:1px solid #E2E3E4;
    font-family: Manrope;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 2%;
}
.all-announcements{
    font-family: Manrope;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 2%;
    border: 1px solid #E2E3E4;
    border-radius: 8px!important;
    padding-top: 12px;
    padding-right: 20px;
    padding-bottom: 12px;
    padding-left: 20px;
    margin-right:30px;
    color: #0A0D0F;
}
.all-announcements:hover{
    background-color: #3A86F8;
    color: white;
    border-color: #3A86F8;
}
.all-announcements:hover svg path{ 
    stroke: white;
}
.carousel-next:hover svg path{ 
    stroke: white;
}
.carousel-prev:hover svg path{
    stroke: white;
}
.help-carousel-next:hover svg path{
    stroke: white;
}
.help-carousel-prev:hover svg path{
    stroke: white;
}
.photo-carousel-next:hover svg path{
    stroke: white;
}
.photo-carousel-prev:hover svg path{
    stroke: white;
}
.video-carousel-next:hover svg path{
    stroke: white;
}
.video-carousel-prev:hover svg path{
    stroke: white;
}
.announcements-section .card-body .card-title{
    font-family: Manrope;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 3%;
    color: #3A86F8;
}
.announcements-section .card-body .text-muted{
    font-family: Manrope;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 3%; 
    color: #9F9F9F!important;

}
.activities-section .col-md-3{
    min-height: 132px;
}

.activities-section .col-md-3 .card-body{
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
}
.activities-section .col-md-3:hover .card{
    background-color: #3A86F8!important;
    color: white!important;
    border-color: #3A86F8!important;
}
.activities-section .col-md-3:hover svg path{ 
    stroke: white;
}
.useful-links-section .card-title { 
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 2%;
    color: #0A0D0F;

}
.useful-links-section .text-muted{
    color: #9F9F9F!important;
    text-decoration: none;
}
.useful-links-section .text-muted:hover{
    color: #3A86F8!important; 
} 
.help-section .card-title{
    font-family: Manrope;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 3%;    
    color: #0A0D0F;
}
.help-section p{
    font-family: Manrope;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 3%;    
    color: #9F9F9F;
} 
.help-section .card-body .row{
    background-color: #F9F9F9;
}
.media-section{
    background-color: inherit;
} 
.media-section .card-body .text-muted{
    font-family: Manrope;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 3%;
    color: #9F9F9F;
}
footer .fw-bold{
    font-family: Manrope;
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 2%;
}
footer .logo-text{ 
    font-family: 'Manrope', sans-serif;
    margin-left: 10px;
    font-weight: 600;
}

/* Добавляем стили для активного элемента в боковой панели страниц */
.active-page > a {
    color: #3A86F8 !important;
    font-weight: 500;
}

.sidebar .list-unstyled li {
    position: relative;
    padding: 5px 0;
}

.sidebar .list-unstyled li a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.sidebar .list-unstyled li a:hover {
    color: #3A86F8;
}

.sidebar .fw-bold {
    font-weight: 600 !important;
}

.sidebar .card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: hidden;
}

.sidebar .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.sidebar .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
}

/* Стиль для вложенного уровня страниц */
.sidebar .list-unstyled .list-unstyled {
    margin-top: 8px !important;
    padding-left: 15px !important;
    border-left: 2px solid #e9ecef !important;
}

.sidebar .list-unstyled .list-unstyled li {
    padding: 3px 0;
}

/* Индикатор активной страницы */
.sidebar li.active-page {
    background-color: rgba(58, 134, 248, 0.05);
    border-left: 3px solid #3A86F8;
    margin-left: -12px;
    padding-left: 9px;
    border-radius: 0 4px 4px 0;
}

/* Стили для чекбоксов в боковой панели */
.list-group-checkable {
    display: grid;
    gap: 0.5rem;
    border-radius: 0.5rem;
}

.list-group-checkable .list-group-item {
    cursor: pointer;
    border-radius: 0.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    border: 1px solid rgba(227, 230, 232, 0.8);
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.list-group-checkable .list-group-item:hover {
    border-color: #3A86F8; 
}

.list-group-checkable .list-group-item-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.list-group-item-check:checked + .list-group-item {
    background-color: rgba(58, 134, 248, 0.08);
    border-color: #3A86F8;
    box-shadow: 0 0 0 0.15rem rgba(58, 134, 248, 0.25);
    color: #3A86F8;
    font-weight: 500;
}

.list-group-checkable label {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.list-group-checkable .small {
    font-size: 0.8rem;
    font-weight: normal;
    margin-top: 0.25rem;
}

/* Стили для списка элементов */
.list-group {
    --bs-list-group-color: var(--bs-body-color);
    --bs-list-group-bg: var(--bs-body-bg);
    --bs-list-group-border-color: var(--bs-border-color);
    --bs-list-group-border-width: var(--bs-border-width);
    --bs-list-group-border-radius: var(--bs-border-radius);
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: var(--bs-secondary-color);
    --bs-list-group-action-hover-color: var(--bs-emphasis-color);
    --bs-list-group-action-hover-bg: var(--bs-tertiary-bg);
    --bs-list-group-action-active-color: var(--bs-body-color);
    --bs-list-group-action-active-bg: var(--bs-secondary-bg);
    --bs-list-group-disabled-color: var(--bs-secondary-color);
    --bs-list-group-disabled-bg: var(--bs-body-bg);
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: #4285F4;
    --bs-list-group-active-border-color: #4285F4;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--bs-list-group-border-radius);
}
.list-group {
    max-width: 100%;
    margin: 0;
}

.list-group-checkable {
    display: grid;
    gap: .5rem;
    border: 0;
}

.list-group-checkable .list-group-item {
    cursor: pointer;
    border-radius: .5rem;
}

.list-group-item-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

.list-group-item-check:hover + .list-group-item {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.list-group-item-check:checked + .list-group-item {
    color: #fff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.list-group-item-check:disabled + .list-group-item {
    pointer-events: none;
    opacity: .5;
}
.list-group-item-check:checked + .child-activity {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
    border-left-color: var(--bs-primary);
    color: var(--bs-primary) !important;
    font-weight: 500;
}
.list-group-item-child {
    margin-left: 20px;
    width: calc(100% - 20px)!important;
}

.under-logo-text-official{
font-family: 'Manrope', sans-serif;
    margin-top: 2px;
    font-weight: 600;
    max-width: 280px;
    font-size: 12px;
    margin-bottom: 0;
}





.header {
    border-bottom: 1px solid #e9ecef;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo-text {
    font-family: 'Manrope', sans-serif;
    margin-left: 10px;
    font-weight: 600;
    max-width: 280px;
}
.main-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
}
.main-nav a {
    color: #666666;
    margin-right: 25px;
    text-decoration: none;
    font-weight: 500;
    padding: 40px 0;
    border-bottom: 3px solid transparent; /* Добавляем прозрачную границу */
    transition: all 0.3s ease; /* Плавный переход */
}

.main-nav a:hover {
    color: #007bff;
}
.main-nav a.active {
    color: #0A0D0F;
    position: relative;
    border-bottom: 3px solid #3A86F8; /* Заменяем прозрачную на цветную */
}

/* Стили для выпадающего меню */
.nav-item-dropdown {
    position: relative;
    padding:40px 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    top: 100%;
    left: 0;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px !important;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    margin: 0 !important;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #3A86F8;
}

.icons-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.header .icon {
    border: 1px solid #F6F6F6;
    margin-left: 12px;
    font-size: 20px;
    color: #333;
    border-radius: 50%;
    width: 57px;
    height: 57px;
    line-height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .icon:last-child {
    border: none;
    border: 1px solid #F6F6F6;
}

/* Увеличиваем область клика на иконках */
.header .icon svg,
.mobile-menu .icon svg {
    pointer-events: none;
}

/* Стили для Owl Carousel */
.owl-carousel .item {
    margin: 10px;
}

.owl-carousel .card {
    transition: transform 0.3s;
}

.owl-carousel .card:hover {
    transform: translateY(-5px);
}

.owl-nav button {
    position: absolute;
    top: 35%;
    background: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    color: #007bff !important;
    font-size: 24px !important;
    outline: none;
}

.owl-nav button:hover {
    background: #f8f9fa !important;
}

.owl-prev {
    left: -20px;
}

.owl-next {
    right: -20px;
}

.owl-dots {
    text-align: center;
    margin-top: 15px;
}

.owl-dots button.owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #ccc;
    margin: 0 5px;
}

.owl-dots button.owl-dot.active {
    background: #007bff;
}

/* Стили для кнопок управления слайдером */
.carousel-prev:hover svg path,
.carousel-next:hover svg path {
    stroke: #ffffff;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #3A86F8 !important;
    border-color: #3A86F8 !important;
}

/* Цвета для кнопки "Все анонсы" при наведении */
.all-announcements:hover svg path {
    stroke: #ffffff;
}


.help-carousel .card-body {
    height: 100%;
}

.help-carousel .row {
    height: 100%;
}

.help-carousel .col-md-5,
.help-carousel .col-md-7 {
    display: flex;
    flex-direction: column;
}

.help-carousel .col-md-7 > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

/* Фиксированная высота для изображений */
.help-carousel .col-md-5 img {
    width: 100%;
    object-fit: cover;
}

/* Стили для блоков Фотоматериалы/Видео */
.media-section .section-header {
    margin-bottom: 1.5rem;
}

.media-section .section-content {
    height: 100%;
}

.photo-carousel .item,
.video-carousel .item {
    height: 100%;
    padding: 0;
}

.photo-carousel,
.video-carousel {
    margin: 0 -15px;
}

.media-section .row {
    margin-left: -25px;
    margin-right: -25px;
}

.photo-materials-section,
.video-section {
    height: 100%;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
}

@media (max-width: 767.98px) {
    .media-section .col-md-6:first-child {
        margin-bottom: 3rem;
    }
}

/* Стили для блока "Услуги" */
.all-services {
    font-family: Manrope;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 2%;
    border: 1px solid #E2E3E4;
    border-radius: 8px !important;
    padding: 12px 20px;
    color: #0A0D0F;
}

.all-services:hover {
    background-color: #3A86F8;
    color: white;
    border-color: #3A86F8;
}

.all-services:hover svg path {
    stroke: white;
}

/* Стили для карточек услуг */
.service-card {
    padding: 12px !important;
    transition: all 0.3s ease;
}

.service-card .service-icon {
    margin-bottom: 0.75rem !important;
}

.service-card .service-icon svg {
    width: 60px;
    height: 60px;
}

.service-card .service-title {
    font-family: Manrope;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    margin-top: 30px;
}

/* Для мобильных устройств */
@media (max-width: 767.98px) {
    .service-card {
        padding: 12px !important;
    }
    .service-card .service-icon svg {
        width: 50px;
        height: 50px;
    }
}

/* Стили для мобильного меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu.active {
    display: block;
}

/* Шапка мобильного меню */
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Логотип в мобильном меню */
.mobile-menu .logo-container {
    display: flex;
    align-items: center;
}

.mobile-menu .logo-container img {
    width: 45px;
    height: auto;
}

.mobile-menu .logo-text {
    margin-left: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

/* Кнопка закрытия */
.mobile-menu .close-menu {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

/* Навигация */
.mobile-menu .main-nav {
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Выравнивание по левому краю */
}

/* Основные пункты меню */
.mobile-menu .main-nav a {
    width: 100%;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Выравнивание по левому краю */
}

/* Подменю */
.mobile-menu .mobile-submenu {
    width: 100%;
    padding-left: 15px;
    margin: 0;
}

.mobile-menu .mobile-submenu a {
    padding: 12px 0;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: normal;
}

/* Нижняя панель с иконками в мобильном меню */
.mobile-menu .icons-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: #FFFFFF;
    border-top: 1px solid #EAEAEA;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mobile-menu .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mobile-menu .icon svg {
    width: 29px;
    height: 28px;
    margin-bottom: 5px;
}

.mobile-menu .icon span {
    font-size: 11px;
    color: #0A0D0F;
    text-align: center;
    line-height: 1.2;
    font-weight: 400;
}

/* Стили для SVG внутри иконок */
.mobile-menu .icon svg path {
    stroke: #0A0D0F;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Убираем hover-эффекты для мобильных устройств */
.mobile-menu .icon:hover {
    transform: none;
}

/* Эффект при нажатии */
.mobile-menu .icon:active {
    transform: scale(0.95);
}

/* Активное состояние иконки */
.mobile-menu .icon.active {
    color: #3A86F8;
}

.mobile-menu .icon.active svg {
    stroke: #3A86F8;
}

.mobile-menu .icon.active span {
    color: #3A86F8;
}

/* Стили для каждой конкретной иконки */
.mobile-menu .icon-search svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu .icon-phone svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu .icon-eye svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu .icon-mail svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu .nav-ministry {
    background: #f8f9fa;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Иконки в мобильном меню */
.mobile-menu .icons-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #eee;
}

.mobile-menu .icon {
    margin: 0;
    width: 100%;
    height: auto;
    padding: 15px;
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-menu .icon:hover {
    background: var(--primary-color);
}

.mobile-menu .icon:hover svg path {
    stroke: white;
}

.mobile-menu .icon span {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}

/* Анимация появления меню */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu.active {
    animation: slideIn 0.3s ease forwards;
}

/* Стили для активного пункта */
.mobile-menu .main-nav a.active {
    background: var(--primary-color);
    color: #3A86F8;
}

.mobile-menu .main-nav a.active:after {
    border-color: white;
}

.mobile-menu .mobile-submenu a.active {
    background: rgba(58, 134, 248, 0.1);
    color: var(--primary-color);
}

.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #0A0D0F;
    margin: 5px 0;
    transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }

    .icons-container {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .header .col.d-flex {
        justify-content: space-between;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }
    .mobile-menu .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-menu .main-nav {
        display: flex;
        flex-direction: column;
        margin-left: 0px;
    }

    .mobile-menu .main-nav a {
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-menu .icons-container {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .mobile-menu .icon {
        margin: 0;
        width: 100%;
        height: auto;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .main-card-news img{
        height: 214px!important;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.search-overlay.active {
    display: block;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-content {
    padding-top: 120px;
}

.search-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    height: 60px;
    font-size: 20px;
    border: none;
    border-bottom: 2px solid #3A86F8;
    border-radius: 0;
    padding-left: 20px;
    box-shadow: none !important;
}

.search-input:focus {
    border-color: #3A86F8;
}

.search-btn {
    background-color: #3A86F8;
    border: none;
    height: 60px;
    width: 60px;
}

.search-btn:hover {
    background-color: #2a6fd3;
}

.search-popular {
    max-width: 700px;
    margin: 0 auto;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background-color: #3A86F8;
    color: white;
}

@media (max-width: 768px) {
    .search-content {
        padding-top: 80px;
    }
    
    .search-input {
        height: 50px;
        font-size: 16px;
    }
    
    .search-btn {
        height: 50px;
        width: 50px;
    }
}

/* Стили для мобильного подменю */
.mobile-menu .mobile-submenu {
    display: block;
    margin-left: 0px;
    background-color: transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    border-left: none;
    margin-left: 0;
    margin-bottom: 0;
}

.mobile-menu .mobile-submenu a {
    padding: 12px 0 12px 15px !important;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e9ecef;
    display: block;
    font-weight: 400;
}

.mobile-menu .mobile-submenu a:last-child {
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu .submenu-toggle {
    position: relative;
    border-bottom: none;
}

.mobile-menu .submenu-toggle a {
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 5px;
    color: #333;
}

/* Удаляем стрелки и обработчики событий, так как подменю всегда видимо */
.mobile-menu .submenu-toggle span,
.mobile-menu .submenu-toggle-arrow {
    display: none;
}

/* Визуальное выделение активного пункта меню */
.mobile-menu .mobile-submenu a.active {
    color: #3A86F8;
    font-weight: 500;
}

/* Стиль для родительского пункта меню */
.mobile-menu .nav-ministry {
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border-bottom: 1px solid #d4d4d4 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.badge {
    background-color: #e9ecef;
    color: #666;
}

/* Стили для режима слабовидящих */
.visually-impaired-mode {
    /* Основные стили для режима */
    --font-size-factor: 1;
    --line-height-factor: 1.5;
}

.visually-impaired-mode.font-size-medium {
    --font-size-factor: 1.2;
}

.visually-impaired-mode.font-size-large {
    --font-size-factor: 1.4;
}

.visually-impaired-mode.font-size-xlarge {
    --font-size-factor: 1.6;
}

/* Изменение размеров текста */
.visually-impaired-mode *:not(i):not(.fa) {
    font-size: calc(1rem * var(--font-size-factor)) !important;
    line-height: var(--line-height-factor) !important;
}

.visually-impaired-mode h1 {
    font-size: calc(2rem * var(--font-size-factor)) !important;
}

.visually-impaired-mode h2 {
    font-size: calc(1.75rem * var(--font-size-factor)) !important;
}

.visually-impaired-mode h3 {
    font-size: calc(1.5rem * var(--font-size-factor)) !important;
}

.visually-impaired-mode h4 {
    font-size: calc(1.25rem * var(--font-size-factor)) !important;
}

.visually-impaired-mode h5,
.visually-impaired-mode h6 {
    font-size: calc(1.1rem * var(--font-size-factor)) !important;
}

/* Цветовые схемы */
.visually-impaired-mode.color-scheme-normal {
    --bg-color: #ffffff;
    --text-color: #000000;
    --link-color: #0056b3;
}

.visually-impaired-mode.color-scheme-dark {
    --bg-color: #000000;
    --text-color: #ffffff;
    --link-color: #4da6ff;
}

.visually-impaired-mode.color-scheme-blue {
    --bg-color: #9DD1FF;
    --text-color: #063462;
    --link-color: #063462;
}

.visually-impaired-mode.color-scheme-brown {
    --bg-color: #f7f3d6;
    --text-color: #59422e;
    --link-color: #59422e;
}

.visually-impaired-mode.color-scheme-green {
    --bg-color: #3B2716;
    --text-color: #a9e44d;
    --link-color: #a9e44d;
}

/* Применение цветовых схем */
.visually-impaired-mode {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.visually-impaired-mode * {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-color: var(--text-color) !important;
}

.visually-impaired-mode a,
.visually-impaired-mode button:not(.vi-settings-button) {
    color: var(--link-color) !important;
    text-decoration: underline !important;
}

/* Отключение изображений и украшений */
.visually-impaired-mode.images-hidden img:not(.vi-logo) {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.visually-impaired-mode.images-hidden .image-container:not(.vi-logo-container)::after {
    content: "[Изображение]";
    display: block;
    border: 1px solid var(--text-color);
    padding: 10px;
    text-align: center;
}

/* Панель для слабовидящих */
.vi-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #212529;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    font-family: Arial, sans-serif;
}

.vi-panel.active {
    display: block;
}

.vi-panel .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vi-panel-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.vi-panel-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vi-panel-label {
    margin-right: 5px;
    font-weight: bold;
    font-size: 14px;
}

.vi-settings-button {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin: 0 2px;
}

.vi-settings-button:hover {
    background-color: #e9ecef;
}

.vi-settings-button.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    outline: 3px solid #0d6efd;
    position: relative;
}

/* Удаляю этот блок полностью */
/* .vi-settings-button.active::after {
    content: "";
} */

/* Стили для кнопок цветовых схем */
.vi-settings-button.color-scheme-normal {
    background-color: #ffffff;
    color: #000000;
    border-color: #ced4da;
}

.vi-settings-button.color-scheme-dark {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.vi-settings-button.color-scheme-blue {
    background-color: #9DD1FF;
    color: #063462;
    border-color: #063462;
}

.vi-settings-button.color-scheme-brown {
    background-color: #f7f3d6;
    color: #59422e;
    border-color: #59422e;
}

.vi-settings-button.color-scheme-green {
    background-color: #3B2716;
    color: #a9e44d;
    border-color: #a9e44d;
}

/* Перезаписываем стили для активных кнопок цветовых схем */
.vi-settings-button.color-scheme-normal.active,
.vi-settings-button.color-scheme-dark.active,
.vi-settings-button.color-scheme-blue.active,
.vi-settings-button.color-scheme-brown.active,
.vi-settings-button.color-scheme-green.active {
    outline: 3px solid #0d6efd;
}

.vi-settings-button.color-scheme-normal.active {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

.vi-settings-button.color-scheme-dark.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

.vi-settings-button.color-scheme-blue.active {
    background-color: #9DD1FF;
    color: #063462;
    border-color: #063462;
}

.vi-settings-button.color-scheme-brown.active {
    background-color: #f7f3d6;
    color: #59422e;
    border-color: #59422e;
}

.vi-settings-button.color-scheme-green.active {
    background-color: #3B2716;
    color: #a9e44d;
    border-color: #a9e44d;
}

.vi-close-button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.vi-close-button:hover {
    background-color: #c82333;
}

/* Кнопка для включения режима */
.vi-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.vi-toggle-button:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

.vi-toggle-button i {
    font-size: 24px;
}

/* Дополнительный отступ при активном режиме */
body.visually-impaired-active {
    padding-top: 60px;
}

/* Стили для кнопок размера шрифта */
.vi-settings-button.font-size-normal {
    font-size: 14px;
    min-width: 32px;
    font-weight: normal;
}

.vi-settings-button.font-size-medium {
    font-size: 16px;
    min-width: 32px;
    font-weight: normal;
}

.vi-settings-button.font-size-large {
    font-size: 18px;
    min-width: 32px;
    font-weight: bold;
}

.vi-settings-button.font-size-xlarge {
    font-size: 20px;
    min-width: 32px;
    font-weight: bold;
}

/* Стиль для активных кнопок */
/* .vi-settings-button.active::after {
    content: "";
} */

a.attached-file {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    margin: 5px 0;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.2s;
}

a.attached-file:hover {
    background-color: #e0e7ff;
    text-decoration: none;
    color: #1e3a8a;
}

a.attached-file i {
    margin-right: 8px;
}

/* Стиль для кнопки мега-меню */
.mega-menu-toggle svg {
    transition: transform 0.3s ease;
}

.mega-menu-toggle:hover svg {
    transform: rotate(90deg);
}

/* Скрываем иконку мега-меню на мобильных устройствах */
@media (max-width: 991px) {
    .mega-menu-toggle {
        display: none !important;
    }
}

/* Стили для иконки мега-меню */
.mega-menu-toggler {
    transition: transform 0.3s ease;
}

.mega-menu-toggler:hover {
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    .mega-menu-toggler {
        display: none !important;
    }
}

/* Стили для мега-меню */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
}

.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    background-color: #fff;
    overflow-y: auto;
    display: none;
    padding: 30px 0;
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mega-menu-logo {
    display: flex;
    align-items: center;
}

.mega-menu-logo .logo-text {
    font-family: 'Manrope', sans-serif;
    margin-left: 10px;
    font-weight: 600;
}

.mega-menu-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mega-menu-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.mega-menu-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4285F4;
}

.mega-menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.mega-menu-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.mega-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4285F4;
    border-radius: 8px;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.mega-menu-text {
    font-weight: 500;
}

.mega-popular-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #333;
    height: 100%;
    transition: all 0.3s ease;
}

.mega-popular-item:hover {
    border-color: #4285F4;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.1);
}

.mega-popular-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f5ff;
    color: #4285F4;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 20px;
}

.mega-popular-text {
    font-weight: 500;
}

/* Стиль для иконки мега-меню */
.mega-menu-toggle {
    transition: transform 0.3s ease;
}

.mega-menu-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    .mega-menu-toggle {
        display: none !important;
    }
    
    .mega-menu-content {
        padding-bottom: 50px;
    }
}

/* Стили для мега-меню */
.mega-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    display: none;
}

.mega-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    background-color: #fff;
            overflow-y: auto;
    display: none;
    padding: 30px 0;
}

.mega-menu-header {
            display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mega-menu-logo {
            display: flex;
            align-items: center;
}

.mega-menu-logo .logo-text {
    font-family: 'Manrope', sans-serif;
    margin-left: 10px;
    font-weight: 600;
}

.mega-menu-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mega-menu-close:hover {
    transform: rotate(90deg);
}

.mega-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.mega-section-title::after {
    content: '';
    position: absolute;
        bottom: 0;
        left: 0;
    width: 50px;
    height: 3px;
    background-color: #4285F4;
}

/* Стили для карточек разделов */
.mega-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mega-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mega-card-icon {
    width: 60px;
    height: 60px;
    background-color: #4285F4;
    border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
}

.mega-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mega-card-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-card-links li {
        margin-bottom: 8px;
    }

.mega-card-links li a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.2s ease;
}

.mega-card-links li a:hover {
    color: #4285F4;
    padding-left: 5px;
}

/* Стили для карточек проектов */
.mega-project-card {
    background-color: white;
    border-radius: 10px;
        overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.mega-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mega-project-img {
    height: 180px;
    overflow: hidden;
}

.mega-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mega-project-card:hover .mega-project-img img {
    transform: scale(1.05);
}

.mega-project-content {
    padding: 20px;
}

.mega-project-content h4 {
    font-size: 18px;
        font-weight: 600;
    margin-bottom: 10px;
        color: #333;
    }

.mega-project-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.mega-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4285F4;
    color: white !important;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
        font-weight: 500;
    transition: background-color 0.3s ease;
}

.mega-btn:hover {
    background-color: #3367d6;
    text-decoration: none;
}

/* Стили для полезных ссылок */
.mega-link-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
        transition: all 0.3s ease;
    height: 100%;
}

.mega-link-card:hover {
    background-color: #4285F4;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.mega-link-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

.mega-link-card:hover .mega-link-icon {
    background-color: rgba(255, 255, 255, 0.3);
}

.mega-link-text h5 {
    font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
}

.mega-link-text p {
    font-size: 13px;
    margin-bottom: 0;
    opacity: 0.8;
}

.mega-link-card:hover .mega-link-text h5,
.mega-link-card:hover .mega-link-text p {
    color: white;
}

/* Цветовые варианты карточек */
.ministry-card .mega-card-icon {
    background-color: #4285F4;
}

.activity-card .mega-card-icon {
    background-color: #0F9D58;
}

.documents-card .mega-card-icon {
    background-color: #DB4437;
}

.press-card .mega-card-icon {
    background-color: #F4B400;
}

/* Адаптивность */
@media (max-width: 991px) {
    .mega-menu-content {
        padding-bottom: 50px;
    }
}

/* Стиль для иконки мега-меню */
.mega-menu-toggle {
    transition: transform 0.3s ease;
}

.mega-menu-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    .mega-menu-toggle {
        display: none !important;
    }
}

/* Стили для кнопок меню */
.header .icon.menu-toggle {
    display: none; /* Скрываем бургер по умолчанию */
}

.header .icon.mega-menu-toggle {
    display: flex; /* Показываем мега-меню по умолчанию */
}

/* Стили для стрелки в кнопке "Показать все" */
.mega-arrow {
    transition: transform 0.3s ease;
}

.mega-show-all-btn.expanded .mega-arrow {
    transform: rotate(180deg);
}

/* Скрытые элементы мега-меню */
.mega-item-hidden {
    display: none;
}

.mega-items-expanded .mega-item-hidden {
    display: flex;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 991px) {
    .header .icon.menu-toggle {
        display: flex; /* Показываем бургер на мобильных */
        margin-left: auto; /* Прижимаем к правому краю */
    }

    .header .icon.mega-menu-toggle {
        display: none; /* Скрываем мега-меню на мобильных */
    }
}

/* Общие стили для иконок меню */
.header .icon.menu-toggle,
.header .icon.mega-menu-toggle {
    border: 1px solid #F6F6F6;
    width: 57px;
    height: 57px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
        transition: all 0.3s ease;
}

.header .icon.menu-toggle:hover,
.header .icon.mega-menu-toggle:hover {
    background-color: #f8f9fa;
}

/* Стили для социальных иконок в шапке */
.header-social-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-social-icons .top-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-social-icons .top-menu a {
    color: #333;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-social-icons .top-menu a:hover {
    color: #3A86F8;
}

.header-social-icons .right-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.header-social-icons .right-menu a {
    color: #333;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-social-icons .right-menu a:hover {
    color: #3A86F8;
}

.header-social-icons .social-icons-container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.header-social-icons a {
    transition: transform 0.3s ease;
    text-decoration: none;
    margin: 0 5px;
}

.header-social-icons a:hover {
    color:inherit;
}

@media (max-width: 767.98px) {
    .header-social-icons {
        display: none;
    }
}