.header {
  position: relative;
  z-index: 10;
  background: var(--dark-blue-1);
  color: var(--white);
}

.header__inner {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.header a {
  color: inherit;
  text-decoration: none;
}

.header__logo {
  display: block;
  width: 160px;
  flex: 0 0 auto;
}

.header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header__navigation {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.header__menu,
.header__submenu {
  list-style: none;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
}

.header__menu-item {
  position: relative;
}

.header__menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--body-text-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 20px 0;
}

.header__menu-link--dropdown::after {
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: '';
  transform: translateY(-2px) rotate(45deg);
}

.header__submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  display: flex;
  min-width: 210px;
  flex-direction: column;
  gap: 13px;
  padding: 19px 20px 21px;
  background: #1c3155;
  box-shadow: 0 13px 24px rgb(0 0 0 / 20%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.header__submenu a {
  color: var(--body-text-3);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.header__contact {
  min-width: 136px;
  margin-left: auto;
}

.header__drawer-contact,
.header__drawer-close {
  display: none;
}

.header__menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

@media (min-width: 750px) {
  /* .header__menu-item:hover .header__submenu,
  .header__menu-item:focus-within .header__submenu 
  {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  } */

  .header__menu-item:hover .header__submenu
  {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__menu-link:hover,
  .header__menu-item:focus-within .header__menu-link,
  .header__submenu a:hover {
    color: var(--white);
  }
}

@media (max-width: 1120px) and (min-width: 750px) {

  .header__logo {
    width: 104px;
  }
  .header__menu {
    gap: 16px;
  }

  .header__menu-link {
    font-size: 11px;
  }
}

@media (max-width: 749px) {
  .header__logo {
    width: 104px;
  }
  body.header-drawer-open {
    overflow: hidden;
  }

  .header__inner {
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
  }

  .header__navigation {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    left: auto;
    display: flex;
    width: min(90vw, 390px);
    height: 100dvh;
    flex-direction: column;
    gap: 32px;
    margin: 0;
    padding: 56px 20px 20px;
    background: var(--dark-blue-1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 260ms ease;
  }

  .header__navigation.is-open {
    transform: translateX(0);
    box-shadow: -14px 0 30px rgb(0 0 0 / 25%);
  }

  .header__drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 24px;
    font-weight: 200;
    line-height: 1;
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__menu-item {
    border-bottom: 1px solid var(--border-1);
  }

  .header__menu-link {
    justify-content: space-between;
    font-size: 14px;
    padding: 20px 0;
  }

  .header__submenu {
    position: static;
    display: none;
    gap: 10px;
    padding: 0 0 20px 12px;
    background: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header__menu-item.is-open .header__submenu {
    display: flex;
  }

  .header__menu-item.is-open .header__menu-link--dropdown::after {
    transform: translateY(2px) rotate(225deg);
  }

  .header__submenu a {
    color: var(--body-text-3);
    font-size: 14px;
  }

  .header__contact {
    display: none;
  }

  .header__drawer-contact {
    display: inline-flex;
    width: 100%;
    flex: 0 0 auto;
  }

  .header__menu-button {
    display: flex;
    width: 24px;
    height: 16px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
  }

  .header__menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background: var(--white);
  }
}
