/* меню */

.header {
  top: 0;
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 50px;
  gap: 20px 40px;
  padding: var(--pad2);
  line-height: 30px;
  background: var(--mint);
  box-shadow: 0 2px 2px 0px rgba(110, 130, 121, .7);
  z-index: 2;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mint);
  box-shadow: 0 2px 2px 0px rgba(110, 130, 121, .7);
  z-index: 2;
}

.header .container {
  width: 100%;
}

.header_body {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo {
  flex: 0 0 45px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.header_logo img {
  max-width: 100%;
  display: block;
  opacity: .5;
}

.header_logo img:hover {
  opacity: 1;
  cursor: pointer;
}

.header_burger {
  display: none;
}

.header_list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
  gap: 20px;
}

.header_list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_link {
  color: var(--light);
}


/* ===== Выпадающий список языков ===== */
.language-dropdown {
    position: relative;
    list-style: none;
    cursor: pointer;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--main);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.lang-btn.active .lang-arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #2c3e50;
    border-radius: 8px;
    padding: 5px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    margin: 0;
    padding: 0;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #FCF8D6;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Текущий язык в меню (можно подсветить) */
.lang-option.active-lang {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    pointer-events: none;
}

@media (max-width: 767px) {

  body.lock {
    overflow: hidden;
  }

  /* адаптивное меню */

  .header_body {
    height: 50px;
  }

  .header_logo {
    flex: 0 0 40px;
  }

  .header_burger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 3;
    cursor: pointer;
  }

  .header_burger span {
    position: absolute;
    background-color: #FCF8D6;
    width: 100%;
    height: 2px;
    left: 0;
    top: 9px;
    transition: all .3s ease 0s;
  }

  .header_burger:before,
  .header_burger:after {
    content: '';
    background-color: #FCF8D6;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all .3s ease 0s;
  }

  .header_burger:before {
    top: 0;
  }

  .header_burger:after {
    bottom: 0;
  }

  .header_burger.active:before {
    transform: rotate(45deg);
    top: 9px;
  }

  .header_burger.active:after {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  .header_burger.active span {
    transform: scale(0);
  }

  .header_menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(110, 130, 121, 0.9);
    padding: 70px 0 0 0;
    transition: all .3s ease 0s;
  }

  .header_menu.active {
    top: 0;
    transition: all .3s ease 0s;
  }

  .header_list {
    display: block;
  }

  .header_list > li {
    margin: 20px 0 0 20px;
  }

  .header_link {
    text-transform: uppercase;
  }

  /* ===== Для мобильной версии ===== */
  .lang-btn {
    justify-content: center;
  }

  .lang-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: all 0.3s ease;
  }

  .lang-menu.open {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 0;
    width: fit-content;
  }

  .lang-option {
    padding: 10px 15px;
    font-size: 16px;
  }

  .hero_container {
    width: 100%;
  }

  .hero_links {
    flex-wrap: wrap;
  }

  .hero_links a {
    width: 50px;
  }

  .hero_links a span {
    display: none;
  }

}