.header {
  background-color: #fff;

  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;

  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
}

.header__inner {
  height: 69px;
  display: flex;
  align-items: center;
  max-width: calc(1290px + 2 * 30px);
}

.header__logo {
  margin-right: 18px;
  order: 1;
}

.header__links {
  display: flex;
  order: 2;
}

.header__nav-link {
  padding: 7px;
}

.header__socials {
  margin-left: auto;
  display: flex;
  order: 3;
}

.header__social-link {
  padding: 7px 18px;
  text-decoration: underline;
  font-weight: 700;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.header__social-link path {
  fill: var(--color-black);
}

.header__social-link span {
  display: block;
}



.header__langs {
  order: 4;
}

.header__lang {
  font-weight: 700;
}

.header__lang._deactive {
  color: var(--color-gray);
}

.header__burger {
  display: none;
  order: 5;
}

.header__burger rect {
  fill: var(--color-black);
}

.header__aside {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 5;

  background-color: var(--color-black);
  color: #fff;
  padding: 0 20px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;

  background-image: url('/images/back-dog.svg');
  background-repeat: no-repeat;
  background-position: 180% 40%;
  background-size: 90%;

  transition: right .4s;
}

.header__aside._active {
  right: 0;
}

.header__aside .header__links {
  margin-top: 30px;
  flex-direction: column;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.header__aside .header__socials {
  height: 100dvh;
  margin-top: 50px;
  flex-direction: column;
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
}

.header__aside .header__social-link {
  text-decoration: none;
}

.aside__top {
  display: flex;
  align-items: center;
  height: 53px;
}

.aside__close {
  order: 3;
}

/* Инверсия */
.header._inverse {
  background-color: var(--color-black);
  color: #fff;
}

.header._inverse .header__burger rect {
  fill: #fff;
}

.header._inverse .header__social-link path {
  fill: #fff;
}

@media (max-width: 1130px) {
  .header__inner {
    height: 57px;
  }

  .header__langs {
    margin: 0 25px 0 auto;
  }

  .header__socials {
    order: 6;
    margin: 0;
  }

  .header__social-link {
    padding: 0;
    flex-direction: row;
  }

  .header__social-link._phone {
    order: 1;
  }

  .header__social-link span {
    display: none;
  }

  .header__social-link svg {
  display: none;
}
}

@media (max-width: 950px) {
  .header__inner {
    height: 53px;
  }

  .header__inner> :is(.header__socials, .header__links) {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .header__aside {
    display: block;
  }

  .header__langs {
    margin: 0 15px 0 auto;
    order: 2;
  }

  .header__social-link._mail {
    order: 2;
  }

  .header__social-link span {
    display: block;
  }

  .header__social-link svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .header {
    background-color: var(--color-black);
    color: #fff;
  }

  .header__burger rect {
    fill: #fff;
  }
  .header__inner {
    justify-content: space-between;
  }
  .aside__top {
    justify-content: space-between;
  }
}