/* ===============================================
   CSS ПЕРЕМЕННЫЕ - БЭМ
   =============================================== */

:root {
	/* Цвета */
	--color-primary: #111827;
	--color-secondary: #6b7280;
	--color-tertiary: #9ca3af;
	--color-light: #e5e7eb;
	--color-white: #ffffff;
	--color-black: #000000;
	--color-dark: #1a1a1a;
	--color-red: #dc2626;
	--color-red-dark: #b91c1c;

	/* Синие оттенки */
	--color-blue: #3b82f6;
	--color-blue-dark: #1d4ed8;
	--color-blue-light: #60a5fa;
	--color-blue-lighter: #93bbfc;

	/* Статусные цвета */
	--color-success: #22c55e;
	--color-warning: #f59e0b;
	--color-error: #ef4444;

	/* Градиенты */
	--gradient-primary: linear-gradient(
		135deg,
		var(--color-blue) 0%,
		var(--color-blue-dark) 100%
	);
	--gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
	--gradient-accent: linear-gradient(
		135deg,
		var(--color-blue-light) 0%,
		var(--color-blue) 100%
	);
	--gradient-dark: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);

	/* Типографика */
	--font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, sans-serif;
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	/* Размеры шрифтов */
	--font-size-xs: 0.75rem; /* 12px */
	--font-size-sm: 0.875rem; /* 14px */
	--font-size-base: 1rem; /* 16px */
	--font-size-lg: 1.125rem; /* 18px */
	--font-size-xl: 1.25rem; /* 20px */
	--font-size-2xl: 1.5rem; /* 24px */
	--font-size-3xl: 1.875rem; /* 30px */
	--font-size-4xl: 2.25rem; /* 36px */
	--font-size-5xl: 3rem; /* 48px */

	/* Высота строки */
	--line-height-tight: 1.2;
	--line-height-normal: 1.6;
	--line-height-relaxed: 1.8;
	--line-height-loose: 2;

	/* Размеры */
	--header-height: 80px;
	--header-height-mobile: 70px;
	--container-max-width: 1200px;

	/* Отступы */
	--spacing-xs: 0.25rem; /* 4px */
	--spacing-sm: 0.5rem; /* 8px */
	--spacing-md: 1rem; /* 16px */
	--spacing-lg: 1.5rem; /* 24px */
	--spacing-xl: 2rem; /* 32px */
	--spacing-2xl: 3rem; /* 48px */
	--spacing-3xl: 4rem; /* 64px */
	--spacing-4xl: 6rem; /* 96px */

	/* Радиусы */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-2xl: 32px;
	--radius-full: 9999px;

	/* Тени */
	--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	--shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
	--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

	/* Анимации */
	--transition-fast: 150ms ease;
	--transition-base: 300ms ease;
	--transition-slow: 500ms ease;
	--transition-slower: 700ms ease;

	/* Easing функции */
	--ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Z-индексы */
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-fixed: 300;
	--z-modal-backdrop: 400;
	--z-modal: 500;
	--z-popover: 600;
	--z-tooltip: 700;
	--z-notification: 800;
	--z-loading: 9999;

	/* Прозрачности для фонов */
	--bg-opacity-95: rgba(26, 26, 26, 0.95);
	--bg-opacity-98: rgba(26, 26, 26, 0.98);
	--bg-white-opacity-05: rgba(255, 255, 255, 0.05);
	--bg-white-opacity-10: rgba(255, 255, 255, 0.1);
	--bg-white-opacity-20: rgba(255, 255, 255, 0.2);

	/* Размеры экранов для медиа-запросов */
	--screen-xs: 375px;
	--screen-sm: 640px;
	--screen-md: 768px;
	--screen-lg: 1024px;
	--screen-xl: 1280px;
	--screen-2xl: 1536px;
}

/* Темная тема (опционально) */
/* @media (prefers-color-scheme: dark) {
	:root {
	}
} */

/* Режим высокой контрастности */
@media (prefers-contrast: high) {
	:root {
		--shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.2);
		--shadow-md: 0 0 0 2px rgba(0, 0, 0, 0.2);
		--shadow-lg: 0 0 0 3px rgba(0, 0, 0, 0.2);
	}
}

/* Режим уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
	:root {
		--transition-fast: 0ms;
		--transition-base: 0ms;
		--transition-slow: 0ms;
		--transition-slower: 0ms;
	}
}
