/*
  DSTRC Menu (минимальный, без внешних библиотек)
  - Семантичный nav + wp_nav_menu()
  - Адаптив: простое раскрытие на мобильных
*/

/* Доступность */
.screen-reader-text{
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* Контейнер навигации */
.dstrc-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  max-inline-size: 100%;
}

/* Бренд */
.dstrc-brand{
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

/* Список меню */
.dstrc-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.dstrc-menu a{
  display: inline-block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: inherit;
}

/* Toggle (по умолчанию скрыт) */
.dstrc-nav-toggle{
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  color: inherit;
}

.dstrc-nav-toggle-icon{
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.dstrc-nav-toggle-icon::before,
.dstrc-nav-toggle-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.dstrc-nav-toggle-icon::before{ top: -7px; }
.dstrc-nav-toggle-icon::after{ top: 7px; }

/* Footer menu */
.dstrc-footer-nav{
  padding: 1rem;
}

/* Mobile */
@media (max-width: 900px){
  .dstrc-nav{
    flex-wrap: wrap;
    align-items: center;
  }

  .dstrc-nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dstrc-primary-nav{
    width: 100%;
    display: none;
  }

  .dstrc-nav.dstrc-nav-is-open .dstrc-primary-nav{
    display: block;
  }

  .dstrc-menu{
    flex-direction: column;
    gap: 0.25rem;
  }

  .dstrc-menu a{
    padding: 0.55rem 0;
  }
}
