/* Кастомный scroll-thumb для экспериментов (как site.css на основном сайте) */
:root {
  --scrollbar-size: 5px;
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
  --scrollbar-thumb-active: rgba(255, 255, 255, 0.38);
}

html[data-theme="light"],
body.scroll-theme-light {
  --scrollbar-thumb: rgba(17, 17, 17, 0.22);
  --scrollbar-thumb-hover: rgba(17, 17, 17, 0.38);
  --scrollbar-thumb-active: rgba(17, 17, 17, 0.5);
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

.scroll-thumb {
  position: fixed;
  top: 0;
  width: var(--scrollbar-size);
  border-radius: 999px;
  background: var(--scrollbar-thumb);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    background-color 0.2s ease;
}

.scroll-thumb.is-visible {
  opacity: 1;
}

.scroll-thumb.is-active {
  background: var(--scrollbar-thumb-hover);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-thumb {
    transition: opacity 0.15s ease;
  }
}
