/* fonts.css - Локальное подключение шрифтов */

/* Regular (400) */
@font-face {
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*  Medium (500) */
@font-face {
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/*  Bold (700) */
@font-face {
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font Awesome Brands (для соцсетей) */
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-brands-400.woff2') format('woff2');
}

/* Font Awesome Regular */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-regular-400.woff2') format('woff2');
}

/* Font Awesome Solid */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-solid-900.woff2') format('woff2');
}

/* Font Awesome Compatibility */
@font-face {
    font-family: 'FontAwesome';
    font-display: block;
    src: url('../fonts/fontawesome/webfonts/fa-v4compatibility.woff2') format('woff2');
}

/* Базовые стили для всего сайта */
body {
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font Awesome базовые классы */
.fa {
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
}

.fa,
.fas,
.fa-solid,
.far,
.fa-regular,
.fab,
.fa-brands {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fas,
.fa-solid,
.far,
.fa-regular {
    font-family: 'Font Awesome 6 Free';
}

.fab,
.fa-brands {
    font-family: 'Font Awesome 6 Brands';
}

/* Веса для Font Awesome */
.fas,
.fa-solid {
    font-weight: 900;
}

.far,
.fa-regular {
    font-weight: 400;
}

.fab,
.fa-brands {
    font-weight: 400;
}

/* Стили для заголовков */
h1, h2, h3, h4, h5, h6,
.section-title,
.service-title,
.addon-title,
.footer-title {
    font-weight: 700;
    line-height: 1.2;
}

/* Стили для кнопок и элементов с акцентом */
.btn,
.stat-number,
.highlight {
    font-weight: 600;
}

/* Стили для тонкого текста */
.hero-subtitle,
.section-subtitle,
.service-desc,
.addon-desc,
.copyright,
.requisites {
    font-weight: 400;
}

/* Медиа-запрос для улучшения читаемости на ретина-дисплеях */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Фолбэк для очень старых браузеров */
@supports not (font-display: swap) {
    @font-face {
        font-weight: 400;
        font-style: normal;
    }
    
    @font-face {
        font-weight: 700;
        font-style: normal;
    }
}