/*
Theme Name: BISRnewses
Template: newses
Author: BISR
Description: Custom styles for BISR News Portal
*/

/* ============================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */
:root {
    --pri-color: #3973ff;
    --pri-hover: #2a5fd4;
    --text-color: #121026;
    --meta-color: #999;
    --bg-light: #f4f4f4;
    --border-light: #eee;
    --white: #ffffff;
    --headFont: 'Montserrat', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: var(--headFont);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

a { transition: color var(--transition-fast); }
a:hover, a:focus { color: var(--pri-color); }
a:visited, a:focus, .m-header .navbar-toggler:focus { text-decoration: none; outline: none; }
th { color: var(--text-color); }
select { font-size: 15px; }


/* ============================================
   2. ТИПОГРАФИКА
   ============================================ */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 700;
    margin: 10px 0;
    color: var(--text-color);
    line-height: 1.2;
}

h4.title { font-size: 20px; }
.mg-header .title { font-size: 35px; line-height: 1.2; }

.mg-sec-title.st3 span.bg,
.mg-wid-title span.bg {
    background-color: transparent;
    color: var(--text-color);
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0;
}

.mg-widget h2,
.wp-block-search__label {
    background-color: transparent;
    padding: 0 0 4px;
    line-height: 25px;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 800;
}

.mg-widget h2::after,
.wp-block-search__label::after { width: 0; }

.mg-sec-title h4,
.mg-widget h6,
.mg-widget .wtitle { font-weight: 600; }

#categories-10 > div > h6 > span,
#archives-6 > div > h6 > span,
.mg-sec-title h4,
.mg-widget h6 { font-size: 15px; }

#categories-10 > div > h6 > span { font-size: 18px; }


/* ============================================
   3. HEADER И НАВИГАЦИЯ
   ============================================ */
