.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: rgba(0, 100, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  overflow: visible;
}

body {
  padding-top: 50px;
}

/* Контейнер для логотипов - карусель */
.top-bar-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  max-width: 400px;
}

.top-bar-icons::-webkit-scrollbar {
  display: none;
}

/* Внутренний скролл контейнер */
.top-bar-icons-scroll {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px;
  width: 100%;
  cursor: grab;
  /* Улучшаем производительность скролла */
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch; /* Для iOS */
  overscroll-behavior: contain; /* Предотвращаем bounce эффект */
}

.top-bar-icons-scroll:active {
  cursor: grabbing;
}

/* Убираем задержки при скролле */
.top-bar-icons-scroll * {
  user-select: none; /* Предотвращаем выделение */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Плавные переходы для карусели */
.top-bar-icons {
  transition: all 0.4s ease;
}

.top-bar-icons * {
  transition: all 0.3s ease;
}

/* Градиенты для обрезок по бокам */
.top-bar-icons::before,
.top-bar-icons::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 10;
  pointer-events: none;
}

.top-bar-icons::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 100, 0, 0.8) 0%, transparent 100%);
}

.top-bar-icons::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 100, 0, 0.8) 0%, transparent 100%);
}

.icon {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.icon a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.icon img {
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect */
.icon img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #00ff99);
}

.top-bar {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.top-bar:hover {
  opacity: 1;
}

.top-bar.visible {
  opacity: 1;
}

/* Адаптивность для разных экранов */
@media (max-width: 768px) {
  .top-bar-icons {
    max-width: 300px;
  }
  
  .top-bar-icons::before,
  .top-bar-icons::after {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .top-bar-icons {
    max-width: 250px;
  }
  
  .top-bar-icons::before,
  .top-bar-icons::after {
    width: 25px;
  }
}



