.header {
  font-family: "Inter";
  padding: 20px 0;
}
.header #navigator-root {
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .header #navigator-root {
    display: block;
  }
}
.header__wrapper {
  display: flex;
  flex-direction: column;
  padding: 0 14px;
}
@media (min-width: 768px) {
  .header__wrapper {
    padding: 0;
    flex-direction: row;
    align-items: center;
  }
}
.header__logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Sans";
  font-size: 17px;
  font-weight: 900;
  line-height: 1.22;
  z-index: 12;
  width: -moz-max-content;
  width: max-content;
}
.header__logo img {
  width: 30px;
  height: 30px;
}
.header__burger {
  position: absolute;
  right: 32px;
  top: 9px;
  display: flex;
  flex-direction: column;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 12;
}
.header__burger span {
  height: 2px;
  width: 16px;
  margin-bottom: 4px;
  border-radius: 2px;
  background: #000C37;
  transition: all 0.3s ease;
}
.header__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__burger.open span:nth-child(2) {
  opacity: 0;
}
.header__burger.open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
@media (min-width: 768px) {
  .header__burger {
    display: none;
  }
}
.header__nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: fixed;
  top: 60px;
  height: calc(100% - 60px);
  left: 0;
  width: 100%;
  padding: 80px 30px 40px;
  background: #FFF;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 10;
}
.header__nav.menu-show {
  transform: translateX(0);
}
@media (min-width: 768px) {
  .header__nav {
    all: unset;
    margin-left: auto;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-direction: row;
  }
}
.header__menu {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .header__menu {
    flex-direction: row;
    align-items: center;
    gap: 54px;
  }
}
.header__menu:first-child {
  position: relative;
}
.header__menu:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: -53px;
  height: 1px;
  background: #D2D5E2;
  width: 100%;
}
.header__menu-item {
  position: relative;
}
@media (min-width: 768px) {
  .header__menu-item--tools::before {
    content: "";
    position: absolute;
    bottom: -28px;
    left: -24px;
    height: 31px;
    width: 100px;
    z-index: 21;
  }
  .header__menu-item--tools:hover .header__dropdown {
    display: block;
  }
}
@media (min-width: 768px) {
  .header__menu-item--tools:hover .header__menu-link {
    color: #387FF5;
  }
  .header__menu-item--tools:hover .header__icon-arrow {
    transform: rotate(180deg);
  }
  .header__menu-item--tools:hover .header__icon-arrow path {
    fill: #387FF5;
  }
}
.header__menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: #4B5162;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.22;
}
@media (min-width: 1200px) {
  .header__menu-link:hover {
    color: #387FF5;
  }
}
.header__menu-link.is-open {
  color: #387FF5;
}
.header__menu-link.is-open .header__icon-arrow {
  transform: rotate(180deg);
  color: #387FF5;
}
.header__menu-icon {
  transition: 0.3s;
}
.header__menu-icon path {
  fill: #4B5162;
}
.header__icon-arrow {
  transition: transform 0.3s;
}
.header__dropdown {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.header__dropdown.show {
  max-height: 300px;
  opacity: 1;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .header__dropdown {
    display: none;
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: 332px;
    padding: 4px;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0 10px 30px rgba(58, 112, 191, 0.15);
    max-height: unset;
    opacity: unset;
    margin-top: unset;
    z-index: 20;
  }
}
.header__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.header__dropdown-item:hover {
  background: #F2F9FF;
  border-radius: 10px;
}
.header__dropdown-item:hover a {
  color: #08F;
}
.header__dropdown-logo {
  width: 16px;
  height: 16px;
}
.header__dropdown-link {
  color: #000C37;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.57;
}
