/* ============================================
COMPONENT: Typography
Описание: Стили для типографики - заголовки, параграфы, ссылки и другие текстовые элементы
Версия: 1.01
============================================ */

/* === БАЗОВЫЕ СТИЛИ ТЕКСТА === */
body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
}

/* === ЗАГОЛОВКИ === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

/* === ПАРАГРАФЫ === */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* === ССЫЛКИ === */
a {
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary);
    outline: none;
}

/* === СПЕЦИАЛЬНЫЕ КЛАССЫ === */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.section-title-centered {
    text-align: center;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
    
    h3 {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    body {
        font-size: var(--font-size-sm);
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    h4 {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-lg);
    }
}
