:root {
  /* Основные цвета */
  --primary-color: #4361ee;
  --primary-light: #4895ef;
  --primary-rgb: 67, 97, 238;
  --accent-color: #f72585;
  --success-color: #06d6a0;
  --warning-color: #ffd166;
  --error-color: #ef476f;
  
  /* Светлая тема */
  --background-light: #f8f9fa;
  --card-bg-light: #ffffff;
  --text-primary-light: #212529;
  --text-secondary-light: #6c757d;
  --border-light: #dee2e6;
  
  /* Темная тема */
  --background-dark: #121212;
  --card-bg-dark: #1e1e1e;
  --text-primary-dark: #f8f9fa;
  --text-secondary-dark: #adb5bd;
  --border-dark: #2a2a2a;
  
  /* Общие значения */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Система отступов */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Размеры шрифтов */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
}

/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--background-light);
  color: var(--text-primary-light);
  line-height: 1.6;
  transition: var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-mode {
  background: var(--background-dark);
  color: var(--text-primary-dark);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

p {
  margin-bottom: var(--spacing-md);
}

/* Улучшения доступности */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

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