:root {
  --width: 0;
}
/* Sticky header */
/* @media screen and (min-width: 1050px) { */
.sticky-header {
  position: fixed !important;
  right: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  gap: 1px !important;
  cursor: pointer !important;
  padding-top: 0 !important;
  width: 111px;
  opacity: 1;
  justify-content: end;
  /* padding: 10px;
    background-color: #000aff; */
}
.sticky-header .menu-icon--arrow,
.sticky-header .menu-icon--open {
  padding: 11px;
  background-color: #000aff;
  height: 17px;
  box-sizing: content-box;
}
.menu-icon--arrow {
  display: none;
}
.sticky-header .menu-icon--arrow {
  display: block;
}
.sticky-header .menu-icon--arrow {
  width: 20px;
}
.sticky-header .menu-icon--open {
  width: 37px;
}
/* .hero__wrapper {
  margin-top: 120px;
} */

.header__wrapper {
  align-items: flex-start !important;
}

header .sub-menu .sub-menu a {
  padding-right: 40px;
}

header .sub-menu .sub-menu li {
  width: fit-content;
}

.menu-icon--close {
  position: absolute;
  top: 20px;
  right: 23px;
  cursor: pointer;
}
#overlay-menu .overlay-content--top__wrapper {
  width: 100%;
  display: flex !important;
  justify-content: space-between;
  /* display: none; */
}

.overlay-content--top__wrapper .lang__wrapper {
  height: fit-content;
  display: flex;
  column-gap: 20px;
  padding-top: 0 !important;
}
.overlay-content--top__wrapper .lang__wrapper > div {
  padding: 0;
}
.overlay-content--top__wrapper .lang__wrapper a {
  padding: 0;
}
.overlay-content--top__wrapper .lang__wrapper a > span {
  margin: 0;
}
.overlay-content--top__wrapper
  .lang__wrapper
  .wpml-ls-current-language
  a
  > span {
  color: #fff;
}

.overlay-menu {
  height: 0;
  max-width: 430px !important;
  width: 100%;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  background-color: #000aff;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 730px;
  transition: 2s;
}
.overlay-menu .contact-local__wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 20px;
}
.header__wrapper .lang__wrapper > div {
  position: relative;
  height: fit-content;
}
.overlay-content .lang__wrapper ul {
  width: 70px;
  padding-left: 0;
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}
.header__wrapper .lang__wrapper .wpml-ls-item {
  position: relative;
}
.header__wrapper .lang__wrapper .wpml-ls-current-language a {
  color: #ffffff;
  text-decoration: none;
}
.header__wrapper .lang__wrapper a > span {
  color: #ffffff;
}
.header__wrapper .lang__wrapper .wpml-ls-current-language a {
  color: #ffffff;
  text-decoration: none;
}
.header__wrapper .lang__wrapper .wpml-ls-item a > span {
  text-decoration: underline;
}
.header__wrapper .lang__wrapper .wpml-ls-current-language a > span {
  text-decoration: none !important;
}
.overlay-logo {
  position: relative;
  top: 24px;
  left: 30px;
  margin: 0 !important;
  padding: 0 !important;
}
.overlay-content {
  padding: 33px;
  padding-top: 90px;
}
.overlay-menu .contact-local__wrapper a {
  font-size: 20px;
  line-height: 20px;
  color: #ffffff;
}
.overlay-content--bottom__wrapper {
  margin-top: 40px;
}
.overlay-content--bottom__wrapper div > ul {
  display: flex;
  flex-direction: column;
  align-items: end;
  row-gap: 40px;
}
.overlay-content--bottom__wrapper div > ul > li > a {
  font-size: 45px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: right;
  color: #ffffff;
}

.overlay-content--bottom__wrapper .menu > .menu-item-has-children {
  padding: 0;
}
.parent_menu_item > .header-item {
  position: relative;
  margin-left: auto;
}
.overlay-menu .parent_menu_item > .header-item:before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(/wp-content/uploads/2024/02/menu_arrow.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  left: -50px;
  transform: translateY(-50%);
  top: 50%;
  transition: transform 0.3s ease-in-out;
}
.active .header-item:before {
  transform: rotate(45deg) translateY(-20px) !important;
}

