html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  font-family: 'Mulish', Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: baseline;
  text-decoration: none;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header_part2 {
  transition: transform 0.3s ease;
  z-index: 1001;
  list-style-type: none;
  position: relative;
}


/* Для мобильной версии */
@media (max-width: 768px) {
  .active-menu-item {
    background-color: transparent !important;
  }

  
  
  .active-menu-item > .menu-link {
    font-weight: normal !important;
    background-color: transparent !important;
  }
}

@media (min-width: 769px) {
  .active-menu-item > a.menu-link {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    border-radius: 50px;
  }

  .active-menu-item > a.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
}


/* Добавляем отступ для основного контента, чтобы он не скрывался под header */
.all {
  padding-top: 125px;
  /* Подберите значение под высоту вашего header */
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .all {
    padding-top: 75px;
    /* Меньший отступ для мобильных */
  }
}

.header_part1 {
  background-color: #0077bb;
}

.topmenu1 {
  max-width: 50%;
  margin: 0 auto 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topmenu1>li {
  display: inline-block;
  margin-right: 20px;
  position: relative;
  text-align: center;
  vertical-align: middle;
}

.topmenu1>li:last-child {
  margin-right: 0;
}

.submenu1 {
  position: absolute;
  top: 120%;
  list-style-type: none;
  left: 0;
  width: 140%;
  z-index: 11;
  transition: 0.5s ease-in-out;
}

.header_part1 ul a {
  color: white;
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Helvetica";

  transition: .2s linear;
}

.header_part1 .submenu1 {
  visibility: hidden;
  opacity: 0;
  background: #0077bb;
}

.header_part1 ul li:hover .submenu1 {
  visibility: visible;
  opacity: 1;
}

.header_part1 li a:hover {

  color: #ffffff;
}

.submenu1 li a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  margin-left: 0.375rem;
}

.submenu1 li {
  text-align: left;
}

/*---------Header_part2-/----------*/

.header_part2 {
  background: linear-gradient(45deg, #0077bb, #006aa7, #004872);
  height: 75px;
  position: relative; 
  box-shadow: none; 
}

.header_part2_container {
  width: 70%;
  margin: auto;
  height: 100%;
}

.header_logo {
  height: 100px;
  display: flex;
  height: 100%;
}

#logo_header {
  height: 70px;
}

.header_logo_img {
  margin: auto 0;
}

.header_logo_text {
  font-family: 'Mulish', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  text-align: center;
  margin-left: 10px;
  margin: auto 10px auto;

}

/*---------Header_part3-----------*/

.header_part3 {
  position: fixed;
  /* Закрепим */
  top: 75px;
  /* Сместим под header_part2 */
  left: 0;
  width: 100%;
  list-style-type: none;
  z-index: 999;
  transition: transform 0.3s ease;
  background: #0076bb; 
}




.topmenu2 {
  justify-content: center;
  margin: auto;
  display: flex;
  align-items: center;
}


