.ndm-site-menu {
  --ndm-menu-bg: #ffffff;
  --ndm-menu-overlay: rgba(26, 26, 26, 0.84);
  --ndm-menu-text: #111111;
  --ndm-menu-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  --ndm-font-family-base: "Figtree", sans-serif;
  --ndm-font-family-heading: "Raleway", sans-serif;
  --ndm-menu-font: var(--ndm-font-family-base);
  position: relative;
  z-index: 1000008;
}

.ndm-site-menu__toggle {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid #171717;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  font-family: var(--ndm-menu-font);
  z-index: 1000010;
}

.ndm-site-menu__toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  margin: 0 auto;
  border-radius: 999px;
  background: #1f1f1f;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.ndm-site-menu-open .ndm-site-menu__toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.ndm-site-menu-open .ndm-site-menu__toggle span:nth-child(2) {
  opacity: 0;
}

body.ndm-site-menu-open .ndm-site-menu__toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.ndm-site-menu__overlay {
  position: fixed;
  inset: 0;
  background: var(--ndm-menu-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000008;
}

.ndm-site-menu__panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  max-width: 100vw;
  background: var(--ndm-menu-bg);
  box-shadow: var(--ndm-menu-shadow);
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  z-index: 1000009;
}

.ndm-site-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 28px 34px 34px;
  font-family: var(--ndm-menu-font);
}

.ndm-site-menu__top {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ndm-site-menu__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 96px;
  text-decoration: none;
  margin: 0 auto;
}

.ndm-site-menu__brand img {
  display: block;
  max-width: 100%;
  max-height: 128px;
  height: auto;
}

.ndm-site-menu__brand--text {
  color: var(--ndm-menu-text);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ndm-site-menu__close {
  position: absolute;
  top: -8px;
  right: -6px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ndm-site-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndm-site-menu__list li + li {
  margin-top: 5px;
}

.ndm-site-menu__list a {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ndm-item-color);
  color: var(--ndm-menu-text);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ndm-site-menu__list a:hover,
.ndm-site-menu__list a:focus {
  color: var(--ndm-menu-text);
  filter: brightness(0.98);
  transform: translateX(2px);
}

body.ndm-site-menu-open {
  overflow: hidden;
}

body.ndm-site-menu-open .ndm-site-menu__overlay {
  opacity: 1;
  visibility: visible;
}

body.ndm-site-menu-open .ndm-site-menu__panel {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .ndm-site-menu__toggle {
    top: 18px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    z-index: 1000010;
  }

  .ndm-site-menu__toggle span {
    width: 16px;
    height: 2px;
  }

  .ndm-site-menu__panel {
    width: 100vw;
  }

  .ndm-site-menu__inner {
    padding: 24px 24px 28px;
  }

  .ndm-site-menu__top {
    min-height: 110px;
  }

  .ndm-site-menu__brand {
    max-width: 84px;
  }

  .ndm-site-menu__list a {
    font-size: 12px;
  }
}