/* .menu > li > ul {
  clip-path: inset(0% 0% 0% 0%) !important;
  max-height: 0;
  transition: max-height 0.5s ease-out;
  top: 0;
  padding: 10px;
  max-width: 36rem;
  margin-left: auto;
} */
.menu li ul li {
  width: auto;
}
.menu > li > ul li a {
  color: #fff !important;
  font-size: 36px;
  margin: 0;
  padding-right: 40px;
}
.overlay-content .parent_menu_item > .sub-menu {
  /* clip-path: inset(0% 0% 0% 0%); */
  position: static;
  padding-right: 0;
  height: 0px;
  padding: 0px;
}
.overlay-content .parent_menu_item .sub-menu li {
  width: 230px;
}
header .overlay-content .mob-social-wrapper {
  display: flex !important;
  justify-content: end;
  gap: 3%;
  position: relative;
  margin-top: 100px;
}
header .overlay-content .mob-social-wrapper a {
  font-size: 16px !important;
  color: #fff;
}
/* } */
/* Sticky header */

.progress-container {
  width: 100%;
  background-color: transparent;
  z-index: 9999;
  position: fixed;
  top: 0;
}

.progress-bar {
  width: 0;
  height: 4px;
  background-color: #000aff;
}

.header__wrapper {
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
}

.header__wrapper a {
  font-size: 16px;
  font-weight: 300;
}

.header__wrapper .logo__wrapper {
  position: relative;
  height: fit-content;
}
#m-logo {
  display: none;
}
.header__wrapper .logo__wrapper > a {
  height: auto;
  display: block;
  box-shadow: inset 0 0 0 0 transparent !important;
  margin: 0 !important;
}
.header__wrapper .logo__wrapper > a svg {
  max-width: 88px;
  height: auto;
}
header .d-logo {
  max-width: max-content !important;
}

.header__wrapper .menu__wrapper {
  display: flex;
  column-gap: 60px;
}

.menu__wrapper ul {
  padding-left: 0;
  /* display: flex;
  column-gap: 60px; */
  position: relative;
  height: fit-content;
  list-style-type: none;
}

/* Submenu start */

/* Элементы основного меню */
.menu li {
  display: inline-block;
  position: relative;
}

/* Стили ссылок в основном меню */
.menu li a {
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

/* Стили для подменю первого уровня */
.menu > li > ul {
  display: block !important;
  position: absolute;
  top: 100%;
  left: -4px;
  top: 77px;
  left: 0;
  background-color: #000aff;
  padding: 0;
  margin: 0;
  z-index: 9999999;
  padding: 46px 60px;
  clip-path: inset(0% 0% 100% 0%);
  text-transform: uppercase;
}

/* Стили для подменю второго уровня */

.menu li ul li {
  display: block;
  width: 280px; /* Ширина подменю второго уровня */
  position: relative;
}

header .sub-menu .sub-menu li {
  width: 260px;
}
header .sub-menu li a {
  position: relative;
}
header .sub-menu li a:after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background-color: #fff;
  position: absolute;
  bottom: 14px;
  left: 0;
  transition: all 0.3s;
}
header .sub-menu li a:hover:after {
  width: 100%;
}
header .sub-menu li.current-menu-item:before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background-image: url(/wp-content/uploads/2024/02/menu_arrow.svg);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 50%;
  position: absolute;
  right: 0;
  top: 17px;
}
/* Test */
#navbar {
  padding-top: 0 !important;
}
header .logo__wrapper,
header .lang__wrapper,
header .contact__wrapper {
  padding-top: 30px;
}

.menu-item-has-children > .header-item__overlay {
  transform: translatey(-50%);
  width: 69px;
  height: 24px;
  background-color: #ffffff;
  top: 50%;
  left: auto;
}
.menu-item-has-children a {
  box-shadow: inset 0 0 0 0 transparent !important;
}
/* Test */

header .sub-menu .sub-menu li:before {
  top: 8px;
}
header .sub-menu .sub-menu li a:after {
  bottom: 6px;
}
.menu > .menu-item-has-children {
  padding: 30px 64px;
}
header .menu > .menu-item:last-child {
  margin-left: 64px;
}

header .menu > .menu-item-has-children:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--width);
  height: 81px;
  max-width: 190px;
  background: #000aff;
  z-index: -1;
  transition: all 0.3s;
}
/* header .menu > .menu-item-has-children:hover:before {
  width: 100%;
} */

/* Стили для ссылок в подменю второго уровня */
.menu li ul li a {
  padding: 13px 0;
  font-size: 18px;
}
header .sub-menu .sub-menu {
  margin-left: 25px;
  margin-bottom: 10px;
}
header .sub-menu .sub-menu a {
  padding: 5.5px 0;
}
/* Стили для подменю третьего уровня */
.menu li ul li ul {
  display: block;
  /* background-color: #000aff; */
  padding: 0;
  margin: 0;
  text-transform: none;
  transition: all 0.3s;
}