.topmenu2>li {
  display: inline-block;
  position: relative;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.topmenu2>li:last-child {
  margin-right: 0;
}

.submenu2 {
  position: absolute;
  z-index: 11;
  list-style-type: none;
  transition: 0.3s ease-in-out;
  left: -2rem;
  top: 3rem;
}


.header_part3 ul a {
  color: white;
  font-size: 1rem;
  font-weight: 300;
  transition: .5s linear;
  /* Увеличиваем отступы */
  /* Делаем ссылку блочным элементом */
}

.header_part3 .submenu2 {
  visibility: hidden;
  opacity: 0;
  background: #006faf;
}

.header_part3 ul li:hover .submenu2 {
  visibility: visible;
  opacity: 1;
}

.submenu2 li a {
  font-size: 0.8rem;
  font-family: 'Mulish', sans-serif;
  font-weight: 500;
  display: block;
  padding: .5rem 1rem;
  margin-left: 0.375rem;
  color: #ffffff;
  text-align: left;
  transition: 0.4s;
  border-bottom: 1mm ridge rgba(0, 0, 0, 0.04);

}

.submenu2 li a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

#about_us_top {
  white-space: nowrap;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.menu-item-has-children {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  margin: 5px;
  /* Выравниваем по вертикали */
  position: relative;
  text-decoration: none;
  color: inherit;

  justify-content: center;
  /* Центрируем текст */
  min-height: 40px;
  /* Фиксированная высота */
  width: 100%;
}


.arrow-icon {
  font-size: 10px;
  /* Размер иконки */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.submenu2 li:hover>.submenu3 {
  opacity: 1;
  visibility: visible;
}

.submenu3 {
  position: absolute;
  list-style-type: none;
  left: 100%;
  top: 0;
  width: 250px;
  background: #006faf;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.menu-item-has-children:after {
  content: "›";
  position: absolute;
  right: 15px;
  top: 10px;
  color: #ffffff;
}

.mobile-menu-toggle {
  opacity: 0;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    opacity: 100;
  }

  .header_part2_container {
    width: 95%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header_logo {
    display: flex;
    align-items: center;
    flex-grow: 1;
  }

  #logo_header {
    height: 50px;
  }

  .header_logo_text {
    font-size: 1rem;
    margin-left: 8px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    max-width: calc(100% - 60px);
  }

  .submenu2 li a {
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    margin-left: 10px;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
  }

  .mobile-menu-toggle span:nth-child(1) {
    top: 8px;
  }

  .mobile-menu-toggle span:nth-child(2) {
    top: 14px;
  }

  .mobile-menu-toggle span:nth-child(3) {
    top: 20px;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
  }

  .header_part3 {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #0077bb;
    transition: max-height 0.3s ease;
  }

  .header_part3.mobile-visible {
    max-height: 90vh;
    overflow-y: auto;
  }

  .topmenu2 {
    flex-direction: column;
    padding: 10px 0;
    max-width: 100%;
    display: none;
  }

  .header_part3.mobile-visible .topmenu2 {
    display: flex;
  }

  .topmenu2>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    white-space: normal;
  }

  .submenu2,
  .submenu3 {
    position: static;
    display: none;
    width: 100%;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
  }

  .arrow-icon {
    font-size: 1.2rem;
    margin-left: 10px;
    transition: transform 0.3s;
  }


  .menu-item-has-children {
    position: relative;
  }

  .menu-item-has-children>.menu-link::after {
    content: '+';
    margin-left: 10px;
    font-size: 1.2rem;
  }

  .menu-item-has-children.submenu-open>.a::after {
    content: '-';
  }

  .menu-item-has-children>a::after {
    content: '+';
    margin-left: 10px;
    font-size: 1.2rem;
  }

  .submenu2,
  .submenu3 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu-item-has-children.submenu-open>.submenu2,
  .menu-item-has-children.submenu-open>.submenu3 {
    display: block;
    max-height: 1000px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .submenu3 {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.15);
  }

  .submenu2 li,
  .submenu3 li {
    padding: 8px 0;
  }

  .submenu2 a,
  .submenu3 a {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-item-has-children.submenu-open>.menu-link .arrow-icon {
    transform: rotate(180deg);
  }

  .menu-item-has-children.submenu-open {
    background: rgba(0, 0, 0, 0.1);
  }



  .menu-item-has-children>a {
    pointer-events: auto;
    /* Разрешаем клики */
  }

  .menu-item-has-children>.menu-link {
    cursor: pointer;
  }

  .menu-item-has-children>.submenu2,
  .menu-item-has-children>.submenu3 {
    display: none;
    padding-left: 15px;
    background: transparent;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .submenu2 a,
  .submenu3 a {
    pointer-events: auto;
    /* Разрешаем клики по ссылкам в подменю */
  }

  .submenu2 {
    margin-top: 5px;
  }

  .submenu2 .submenu3 {
    padding-left: 30px;
    background: rgba(0, 0, 0, 0.2);
  }

  .submenu2 li a,
  .submenu3 li a {
    color: #fff;
    display: block;
    padding: 10px 0;
  }

  .submenu3 {
    margin-top: 5px;
  }

  .header_part3.mobile-visible .topmenu2 {
    display: flex;
  }

  /* Показываем все подменю по умолчанию при открытом меню */
  .header_part3.mobile-visible .submenu2,
  .header_part3.mobile-visible .submenu3 {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Убираем индикаторы раскрытия (плюсики/минусики) */
  .header_part3.mobile-visible .menu-item-has-children>.menu-link::after,
  .header_part3.mobile-visible .menu-item-has-children>a::after {
    display: none;
  }

  /* Делаем все пункты меню видимыми */
  .header_part3.mobile-visible .menu-item-has-children.submenu-open {
    background: transparent;
  }

  /* Стили для многоуровневого меню */
  .header_part3.mobile-visible .submenu2 {
    position: static;
    width: 100%;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.1);
  }

  .header_part3.mobile-visible .submenu3 {
    position: static;
    width: 100%;
    padding-left: 30px;
    background: rgba(0, 0, 0, 0.04);
  }

  /* Стрелочки для подменю */
  .header_part3.mobile-visible .menu-link .arrow-icon {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Убираем автоматическое раскрытие всех подменю при открытии меню */
  .header_part3.mobile-visible .submenu2,
  .header_part3.mobile-visible .submenu3 {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  /* Показываем только те подменю, у которых есть класс submenu-open */
  .header_part3.mobile-visible .submenu-open > .submenu2,
  .header_part3.mobile-visible .submenu-open > .submenu3 {
    display: block !important;
    max-height: 1000px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Добавляем индикаторы для главных пунктов меню */
  .topmenu2 > li > a::after {
    content: "›";
    margin-left: 10px;
  }
  
  /* Убираем индикаторы для вложенных пунктов */
  .submenu2 li > a::after,
  .submenu3 li > a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Стили для вложенных меню */
  .submenu2, .submenu3 {
    display: none;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .submenu3 {
    background: rgba(0, 0, 0, 0.15);
    padding-left: 30px;
  }
  
  .menu-item-has-children.submenu-open > .submenu2,
  .menu-item-has-children.submenu-open > .submenu3 {
    display: block;
  }
  
  /* Индикаторы для пунктов с подменю */
  .menu-item-has-children > a::after {
    content: '+';
    margin-left: 10px;
  }
  
  .menu-item-has-children.submenu-open > a::after {
    content: '-';
  }
  
  /* Убираем стрелочки в мобильной версии */
  .arrow-icon {
    display: none;
  }
}

/* Адаптация для планшетов (769px - 1126px) */
@media (min-width: 769px) and (max-width: 1126px) {
  /* Оптимизация логотипа и названия */
  .header_part2_container {
    width: 90% !important;
    padding: 0 15px !important;
  }
  
  .header_logo_text {
    font-size: 1.2rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    margin-left: 8px !important;
  }
  
  #logo_header {
    height: 50px !important;
  }
  
  /* Оптимизация основного меню */
  .topmenu2 {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  .topmenu2 > li {
    margin: 0 5px !important;
    flex-grow: 1 !important;
    text-align: center !important;
  }
  
  .menu-link {
    padding: 6px 8px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  .arrow-icon {
    font-size: 8px !important;
  }
  
  /* Оптимизация подменю */
  .submenu2 {
    min-width: 180px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .submenu2 li a {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.8rem !important;
  }
  
  /* Уменьшаем отступ сверху для контента */
  .all {
    padding-top: 120px !important;
  }
  
  /* Адаптация для активного пункта меню */
  .active-menu-item > a.menu-link {
    padding: 6px 12px !important;
  }
}

/* Дополнительные стили для узких планшетов (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
  .header_logo_text {
    font-size: 1rem !important;
  }
  
  
  
  .topmenu2 > li {
    margin: 0 3px !important;
  }
}

/* Дополнительные стили для широких планшетов (900px - 1126px) */
@media (min-width: 901px) and (max-width: 1126px) {
  .header_logo_text {
    font-size: 1.3rem !important;
  }
  
  
}

@media (min-width: 768px) and (max-width: 992px){
  .all {
    padding-top: 175px !important;
  }
}