header > div.mg-nav-widget-area-back {
    background-image: url(https://bisr1.bisr.by/wp-content/uploads/2026/06/mask-group-1.jpg) !important;
}

.site-branding-text { margin-top: 10px; width: 60%; }
.site-title { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.site-description { display: none; }
.navbar-brand { width: 30%; }
.mg-headwidget { padding-bottom: 0 !important; }
.mg-head-detail .info-left { font-size: 14px; font-weight: 600; background: transparent; }

/* Навигация */
.mg-headwidget .navbar-wp .navbar-nav > li > a {
    padding: 13px 30px 13px 0;
    font-size: 13px;
    font-weight: 700;
}

.mg-headwidget .navbar-wp .navbar-nav > li > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > li > a:focus,
.mg-headwidget .navbar-wp .navbar-nav > .active > a,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:focus {
    color: var(--pri-color);
    background: transparent;
}

/* Выпадающее меню */
.navbar-wp .dropdown-menu {  min-width: 600px; }
.navbar-wp .dropdown-menu > li > a { background-color: var(--text-color) !important; font-size: 13px; }
.navbar-wp .dropdown-menu > li > a:hover { color: var(--pri-color); background: transparent; text-decoration: underline; }
.navbar-wp .dropdown-menu > .active > a,
.navbar-wp .dropdown-menu > .active > a:hover,
.navbar-wp .dropdown-menu > .active > a:focus { color: var(--pri-color); background: transparent; }
.nav-link:active,
.navbar-wp .dropdown-menu > li > a:active { color: rgb(148, 197, 232) !important; }

/* Языковое меню (Top Bar) - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.top-lang-nav {
    position: relative;
    z-index: 99999 !important; /* Поднимаем контейнер языков выше всего */
}

.top-language-menu {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
}

.top-language-menu > li {
    margin: 0 !important;
    position: relative;
}

.top-language-menu > li > a {
    color: var(--white) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 5px 10px !important;
    transition: all var(--transition-normal);
    display: flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.top-language-menu > li:hover > a,
.top-language-menu > li.current-menu-item > a {
    color: var(--pri-color) !important;
}

.top-language-menu > li > a::after {
    content: "\f0d7";
    font-family: "FontAwesome";
    font-weight: 900;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.top-language-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--text-color) !important;
    min-width: 100px;
    margin: 0 !important;
    padding: 10px 0 !important;

    border: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    list-style: none !important;
    flex-direction: column;
}

.top-language-menu > li:hover .sub-menu {
    display: flex !important;
}

.top-language-menu .sub-menu li {
    width: 100%;
    margin: 0 !important;
}

.top-language-menu .sub-menu li a {
    color: var(--white) !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    border: none !important;
    display: block !important;
    transition: background var(--transition-fast);
}


/* ============================================
   4. БЕГУЩАЯ СТРОКА
   ============================================ */
.mg-latest-news {
    height: 35px;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    z-index: 10 !important;
}

.mg-latest-news .mg-latest-news-slider { left: 0; font-size: 14px; padding-bottom: 13px; }

body .mg-latest-news .mg-latest-news-slider a .img,
body .mg-latest-news .mg-latest-news-slider a img {
    width: 6px;
    height: 6px;
    border-radius: 50px;
    filter: brightness(0) invert(1) !important;
    margin-right: 0;
    margin-bottom: 1px;
}

.mg-latest-news .bn_title,
.fa-calendar { display: none; }


/* ============================================
   5. СЛАЙДЕРЫ
   ============================================ */

/* --- Общие настройки Swiper --- */
.swiper-container { height: 436px; cursor: grab !important; }
.swiper-container:active,
.swiper-container .swiper-slide:active { cursor: grabbing !important; }

.swiper-button-next,
.swiper-button-prev { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.swiper-button-next:focus,
.swiper-button-prev:focus { outline: none !important; }

/* --- Главный слайдер (Ken Burns) --- */
.homemain .mg-blog-post-3.back-img::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.mg-blog-post-3.back-img {
    background-size: 115% !important;
    background-position: center !important;
    transition: background-size 6s ease-out !important;
}

.swiper-slide-active .mg-blog-post-3.back-img { background-size: 100% !important; }

/* Анимация контента слайда */
.swiper-slide .mg-blog-category { opacity: 0; transform: translateY(0) !important; transition: opacity 0.5s ease 0s !important; }
.swiper-slide .title.lg,
.swiper-slide .mg-blog-meta,
.swiper-slide .post-form { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s !important; }

.swiper-slide-active .mg-blog-category,
.swiper-slide-active .title.lg,
.swiper-slide-active .mg-blog-meta,
.swiper-slide-active .post-form { opacity: 1; transform: translateY(0); }

.swiper-slide.swiper-slide-active > div > div > h4 > a { font-size: 22px; line-height: 1.2; }

/* --- Вертикальный слайдер трендов --- */
.custom-vertical-slider-wrapper { overflow: hidden; }

#child-trending-swiper { height: 600px; width: 100%; }
#child-trending-swiper .swiper-slide { height: 80px; width: 100%; box-sizing: border-box; }

#child-trending-swiper .news-slide-item {
    height: 100%;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#child-trending-swiper .news-title {
    font-size: 15px;
    line-height: 1.2;
    margin: 0 0 6px 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 38px;
}

#child-trending-swiper .news-title a { color: var(--text-color); text-decoration: none; transition: color var(--transition-fast); }
#child-trending-swiper .news-title a:hover { color: var(--pri-color); }

#child-trending-swiper .news-date { display: block; font-size: 11px; color: var(--meta-color); margin: 0; font-weight: 400; }

#child-trending-swiper .swiper-scrollbar { background: transparent !important; width: 3px !important; right: 0 !important; left: auto !important; }
#child-trending-swiper .swiper-scrollbar-drag { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }

/* --- Слайдер партнёров (Slick) --- */
.partners-slider { margin: 0 -10px; cursor: grab; cursor: -webkit-grab; }
.partners-slider:active { cursor: grabbing; cursor: -webkit-grabbing; }
.partners-slider .slick-prev,
.partners-slider .slick-next,
.partners-slider .slick-dots { display: none !important; }

.partner-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 22px;
    gap: 18px;
    margin: 20px 10px;
    transition: all var(--transition-slow);
    background: transparent;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.partner-item:hover {
    background: var(--white);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.partner-logo {
    width: 60px; height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-slow);
    pointer-events: none;
}

.partner-item:hover .partner-logo { filter: grayscale(0%); opacity: 1; transform: scale(1.08); }

.partner-name {
    display: block;
    font-size: 13px;
    color: var(--meta-color);
    line-height: 1.4;
    font-weight: 400;
    text-align: left;
    pointer-events: none;
    transition: all var(--transition-slow);
}

.partner-item:hover .partner-name { color: var(--text-color); font-weight: 500; }



/*КАРТА БЕЛАРУСИ*/
/* ============================================
   ФИНАЛЬНОЕ УДАЛЕНИЕ ПОДПИСИ FLA-SHOP
   ============================================ */

/* 1. Скрываем контейнеры подписей и масштаба */
.fm-scale,
.fm-credits,
.map-credits,
.copyrights,
.attribution {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Уничтожаем ссылки на fla-shop (самый надежный способ) */
a[href*="fla-shop.com"],
a[href*="fla-shop"] {
    display: none !important;
    visibility: hidden !important;

    /* Обнуляем размеры, чтобы не оставалось "дырок" или обрезков */
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    /* Запрещаем тексту вылезать за границы нулевого блока */
    overflow: hidden !important;
    white-space: nowrap !important;
    text-indent: -9999px !important; /* Уводим текст далеко влево */
}

/* 3. Если подпись лежит просто в div без класса, но внутри контейнера карты */
.fm-map-container div:last-child,
.map-container div:last-child {
    /* Проверяем, не является ли это подписью, и скрываем */
    display: none !important;
}




/* ============================================
   6. БЛОГ ПОСТЫ И КАРТОЧКИ
   ============================================ */
.recentarea { height: 660px; margin-bottom: 15px; }
.recentarea .content { border-bottom: 1px solid #c8c8cd; }
div.recentarea-slider > div > div.inner > h5 { font-size: 15px; }

.mg-blog-post-3::after {
    background: linear-gradient(to top, rgba(18, 16, 38, 0.5) 0%, rgba(57, 115, 255, 0.15) 50%, rgba(72, 199, 212, 0) 100%) !important;
}

/* Категории и мета */
a.newses-categories.category-color-1 { background-color: #d9d9d9; color: var(--text-color); }
a.newses-categories.category-color-4 { display: none; }

a.newses-categories,
.mg-blog-category a { text-transform: none; font-size: 0.7rem; margin-bottom: 5px; font-weight: 600; }

.mg-blog-meta,
.mg-blog-meta a,
.mg-blog-meta i,
.mg-blog-date { color: var(--meta-color); letter-spacing: 0; font-size: 13px; font-weight: 400; opacity: 1; margin: 5px 0; }

.mg-blog-date > i,
.auth > i,
.swiper-wrapper .mg-blog-meta,
.mg-author-pic { display: none; }

.category-proekty .mg-blog-meta,
body[class*="category-proekty"] .mg-blog-meta { visibility: hidden !important; margin: -5px 0; }



#newses_posts_list-8 > div > div.mg-posts-sec-inner > div.small-list-post.row > div> div.small-post-content.media-body > div.mg-blog-category{
    margin-bottom: 0;
}




/* Маленькие посты */
.small-post { height: 110px; gap: 10px; }
.small-post .img-small-post { width: 45%; border: 1px solid var(--border-light); }
.small-list-post { row-gap: 15px; }
.small-list-post h5 { margin: 0; font-weight: 700; font-size: 15px; }
.small-list-post h5.title,
.small-list-post h5.title a { color: var(--text-color); }

/* Карточки мероприятий */
.col-md-4.col-sm-4 { padding: 0; }
.mg-blog-thumb.sm { height: 138px; }

.mg-blog-post-box.sm h4.title {
    font-size: 14px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mg-blog-post-box h4.title > a { font-size: 14px; font-weight: 600; line-height: 1; }
.mg-blog-post-box.sm .small { padding: 5px 15px; }
.mg-blog-inner h4 a,
.mg-blog-post-box h4.title,
.mg-blog-post-box h4.title a { font-size: 15px; font-weight: 700; }
.mg-blog-inner h4.title.lg { line-height: 0.9; }

/* Правая колонка: кастомные карточки */
.child-custom-cards-wrapper { display: flex; flex-direction: column; height: 100%; }

.child-custom-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.child-custom-card .card-img-wrap {
    position: relative;
    height: 63%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.child-custom-card .card-img-wrap .link-div { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; }

.child-custom-card .card-content { padding: 10px 15px; flex: 1; display: flex; flex-direction: column; }
.child-custom-card .card-content .title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 6px 0; }
.child-custom-card .card-content .title a { color: inherit; text-decoration: none; }
.child-custom-card .card-content .title a:hover { color: var(--pri-color); }
.child-custom-card .manual-excerpt { font-size: 0.9rem; line-height: 1.3; margin: 0; }


/* ============================================
   7. WORDPRESS BLOCKS & WIDGETS
   ============================================ */
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author { padding-top: 5px; color: var(--meta-color); }
.wp-block-latest-posts.wp-block-latest-posts__list { padding-top: 20px; }
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image img.size-large { margin-bottom: 7px; }
.wp-block-image :where(figcaption) { margin-bottom: 0; }

/* Details Block Animation */
.wp-block-details { interpolate-size: allow-keywords; }
.wp-block-details::details-content { block-size: 0; content-visibility: hidden; transition: block-size 0.3s ease-out, content-visibility 0.3s allow-discrete; }
.wp-block-details[open]::details-content { block-size: auto; content-visibility: visible; }

/* Widgets General */
.mg-sidebar .mg-widget { padding: 15px; margin-bottom: 15px; }
.mg-sidebar .mg-widget h6 { font-weight: 700; }
.mg-wid-title { margin: 0 0 10px; }
.mg-widget .mg-widget-tags,
.mg-widget .tagcloud { margin-top: 20px; }

.mg-sidebar .mg-widget .mg-widget-tags a,
.mg-sidebar .mg-widget .tagcloud a,
.newses-tags a { background: var(--border-light); border-color: var(--border-light); }

.wp-widget-group__inner-blocks > ul > li > time { font-weight: 400 !important; }
.stk-inner-blocks > :first-child { margin: 0; }
.stk-ozt6ob7 .stk-block-tabs__tab.stk-block-tabs__tab--active .stk-block-tab-labels__text { font-weight: 700; }

/* Мультимедиа кнопка Load More */
.custom-stk-button {
    display: inline-block !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    line-height: 1.5;
    color: var(--pri-color) !important;
    font-weight: 500;
    margin-top: 20px;
}

.custom-stk-button .stk-button__inner-text { display: inline-block; font-size: 16px; }
.custom-stk-button:hover:not(:disabled) .stk-button__inner-text { border-bottom-color: currentColor; opacity: 0.8; }
.custom-stk-button.loading { opacity: 0.5; cursor: wait; pointer-events: none; }
.custom-stk-button.finished { color: var(--meta-color) !important; cursor: default; pointer-events: none; }
.custom-stk-button.finished .stk-button__inner-text { border-bottom: none !important; }

.news-excerpt {
    font-size: 14px;
    line-height: 1.2;
    margin-top: 5px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date { font-size: 11px; color: var(--meta-color); margin-top: 8px; margin-bottom: 0; line-height: 1.2; }


/* ============================================
   8. ИНТЕРАКТИВНЫЕ ЭЛЕМЕНТЫ
   ============================================ */
.btn-theme,
.more_btn,
.more-link { background: none; border: none; position: relative; display: inline-block; text-decoration: none; }
.btn-theme:hover, .btn-theme:focus,
.more_btn:hover, .more_btn:focus,
.more-link:hover, .more-link:focus { color: var(--pri-color); }

/* Tooltip "Архивная версия" */
.btn-theme::after,
.more_btn::after,
.more-link::after {
    content: "Архивная версия сайта";
    position: absolute;
    bottom: 125%; left: 50%;
    transform: translateX(-50%);
    background: #e0e0e0;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-theme:hover::after, .btn-theme:focus::after,
.more_btn:hover::after, .more_btn:focus::after,
.more-link:hover::after, .more-link:focus::after { opacity: 1; visibility: visible; }


/* ============================================
   9. SIDEBAR
   ============================================ */
/* #content > div > aside,
.single-main-content.row > aside { padding-left: 15px; } можно удалить, если не нужно */


#categories-10 > div > h6 { margin: 0; }
#block-244, #categories-10, #archives-6 { margin-bottom: 15px; }
#newses_posts_list-8 > div, #tag_cloud-12 { padding: 15px; margin-bottom: 15px; }
#archives-6 > div > h6,
#tag_cloud-12 > div.mg-wid-title > h6,
.mg-sec-title.st3 > h4 { margin-top: 0; }
#newses_posts_list-8 > div > div.mg-posts-sec-inner > div.small-list-post.row { row-gap: 0; }
#archives-6 { display: none; } /* Скрытие виджета архивов на странице новости */



/* ============================================
   10. FOOTER
   ============================================ */
.mg-footer-copyright { padding: 10px 0; }
.mg-footer-copyright > div > div > a { color: var(--pri-color); }
.mg-footer-copyright > div > div > a:hover { color: var(--text-color); }
.bisi-footer__col--center > a:hover { color: var(--border-light); }

.bisi-footer {
    background-image: url(https://bisr1.bisr.by/wp-content/uploads/2026/06/mask-group-13.png);
    background-size: cover;
    padding: 50px 0;
    margin-top: 100px;
}

.bisi-footer__container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* Footer Left */
.bisi-footer__col--left { flex: 1 1 500px; min-width: 280px; margin-left: 15px; }

.bisi-footer__logo {
    background-image: url(https://bisr1.bisr.by/wp-content/uploads/2026/06/3273435962480-2.png);
    width: 30%; height: 37px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.bisi-footer__description { font-size: 15px; line-height: 1.6; color: var(--white); margin-bottom: 25px; max-width: 400px; }

.bisi-footer__pdf-link { font-size: 13px; color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color var(--transition-normal); }
.bisi-footer__pdf-link:hover { color: var(--white); }

.bisi-footer__pdf-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

/* Footer Center */
.bisi-footer__col--center { font-size: 15px; flex: 1 1 250px; min-width: 220px; text-align: left; margin-top: 55px; }
.bisi-footer__contact-item { display: block; margin-bottom: 16px; color: var(--white); text-decoration: none; line-height: 1.5; transition: opacity var(--transition-normal); }
.bisi-footer__contact-phone { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.bisi-footer__contact-email { margin-bottom: 14px; font-size: 15px; }

/* Footer Right */
.bisi-footer__col--right { flex: 1 1 250px; min-width: 200px; text-align: right; margin-top: 47px; margin-right: 15px; }
.bisi-footer__social-title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 20px; }
.bisi-footer__social-icons { display: flex; justify-content: flex-end; gap: 10px; }

.bisi-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.bisi-footer__social-icon:hover { border-color: var(--white); transform: translateY(-2px); }
.bisi-footer__social-icon svg { width: 18px; height: 18px; }
.bisi-footer__social-icon svg:hover,
.bisi-footer__social-icon svg:active,
.bisi-footer__social-icon svg:focus { color: var(--border-light); }


/* ============================================
   11. УТИЛИТЫ И РАЗНОЕ
   ============================================ */
/* Breadcrumbs & Pagination */
#custom-background-css .mg-breadcrumb-section ul li.active::before { content: "/"; }
.page-numbers { padding-left: 1rem; }
.mg-breadcrumb-section .overlay { display: none; }

/* Top Tags List */
.mg-tpt-txnlst { background-color: var(--white); border-radius: 0; }
.mg-tpt-txnlst strong { color: var(--pri-color); }
.mg-tpt-txnlst ul li a { color: var(--white); background: var(--pri-color); border-radius: 0; }

/* Специфичные скрытия и отступы */
.blog #custom-background-css > section > div > div,
.post-form,
#menu-main-menu-ru > li.active.home,
#menu-main-menu-en > li.active.home,
#menu-main-menu-be > li.active.home{ display: none; }
.blog #content.home { margin-top: 20px; }
.mb-30 { margin-bottom: 15px; }
.mb-4, .my-4 { margin-bottom: 15px !important; }
.wd-back, .padding-20 { padding: 15px; }
div.mg-sec-top-post.col { padding-left: 0; }
.mg-sec-top-post { justify-content: flex-start; }
.mg-header .mg-info-author-block { padding: 0; }

#custom-background-css > section > div > div > div { margin-bottom: 0 !important; }
#custom-background-css > section > div > div > div > div:nth-child(4) { margin-bottom: 15px; }
#custom-background-css > section > div > div > div > div.col-md-6 { padding: 0; }
#custom-background-css > section > div > div > div > div.col-md-6 > div.row.mt-3 { margin-top: 11px !important; margin: 0; }

/* Отступы кнопок в секциях проектов */
#custom-background-css > section > div > div > div > div.col-md-6 > div.row.mt-3 > div > div > div > div > a { margin-top: 95px; }
#custom-background-css > section > div > div > div > div:nth-child(1) > div > div.mg-sec-title.st3 { margin: 15px; }

div.desk-header.pl-3.ml-auto.my-2.my-lg-0.position-relative.align-items-center > a { padding-right: 0 !important; }

/* Разделители секций */
#актуально,
#a-href-https-bisr-1-bisr-by-o-nas-izdaniya-издания-a { border-bottom: 2px solid rgba(120, 120, 120, 0.2); }

#a-href-https-bisr-1-bisr-by-o-nas-izdaniya-издания-a > h2 > a,
#block-303 h6:nth-child(3) > a,
#block-303 h6.wp-block-heading.has-14-font-size > a { color: var(--text-color); }

#a-href-https-bisr-1-bisr-by-o-nas-izdaniya-издания-a > h2 > a:hover,
#block-303 h6:nth-child(3) > a:hover,
#block-303 h6.wp-block-heading.has-14-font-size > a:hover { color: var(--pri-color); }

/* Проекты slider fix */
#newses_posts_slider-10 > div { border: none; }
#newses_posts_slider-10 > div > div.postcrousel.swiper-container { height: auto; }
#block-305.mg-widget.widget_block { padding-bottom: 0 !important; margin-bottom: 15px; overflow: hidden !important; }

.newses_posts_slider_widget .mg-blog-post-3.lg.back-img { height: 225px !important; min-height: 225px !important; max-height: 225px !important; }
.featured-posts-widgets .mg-blog-thumb.lg { height: 220px; }

/* Скрытие первого поста в featured widgets */
.featured-posts-widgets > .mg-posts-sec-inner.row > div:nth-child(1) > div > article { display: none; }
.featured-posts-widgets > .mg-posts-sec-inner.row > div.small-list-post.col-md-6.mt-4.mt-md-0 { padding-left: 0; }

/* Кнопки проектов Stackable */
article .stk-block-button-group .stk-block-button__link span { font-weight: 500; font-size: 15px; }

/* Nav Previous/Next */
.nav-previous > a > span,
.nav-next > a > span { letter-spacing: 0; font-size: 1rem; color: var(--text-color); line-height: 1.4; font-weight: 600; }
.mg-posts-modul-6 .mg-sec-top-post .title a { color: var(--text-color); }

/* Скрытие автора в конкретных постах */
.postid-42 #content > div > div:nth-child(1) > div > div,
.postid-40 #content > div > div:nth-child(1) > div > div,
.postid-27 #content > div > div:nth-child(1) > div > div,
.postid-94 #content > div > div:nth-child(1) > div > div,
.postid-44 #content > div > div:nth-child(1) > div > div,
.postid-241 #content > div > div:nth-child(1) > div > div,
.postid-98 #content > div > div:nth-child(1) > div > div,
.postid-2711 #content > div > div:nth-child(1) > div > div,
.postid-2730 #content > div > div:nth-child(1) > div > div,
.postid-3433 #content > div > div:nth-child(1) > div > div,
.postid-3565 #content > div > div:nth-child(1) > div > div,
.postid-3573 #content > div > div:nth-child(1) > div > div,
.postid-3626 #content > div > div:nth-child(1) > div > div,
.postid-3630 #content > div > div:nth-child(1) > div > div,
.postid-3634 #content > div > div:nth-child(1) > div > div,
.postid-3639 #content > div > div:nth-child(1) > div > div,
.postid-3665 #content > div > div:nth-child(1) > div > div,
.postid-3679 #content > div > div:nth-child(1) > div > div,
.postid-3687 #content > div > div:nth-child(1) > div > div,
.postid-3706 #content > div > div:nth-child(1) > div > div,
.postid-3725 #content > div > div:nth-child(1) > div > div,
.postid-3758 #content > div > div:nth-child(1) > div > div,
.postid-3435 #content > div > div:nth-child(1) > div > div,
.postid-3729 #content > div > div:nth-child(1) > div > div,
.postid-3672 #content > div > div:nth-child(1) > div > div
 { display: none !important; }

/* Ссылки в заголовках секций */
.projects-title-link { color: inherit; text-decoration: none; transition: color var(--transition-normal); }
.projects-title-link:hover,
.projects-title-link:hover .bg { color: var(--pri-color) !important; transition: color var(--transition-fast); }

#custom-background-css .mg-sec-title.st3 > h4 > a > span:hover { color: var(--pri-color) !important; transition: color var(--transition-fast); }

/* Ховер-эффекты для навигации поста и списков */
.single-main-content .nav-previous a span:hover,
.single-main-content .nav-next a span:hover,
.wd-back .small-post-content h5 a:hover {
    color: var(--pri-color);
}









/* ============================================
   12. MEDIA QUERIES
   ============================================ */

/* --- Планшеты и мобильные (до 991px) --- */
@media (max-width: 991px) {

#child-trending-swiper .swiper-slide { height: 75px;  }

#child-trending-swiper > div.swiper-wrapper > div > div > h5{
font-size: 14px;

}



        /* 1. Верхняя черная полоска — ЗАФИКСИРОВАНА ВВЕРХУ */
    .mg-head-detail.d-none.d-md-block {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 45px;
        min-height: 45px;
        padding: 0;
        background-color: var(--text-color);
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* лёгкая тень при прокрутке */
    }


    /* Скрываем админ-панель WP на мобильных (только для залогиненных) */

    #wpadminbar {
        display: none !important;
    }
    html {
        margin-top: 0 !important;
    }


    .mg-head-detail .container {
        height: 100%;
    }

    .mobile-header-row {
        height: 100%;
    }

    /* Распорка: чтобы логотип не прятался под полоской */
    header.mg-headwidget {
        padding-top: 45px;
    }


    /* Стили бургера */
    .mobile-left-controls .navbar-toggler {
        padding: 0 0 10px;
        background: transparent;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-left-controls .burger-line {

        width: 22px;
        height: 2px;
        display: block;
        margin: 4px 0;
        transition: all 0.3s ease;
    }


    .mobile-left-controls .mobile-search-icon a,
    .mobile-left-controls .mobile-search-icon i,
    .mobile-left-controls .mobile-search-icon svg,
    .mobile-left-controls .mobile-search-icon span {

        font-size: 20px;
        text-decoration: none;
        display: flex;
        align-items: center;
        line-height: 1;
    }

    /* 3. Правая часть (Языки) - Выравнивание */
    .mobile-right-controls {
        height: 30px;
        display: flex;
        align-items: center;
    }



    .mobile-right-controls .top-language-menu > li {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-right-controls .top-language-menu > li > a {
        padding: 0 !important;
        font-size: 20px !important;
        display: flex;
        align-items: center;
        gap: 3px;

    }

    /* Стрелочка у языка */
    .mobile-right-controls .top-language-menu > li > a::after {
        margin-left: 3px;
    }

    /* 4. Скрываем оригинальную нижнюю панель меню */
    .mg-menu-full .m-header {
        display: none !important;
    }

    /* 5. ЛОГОТИП И ЗАГОЛОВОК (Исправление размера) */
    .site-branding-text {
        width: 100%;
        text-align: center;
        margin-top: 0;
        padding: 10px 0;
    }

    /* Принудительно ставим 20px для заголовка */
    .site-title,
    .site-title a,
    h1.site-title a,
    p.site-title a {
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

#menu-item-3358 > a > img{
    min-width: 20px;
    min-height: 15px;
}


header > div.mg-nav-widget-area-back > div > div > div > div > div > div.col-md-4.text-center-xs{
margin-bottom: 0px;
    }

header > div.mg-nav-widget-area-back > div > div > div > div > div > div.col-md-8.text-center-xs > div.container{
padding: 0;
}
header > div.mg-nav-widget-area-back > div > div > div > div{
padding-bottom: 0;
}
header > div.mg-nav-widget-area-back > div > div > div > div > div > div.col-md-8.text-center-xs > div.container > div > div{
padding-bottom: 0 !important;
}


    /* Уменьшаем отступы вокруг логотипа/заголовка */
    .mg-nav-widget-area-back .inner {
        padding:  0 !important;
    }



#content > div > div:nth-child(1) > div > div > h1{
font-size: 20PX;
}

h4{
    font-size: 16px;
}



div.mg-sec-top-post.col{
padding-left: 15px;
}

.mg-blog-thumb.back-img.md{
    height: 200px;
}




#custom-background-css > section > div > div > div > div.col-md-6 > div.row.mt-3{
    margin: 15px 15px 0;
}


#custom-background-css > section > div > div > div > div.col-md-6 > div.row.mt-3 > div > div > div{
    height: 180px;
}

#content > div > aside{
padding-left: 15px;
}


#content > div > div > div > div.mg-posts-sec.mg-posts-modul-1.wd-back.featured-posts-widgets,
#content > div > div.single-main-content.row > div > div.wd-back{
    margin-bottom: 0;
}

}


/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ: 2 Кастомные карточки (Ручной текст)
   ============================================ */
@media (max-width: 991px) {

    /* 1. Обертка: карточки друг под другом с отступом */
        .child-custom-cards-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
        width: 100%;
    }

    /* 2. Карточка: сбрасываем растягивание, высота по содержимому */
    .child-custom-card {
        flex: none;
        height: auto;
        min-height: 0;
        margin-bottom: 0;
        border: 1px solid var(--border-light);
        overflow: hidden;
        }

    /* 3. Изображение: фиксированная высота, ширина на весь экран */
    .child-custom-card .card-img-wrap {
        height: 180px;
    }


    /* 4. Текстовый контент */
    .child-custom-card .card-content {
        padding: 15px;
        height: auto;
        display: block;
    }


    /* Ручной текст (manual-excerpt) */
    .child-custom-card .manual-excerpt {
        font-size: 14px;
        margin: 0;
        display: block;
        overflow: visible;
    }
}









/* ============================================
   ПОИСК: Скрываем .desk-header ТОЛЬКО на мобайле
   На десктопе — никак не трогаем
   ============================================ */
@media (max-width: 991px) {
    .desk-header {
        display: none !important;
    }
}






/* ============================================
   МОБИЛЬНОЕ МЕНЮ: Позиция + Подменю + Фиксы
   ============================================ */
@media (max-width: 991px) {

    /* 1. Меню начинается строго под чёрной полоской (высота ~45px) */
    #navbar-wp {
        position: fixed !important;
        top: 45px !important;
        left: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 45px) !important;
        overflow-y: auto !important;
        background: var(--text-color) !important;
        z-index: 9998 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Стили пунктов меню */
    #navbar-wp .navbar-nav {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #navbar-wp .navbar-nav > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    #navbar-wp .navbar-nav > li > a {
        color: var(--white) !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        padding: 15px 20px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: block !important;
        transition: background 0.2s ease !important;
    }

    #navbar-wp .navbar-nav > li > a:hover,
    #navbar-wp .navbar-nav > li > a:focus {
        background: rgba(57, 115, 255, 0.2) !important;
        color: var(--pri-color) !important;
    }

    /* 2. Подменю (dropdown) */
    #navbar-wp .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: none !important; /* Скрыто по умолчанию */
        float: none !important;
        transform: none !important;
    }

    /* Когда подменю открыто (Bootstrap добавляет .show) */
    #navbar-wp .dropdown-menu.show {
        display: block !important;
    }

    #navbar-wp .dropdown-menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }

    #navbar-wp .dropdown-menu > li > a {
        color: rgba(255,255,255,0.8) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 10px 20px 10px 35px !important; /* Отступ слева для иерархии */
        text-transform: none !important;
        display: block !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
    }

    #navbar-wp .dropdown-menu > li > a:hover {
        color: var(--pri-color) !important;
        background: rgba(57, 115, 255, 0.15) !important;
        text-decoration: none !important;
    }



     /* === ИСПРАВЛЕНИЕ СТРЕЛОЧЕК  === */

    /* 1. Полностью скрываем родной плюсик от плагина SmartMenus */
    #navbar-wp .nav-link .sub-arrow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Рисуем новую стрелочку через ::after у самой ссылки */
    #navbar-wp .navbar-nav > li.menu-item-has-children > a::after,
    #navbar-wp .navbar-nav > li.dropdown > a::after {
        display: block !important;

        content: "\f0d7" !important;
        font-family: "FontAwesome" !important;
        font-weight: 900 !important;

        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);

        font-size: 14px;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
    }

    /* 3. При открытии меню: поворот и синий цвет */
    #navbar-wp .navbar-nav > li.menu-item-has-children.show > a::after,
    #navbar-wp .navbar-nav > li.dropdown.show > a::after {
        transform: translateY(-50%) rotate(180deg) !important;
        color: var(--pri-color) !important; /* Синий цвет темы */
    }

    /* 4. Гарантия позиционирования */
    #navbar-wp .navbar-nav > li > a {
        position: relative !important;
    }




    /* 5. Затемнение фона при открытом меню */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        height: calc(100vh - 45px);
        background: rgba(0,0,0,0.5);
        z-index: 9997;
        pointer-events: none;
    }


}











