/* Блок с меню */
#menu {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Скрываем стандартную полосу прокрутки */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

#menu::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Контейнер для стрелок (тап-зон) */
.menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Стрелки-кнопки */
.menu-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
/*  z-index: 1; */
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  color: #333;
  touch-action: manipulation;
}

.menu-scroll-btn:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.menu-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.menu-scroll-left {
  left: 0;
}

.menu-scroll-right {
  right: 0;
}

.menu-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Отступы для контента, чтобы не перекрывался кнопками */
#menu {
  padding: 0 50px;
}

/* Адаптив */
@media (max-width: 768px) {
  .menu-scroll-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  #menu {
    padding: 0 35px;
  }
}
