.mnav,
.mnav *,
.mbnav,
.mbnav * {
  box-sizing: border-box;
}

.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99998;
  visibility: hidden;
  pointer-events: none;
}

.mnav.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mnav__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mnav.is-open .mnav__overlay {
  opacity: 1;
}

.mnav__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 33rem;
  max-width: 88vw;
  background: #111315;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mnav.is-open .mnav__panel {
  transform: translateX(0);
}

.mnav__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 1.6rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mnav__head .header__logo {
  gap: 10px;
  margin-left: 0;
}

.mnav__head .header__logo_img {
  display: block;
  margin-top: 0;
}

.mnav__close {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mnav__close:hover,
.mnav__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.mnav__body {
  flex: 1 1 auto;
  padding: 1rem 1.2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mnav__body .sticky-nav {
  margin-bottom: 0;
}

.mnav__body .sticky-link {
  padding: 1.1rem 1.2rem;
  -webkit-tap-highlight-color: transparent;
}

.mnav__body .sticky-link:hover,
.mnav__body .sticky-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.06);
}

.mnav__body .sticky-icon-text {
  font-size: 1.7rem;
}

.mnav__footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mnav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.6rem;
  padding: 0 1.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #111315;
  text-align: center;
  text-decoration: none;
  background: #ffba2c;
  border-radius: 0.8rem;
}

.mnav__cta--ghost {
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.mbnav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9997;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(17, 19, 21, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mbnav__link {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  text-decoration: none;
  border-radius: 1rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mbnav__link:hover,
.mbnav__link:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.mbnav__link.is-active {
  color: #ffba2c;
}

.mbnav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
}

html.mnav-open,
html.mnav-open body {
  overflow: hidden;
}

@media (max-width: 1279px) {
  .mbnav {
    display: flex;
  }

  .page__footer {
    padding-bottom: calc(7.6rem + env(safe-area-inset-bottom));
  }

  .footer__list-wrap {
    width: 100%;
    margin-left: 0;
    grid-column-gap: 2.4rem;
  }
}

@media (max-width: 767px) {
  .footer__list-wrap {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.6rem;
  }
}

@media (min-width: 1280px) {
  .mnav,
  .mbnav {
    display: none;
  }
}