/* Submenu finish */

.header__wrapper .menu__wrapper .menu-item {
  position: relative;
}

.header__wrapper .menu__wrapper a {
  color: #ffffff;
}

.header__wrapper .lang__wrapper {
  height: fit-content;
  display: flex;
  column-gap: 60px;
}

.header__wrapper .lang__wrapper > div {
  position: relative;
  height: fit-content;
}

.header__wrapper .lang__wrapper ul {
  padding-left: 0;
  display: flex;
  column-gap: 60px;
}

.header__wrapper .lang__wrapper .wpml-ls-item {
  position: relative;
}

.header__wrapper .lang__wrapper a > span {
  color: #858e8e;
  text-decoration: underline;
}

.header__wrapper .lang__wrapper span {
  color: #ffffff;
}

.header__wrapper .lang__wrapper .wpml-ls-current-language a {
  color: #ffffff;
  text-decoration: none;
}

.contact__wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.contact__wrapper .contact-local__wrapper,
.contact__wrapper .contact-social__wrapper {
  display: flex;
  justify-content: flex-end;
  column-gap: 60px;
}

.contact__wrapper .contact-local__wrapper > div,
.contact__wrapper .contact-social__wrapper > div {
  position: relative;
  height: fit-content;
}

.contact__wrapper .contact-local__wrapper a {
  color: #858e8e;
}

.contact-local__wrapper div:last-child .header-item {
  color: #fff;
}

.old_link svg {
  opacity: 0.5;
}
.old_link:hover svg {
  opacity: 1;
}

.contact__wrapper .contact-social__wrapper a {
  color: #000aff;
}

.header-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  clip-path: inset(0% 0% 100% 0%);
}

.header-item {
  white-space: nowrap;
  margin: 0;
  line-height: 1.1;
}
.old_link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.mobile__menu,
.menu-icon__wrapper {
  display: none;
}

@media (max-width: 1366px) {
  .header__wrapper .menu__wrapper {
    min-width: 350px;
  }
  .menu > .menu-item-has-children {
    padding-left: 24px;
    padding-right: 24px;
  }
  header .menu > .menu-item:last-child {
    margin-left: 24px;
  }
  .header__wrapper .lang__wrapper {
    column-gap: 30px;
  }
  .contact__wrapper .contact-local__wrapper,
  .contact__wrapper .contact-social__wrapper {
    column-gap: 20px;
  }
  .header__wrapper {
    column-gap: 20px;
  }
}
@media (max-width: 1050px) {
  header .desktop__menu,
  header .contact-social__wrapper {
    display: none !important;
  }
  .mobile__menu,
  .menu-icon__wrapper {
    display: block;
    position: relative;
    padding-top: 30px;
  }
}
@media (max-width: 768px) {
  .header__wrapper {
    padding: 30px 10px;
    padding-bottom: 0;
  }
  .overlay-menu {
    max-height: 100dvh;
    /* height: 100svh; */
  }
  #m-logo {
    display: block;
  }
  #desk-logo {
    display: none;
  }
  header .contact__wrapper,
  header > .lang__wrapper {
    display: none !important;
  }
  header .overlay-content .mob-social-wrapper {
    margin-top: 80px;
  }
  .overlay-content--bottom__wrapper div > ul {
    row-gap: 30px;
  }
  .overlay-content {
    padding: 10px;
    padding-top: 90px;
  }
  .overlay-logo {
    left: 10px;
  }
  .menu-icon--close {
    right: 10px;
  }
  /* .sticky-header {
    width: 114px;
  } */
  .sticky-header .menu-icon--arrow,
  .sticky-header .menu-icon--open {
    padding: 9px;
    height: 19px;
  }
}

@media (max-width: 380px) {
  header .overlay-content .mob-social-wrapper a {
    font-size: 15px !important;
  }
}
@media (max-width: 365px) {
  /* header .overlay-content .mob-social-wrapper {
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 30px !important;
  }
  header .overlay-content .mob-social-wrapper div {
    width: 40%;
    text-align: end;
  } */
  .overlay-content {
    padding-left: 13px;
    padding-right: 13px;
  }
  .menu-icon--close {
    right: 13px;
  }
  .overlay-logo {
    left: 13px;
  }
}
