.header {
  height: 70px;
  padding: 12px 0;
  background-color: var(--bg-basic);
  position: relative;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 2;
}

.header__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.header__logo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  margin-bottom: 6px;
}

.logo__img {
  display: block;
  height: 38px;
}

.header__list {
  list-style: none;
  display: flex;
  gap: 40px;
}

.header__link {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-basic);
  position: relative;
}

.header__link.accent::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--icon-accent);
}

@media (hover: hover) {
  .header__link:hover {
    color: var(--text-brand-1);
  }
}

.header__link.active {
  border-bottom: solid 1.5px var(--border-brand);
}

.header__box {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__box-list {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
}

.header__bttn {
  min-width: 116px;
  text-decoration: none;
}

.header__button {
  display: none;
}

.burger {
  cursor: pointer;
  display: none;
  position: relative;
  border: none;
  background-color: transparent;
  width: 22px;
  height: 16px;
}

.burger::before,
.burger::after {
  content: "";
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background-color: var(--icon-basic-1);
}

.burger::before {
  top: 0;
  box-shadow: 0 6.5px 0 var(--icon-basic-1);
  transition: box-shadow 0.3s 0.15s, top 0.3s 0.15s, transform 0.3s;
}

.burger::after {
  bottom: 0;
  transition: bottom 0.3s 0.15s, transform 0.3s;
}

.header.active .burger::before {
  top: 6.5px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.15s, top 0.3s, transform 0.3s 0.15s;
}

.header.active .burger::after {
  bottom: 6.5px;
  transform: rotate(-45deg);
  transition: bottom 0.3s, transform 0.3s 0.15s;
}

.header.active .header__box {
  gap: 0;
}

.header.active .header__box-list {
  display: none;
}

.header__mob {
  width: 100%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding-bottom: 16px;
  margin-top: 12px;
}

.header__mob .header__list {
  padding-top: 12px;
  border-top: solid 1px var(--border-basic);
}

.header__mob .bttn {
  width: 100%;
}

@media (max-width: 1024px) {
  .header {
    height: 56px;
  }

  .logo__img {
    height: 32px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    height: calc(100dvh - 56px);
    width: 100%;
    background-color: var(--bg-basic);
    flex-direction: column;
    justify-content: space-between;
    padding-top: 16px;
    z-index: 10;
  }

  .header__mob {
    display: flex;
  }

  .header__list {
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .header__link {
    padding: 8px 16px 8px 0;
    font-size: 20px;
  }

  .header__box-item--hidden {
    display: none;
  }

  .header__button {
    display: block;
  }

  .burger {
    display: block;
  }

  .header__link.active {
    border-bottom: none;
    font-weight: 600;
  }

  .header__bttn {
    display: none;
  }
}

.header.active .header__nav {
  display: flex;
}


.header .dropdown {
  left: auto;
  right: 0;
  width: 230px;
}

.header .dropdown__link {
  display: flex;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
  text-decoration: none;
  color: var(--text-brand-1);
  font-weight: 500;
}

.header .dropdown__link svg {
  stroke: var(--border-brand);
}

.header .dropdown__link--last {
  color: var(--text-secondary);
  border-top: 1px solid var(--border-secondary);
  padding-top: 8px;
}