/* ============================================
COMPONENT: Typography
Описание: Стили для типографики - заголовки, параграфы, ссылки для обеспечения читаемости и визуальной иерархии
============================================ */

/* === БАЗОВЫЕ СТИЛИ === */
body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
}

/* === ЗАГОЛОВКИ === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

h6 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

/* === ПАРАГРАФЫ === */
p {
    margin-bottom: var(--spacing-md);
    color: var(--color-gray-600);
}

/* === ССЫЛКИ === */
a {
    color: var(--color-primary);
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    outline: none;
}

/* === СПЕЦИАЛЬНЫЕ КЛАССЫ === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* === АДАПТИВНАЯ ТИПОГРАФИКА === */
@media (max-width: 1024px) {
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 768px) {
    body {
        font-size: var(--font-size-base);
    }
    
    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);
    }
    
    p {
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    body {
        font-size: var(--font-size-sm);
    }
    
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    h4 {
        font-size: var(--font-size-base);
    }
    
    p {
        font-size: var(--font-size-sm);
        line-height: var(--line-height-relaxed);
    }
}
