/* Хлебные крошки: домашняя ссылка выводится иконкой домика вместо подписи.
   Иконка — «home» из набора UIkit, подключённого в шаблоне (devstack),
   поэтому она совпадает по начертанию с остальными иконками сайта.
   Подпись («Главная» / «Home» / «Główna» / «Галоўная») остаётся в DOM:
   её читают скринридеры и парсеры микроразметки BreadcrumbList,
   визуально она скрыта. Селектор ограничен ссылками на главную каждого
   языка, чтобы крошки без домашнего элемента не подменялись. */

.uk-breadcrumb > :first-child > a[href="/"] > span,
.uk-breadcrumb > :first-child > a[href="/ru"] > span,
.uk-breadcrumb > :first-child > a[href="/pl"] > span,
.uk-breadcrumb > :first-child > a[href="/en"] > span,
.uk-breadcrumb > :first-child > a[href="/be"] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.uk-breadcrumb > :first-child > a[href="/"]::before,
.uk-breadcrumb > :first-child > a[href="/ru"]::before,
.uk-breadcrumb > :first-child > a[href="/pl"]::before,
.uk-breadcrumb > :first-child > a[href="/en"]::before,
.uk-breadcrumb > :first-child > a[href="/be"]::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolygon points='18.65 11.35 10 2.71 1.35 11.35 0.65 10.65 10 1.29 19.35 10.65'/%3E%3Cpolygon points='15 4 18 4 18 7 17 7 17 5 15 5'/%3E%3Cpolygon points='3 11 4 11 4 18 7 18 7 12 12 12 12 18 16 18 16 11 17 11 17 19 11 19 11 13 8 13 8 19 3 19'/%3E%3C/svg%3E") no-repeat 50% 50%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolygon points='18.65 11.35 10 2.71 1.35 11.35 0.65 10.65 10 1.29 19.35 10.65'/%3E%3Cpolygon points='15 4 18 4 18 7 17 7 17 5 15 5'/%3E%3Cpolygon points='3 11 4 11 4 18 7 18 7 12 12 12 12 18 16 18 16 11 17 11 17 19 11 19 11 13 8 13 8 19 3 19'/%3E%3C/svg%3E") no-repeat 50% 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ============================================================================
   Onest — заголовочный шрифт. Локальный, ничего не грузится со сторонних
   сервисов: файлы лежат в /images/fonts/ и отдаются с домена сайта.

   Зачем: штатный Primary font шаблона — Zen Kaku Gothic Antique, японская
   гарнитура. В её woff2 нет ни белорусских «ў Ў і І», ни польских
   «ł Ł ą ć ę ń ś ź ż». unicode-range эти диапазоны обещает, браузер файл
   скачивает, глифа не находит и подставляет системный Times — посимвольно,
   прямо внутри слова. Запасного семейства в правилах шаблона нет вообще.
   У Onest покрытие latin + latin-ext + cyrillic + cyrillic-ext полное
   (проверено замером ширин глифов на живых страницах be/pl).

   Файл вариативный: один woff2 на подмножество закрывает все веса 100–900,
   браузер тянет только те подмножества, которые реально встретились в тексте.

   Селекторы ниже повторяют те, что задают шрифт в theme.<ID>.css. custom.css
   подключается после него, специфичность совпадает — поэтому !important не нужен.
   Правильное место для этой настройки — Customizer → Theme → Fonts; когда
   Primary font там сменят на Onest, весь блок можно удалить.
   Лицензия шрифта — SIL OFL 1.1.
   ========================================================================= */

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/images/fonts/onest-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/images/fonts/onest-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/images/fonts/onest-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(/images/fonts/onest-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

.h1, .uk-h1, h1,
.h2, .uk-h2, h2,
.h3, .uk-h3, h3,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.uk-heading-small, .uk-heading-medium, .uk-heading-large,
.uk-heading-xlarge, .uk-heading-2xlarge, .uk-heading-3xlarge,
.uk-card-title,
.uk-article-title,
.uk-modal-title,
.uk-nav-primary,
.lead, .uk-text-lead,
.uk-logo,
.uk-font-primary,
blockquote {
    font-family: 'Onest', 'Manrope Swap', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Отдельно — специфичность 0,2,0, как в исходном правиле шаблона. */
.uk-accordion-default .uk-accordion-title {
    font-family: 'Onest', 'Manrope Swap', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* === Manrope с font-display: swap ===
   Тема YOOtheme кеширует Google Fonts без font-display, и текст до загрузки файла невидим (PageSpeed: «Используемые шрифты»).
   Те же файлы и те же unicode-range под отдельным именем семейства: повтор @font-face с прежним именем не помогает,
   загружаются оба набора. Если не задан 'Manrope Swap', браузер берёт следующий шрифт из списка — системный. */
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; src: url(../fonts/manrope-86b0b449.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; src: url(../fonts/manrope-4fc414cb.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; src: url(../fonts/manrope-52eba7d8.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; src: url(../fonts/manrope-c8511e23.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; src: url(../fonts/manrope-759b72ed.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url(../fonts/manrope-9eb46324.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; src: url(../fonts/manrope-d37d7cb1.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; src: url(../fonts/manrope-1a09dc33.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; src: url(../fonts/manrope-07266f20.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; src: url(../fonts/manrope-9d9cd6db.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; src: url(../fonts/manrope-2056ba15.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url(../fonts/manrope-1b3093c7.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; src: url(../fonts/manrope-66f768ab.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; src: url(../fonts/manrope-af83c829.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; src: url(../fonts/manrope-b2ac7b3a.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; src: url(../fonts/manrope-2816c2c1.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; src: url(../fonts/manrope-95dcae0f.woff2) format('woff2'); }
@font-face { font-family: 'Manrope Swap'; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; src: url(../fonts/manrope-5408a82a.woff2) format('woff2'); }
:root { --bs-font-sans-serif: 'Manrope Swap', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
html { font-family: 'Manrope Swap', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.uk-breadcrumb > * > *, .uk-font-default { font-family: 'Manrope Swap', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
