/* ==========================================================================
   КОРПОРАТИВНАЯ СИСТЕМА ДИЗАЙНА - CORPORATE DESIGN SYSTEM
   ========================================================================== */

/* ==========================================================================
   CSS ПЕРЕМЕННЫЕ ДЛЯ ТЕМ - CSS Variables for Themes
   ========================================================================== */

:root {
  /* ========================================================================
     БАЗОВЫЕ ПЕРЕМЕННЫЕ - Base Variables
     ======================================================================== */
  
  /* Типографика */
  --font-family: ui-sans-serif, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Отступы */
  --space-xs: 4px;
  --space-sm: 8px;
  --space: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* Переходы */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   БАЗОВЫЕ СТИЛИ - Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-normal);
  font-size: var(--font-size);
  font-weight: var(--font-weight-normal);
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   БАЗОВЫЕ СТИЛИ КОМПОНЕНТОВ - Base Component Styles
   ========================================================================== */

/* Утилитарные классы */
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-center { text-align: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-5 { margin-bottom: var(--space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space); }
.mt-4 { margin-top: var(--space-md); }
.mt-5 { margin-top: var(--space-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space); }
.p-4 { padding: var(--space-md); }
.p-5 { padding: var(--space-lg); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ==========================================================================
   АДАПТИВНОСТЬ - Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding-left: var(--space);
    padding-right: var(--space);
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: var(--space);
    padding-right: var(--space);
  }
}

/* ==========================================================================
   ДОСТУПНОСТЬ - Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
