.toolbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.toolbar__hamburger:focus {
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

.toolbar__hamburger span {
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
  display: block;
}

.toolbar__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.toolbar__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.toolbar__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.toolbar__mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: #fff;
  border-top: 1px solid #d0d7de;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
  -webkit-overflow-scrolling: touch;
}

.toolbar__mobile-menu--open {
  transform: translateX(0);
}

.toolbar__mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.toolbar__mobile-nav-link {
  display: block;
  padding: 16px 24px;
  color: #57606a;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f6f8fa;
  transition: background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.toolbar__mobile-nav-link:hover,
.toolbar__mobile-nav-link:focus {
  background-color: #f6f8fa;
  color: #1f2328;
  outline: none;
}

.toolbar__mobile-nav-link--active {
  color: #000;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.06);
}

.toolbar__mobile-nav-link--active:hover,
.toolbar__mobile-nav-link--active:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

.toolbar__mobile-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.toolbar__mobile-overlay--visible {
  opacity: 1;
}


@media (prefers-reduced-motion: reduce) {
  .toolbar__hamburger span,
  .toolbar__mobile-menu,
  .toolbar__mobile-nav-link,
  .toolbar__mobile-overlay {
    transition: none;
  }
}

