/**
 * Подключение шрифтов сайта.
 * Подключается из app/layout.tsx как /css/fonts.css
 *
 * Safari (в т.ч. старые iOS): не использовать font-weight: «диапазон» со статичным woff2 —
 * правило могло не применяться. Отдельные @font-face на вес + только url() — без local():
 * иначе установленный «Bebas Neue» без кириллицы перехватывает и текст ломается.
 */

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 700;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 800;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

/**
 * В старых стилях проекта шрифт используется как "Bebas_Neue" — тот же файл, те же веса.
 */
@font-face {
	font-family: "Bebas_Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas_Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas_Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas_Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 700;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: "Bebas_Neue";
	font-style: normal;
	font-display: swap;
	font-weight: 800;
	src:
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff2") format("woff2"),
		url("/fonts/Bebas_Neue/font/BebasNeueCyrillic.woff") format("woff");
}

@font-face {
	font-family: Montserrat;
	src: url("/fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

/* Jost (self-host). Раньше тянули Google Fonts — теперь локальные variable TTF. */
@font-face {
	font-family: Jost;
	src: url("/fonts/Jost/Jost-VariableFont_wght.ttf") format("truetype");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: Jost;
	src: url("/fonts/Jost/Jost-Italic-VariableFont_wght.ttf") format("truetype");
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
}
