/* style.css */
:root {
  --bg-primary: #f0f2f5;
  --bg-secondary: #e4e7eb;
  --shadow-dark: #d1d5db;
  --shadow-light: #ffffff;
  --accent: #f97316; /* оранжевый */
  --accent-dark: #ea580c;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --card-bg: #ffffff;
  --header-bg: #f9fafb;
  --menu-bg: #ffffff;
  --transition-speed: 0.3s;
  --border-radius: 1.5rem;
}

.dark {
  --bg-primary: #1f2937;
  --bg-secondary: #111827;
  --shadow-dark: #0f172a;
  --shadow-light: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --card-bg: #1e293b;
  --header-bg: #1e293b;
  --menu-bg: #1e293b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Нейроморфные элементы */
.neu-raised {
  background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  border-radius: var(--border-radius);
}

.neu-raised-sm {
  background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  border-radius: 1rem;
}

.neu-inset {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  border-radius: 1rem;
}

.neu-btn {
  background: linear-gradient(145deg, var(--accent-dark), var(--accent));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.neu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.neu-btn:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);
}

/* Карточки */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

/* Хедер */
.header {
  background: var(--header-bg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Навигация */
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}

/* Бургер-меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--menu-bg);
  box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--text-primary);
  padding: 0.4rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.burger-btn:hover {
  background: rgba(249, 115, 22, 0.1);
}

/* Тёмная тема - переключатель */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(249, 115, 22, 0.1);
}

/* Утилиты */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Flash messages */
.flash {
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.flash-success {
  background: #d1fae5;
  color: #065f46;
}

.flash-danger {
  background: #fee2e2;
  color: #991b1b;
}

.flash-warning {
  background: #fef3c7;
  color: #92400e;
}

.flash-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Адаптивность */
@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}
:root {
  --neu-bg-primary: #e6e9ef;
  --neu-bg-secondary: #d1d5db;
  --neu-shadow-dark: #b8bcc2;
  --neu-shadow-light: #ffffff;
  --neu-primary: #f97316;         /* оранжевый */
  --neu-primary-dark: #ea580c;
  --transition-fast: 150ms;
  --transition-normal: 300ms;
}

.dark {
  --neu-bg-primary: #374151;
  --neu-bg-secondary: #1f2937;
  --neu-shadow-dark: #111827;
  --neu-shadow-light: #4b5563;
}

/* ... все остальные классы .neu-*, body, header, etc. ... */
/* Добавляем стили для кнопки темы */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}