@font-face {
  font-family: "Cygre Medium-Medium";
  src: url("/local/templates/fonts/cygre-medium.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* -------------------------- HEADER ------------------------- */
.adaptive_wrapper {
  width: 100%;
  max-width: 1680px;
  margin: auto;
}

header {
  height: 90px;
}

.header_wrap_container {
  display: flex;
  z-index: 95;
  position: fixed;
  margin-top: 22px;
  background: #2020201f;
  backdrop-filter: blur(8px);
  max-width: 1680px;
  width: 100%;
  justify-content: space-between;
}

.header_logo {
  height: 87px;
}

.header_logo .path {
  position: absolute;
  width: 79px;
  height: 22px;
  top: 0;
  left: 52px;
}

.header_logo .img {
  position: relative;
  width: 121px;
  height: 81px;
  top: 6px;
  left: 0;
}

.header_logo .path-2 {
  position: absolute;
  width: 56px;
  height: 5px;
  top: 23px;
  left: 75px;
}

#menu-toggle {
  display: none;
}

.phone-number_mobile {
  display: none;
}

.header_menu {
  display: flex;
  align-items: center;
  position: relative;
}

.header_menu .navigation-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.header_menu .navigation-container .rectangle {
  position: absolute;
  right: 50px;
  z-index: -1;
}

header .navigation-link:last-of-type {
  background: url("/img/menu.svg") no-repeat;
  background-position-x: 100%;
}

.header_rectangle {
  position: absolute;
  z-index: -1;
  right: 28px;
}

header .phone-number {
  font-family: "Cygre Medium-Medium", Helvetica;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.40px;
  line-height: normal;
  align-content: center;
}

header .phone-number a {
  text-decoration: none;
  color: #ffffff;
}

.phone-number_mobile {
  display: none;
}

/* //-------------------------- HEADER ------------------------- */

@media screen and (max-width: 1680px) {

  .adaptive_wrapper,
  .header_wrap_container,
  .footer_screen .header-container,
  .footer_buttons_wrap,
  .footer_screen .frame {
    max-width: 1256px;
  }
}

@media screen and (max-width: 1250px) {

  .adaptive_wrapper,
  .header_wrap_container,
  .footer_screen .header-container,
  .footer_buttons_wrap,
  .footer_screen .frame {
    max-width: 840px;
  }

  .header_menu .navigation-container {
    max-width: 590px;
    justify-content: center;
  }

  .header_menu .navigation-container .rectangle {
    right: 200px;
    top: unset;
    bottom: 0;
  }

  header .phone-number {
    font-size: 1rem;
  }
}

@media screen and (max-width: 840px) {

  .adaptive_wrapper {
    max-width: 730px;
  }

  header .phone-number {
    display: none;
  }

  .phone-number_mobile .phone-number {
    display: block;
    color: #ffffff;
  }

  .header_logo_wrap {
    position: relative;
    display: block;
    height: 40px;
    margin-left: 12px;
    margin-top: 2px;
  }

  .header_logo {
    height: auto;
  }

  .header_logo .path {
    width: 29px;
    height: 8px;
    left: 19px;
  }

  .header_logo .img {
    width: 48px;
    height: 29px;
  }

  .header_logo .path-2 {
    top: 6px;
    left: 28px;
  }

  .header_wrap_container {
    position: fixed;
    max-width: 730px;
    height: 40px;
    padding: unset;
    margin: 12px auto;
    background-color: #FFFFFF1A;
    z-index: 100;
    border-radius: 8px;
    backdrop-filter: blur(8px);
  }

  .header_menu {
    display: flex;
    margin-top: 56px;
    right: 50px;
    position: fixed;
    z-index: 100;
    background: #00000066;
    border-radius: 8px;
    backdrop-filter: blur(8px);
  }

  .header_menu .navigation-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: flex-start;
    column-gap: 56px;
    row-gap: 10px;
    position: relative;
    z-index: 120;
    left: 0;
    height: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s ease;
    transform: translateY(-12px);
  }

  .header_menu .navigation-container.is-open {
    max-height: 70dvh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: auto;
    transform: translateY(0);
  }

  .header_menu #navigation-container::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0px;
    right: 0px;
    bottom: -100px;
    background: #000000c7;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
  }

  .header_menu #navigation-container li ul {
    position: relative;
    width: 100%;
    margin-top: 6px;
    padding-left: 16px;
    right: auto;
    top: auto;
    left: auto;
    background-color: transparent;
    height: auto;
    display: block;
  }

  .header_menu #navigation-container li ul::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: #000000c7;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
    border-radius: 8px;
  }

  .header_menu .rectangle {
    top: 380px;
    left: unset;
    right: 80px;
  }

  .header_menu #navigation-container li {
    width: 100%;
    position: relative;
  }

  .header_menu #navigation-container li.has-submenu {
    padding-right: 40px;
  }

  .header_menu #navigation-container li.has-submenu>ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.3s ease;
  }

  .header_menu #navigation-container li.has-submenu.submenu-open>ul {
    opacity: 1;
    transform: translateY(0);
    top: 0;
  }

  .header_menu #navigation-container li>.mobile-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header_menu #navigation-container li>.mobile-submenu-toggle::before {
    content: "▾";
    transition: transform 0.3s ease;
  }

  .header_menu #navigation-container li.submenu-open>.mobile-submenu-toggle::before {
    transform: rotate(180deg);
  }

  #menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-self: end;
  }

  #menu-icon {
    transition: all 0.2s ease;
  }

  #top-line,
  #bottom-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .navigation-container {
    row-gap: 0;
  }

  /* Вложенные списки */
  /* .navigation-container ul {
    list-style: none;
    padding: 0;
    display: none;
  } */

  .navigation-container .navigation-link:hover>ul {
    display: block;
  }

  .rectangle {
    top: unset;
    bottom: 0;
    right: 120px;
  }

  /* #navigation-container li ul {
    left: 0;
    bottom: 35px;
  } */

  #navigation-container li:last-of-type ul {
    bottom: 70px;
  }

  .header_menu #navigation-container li:last-of-type ul {
    bottom: 20px;
    top: unset;
  }

  .news_content__item {
    width: 355px;
  }

  .news_content__item h4 {
    font-size: 18px;
  }
}

