.mobile-menu-toggle,
.mobile-drawer,
.mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 740px) {
  .mobile-nav {
    display: none;
  }

  .topbar {
    justify-content: flex-start;
    gap: 13px;
  }

  .topbar strong {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: grid;
    gap: 4px;
    width: 38px;
    height: 38px;
    place-content: center;
    padding: 0;
    border: 1px solid #3d493e;
    border-radius: 7px;
    color: #f4f1e8;
    background: #151a15;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }

  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    border: 0;
    background: rgb(5 7 5 / 72%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
  }

  .mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 21;
    width: min(84vw, 320px);
    min-height: 100dvh;
    padding: 25px 18px 22px;
    flex-direction: column;
    background: #121511;
    border-right: 1px solid #364238;
    transform: translateX(-102%);
    transition: transform .22s cubic-bezier(.2,.8,.2,1);
  }

  .mobile-drawer.open {
    transform: translateX(0);
  }

  .mobile-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
  }

  .mobile-drawer .mark {
    font-size: 29px;
  }

  .drawer-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 7px;
    color: #a8ada5;
    background: #1b211b;
    font-size: 25px;
    line-height: 1;
  }

  .mobile-drawer nav {
    display: grid;
    gap: 6px;
  }

  .mobile-drawer .nav {
    width: 100%;
    font-size: 15px;
  }

  .mobile-drawer .side-foot {
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    transition: none;
  }
}
