@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
 
* {
  margin: 0;
  padding: 0;
}

body {
font-family: "Montserrat", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
}

a {
color: #2C3478;
text-decoration: none;
white-space: nowrap;

}

a[href] {
  text-decoration: underline;
}


ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
}

.line-container {
    display: flex;
    align-items: center;  /* Центрируем текст по вертикали */
    justify-content: center;  /* Центрируем по горизонтали */
    width: 100%;  /* Блок растягивается на всю ширину */
}

.line {
    border-bottom: 2px solid #2C3478;  /* Линия с синим цветом */
    flex-grow: 1;  /* Линия растягивается на всю доступную ширину */
    opacity: 0.6;  /* Прозрачность линии */
}




.container {
    box-sizing: border-box;
    max-width: 190vh;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 10vh; /* Отступ между блоками */
  }
  
  .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 11px;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}

.header__logo-container {
  display: flex;
  align-items: center;
}

.header__nav {
  width: 75%;
}

.header__nav-top,
.header__nav-bottom {
  display: flex;
  justify-content:center;
}

.header__list {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 5px 0;
  font-weight: 600;
  font-size: 19px;
  flex-wrap: wrap;
  justify-content: center;
}

.header__logo {
  width: 90px;
  height: 90px;
  margin-left: 10px;
  object-fit: contain;
}

.header__logoo {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.navbar {
    
    padding: 15px 20px;
    position: relative; /* Добавляем для корректного z-index */
    z-index: 900; /* Высокий индекс для навбара */
}

.burger {
    display: none; /* Скрыто на десктопе */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* Стили меню */
.menu {
    display: none;
    list-style: none;
    flex-wrap: wrap;
    width: 160px;
}

.menu li {
    margin: 0px;
    flex-wrap: wrap;
    width: 250px;
    position: relative;
    padding: 5px 0;
    padding-left: 10px;
}

.menu li::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 2%; /* Начало линии (10% от ширины) */
    width: 90%; /* Длина линии (80% от ширины) */
    height: 2px;
    background: #2C3478;
}

.menu li:last-child::after {
    display: none; /* Убираем линию у последнего пункта */
} 

.menu a {
    text-decoration: none;
    color: #2C3478;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s;
    word-break: break-word;
    text-align: center;
}

.menu a:hover {
    color: #0066cc;
}
/*кнопка навигации*/



.btnn {
    text-decoration: underline;
    text-decoration-color: #2C3478;
}

.btn {
    position: relative; 
}
    
.btn::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    display: block;
    width: 0;
    height: 2.5px;
    background: #2C3478;
    transition: 0.3s;
 }

.btn:hover:after {
    width: 100%; 
}

.blockmen h2 {
    text-align: center;
    margin-bottom: 15px;
}

.blockmenu ul  {
    display: block;
}

.blockmenu  {
    background: #f5f5f8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px #2c3478;
    max-width: 400px;
    flex-shrink: 0;
    position: sticky; /* Делает меню фиксированным при прокрутке */
    top: 20px; /* Прикрепляет меню к верхней части */
    
 }

 .blockmenu img {
    width: 250px;
 }

 .blockmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blockmenu ul li {
    margin: 10px 0;
}

.blockmenu ul li a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.blockmenu ul li a:hover {
    background-color: #004080;
    color: white;
}

.blockmenu ul li a.active {
    background-color: #004080;
    color: white;
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #f5f5f8;
    border-radius: 10px;
    box-shadow: 0 4px 8px #2c3478;
    width: 100%;
    word-wrap: break-word;
    
}

.content a {
    white-space: normal;
}
.content h4 {
        margin: 0 10px;  /* Отступы от линии */
        font-weight: bold;
        text-align: center;  /* Центрируем текст внутри h4 */
        
    }



.content-item {
    display: none; /* Все блоки скрыты по умолчанию */
}

.content-item h4 {
	font-weight: normal ;
	padding: 15px;
    text-align: center;
    font-weight: 700;
    color:black;
}


.block__title {
    letter-spacing: 2px;
    position: relative;
    padding: 0px 0px 0px 30px;
    cursor: pointer;
}

.block__title:before,
.block__title:after {
    content: '';
    width: 10px;
    height: 1px;
    background-color: #004080;
    position: absolute;
    top: 8px;
    transition: all 0.3s ease 0s;
    
    

}

.block__title:before {
    transform: rotate(40deg);
    left: 0;
}

.block__title:after {
    transform: rotate(-40deg);
    left: 8px;
}

.block__title.active:before,
.block__title.active:after{
    background-color: #004080;
}

.block__title.active:before {
    transform: rotate(-40deg);
}

.block__title.active:after {
    transform: rotate(40deg);
}

