/* Подключение шрифта Montserrat для шаблона universelite_s1 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Применение шрифта ко всему шаблону */
body,
html,
* {
    font-family: 'Montserrat', sans-serif !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6,
.title, .heading {
    font-family: 'Montserrat', sans-serif !important;
}

/* Кнопки и ссылки */
a, button, input, textarea, select {
    font-family: 'Montserrat', sans-serif !important;
}

/* ========================================
   ИСКЛЮЧЕНИЯ ДЛЯ ИКОНОЧНЫХ ШРИФТОВ
   Задача #13: исправление иконок в мобильной шапке
   ======================================== */

/* Glyphter — иконки меню, поиска, корзины (мобильная версия) */
.glyph-icon-menu-icon,
.glyph-icon-menu-icon:before,
.glyph-icon-loop,
.glyph-icon-loop:before,
.glyph-icon-cancel,
.glyph-icon-cancel:before,
.glyph-icon-cart,
.glyph-icon-cart:before,
.glyph-icon-cart_hollow,
.glyph-icon-cart_hollow:before,
.glyph-icon-heart,
.glyph-icon-heart:before,
.glyph-icon-user,
.glyph-icon-user:before,
.glyph-icon-compare,
.glyph-icon-compare:before,
[class^="glyph-icon-"],
[class^="glyph-icon-"]:before,
[class*=" glyph-icon-"],
[class*=" glyph-icon-"]:before,
.menu-button-icon,
.menu-button-icon:before,
.menu-panel-button i,
.menu-panel-button i:before {
    font-family: 'Glyphter' !important;
}

/* Font Awesome */
.fa, .fa:before,
.fas, .fas:before,
.far, .far:before,
.fab, .fab:before,
.fal, .fal:before,
.fad, .fad:before,
i.fa, i.fa:before,
i.fas, i.fas:before,
i.far, i.far:before,
i.fab, i.fab:before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", FontAwesome !important;
}

/* Themify Icons */
.ti, .ti:before,
[class^="ti-"], [class^="ti-"]:before,
[class*=" ti-"], [class*=" ti-"]:before {
    font-family: 'themify' !important;
}

/* Simple Line Icons */
[class^="sl-icon-"], [class^="sl-icon-"]:before,
[class*=" sl-icon-"], [class*=" sl-icon-"]:before {
    font-family: 'simple-line-icons' !important;
}

/* Intec Icons */
[class^="intec-icon"], [class^="intec-icon"]:before,
[class*=" intec-icon"], [class*=" intec-icon"]:before,
.intec-cl-svg {
    font-family: 'intec-icons', 'intec' !important;
}

