/* Local Font Awesome for НК Моторс */

/* Подключение локального Font Awesome */
@import url('./all.min.css');

/* Fallback для случая если all.min.css не загрузился */
/* В этом случае будут отображаться текстовые символы */

.fas, .fab, .far, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Специфичные веса для разных стилей */
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.far {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Если Font Awesome не загрузился, используем fallback символы */
@supports not (font-family: "Font Awesome 6 Free") {
    /* Fallback только если Font Awesome недоступен */
    .fa-search::before { content: "🔍"; }
    .fa-car::before { content: "🚗"; }
    .fa-trophy::before { content: "🏆"; }
    .fa-wrench::before { content: "🔧"; }
    .fa-tools::before { content: "🛠️"; }
    .fa-gear::before, .fa-cog::before, .fa-cogs::before { content: "⚙️"; }
    .fa-laptop-code::before { content: "💻"; }
    .fa-stop-circle::before { content: "🔴"; }
    .fa-snowflake::before { content: "❄️"; }
    .fa-bolt::before { content: "🔋"; }
    .fa-ruler-combined::before { content: "📐"; }
    .fa-wind::before { content: "💨"; }
    .fa-fire::before { content: "🔥"; }
    .fa-briefcase::before { content: "💼"; }
    .fa-chart-bar::before { content: "📊"; }
    .fa-clock::before { content: "⏰"; }
    .fa-clipboard-list::before { content: "📋"; }
    .fa-map-marker-alt::before { content: "📍"; }
    .fa-envelope::before { content: "✉️"; }
    .fa-phone::before { content: "📞"; }
    .fa-truck::before { content: "🚚"; }
    .fa-viber::before { content: "📲"; }
}

/* Принудительный белый цвет для Viber иконки */
.fab.fa-viber {
    color: white !important;
}

/* Дополнительная совместимость с альтернативными названиями иконок */
.fa-magnifying-glass::before { content: var(--fa-search, "🔍"); }
.fa-gear::before { content: var(--fa-cog, "⚙️"); }

/* Отключаем мои старые CSS иконки если Font Awesome загружен */
.fontawesome-loaded .icon {
    display: none;
}