/* ============================================
   SAZGER — базовые стили
   Переменные, шрифты, сброс
   ============================================ */

/* --- Шрифты --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS-переменные --- */
:root {
  /* Цвета фона */
  --color-bg: #0d1117;
  --color-bg-deep: #06080c;
  --color-surface: #161b22;
  --color-surface-2: #1c2330;

  /* Цвета текста */
  --color-text: #f3f4f6;
  --color-text-secondary: #d1d5db;
  --color-text-muted: #9ca3af;

  /* Акценты Sazger — тёплая музыкальная палитра */
  --color-accent-1: #E8B04B;      /* золото — саз, мелодия */
  --color-accent-2: #00AFCA;      /* бирюза — современность */
  --color-accent-3: #7A1832;      /* бордо — глубина */
  --color-accent-4: #FEC50C;      /* янтарь — энергия */

  /* Стекло */
  --color-glass-bg: rgba(255, 255, 255, 0.06);
  --color-glass-border: rgba(255, 255, 255, 0.10);

  /* Виньетка */
  --color-vignette: rgba(0, 0, 0, 0.45);

  /* Шрифты */
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Размеры */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Отступы */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.7s ease;
}

/* --- Сброс --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Типографика --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
}

p {
  line-height: 1.6;
  color: var(--color-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-1);
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Утилиты --- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Скроллбар --- */
::-webkit-scrollbar {
  width: 6px;
  height: 0; /* убрать горизонтальный скроллбар */
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 176, 75, 0.3);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 176, 75, 0.5);
}

/* --- Выделение текста --- */
::selection {
  background: var(--color-accent-1);
  color: var(--color-bg);
}

/* --- Уважение к настройкам пользователя --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}