/* Файл: css/fonts.css */

/* ========================================
   ROBOTO @FONT-FACE (ПОДКЛЮЧЕНИЕ WOFF2)
   ======================================== */

/* 
   ОПТИМИЗАЦИЯ ШРИФТОВ - ТЕКУЩЕЕ СОСТОЯНИЕ:
   ✅ Локальные файлы (fonts/static/)
   ✅ Формат WOFF2 (максимальное сжатие)
   ✅ Preload директивы в HTML
   ✅ font-display: swap (быстрое отображение)
   ✅ Fallback шрифты (Arial, sans-serif)
   
   ДОПОЛНИТЕЛЬНЫЕ ОПТИМИЗАЦИИ (опционально):
   🔧 Подсет шрифтов - оставить только используемые символы
   🔧 Variable fonts - объединить все веса в один файл
   🔧 Self-hosted Google Fonts - автоматическая оптимизация
*/

/* Roboto Regular - основной */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/static/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Рекомендация: добавить unicode-range для подсета */
    /* unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; */
}

/* Roboto Medium - для заголовков */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/static/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Roboto Bold - только для выделения */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/static/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ ШРИФТОВ
   ======================================== */

/* Базовые стили */
body {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 400;  /* Принудительно Regular */
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 18px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    /* Оптимизация отображения текста */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Навигация */
.nav-links a {
    font-family: 'Roboto', Arial, sans-serif;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.96rem;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.5rem;
    display: inline-block;
    line-height: 1.2;
}

/* Выделение текста */
strong, b {
    font-family: 'Roboto', Arial, sans-serif;
}

/* ========================================
   ИКОНКИ (УЛУЧШЕННЫЕ СИМВОЛЫ)
   ======================================== */

/* Гамбургер меню - улучшенная версия */
.fas.fa-bars {
    font-family: Arial, sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.fas.fa-bars::before {
    content: '≡';
    font-size: 1.5em;
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}