.header {
  z-index: 99;
  position: fixed;
  width: 100%;
  padding-inline: 30px;
  padding-block: 30px;
  background-color: #f4f4f4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1019607843);
  inset: 0% 0% auto;
  font-family: "Montserrat", sans-serif;
}
@media screen and (max-width: 767px) {
  .header {
    padding-block: 20px;
  }
}
@media screen and (max-width: 479px) {
  .header {
    padding-inline: 20px;
  }
}
.header ul,
.header li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.header a {
  text-decoration: none;
}
.header h1,
.header h2,
.header h3,
.header h4,
.header h5,
.header h6,
.header p {
  margin-top: 0px;
  margin-bottom: 0px;
}
.header button {
  cursor: pointer;
  border: none;
  padding: 0;
}
.header__container {
  max-width: 1224px;
  margin-inline: auto;
  width: 100%;
}
@media screen and (max-width: 991px) {
  .header__container {
    max-width: 728px;
  }
}
.header__content {
  display: flex;
  align-items: center;
}
@media screen and (min-width: 992px) {
  .header__content {
    justify-content: space-between;
  }
}
@media screen and (max-width: 991px) {
  .header__content {
    gap: 25px;
  }
}
.header__logo {
  position: relative;
  z-index: 99;
  opacity: 1;
  display: block;
  max-width: 115px;
  flex-shrink: 0;
}
@media screen and (max-width: 991px) {
  .header__logo {
    margin-inline-end: auto;
  }
}
.header__logo img {
  width: 100%;
}
.header__burger {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  position: relative;
}
@media screen and (min-width: 992px) {
  .header__burger {
    display: none;
  }
}
@media screen and (max-width: 991px) {
  .header__burger {
    position: relative;
    z-index: 99;
  }
}
.header__burger::before, .header__burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 5px;
  background-color: #000;
  transition: all 0.3s;
}
.header__burger::before {
  top: 0;
}
.header__burger::after {
  bottom: 0;
}
.header__burger span {
  width: 100%;
  height: 2px;
  border-radius: 5px;
  background-color: #000;
  transition: all 0.3s;
}
.header__burger.burger-clicked span {
  width: 0;
  transition: all 0.3s;
}
.header__burger.burger-clicked::before {
  rotate: -45deg;
  left: 1px;
  top: 49%;
  transform: translateY(-50%);
  transition: all 0.3s;
}
.header__burger.burger-clicked::after {
  rotate: 45deg;
  bottom: 40%;
  transform: translateY(-50%);
  transition: all 0.3s;
}

.header-overlay {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4f4f4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1019607843);
}

.menu {
  position: relative;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  row-gap: 10px;
  width: 100%;
}
@media (max-width: 991px) {
  .menu {
    position: absolute;
    z-index: 1;
    top: -1000%;
    left: 0;
    align-items: flex-end;
    flex-direction: column;
    padding: 140px 20px 20px;
    background-color: #fff;
    transition: top 0.6s;
  }
  .menu.menu-open {
    transition: top 0.3s;
    top: 0;
  }
}
@media (max-width: 767px) {
  .menu {
    padding-top: 90px;
  }
}
.menu__list {
  display: flex;
  align-items: center;
  column-gap: 38px;
  row-gap: 3px;
}
@media (max-width: 1200px) {
  .menu__list {
    column-gap: 34px;
  }
}
@media (max-width: 991px) {
  .menu__list {
    width: 100%;
    align-items: flex-end;
    flex-direction: column;
    row-gap: 10px;
  }
}
.menu__link {
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 170%;
  color: rgba(10, 9, 21, 0.8);
  opacity: 0.6;
}
.menu__link:hover {
  opacity: 1;
}
.menu__action {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .menu__action--menu {
    display: none;
  }
}
@media (max-width: 991px) {
  .menu__action--menu {
    width: 100%;
    row-gap: 10px;
    align-items: flex-end;
    flex-direction: column-reverse;
  }
  .menu__action--menu .menu__button {
    padding: 8px 18px;
  }
}
.menu__action--header {
  position: relative;
  z-index: 99;
}
@media (max-width: 767px) {
  .menu__action--header {
    display: none;
  }
}
.menu__action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media screen and (max-width: 767px) {
  .menu__action-buttons {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}
.menu__button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid #265742;
  border-radius: 16px;
  padding: 15px 24px;
}
.menu__button:hover {
  opacity: 0.8;
  background-color: #265742;
}
.menu__button:hover p {
  color: #fff;
}
.menu__button p {
  font-size: 16px;
  color: #265742;
  line-height: 150%;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.custom-language-switcher {
  position: relative;
  display: inline-block;
  font-family: Montserrat, sans-serif;
  user-select: none;
}

.custom-language-switcher.mobile,
.button-wrap.mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .custom-language-switcher.mobile {
    display: inline-block;
    align-self: flex-end;
  }
  .button-wrap.mobile {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }
  .button-wrap.mobile .header-btn {
    padding: 8px 18px;
  }
}
.current-lang {
  padding: 8px 12px;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 120%;
  color: #265742;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-arrow {
  transition: all 0.3s ease-in-out;
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  transform: translate(-50%);
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 40px;
}

.lang-item {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  color: #265742;
  opacity: 0.8;
}

.custom-language-switcher:hover .dropdown {
  display: block;
}

.custom-language-switcher:hover .lang-arrow {
  transform: rotate(0deg);
}

.custom-language-switcher.active .dropdown {
  display: block;
}

.custom-language-switcher.active .lang-arrow {
  transform: rotate(0deg);
}