.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__backdrop {
  display: none;
}

html.nav-locked,
html.nav-locked body {
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    padding-top: var(--nav-h, 64px);
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav__burger {
    display: flex;
    color: #fff;
    order: 2;
  }

  .nav__logo { order: 1; }

  .nav--open {
    z-index: 1002;
  }

  .nav--open .nav__backdrop {
    display: block;
    position: fixed;
    top: var(--nav-h, 64px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: rgba(15, 30, 15, 0.45);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    animation: navFadeIn 0.25s ease;
  }

  @keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h, 64px);
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: calc(100vh - var(--nav-h, 64px));
    max-height: calc(100dvh - var(--nav-h, 64px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--nav-bg, #2d5a3d);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  .nav--open .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__links a:last-child { border-bottom: none; }
}
