/* ============================================
   ГЛАВНЫЕ СТИЛИ
   Сброс + базовая типографика + структура
   ============================================ */

/* === СБРОС === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  line-height: 1.6;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 42px;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

h2 {
  font-size: 32px;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

strong {
  font-weight: 600;
  color: var(--card-foreground);
}

/* === СЕКЦИИ === */
.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  text-align: left;
  margin-bottom: 32px;
  color: var(--foreground);
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted-foreground);
  margin-top: -20px;
  margin-bottom: 40px;
}

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-small { font-size: 14px; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.hidden-mobile { display: block; }
.hidden-desktop { display: none; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .section { padding: var(--space-2xl) 0; }
  .section-title { font-size: 24px; }
  .hidden-mobile { display: none; }
  .hidden-desktop { display: block; }
}