/* ============================================
   FOOTER MOBILE
   ============================================ */
@media (max-width: 991px) {

    .bisi-footer {
        padding: 40px 15px;
margin-top: 0;
    }

    .bisi-footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    /* Растворяем левую колонку */
    .bisi-footer__col--left {
        display: contents;
    }

    /* ПОРЯДОК: явные приоритеты через !important */
    .bisi-footer__logo-link {
        order: 1 !important;
        width: 100%;
        max-width: 400px;
    }

    .bisi-footer__description {
        order: 2 !important;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        font-size: 14px;
    }

    .bisi-footer__col--center {
        order: 3 !important;
        flex: none !important;
        margin: 0 !important;
        width: 100%;
        max-width: 400px;
        max-height: none !important;
        text-align: center;
    }

    .bisi-footer__col--right {
        order: 4 !important;
        flex: none !important;
        margin: 0 !important;
        width: 100%;
        max-width: 400px;
        max-height: none !important;
        text-align: center;
    }

    .bisi-policies-wrapper {
        order: 5 !important;
        width: 100%;
        max-width: 400px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .bisi-policies-wrapper .bisi-footer__pdf-link {
        display: inline-block;
        margin-bottom: 8px;
        font-size: 12px;
    }

    .bisi-policies-wrapper small {
        font-size: 12px;
    }

    /* Логотип */
    .bisi-footer__logo {
        margin: 0 auto !important;
        width: 50%;
        max-width: 180px;
    }

    /* Контакты */
    .bisi-footer__contact-item {
        margin-bottom: 12px;
    }

    .bisi-footer__contact-phone {
        font-size: 22px;
    }

    /* Соцсети */
    .bisi-footer__social-title {
        margin-bottom: 15px;
    }

    .bisi-footer__social-icons {
        justify-content: center;
        margin-top: 15px;
    }
}



   @media (max-width: 991px) {
    /* ============================================
       СЛАЙДЕР: Мобильная версия
       ============================================ */

    /* 1. Высота слайдера — меньше, чтобы помещался на экране */
.homemain.swiper-container.swiper-container-initialized.swiper-container-horizontal.swiper-container-ios {
        height: 280px !important;
        margin-left: 15px;
        margin-right: 15px;
    }

    /* 2. Картинка слайда — на всю высоту */
    .mg-blog-post-3.back-img {
        height: 100% !important;
        min-height: 280px !important;
    }


    /* 1. Убираем эффект Кен Бернс (медленное зумирование фона) */
    .mg-blog-post-3.back-img {
        background-size: cover !important;
        transition: none !important;
    }

    .swiper-slide-active .mg-blog-post-3.back-img {
        background-size: cover !important;
    }

    /* 3. Каждый слайд — на всю ширину, один за раз */
    .swiper-slide {
        width: 100% !important;
    }

    /* 4. Скрываем «мозаику» — дополнительные мини-посты внутри слайдера */
    .homemain .mg-posts-sec-inner .col-md-6:nth-child(n+2),
    .homemain .mg-posts-sec-inner .small-list-post,
    .swiper-wrapper .mg-blog-post-box.sm {
        display: none !important;
    }

    /* 5. Главный пост слайдера — на всю ширину */
    .homemain .mg-posts-sec-inner .col-md-6:first-child,
    .homemain .swiper-slide .mg-blog-post-3 {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 6. Заголовок на слайде — читаемый размер */
    .swiper-slide .title.lg,
    .swiper-slide.swiper-slide-active > div > div > h4 > a {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    /* 7. Убираем анимацию появления контента (на мобайле мешает) */
    .swiper-slide .mg-blog-category,
    .swiper-slide .title.lg,
    .swiper-slide .mg-blog-meta,
    .swiper-slide .post-form {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}




/* ============================================
   СЛАЙДЕР: Линейный прогресс-бар
   ============================================ */

.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #f4f4f4;

border-bottom: 1px solid #c8c8cd;
    z-index: 10;
    pointer-events: none;
    transition: width 0.3s ease-out; /* Плавное движение между шагами */
}

@media (max-width: 991px) {
    .swiper-progress-bar {
        height: 4px;
    }
}



/* ============================================
   TABS: ФИНАЛЬНЫЙ КОД (УБРАН GAP И ПОЛОСЫ)
   ============================================ */

/* Базовая плавность */
.stk-block-tabs__tab {
    transition: all 0.2s ease !important;
}

/* --- ГЛОБАЛЬНОЕ УДАЛЕНИЕ СЕРОЙ ПОЛОСЫ И ЛИШНИХ ОТСТУПОВ --- */
/* Применяем ко всем возможным классам контейнеров вкладок Stackable */
[class*="stk-block-tab-labels"],
.stk-block-tab-labels__wrapper {
    box-shadow: none !important;
    border-bottom: none !important;
    background: transparent !important;
    overflow: visible !important;

    /* КЛЮЧЕВОЕ ИСПРАВЛЕНИЕ: Убираем отступы между вкладками */
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
}


/* --- ДЕСКТОП (Горизонтальный вид) --- */
@media (min-width: 769px) {

    /* Активная вкладка */
    .stk-block-tabs__tab--active .stk-block-tab-labels__text {
        font-weight: 700 !important;
        color: var(--pri-color, #3973ff) !important;
    }

    .stk-block-tabs__tab--active {
        border-bottom: 2px solid var(--pri-color, #3973ff) !important;
        border-color: var(--pri-color, #3973ff) !important;
    }

    /* Неактивные вкладки */
    .stk-block-tabs__tab:not(.stk-block-tabs__tab--active) .stk-block-tab-labels__text {
        font-weight: 400 !important;
        color: var(--text-color, #121026) !important;
        opacity: 0.7;
    }

    .stk-block-tabs__tab:not(.stk-block-tabs__tab--active) {
        border-bottom: 2px solid transparent !important; /* Резерв места */
        border-color: transparent !important;
    }

    /* Ховер эффект */
    .stk-block-tabs__tab:not(.stk-block-tabs__tab--active):hover .stk-block-tab-labels__text {
        opacity: 1;
        color: var(--pri-color, #3973ff) !important;
    }
}


/* --- МОБИЛЬНАЯ ВЕРСИЯ (до 768px): Вертикальный список --- */
@media (max-width: 768px) {

    /* 1. Контейнер: Строго в колонку, без зазоров */
    .stk-block-tab-labels__wrapper {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;

        /* Принудительно обнуляем все отступы */
        gap: 0 !important;
        column-gap: 0 !important;
        row-gap: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* 2. Каждая кнопка-вкладка */
    .stk-block-tabs__tab {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box !important;

        padding: 14px 0 !important; /* Отступы только сверху/снизу */
        margin: 0 !important;
        border-radius: 0 !important; /* Строго квадратные углы */
        text-align: left !important;
        justify-content: flex-start !important;
        background: transparent !important;

        /* Только нижняя граница-разделитель */
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        box-shadow: none !important;
    }

    /* У последней вкладки убираем разделитель */
    .stk-block-tabs__tab:last-child {
        border-bottom: none !important;
    }

    /* 3. Текст внутри кнопки */
    .stk-block-tabs__tab .stk-block-tab-labels__text {
        width: 100% !important;
        text-align: left !important;
        white-space: normal !important; /* Разрешаем перенос строк */
        line-height: 1.4 !important;
        font-size: 16px !important;
        padding-left: 0 !important;
    }

    /* 4. АКТИВНАЯ ВКЛАДКА: Просто жирный синий текст */
    .stk-block-tabs__tab--active {
        background-color: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; /* Сохраняем разделитель */
    }

    /* Убираем любые синие полоски сверху или сбоку */
    .stk-block-tabs__tab--active::before {
        display: none !important;
    }

    .stk-block-tabs__tab--active .stk-block-tab-labels__text {
        color: var(--pri-color, #3973ff) !important;
        font-weight: 700 !important;
        opacity: 1 !important;
    }

    /* 5. НЕАКТИВНЫЕ ВКЛАДКИ */
    .stk-block-tabs__tab:not(.stk-block-tabs__tab--active) {
        background-color: transparent !important;
        border-color: transparent !important;
    }

    .stk-block-tabs__tab:not(.stk-block-tabs__tab--active) .stk-block-tab-labels__text {
        color: var(--text-color, #121026) !important;
        font-weight: 400 !important;
        opacity: 0.8 !important;
    }

    /* Принудительный сброс inline-стилей Stackable */
    .stk-block-tab-labels__wrapper[style],
    .stk-block-tabs__tab[style] {
        flex-direction: column !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        gap: 0 !important;
    }
}




/* ============================================
   КАСТОМНЫЙ СЕЛЕКТ РУБРИК (ФИКС ВИДИМОСТИ)
   ============================================ */

/* 1. Скрываем оригинальный селект */
#categories-10 select#cat {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    height: 0;
    width: 0;
}

/* 2. Обертка - должна быть относительно позиционирована */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

/* 3. Кнопка (Триггер) */
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;

}


/* Стрелочка */
.custom-select-trigger::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-top: -4px;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(-135deg);
    margin-top: 2px;
    border-color: var(--pri-color, #3973ff);
}

/* 4. Выпадающий список - КЛЮЧЕВЫЕ ИСПРАВЛЕНИЯ ЗДЕСЬ */
.custom-options {
    position: absolute;
    top: calc(100% + 5px); /* Небольшой отступ от кнопки */
    left: 0;
    right: 0;
    background: #ffffff; /* Явный белый фон */
    border: 1px solid #ddd;

    max-height: 350px;
    overflow-y: auto;
    z-index: 10; /* Очень высокий индекс */
    display: none; /* Скрыт по умолчанию */

    padding: 5px 0;
}

/* Показываем список только когда есть класс open */
.custom-select-wrapper.open .custom-options {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. Пункты списка */
.custom-option {
    padding: 6px 15px;
    font-size: 15px;
    color: var(--text-color, #121026);
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    background-color: transparent;
        line-height: 1.4;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ: ТОЛЬКО СИНИЙ ТЕКСТ */
.custom-option:hover {
    color: var(--pri-color, #3973ff) !important;


}

/* Выбранный пункт */
.custom-option.selected {
    font-weight: 600;
    color: var(--pri-color, #3973ff);

}

/* Скроллбар */
.custom-options::-webkit-scrollbar {
    width: 4px;
}
.custom-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* ВАЖНО: Убираем overflow:hidden у родителя, если он есть */
#categories-10,
#categories-10 .mg-widget,
.widget_categories {
    overflow: visible !important;
}


/* ============================================
   ТАБЛИЦЫ: АДАПТИВНЫЙ СКРОЛЛ НА МОБИЛЬНЫХ
   ============================================ */

/* 1. Создаем обертку для скролла (работает для всех таблиц wp-block-table) */
.wp-block-table {
    overflow-x: auto; /* Включает горизонтальную прокрутку */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    width: 100%;
    margin-bottom: 20px;
}

.wp-block-table th,
.wp-block-table td {
    white-space: nowrap; /* Запрещаем перенос текста внутри ячейки (опционально) */
}


/* 6. Визуальная подсказка о скролле (тень справа) */
.wp-block-table::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(248, 247, 247, 0.8));
    pointer-events: none;
    display: none; /* Показываем только на мобильных */
}

@media (max-width: 768px) {
    .wp-block-table::after {
        display: block;
    }

    /* Уменьшаем шрифт на мобильных для компактности */
    .wp-block-table table {
        font-size: 13px;
    }

    .wp-block-table th,
    .wp-block-table td {
        padding: 8px 10px;
    }
}


/* ============================================
   ТАБЛИЦЫ: ТОНКИЙ СКРОЛЛ + ОТСТУП СНИЗУ
   ============================================ */

.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;

    /* ГЛАВНОЕ ИЗМЕНЕНИЕ: Отступ снизу до скроллбара */
    padding-bottom: 15px !important;
    margin-bottom: 20px;
}

/* Настройка тонкого скроллбара (Chrome, Safari, Edge) */
.wp-block-table::-webkit-scrollbar {
    height: 6px;
}

.wp-block-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wp-block-table::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.wp-block-table::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



/* Сама таблица */
.wp-block-table table {
    margin-bottom: 0 !important;
    width: 100%;
    min-width: 650px; /* Чтобы таблица не сжималась слишком сильно */
    border-collapse: collapse;
}

/* Ячейки таблицы */
.wp-block-table th,
.wp-block-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

/* Заголовки */
.wp-block-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    text-align: left;
    color: var(--text-color, #121026);
}

/* Полосатый стиль (чередование цветов строк) */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background-color: #ffffff;
}









.mg-blog-post-box .small{
color: #121026;
}


.wp-widget-group__inner-blocks > ul > li{
margin-block-start: 0px
}




/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ руководства
   Работает ТОЛЬКО на экранах до 991px
   ============================================ */
@media (max-width: 991px) {

    /* 1. Левая колонка: Flex-контейнер, прижатый к ВЕРХУ */
    div[data-block-id="0f163bf"] .stk-column-wrapper:first-child,
    div[data-block-id="8dc87f9"] .stk-column-wrapper:first-child,
    div[data-block-id="8692d56"] .stk-column-wrapper:first-child,
    div[data-block-id="ff422c3"] .stk-column-wrapper:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Центрирует по горизонтали */
        justify-content: flex-start !important; /* ПРИЖИМАЕТ ВСЁ К ВЕРХУ */
    }

    /* 2. Контейнер изображения: строго по центру */
    div[data-block-id="0f163bf"] .wp-block-image,
    div[data-block-id="8dc87f9"] .wp-block-image,
    div[data-block-id="8692d56"] .wp-block-image,
    div[data-block-id="ff422c3"] .wp-block-image {
        margin: 0 auto !important;
        display: block !important;
    }

    /* 3. Само фото: идеально круглое */
    div[data-block-id="0f163bf"] .wp-block-image img,
    div[data-block-id="8dc87f9"] .wp-block-image img,
    div[data-block-id="8692d56"] .wp-block-image img,
    div[data-block-id="ff422c3"] .wp-block-image img {
        border-radius: 50% !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
    }

    /* 4. ТОЛЬКО ИМЯ И ФАМИЛИЯ (H5): по центру */
    div[data-block-id="0f163bf"] .stk-block-heading__text,
    div[data-block-id="8dc87f9"] .stk-block-heading__text,
    div[data-block-id="8692d56"] .stk-block-heading__text,
    div[data-block-id="ff422c3"] .stk-block-heading__text {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        /* Отступы управляются через настройки блока в WordPress */
    }

    /* 5. Должность и остальной текст: ОСТАЕТСЯ СЛЕВА */
}



/* ============================================
   УМЕНЬШЕНИЕ ОТСТУПА МЕЖДУ СТАТЬЕЙ И САЙДБАРОМ ДО 15PX
   Работает ТОЛЬКО на экранах шире 991px
   ============================================ */
@media (min-width: 992px) {

    /* Забираем лишний отступ справа у статьи */
    .single-main-content .col-lg-9,
    .single-main-content .col-md-8 {
        padding-right: 7.5px !important;
    }

    /* Забираем лишний отступ слева у сайдбара */
    .single-main-content aside,
    .single-main-content .col-lg-3,
    .single-main-content .col-md-4 {
        padding-left: 7.5px !important;
    }

}



/* ============================================
   ГЛАВНАЯ СТРАНИЦА: ОТСТУП МЕЖДУ КОНТЕНТОМ И САЙДБАРОМ (15PX)
   Работает ТОЛЬКО на экранах шире 991px
   ============================================ */
@media (min-width: 992px) {

    /* Забираем лишний отступ справа у основного контента */
    .home .col-md-8,
    #content.home > .row > .col-md-8 {
        padding-right: 7.5px !important;
    }

/* Забираем лишний отступ слева у сайдбара на ГЛАВНОЙ (оставляем 7.5px) */
.home .col-md-4,
#content.home > .row > aside,
#sidebar-right.col-md-4 {
    padding-left: 7.5px !important;
}

/* ИСКЛЮЧЕНИЕ: Возвращаем нормальный отступ (15px) для первого блока карточек проектов */
#custom-background-css > section > div > div > div > div.col-md-6 > div.row.mt-3 > div{
    padding-left: 0px !important;

}
}


/* ============================================
   СТРАНИЦЫ: ОТСТУП МЕЖДУ КОНТЕНТОМ И САЙДБАРОМ (15PX)
   Работает ТОЛЬКО на экранах шире 991px
   ============================================ */
@media (min-width: 992px) {

    /* Основной контент страницы: отступ справа */
    .page-class.content .col-md-8,
    #content.page-class > .row > .col-md-8 {
        padding-right: 7.5px !important;
    }

    /* Сайдбар "Актуально": отступ слева */
    .page-class.content .col-md-4,
    #content.page-class > .row > aside,
    #sidebar-right.col-md-4 {
        padding-left: 7.5px !important;
    }

}




/* ============================================
   ТАБЛИЦЫ: ВСЕГДА ВИДИМЫЙ СКРОЛЛ + ПЕРЕНОС ТЕКСТА
   ============================================ */

.wp-block-table {
    overflow-x: auto; /* Включает прокрутку */
    -webkit-overflow-scrolling: touch; /* Плавность на iOS */
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 15px !important; /* Место под саму полосу */
}

/* --- НАСТРОЙКИ СКРОЛЛБАРА (СВЕТЛЫЙ И ВСЕГДА ВИДИМЫЙ) --- */

/* Для Chrome, Safari, Edge, Opera, Яндекс */
.wp-block-table::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}

.wp-block-table::-webkit-scrollbar-track {
    background: #f0f0f0 !important; /* ОЧЕНЬ СВЕТЛАЯ ДОРОЖКА */
    border-radius: 4px;
    margin: 0 4px;
}

.wp-block-table::-webkit-scrollbar-thumb {
    background: #ccc !important; /* МЯГКИЙ СЕРЫЙ ПОЛЗУНОК */
    border-radius: 4px;
    border: 2px solid #f0f0f0; /* Обводка под цвет дорожки */
}

.wp-block-table::-webkit-scrollbar-thumb:hover {
    background: #aaa !important; /* Чуть темнее при наведении */
}

/* Для Firefox */
.wp-block-table {
    scrollbar-width: thin !important;
    scrollbar-color: #ccc #f0f0f0 !important; /* Ползунок и Дорожка */
}

/* --- САМА ТАБЛИЦА И ЯЧЕЙКИ --- */

.wp-block-table table {
    margin-bottom: 0 !important;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Разрешаем перенос текста, чтобы таблица не была бесконечно длинной */
.wp-block-table th,
.wp-block-table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    vertical-align: top;

    /* ГЛАВНОЕ ИСПРАВЛЕНИЕ ДЛИНЫ: */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wp-block-table th {
    background-color: #f9f9f9;
    font-weight: 700;
    text-align: left;
    color: var(--text-color, #121026);
}

/* Полосатый стиль */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: #f9f9f9; }
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background-color: #ffffff; }

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .wp-block-table table { font-size: 13px; }
    .wp-block-table th, .wp-block-table td { padding: 8px 6px; }
}







/*----------------------------------*/

/*форма обратной связи*/

/* ============================================
   МОДАЛЬНОЕ ОКНО ФОРМЫ ОБРАТНОЙ СВЯЗИ
   ============================================ */

/* 1. Кнопка вызова (СТРОГО фиксирована поверх всего) */
/* .bisr-feedback-trigger {
    background: #3973ff !important;
    color: #fff !important;
    border: none !important;
    padding: 5px 15px !important;
    cursor: pointer !important;
    font-size: 15px;
    font-weight: 500;
max-width: 200px;
}
.bisr-feedback-trigger:hover { background: #2a5fd4 !important; } */

/* 2. Затемняющий фон (перекрывает ВЕСЬ сайт, включая админку WP) */
/* .bisr-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
} */

/* 3. Белое окно формы (изолировано от стилей страницы) */
/* .bisr-modal-content {
    background: #fff !important;
    width: 90% !important;
    max-width: 550px !important;
    padding: 30px !important;
    border-radius: 12px !important;
    position: relative !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
    z-index: 2147483648 !important;
} */

/* Сброс стилей для элементов, которые могли "прилипнуть" из страницы */
/* .bisr-modal-content * {
    box-sizing: border-box !important;
} */

/* Скрываем заголовки страницы, если JS затянул их в модалку */
/* .bisr-modal-content .entry-header,
.bisr-modal-content h1.page-title,
.bisr-modal-content .mg-sec-title {
    display: none !important;
} */

/* 4. Крестик закрытия */
/* .bisr-close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 32px !important;
    cursor: pointer !important;
    color: #999 !important;
    line-height: 1 !important;
    z-index: 100 !important;
    transition: color 0.2s !important;
}
.bisr-close-modal:hover { color: #333 !important; } */

/* 5. Поля ввода (сброс внешних отступов темы)
.bisr-modal-content label {
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #333 !important;
}
.bisr-modal-content input,
.bisr-modal-content textarea,
.bisr-modal-content select {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    font-family: 'Montserrat', sans-serif !important;
}
.bisr-modal-content input:focus,
.bisr-modal-content textarea:focus {
    border-color: #3973ff !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(57, 115, 255, 0.1) !important;
}*/

/* 6. Кнопки внутри формы
#bisr-send-code-btn, #bisr-verify-btn {
    width: 100% !important;
    background: #3973ff !important;
    color: #fff !important;
    border: none !important;
    padding: 15px !important;
    margin-top: 25px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: background 0.3s !important;
}
#bisr-send-code-btn:hover, #bisr-verify-btn:hover { background: #2a5fd4 !important; }*/

/* 7. Сообщения и лоадер
#bisr-step1-msg, #bisr-step2-msg {
    margin-top: 10px !important;
    font-size: 14px !important;
    text-align: center !important;
    min-height: 20px !important;
}
.bisr-error { color: #e74c3c !important; }
.bisr-success { color: #2ecc71 !important; }

.bisr-loader { text-align: center !important; padding: 40px !important; color: #666 !important; }
.bisr-loader::after {
    content: '' !important; display: inline-block !important; width: 20px !important; height: 20px !important;
    border: 3px solid #ddd !important; border-top-color: #3973ff !important; border-radius: 50% !important;
    animation: bisr-spin 1s linear infinite !important; margin-left: 10px !important; vertical-align: middle !important;
}
@keyframes bisr-spin { to { transform: rotate(360deg) !important; } }*/



/* ============================================
   ОДИНОЧНАЯ ЗАПИСЬ: Картинки и подписи
   ============================================ */

/* 1. Жесткое ограничение ширины картинок внутри поста */
.single .mg-blog-post-box figure img,
.single article figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* 2. Стиль подписей (figcaption) */
.single .mg-blog-post-box figure figcaption,
.single article figure figcaption {
    font-size: 13px !important;
    text-align: center !important;
    color: #666 !important;
    margin-top: 8px !important;
    line-height: 1.4 !important;
}

/* 3. Отступ после блока с картинкой */
.single .mg-blog-post-box figure.wp-block-image,
.single article figure.wp-block-image {
    margin-bottom: 30px !important;
}


.ta_upscr {
	background: #1e3a8a;
	border-color: #1e3a8a;
	color: #fff !important;
}


/* ============================================
   ГОД БЕЛОРУССКОЙ ЖЕНЩИНЫ: Только 2 публикации справа (главная страница)
   ============================================ */
.featured-posts-widgets .small-list-post .featured-post-3 {
    display: none !important;
}





/* ============================================
   БАННЕР В ШАПКЕ: мягкая тень + лёгкое приглушение,
   при наведении — оригинал
   ============================================ */

/* Тень для баннерных картинок в шапке */
.mg-nav-widget-area-back .inner img,
header .mg-headwidget img[src*="banner"],
header .wp-block-image img {
    box-shadow: 0px 4px 16px 0px rgba(34, 60, 80, 0.15);
}

/* Основной баннер: тень + приглушение */
.mg-nav-widget-area-back .inner img {
    opacity: 0.85;
    filter: brightness(0.95);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* При наведении — возвращаем оригинал */
.mg-nav-widget-area-back .inner img:hover {
    opacity: 1;
    filter: none;
}


/* ============================================
   ПОИСК: Убираем закругление на синей кнопке поиска
   ============================================ */
#searchform .input-group-btn .btn,
#searchform button.btn,
.mg-search-box button.btn {
    border-radius: 0 !important;
}


/* ============================================
   ТОЛЬКО КНОПКА "GO BACK" НА СТРАНИЦЕ 404
   ============================================ */
.error404 .mg-error-404 .btn-theme {
    background: #3973ff !important;
    color: #ffffff !important;
    border: 2px solid #3973ff !important;
    padding: 5px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.error404 .mg-error-404 .btn-theme:hover {
    background: #3973ff !important;
    border-color: #3973ff !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;

}
