.burger {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  justify-self: end;
  grid-column: 3;
  z-index: 60;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--foreground);
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-menu {
  display: contents;
}

@media (max-width: 800px) {
  .site-header {
    position: relative;
    z-index: 60;
  }
  .site-header-bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .burger {
    display: inline-flex;
    grid-column: 2;
    margin-right: -6px;
  }
  .lang-switch {
    grid-column: auto;
  }
  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 70;
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px 28px;
    background: oklch(0.175 0 0);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px oklch(0 0 0 / 40%);
  }
  .site-menu[data-open="true"] {
    display: flex;
  }
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    justify-self: stretch;
    grid-column: auto;
  }
  .site-nav a {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 16px;
  }
  .site-nav a:hover {
    background: oklch(0.22 0 0);
  }
  .lang-switch {
    justify-self: stretch;
    grid-column: auto;
    width: 100%;
  }
  .lang-switch-btn {
    width: 100%;
    justify-content: center;
  }
  .lang-menu {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
}

@media (max-width: 580px) {
  .site-menu {
    padding-inline: 20px;
  }
}