.block__text {
    display: none;
    padding: 0px 0px 0px 15px;
}

 .news-sidebar {
            flex: 1;
            max-width: 300px; /* Фиксируем максимальную ширину */
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

 .sidebar-image {
            border: 1px solid #2C3478;
            border-radius: 8px;
            overflow: hidden;
            padding: 15px;
            background: #fff;
            transition: all 0.3s ease;
            width: 300px;
        }
    .sidebar-image:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .sidebar-image img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
        }

 .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            padding: 15px;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }
        .gallery-item.zoomed {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90vw;
            height: 90vh;
            z-index: 100;
            
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .gallery-item.zoomed img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

.footer {
  position: relative;
  background: #003670;
  color: white;
  overflow: hidden;
}

.footer__image-container {
  width: 100%;
  max-height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer__image {
  width: 100%;
  height: auto;
  min-height: 100px;
  object-fit: cover;
  object-position: center bottom;
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer__column-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer__column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.footer__links a:hover {
  color: white;
  padding-left: 5px;
  text-decoration: underline;
}

.footer__bottom {
      margin-top: 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer__version a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer__version a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Мобильный аккордеон для футера */
.footer__mobile-accordion {
  display: none;
}

.footer__accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.footer__accordion-title {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: white;
}

.footer__accordion-title::-webkit-details-marker {
  display: none;
}

.footer__accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.footer__accordion-icon::before,
.footer__accordion-icon::after {
  content: '';
  position: absolute;
  background-color: white;
  transition: all 0.3s ease;
}

.footer__accordion-icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
}

.footer__accordion-icon::after {
  width: 2px;
  height: 16px;
  left: 7px;
}

.footer__accordion-item[open] .footer__accordion-icon::after {
  transform: rotate(90deg);
}

.footer__accordion-content {
  padding: 0 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__accordion-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s;
}

.footer__accordion-content a:hover {
  color: white;
  text-decoration: underline;
}


@media (max-width: 1280px) {


 .footer__columns {
    justify-items: center;
    max-width: 1000px;
    margin-left: 0.3%;
  }
  
  .footer a {
    font-size: 12px;
  }

}


@media (max-width: 992px) {
  .footer__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .footer {
    background-size: cover;
    min-height: 500px;
  }
  
  .footer__container {
    min-height: 500px;
  }
}

@media (max-width: 1024px) {
   .header__logo,
  .header__logoo {
    width: 70px;
    height: 70px;
  }
  
  .header__list {
    gap: 30px;
    font-size: 16px;
  }
  
  .header__nav {
    width: 72%;
  }


}
    .content {
        padding: 15px; /* Меньшие отступы на мобильных устройствах */
        margin-top: 20px; /* Отступ сверху */
    }

    /* Заголовки внутри контента */
    .content h4 {
        font-size: 16px;  /* Уменьшаем размер шрифта для мобильных */
    }

    /* Снижение отступов для маленьких экранов */
    .content-item {
        padding: 10px;
    }

    /* Стиль для ссылок внутри контента */
    .content a {
        font-size: 14px; /* Меньший размер шрифта для мобильных */
        line-height: 1.6;  /* Увеличиваем межстрочный интервал для лучшей читаемости */
    } 
        /* Делает таблицы прокручиваемыми по горизонтали */
        .table, .table__center, .table__sleva {
            display: block;
            overflow-x: auto; /* Добавляем прокрутку по горизонтали */
             
        }
    
        /* Изменяем размер шрифта для заголовков таблицы */
        .table th, .table__center th, .table__sleva th {
            font-size: 12px; /* Меньший размер шрифта для мобильных */
        }
    
        /* Уменьшаем размер шрифта для данных в таблице */
        .table td, .table__center td, .table__sleva td {
            font-size: 12px; /* Меньший размер шрифта для мобильных */
           
        }
    
        /* Дополнительные настройки для управления видимостью столбцов */
        .table__sleva td, .table__center td {
            text-align: left; /* Для всех ячеек слева и по центру */
        }
        
   
    
    /* Скрываем обычное меню */
  

    .container {
      
        padding: 0 15px;
       
      }

    /* Показываем кнопку под шапкой на мобильных */
   

    .btnnnn {
        display: none;
    }
    .card {
        display: flex;
        border: 2px solid #004080;
        border-radius: 10px;
        overflow: hidden;
        width: 96%; /* Задаем ширину карточки на 100% от доступного места в колонке */
        margin: 18px;
    }
    
    .image {
        width: 22%; /* Фиксированная ширина */
        height: 28%; /* Фиксированная высота */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Скрыть части изображений, выходящие за пределы контейнера */
    }
    
    .image img {
        width: 100%;
        height: 100%;
      /* Сохраняет пропорции, заполняя контейнер */
    }
    
    .contento {
        padding: 18px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .contento p {
        font-size: 15px;
        color: #2c3478;
        margin: 10px 0;
    }
    .contento h2 {
        font-size: 18px;
       
    }
  


}



@media (max-width: 768px) {
 .footer__columns {
    display: none;
  }
  
  .footer__mobile-accordion {
    display: block;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
   .header__logo,
  .header__logoo {
    width: 60px;
    height: 60px;
  }

  .header__list {
    gap: 1vh;
    font-size: 17px;
  }

  .header__nav {
    display: none;
  }
 .burger {
        display: flex;
        margin-left: auto; /* Сдвигаем бургер вправо */
    }
    
    .menu {
        display: flex;
        border-radius: 15px 0 0 15px;
        position: fixed;
        top: 50px; /* Отступ от верха */
        right: -100%;
        width: auto;
        height: auto;
        max-height: 80vh; /* Максимальная высота */
        background: #fff;
        flex-direction: column;
        padding: 15px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto; /* Добавляем прокрутку если контент не помещается */
        z-index: 1000;
    }
    
    .menu.active {
        right: 0; /* Меняем left на right */
    }
    
    .menu li {
        margin: 5px 0;
        flex-wrap: wrap;
    }
    
    /* Анимация бургера в крестик */
    .burger.active .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 992px) {
  .podval__menu {
    min-width: 200px;
  }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  
  
  .podval__menu {
    min-width: 100%;
    padding: 0;
  }
  
  .podval__menu a {
    font-size: 13px;
  }
  
  .podval__menu a strong {
    font-size: 15px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .podval__menu a {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .podval__menu a strong {
    font-size: 14px;
  }
}