/* Material Icons */
.material-icons, .material-icons:before {
    font-family: 'Material Icons' !important;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ ПОМОЩИ
   (Доставка, Оплата и др.)
   ======================================== */

/* Применение Montserrat к контенту страниц Help (Доставка, Оплата) */
.intec-content,
.intec-content *,
.intec-content h1,
.intec-content h2,
.intec-content h3,
.intec-content h4,
.intec-content h5,
.intec-content h6,
.intec-content p,
.intec-content span,
.intec-content div,
.intec-content li,
.intec-content td,
.intec-content th,
.intec-content a,
.intec-content strong,
.intec-content b,
.intec-content i:not(.fa):not(.fas):not(.far):not(.fab):not(.ti):not([class*="icon"]):not([class*="glyph"]) {
    font-family: 'Montserrat', sans-serif !important;
}

/* Основной контент страницы */
.intec-content-wrapper,
.intec-content-wrapper *,
#workarea,
#workarea *,
.workarea-block,
.workarea-block *,
main,
main * {
    font-family: 'Montserrat', sans-serif !important;
}

/* Контент, вложенный в Bitrix-компоненты */
.intec-ui-p-t-5,
.intec-ui-p-b-20,
[class*="intec-ui-p-"],
[class*="intec-ui-m-"] {
    font-family: 'Montserrat', sans-serif !important;
}

/* Исключения для иконок внутри контента */
.intec-content .fa,
.intec-content .fas,
.intec-content .far,
.intec-content .fab,
.intec-content .ti,
.intec-content [class^="icon-"],
.intec-content [class*=" icon-"],
.intec-content [class^="glyph-icon-"],
.intec-content [class*=" glyph-icon-"] {
    font-family: inherit !important;
}

/* ========================================
   Задача #9: Закруглённые углы, скрытие кнопок, соцсети
   ======================================== */

/* --- 1. Закруглённые углы картинок в Базе знаний --- */
/* Общий селектор для всех шаблонов news.list (list-1, reviews-list и др.) */
.ns-bitrix.c-news-list .news-list-item-picture {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.ns-bitrix.c-news-list .news-list-item-image {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* Дополнительно — для шаблона reviews-list (боевой сайт) */
.ns-bitrix.c-news-list.c-news-list-reviews-list .news-list-item-picture {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* --- 2. Закруглённые углы картинок в Услугах --- */
.ns-bitrix.c-catalog-section.c-catalog-section-services-tile-2 .catalog-section-item-picture {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.ns-bitrix.c-catalog-section.c-catalog-section-services-tile-2 .catalog-section-item-picture a {
    border-radius: 10px !important;
    display: block;
}

.ns-bitrix.c-catalog-section.c-catalog-section-services-tile-2 .catalog-section-item-wrapper {
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* --- 3. Скрыть кнопку «Войти» --- */
/* Десктопная шапка — панель авторизации */
.widget-authorization-panel {
    display: none !important;
}

/* Десктопная шапка — иконка авторизации */
.widget-authorization-icons {
    display: none !important;
}

/* Мобильное меню — кнопка авторизации */
.menu-authorization {
    display: none !important;
}

/* --- 4. Скрыть кнопку «Отложенные» / «Избранные» --- */
/* Мобильная нижняя панель — кнопка Избранные (ссылка на delay=Y) */
.c-panel .widget-item-container:has(a[href*="delay=Y"]) {
    display: none !important;
}

/* Запасной вариант без :has() для старых браузеров */
a.widget-item[href*="delay=Y"] {
    display: none !important;
}

/* Мобильное меню — кнопка Отложенные */
.menu-basket-panel-button[href*="delay=Y"],
a.menu-basket-panel-button[href*="delay=Y"] {
    display: none !important;
}

/* Контейнер кнопки Отложенные в мобильном меню */
.menu-basket-panel-button-wrap:has(a[href*="delay=Y"]) {
    display: none !important;
}

/* --- 5. Соцсети: оставить только ВК --- */
/* Десктопная шапка — скрыть все соцсети кроме ВК */
.widget-panel-social-item-wrap:has([data-social-icon]:not([data-social-icon="VK"])) {
    display: none !important;
}

/* Общие виджеты соцсетей — скрыть все кроме ВК */
.widget-social-item:has([data-social-icon]:not([data-social-icon="VK"])) {
    display: none !important;
}

/* Мобильное меню — скрыть все соцсети кроме ВК */
.menu-social-item:not(:has(.vk)) {
    display: none !important;
}

/* Футер — скрыть все соцсети кроме ВК */
.widget-social-items .widget-social-item:has([data-social-icon]:not([data-social-icon="VK"])) {
    display: none !important;
}

/* Запасные селекторы для скрытия конкретных иконок соцсетей (без :has) */
a.widget-social-item:not([href*="vk.com"]) {
    display: none !important;
}

/* Скрытие скрытого блока "ещё" для соцсетей */
.widget-panel-social-item-hidden-wrap {
    display: none !important;
}

/* ========================================
   Задача #11: Закруглённые углы картинок анонса акций на главной
   ======================================== */
.widget.c-shares.c-shares-template-1 .widget-item-picture {
    border-radius: 10px !important;
    overflow: hidden !important;
}
.widget.c-shares.c-shares-template-1 .widget-item {
    overflow: hidden !important;
}
