/* ============================================================
   RESET — Единый стиль скроллов и базовые сбросы
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::placeholder {
  color: var(--text-4);
}

/* ============================================================
   ЕДИНЫЙ СТИЛЬ СКРОЛЛОВ — бирюзовые
   ============================================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-full);
  margin: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3fc7e0 0%, #a8e6f0 100%);
  border-radius: var(--r-full);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5dd4e8 0%, #c4eff5 100%);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #3fc7e0 rgba(0, 0, 0, 0.3);
}

/* === Тонкие скроллы === */
.scroll-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scroll-thin::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.scroll-thin::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--r-full);
}

.scroll-thin::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

.scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(0, 0, 0, 0.2);
}