/* /styles.css */
/* v2.1.0 — Глобальные стили, переменные, сброс */

/* Темизация */
:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  --bg-input: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --border: #e2e8f0;
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --shadow: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-alt: #334155;
  --bg-input: #334155;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #334155;
  --accent: #a78bfa;
  --accent-dark: #8b5cf6;
  --shadow: rgba(0, 0, 0, 0.3);
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Текст */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

small {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Формы */
input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}

/* Скрытие при печати */
@media print {
  .theme-toggle-btn,
  header,
  footer,
  .cta-button {
    display: none !important;
  }
}