@media screen and (max-width: 730px) {

  .adaptive_wrapper {
    max-width: 355px;
  }

  .header_wrap_container {
    max-width: 355px;
  }

  .header_menu {
    width: 100%;
    max-width: 355px;
    justify-content: flex-start;
    right: unset;
  }

  .preloader_container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .preloader_img-container svg {
    width: 350px;
    height: 280px;
    max-width: none;
    max-height: none;
  }

  .preloader_img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .preloader_text-container {
    right: unset;
    z-index: 0;
    position: absolute;
    bottom: 30%;
    left: 60%;
    transform: translateX(-50%);
  }

  .preloader_text-container svg {
    z-index: 1;
  }

  .phone-number_mobile {
    display: block;
  }

  #menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-self: end;
  }

  #menu-icon {
    transition: all 0.2s ease;
  }

  #top-line,
  #bottom-line,
  #middle-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .navigation-container {
    display: none;
  }

  .navigation-container li {
    margin: 0;
    z-index: 1;
  }

  .navigation-container a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-family: Arial, sans-serif;
  }

  .navigation-container a:hover {
    background: #ddd;
  }

  /* Вложенные списки */
  .navigation-container ul {
    list-style: none;
    padding: 0;
    display: none;
  }

  .navigation-container .navigation-link:hover>ul {
    display: block;
  }

  .rectangle {
    top: unset;
    bottom: 65px;
    left: 100px;
  }

  #navigation-container li ul {
    left: 150px;
  }

  #navigation-container li:last-of-type ul {
    bottom: 0;
  }

  .more-info-text-wrapper {
    width: 100%;
  }

  .footer_screen .more-info-container,
  .footer_screen .more-info-text-wrapper {
    width: 100%;
  }

  .footer_screen .more-info-text {
    font-size: 15px;
    justify-self: center;
  }

  .footer_buttons_wrap,
  .footer_screen .frame {
    max-width: 355px;
  }

}

@media screen and (max-width: 360px) {
  .main_screen .group {
    max-width: 330px;
  }

  .element-image_wrap {
    max-width: 330px;
  }

  .footer_screen .frame {
    max-width: 330px;
  }
}