.header {
  width: 100%;
  background: var(--color-tertiary);
}

.header-inner {
  max-width: 1320px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo-wrapper {
  max-height: 48px;
}

.header__logo {
  width: auto;
  height: 100% !important;
  margin-bottom: 0;
  border-radius: 0;
}

.header-services {
  display: flex;
  align-items: center;
}

.header-mobile-menu {
  display: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  margin-left: 12px;
}

.header-mobile-menu img {
  width: auto;
  margin-bottom: 0;
  border-radius: 0;
}

@media (max-width: 1350px) {
  .header-inner {
    margin: 0;
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    height: 60px;
  }

  .header-mobile-menu {
    display: flex;
  }
}

/* HEADER MENU START */
.header-menu {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.header-menu__item {
  margin-right: 30px;
}

.header-menu__item:last-of-type {
  margin-right: 0;
}

.header-menu__item:hover .header-menu__link {
  color: var(--color-primary);
}

.header-menu__link {
  position: relative;
  display: block;
  font-weight: 700;
  padding: 12px;
  color: #ffffff;
}

.header-submenu-wrapper {
  display: none;
  position: absolute;
}

.header-submenu {
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--color-gray);
  box-shadow: 2px 4px 23px rgba(23, 55, 116, 0.08);
  border-radius: 8px;
}

.header-submenu__item {
  position: relative;
  width: 100%;
}

.header-submenu__item:hover > .header-submenu__link {
  color: var(--color-primary);
}

.header-submenu__link {
  position: relative;
  display: block;
  font-weight: 700;
  padding: 12px;
  color: var(--color-text-main);
}

.has-submenu .header-menu__link {
  padding-right: 30px;
}

.has-submenu .header-menu__link::after {
  content: url("../images/menu-arrow.svg");
  position: absolute;
  top: 10px;
  right: 12px;
}

.has-submenu:hover .header-menu__link {
  border-radius: 8px;
  color: var(--color-primary);
  background: #ffffff;
}

.has-submenu > .header-submenu__link::after {
  content: url("../images/menu-arrow.svg");
  transform: rotate(-90deg);
  position: absolute;
  top: 10px;
  right: 16px;
}

@media (min-width: 901px) {
  .header-menu__item.has-submenu:hover > .header-submenu-wrapper {
    display: block;
    padding-top: 20px;
  }

  .header-submenu__item.has-submenu:hover > .header-submenu-wrapper {
    display: block;
    padding-top: 20px;
    top: -20px;
    right: -282px;
  }
}

@media (max-width: 1350px) {
  .header-menu__item {
    margin-right: 15px;
  }
}

@media (max-width: 1100px) {
  .header-menu__item {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .header-menu {
    display: none;
    width: 100%;
    position: absolute;
    top: 100px;
    left: 0;
    flex-direction: column;
    align-items: start;
    background: var(--color-tertiary);
    padding: 12px 0;
  }

  .header-menu.open {
    display: block;
  }

  .header-menu__link {
    padding: 16px;
  }

  .header-menu__item:hover .header-menu__link {
    background: none;
  }

  .has-submenu .header-menu__link::after,
  .has-submenu > .header-submenu__link::after {
    content: url(../images/mobile-menu-arrow.svg);
    transform: rotate(0);
    right: 15px;
    top: 16px;
  }

  .has-submenu.open > .header-submenu-wrapper {
    display: block;
    position: static;
  }

  .has-submenu.open > .header-menu__link::after {
    top: 18px;
    transform: rotate(180deg);
  }

  .has-submenu.open > .header-submenu__link::after {
    top: 14px;
    transform: rotate(180deg);
  }

  .header-submenu {
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .header-submenu__link {
    font-weight: 400;
    padding: 12px 16px;
    color: #ffffff;
  }
}
/* HEADER MENU END */

/* HEADER SEARCH START */
.header-search {
  position: relative;
  z-index: 1200;
}

.header-search__button {
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-primary);
  border-radius: 8px;
  margin-right: 13px;
}

.header-search__form {
  display: none;
  position: absolute;
  top: -2px;
  right: 7px;
}

.open .header-search__form {
  display: block;
}

.header-search__input {
  width: 400px;
  height: 40px;
  background: #4b5e72;
  border-radius: 27px;
  outline: none;
  border: none;
  padding: 0 40px 0 16px;
  font-size: 16px;
  color: var(--color-text-add);
}

.header-search__submit {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  top: 11px;
  right: 16px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.header-search__input::placeholder {
  color: var(--color-text-add);
}

@media (max-width: 900px) {
  .header-search {
    display: none;
    width: 100%;
    height: 50px;
    position: absolute;
    align-items: center;
    top: 60px;
    left: 0;
    background: var(--color-tertiary);
    padding: 8px 0;
    z-index: 1001;
  }

  .header-search.open {
    display: flex;
  }

  .header-search__button {
    display: none;
  }

  .header-search__form {
    position: static;
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  .header-search__submit {
    top: 15px;
    right: 83px;
  }

  .header-search__input {
    width: 85%;
    height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .header-search__submit {
    right: 53px;
  }
}

@media (max-width: 480px) {
  .header-search__input {
    width: 85%;
  }
}
/* HEADER SEARCH END */

/* HEADER LANG SELECTOR START  */
.header-lang-selector {
  position: relative;
  z-index: 1001;
}

.header-lang-selector__visible {
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.header-lang-selector__list {
  display: none;
  max-height: 228px;
  overflow: auto;
  position: absolute;
  top: 60px;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--color-gray);
  box-shadow: 2px 4px 23px rgba(23, 55, 116, 0.08);
  border-radius: 8px;
}
.header-lang-selector__list-names {
  width: 200px;
}

.header-lang-selector__list::-webkit-scrollbar {
  width: 4px;
  background: var(--color-gray);
  border-radius: 4px;
}

.header-lang-selector__list::-webkit-scrollbar-thumb {
  background: #b0b3c4;
  border-radius: 4px;
}

.open .header-lang-selector__list {
  display: block;
}

.header-lang-selector__img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-bottom: 0;
}

.header-lang-selector__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px 8px 12px;
}

.header-lang-selector__item:first-of-type {
  padding-top: 8px;
}

.current-lang::after {
  content: url(../images/lang-check.svg);
  position: relative;
  top: 1px;
  left: 10px;
}

.header-lang-selector__icon {
  margin-right: 12px;
}

.header-lang-selector__text {
  color: var(--color-text-main);
}

.header-lang-selector__item:hover .header-lang-selector__text {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .header-lang-selector__list {
    top: 45px;
  }
}
/* HEADER LANG SELECTOR END  */
