/* ============================================
   Мобильное сендвич-меню AleYoga
   Подключается ПОСЛЕ основного styles.css
   ============================================ */

/* Кнопка-гамбургер — скрыта на десктопе */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Мобильная адаптация (≤768px)
   ============================================ */
@media (max-width: 768px) {

  .site-header .header-inner {
    flex-wrap: wrap;
    position: relative;
    align-items: center;
  }

  /* Логотип помещается по ширине */
  .logo-wrap {
    max-width: 60%;
  }
  .logo-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  /* Меню + переключатель языков сворачиваются в панель */
  .header-right {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 14px;
  }

  .header-right.is-open {
    display: flex;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .lang-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
}
