/* Типографика - основной акцент на читаемости и современном стиле */

/* Импорт шрифтов уже сделан в style.css */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap'); */

:root {
    /* Размеры шрифтов - эти переменные могут использоваться для более гранулярного контроля, 
       если стандартные h1-h6 и body не подходят для всех случаев. 
       Убедимся, что они не конфликтуют с clamp() в style.css, а дополняют.
    */
    --font-size-xs: 0.78rem;    /* ~12.5px */
    --font-size-sm: 0.9rem;     /* ~14.4px */
    --font-size-base: 1rem;     /* 16px (стандарт) */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.3rem;     /* ~20.8px */
    --font-size-xl: 1.6rem;     /* ~25.6px */
    --font-size-2xl: 1.95rem;   /* ~31.2px */
    --font-size-3xl: 2.4rem;    /* ~38.4px */
    --font-size-4xl: 3.1rem;    /* ~49.6px */
    
    /* Для display-title используется clamp в style.css, здесь переменная как fallback или для других целей */
    --font-size-display-alt: clamp(3rem, 6.5vw, 5rem);

    /* Высота строки */
    --line-height-tighter: 1.15;
    --line-height-tight: 1.25;
    --line-height-normal: 1.55;
    --line-height-relaxed: 1.8;
    --line-height-loose: 2.0;

    /* Межбуквенный интервал */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0em;
    --letter-spacing-wide: 0.03em;
    --letter-spacing-wider: 0.06em;
}

/* --- Стили для заголовков --- */
/* Основные стили h1-h6 определены в style.css через clamp(). 
   Здесь можно добавить специфичные настройки, если они не конфликтуют.
   Например, для h4-h6, которые не используют clamp в style.css по умолчанию.
*/

h4, .h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-heading-color);
    font-size: clamp(1.4rem, 2.8vw, 2.0rem); /* Адаптивный размер для h4 */
    letter-spacing: var(--letter-spacing-tight);
}

h5, .h5 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: var(--line-height-normal);
    color: var(--text-heading-color);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem); /* Адаптивный размер для h5 */
    letter-spacing: var(--letter-spacing-normal);
}

h6, .h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    line-height: var(--line-height-normal);
    color: var(--text-light-color); /* Менее важные заголовки могут быть светлее */
    font-size: clamp(1.0rem, 2vw, 1.25rem); /* Адаптивный размер для h6 */
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

/* --- Стили для основного текста --- */
p, .body-text {
    font-family: var(--body-font);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin-bottom: 1.3em; /* Немного увеличил отступ */
}

.text-lead {
    font-family: var(--body-font);
    font-size: var(--font-size-md); /* Крупнее, чем основной текст */
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 1.2em;
}

.small-text {
    font-family: var(--body-font);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--text-light-color);
}

.extra-small-text, .xs-text { 
    font-family: var(--body-font);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
    color: var(--text-light-color);
    letter-spacing: var(--letter-spacing-wide);
}

/* --- Специальные текстовые стили --- */
.display-title {
    font-family: var(--heading-font);
    font-size: var(--font-size-display-alt); /* Может использовать clamp из style.css или эту переменную */
    font-weight: 700; /* В style.css был 800, синхронизируем или выбираем одно */
    line-height: var(--line-height-tighter); /* Более плотно для display */
    letter-spacing: var(--letter-spacing-tighter); 
    color: var(--text-heading-color);
    /* margin-bottom уже есть в style.css у h1 */
}

.text-shadow-soft {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.text-shadow-medium {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider); /* Еще шире для акцента */
}

.text-highlight { /* В style.css это .highlight или .gradient-text */
    color: var(--accent-color); /* Если нужен просто цветной акцент */
    font-weight: 500;
    position: relative;
}


.underlined-heading {
    position: relative;
    display: inline-block; 
    padding-bottom: 0.35em; 
}

.underlined-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%; /* Чуть длиннее */
    height: 3.5px; /* Чуть толще */
    background: var(--accent-gradient); /* Используем акцентный градиент */
    border-radius: 3px;
    transition: width 0.3s var(--transition-ease);
}

.underlined-heading:hover::after {
    width: 100%;
}

.underlined-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Стили для текста статей, если таковые будут */
.article-content p, .article-text p {
    font-family: var(--body-font);
    font-size: var(--font-size-md);
    line-height: var(--line-height-loose); /* Более свободная высота строки для длинных текстов */
    margin-bottom: 1.6em;
    color: var(--text-color);
}

.article-content a, .article-text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover, .article-text a:hover {
    color: var(--accent-color);
    text-decoration-color: var(--accent-color);
}

.article-content h1, .article-text h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: 1em;
}

.article-content h2, .article-text h2 {
    font-size: var(--font-size-3xl);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}
.article-content h3, .article-text h3 {
    font-size: var(--font-size-2xl);
    margin-top: 1.6em;
    margin-bottom: 0.7em;
}
.article-content h4, .article-text h4 {
    font-size: var(--font-size-xl);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

/* Стили для section-title и section-subtitle в style.css уже достаточно хороши */
/* Здесь можно добавить только специфичные модификаторы, если нужны */

.section-title.has-decorated-underline::after {
    content: '';
    display: block;
    width: 80px; /* Фиксированная ширина или процент */
    height: 4px;
    background: var(--accent-gradient);
    margin: 20px auto 0; /* Отступ сверху, центрирование */
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important; /* Добавлено для надежности */
}

/* Цитаты */
blockquote {
    font-family: var(--heading-font);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-light-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
}

blockquote p {
    margin-bottom: 0.5em;
}

blockquote footer, blockquote cite {
    font-family: var(--body-font);
    font-size: var(--font-size-sm);
    color: var(--text-light-color);
    font-style: normal;
    display: block;
    margin-top: 0.8em;
} 