	/* Бургер */
.burger {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

/* Активное состояние (крестик) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* --- ПРАВАЯ ПАНЕЛЬ --- */
.side-menu {
  position: fixed;
  top: 0;
  right: -220px; /* спрятано справа */
  width: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  z-index: 1000;
  overflow: scroll;
  background-color: rgba(255, 255, 255, 0.3); /* полупрозрачный белый */ 
  backdrop-filter: blur(8px); /* эффект матового стекла */ 
  -webkit-backdrop-filter: blur(8px); /* поддержка для Safari */ 
  border-radius: 8px; /* скруглённые углы */ 
}

.menu-bottom {
  margin-top: auto;   /* ← прижимает вниз */
}

/* Активная панель */
.side-menu.active {
  right: 0; /* выехала и встала справа */
}

.side-menu a{
  display: block;
  color: white;
  padding: 10px 20px;
  opacity: 0;
  transform: translateX(40px);
  transition: 0.4s ease;
}

/* Анимация появления по очереди */
.side-menu.active a{
  opacity: 1;
  transform: translateX(0);
}

.side-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.side-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.side-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.side-menu.active a:nth-child(4) { transition-delay: 0.4s; }
.side-menu.active a:nth-child(5) { transition-delay: 0.5s; }
.side-menu.active a:nth-child(6) { transition-delay: 0.6s; }
.side-menu.active a:nth-child(7) { transition-delay: 0.7s; }

	a{
	  border-radius: 5px;
	  padding: 3px;
    background-color: cornflowerblue;
    color: white;
    margin: 2px;
    margin-top: .3rem;
    display: flex;
    flex-direction: column;
	}
	
	a:hover{
	  background-color: #7b7777;
	}
	
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1001;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}