@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    src: url('/fonts/Roboto-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: italic;
    font-display: swap;
    src: url('/fonts/Roboto-BoldItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto_Condensed-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto_Condensed-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto_Condensed-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/Roboto_Condensed-Bold.woff2') format('woff2');
}

/* === Применяем Roboto к основному тексту === */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                 'Helvetica Neue', Arial, Verdana, sans-serif !important;
}

/* === Заголовки, меню, боковые блоки === */
h1, h2, h3, h4, h5, h6,
.sp-page-title, .article-title, .item-title,
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span,
.sp-module-title, .module-title {
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, 
                 'Helvetica Neue', Arial, sans-serif !important;
}



/* Выравнивание самой верхней панели*/
#sp-top-bar {
    padding: 8px 0;
    font-size: 18px;
}

/* Вариант 1: тонкая видимая полоса + тень снизу 2px */

/* Хлебные крошки без фона, рамок и лишних отступов */
.breadcrumb,
.breadcrumb a {
    font-size: 15px;
    padding: 0;
    margin: 0;
    background: transparent;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Если используется Bootstrap */
.breadcrumb {
    --bs-breadcrumb-item-padding-x: 0;
    --bs-breadcrumb-margin-bottom: 0;
    margin-bottom: 0;
}

/* Контейнер крошек: одна строка, горизонтальный скролл, тонкая видимая полоса */
.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    padding-top: 0.55rem;
    padding-bottom: 0.55rem;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;

    /* Тонкая видимая полоса прокрутки */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.04);

    border-top: none;
    border-bottom: none;

    /* Уменьшенная тень снизу: не 4px, а 2px */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Полоса прокрутки для Chrome / Safari / Edge */
.breadcrumb::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.breadcrumb::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}

.breadcrumb::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Если внутри крошек есть список */
.breadcrumb ol,
.breadcrumb ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    padding: 0;
    margin: 0;

    overflow: visible;
    box-shadow: none;

    background: transparent;
    background-color: transparent;
}

/* Пункты крошек */
.breadcrumb li,
.breadcrumb-item {
    padding: 0;
    margin: 0;
    background: transparent;
    background-color: transparent;

    white-space: nowrap;
    flex: 0 0 auto;
}

/* Ссылки внутри крошек */
.breadcrumb a {
    display: inline-block;
    padding: 0;
    white-space: nowrap;
}

/* Разделители между пунктами */
.breadcrumb-item + .breadcrumb-item::before {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.icon-location:before {
    content: "";
}

.fa-fw,
.icon-fw {
    width: 0em;
}

.px-3 {
    padding-right: 0rem !important;
    padding-left: 0rem !important;
}


/* ===== Оглавление: финальная версия ===== */

/* Весь блок оглавления — отступ снизу до текста статьи */
.toc {
    margin-bottom: 1.5rem !important; /* ≈32px — комфортный отступ */
}

/* Заголовок "Оглавление" */
.toc .index-header {
    margin-bottom: 1.2rem !important;
}

/* Основной список — небольшой отступ для цифр */
.toc .index {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin: 0 !important;
}

/* Пункты верхнего уровня (h2) */
.toc .index > .index-item {
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
}

/* Вложенный список (h3) — пустые кружки */
.toc .index .index-item ul,
.toc .index-item ul {
    list-style-type: circle !important;
    margin-top: 0.6rem !important;
    margin-bottom: 0.3rem !important;
    padding-left: 1.5rem !important;
}

/* Подпункты (h3) */
.toc .index-item ul .index-item,
.toc .index .index-item .index-item {
    margin-bottom: 0.6rem !important;
    line-height: 1.3 !important;
}



/* === Цифра 1 — белая в красном квадрате #9B1B30 === */
.offcanvas-menu .item-104 a::before {
    content: "1";
    background-color: #C62828 !important;
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    min-width: 24px;
}

/* === Цифра 2 — белая в жёлтом квадрате #E8B84B === */
.offcanvas-menu .item-123 a::before {
    content: "2";
    background-color: #E8B84B !important;
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    min-width: 24px;
}

/* === Цифра 3 — белая в голубом квадрате #00aeef === */
.offcanvas-menu .item-122 a::before {
    content: "3";
    background-color: #00aeef !important;
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    min-width: 24px;
}

/* = Размер цифр в квадратах выпадающего верхнего меню = */
.sp-megamenu-parent>li .sp-menu-badge {
    font-size: 19px;
}

/* === Кнопка поиска сдвиг влево === */
.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}




/* === Единый стиль для всего меню Helix === */

/* Основные пункты (верхний уровень) */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
    font-size: 19px !important;
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, sans-serif !important;
    font-weight: 500 !important;
}

/* Подпункты выпадающего меню */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > span:not(.sp-menu-badge) {
    font-size: 19px !important;
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}


/* === Компактные симметричные отступы между верхними пунктами === */
.sp-megamenu-parent > li > a {
    padding: 0 14px !important;
}

/* Нулевой отступ только у последнего верхнего пункта */
.sp-megamenu-parent > li:last-child > a {
    padding-right: 0 !important;
}




/* === Roboto Condensed для всего Offcanvas === */
.offcanvas-menu,
.offcanvas-menu * {
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Основные пункты Offcanvas */
.offcanvas-menu .offcanvas-inner ul.menu > li > a {
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

/* === Подпункты Offcanvas === */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li {
    line-height: 30px !important;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a {
    font-size: 20px !important;
    font-weight: 400 !important;
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, sans-serif !important;
    line-height: 30px !important;
    display: inline-block;
}


/* === Размер основного текста === */
body {
    font-size: 19px !important;
}

/* === Межстрочный интервал основного текста === */
body {
    line-height: 1.625 !important;
}

/* === Заголовки в категории (одноколоночный режим) === */

/* Десктоп */
.category-desc h1,
.blog .category-desc h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
}

.article-list .article .article-header h2,
.article-list .article .article-header h2 a,
.blog-item .article-header h2,
.blog-item .article-header h2 a {
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .category-desc h1,
    .blog .category-desc h1 {
        font-size: 28px !important;
    }
    
    .article-list .article .article-header h2,
    .article-list .article .article-header h2 a,
    .blog-item .article-header h2,
    .blog-item .article-header h2 a {
        font-size: 22px !important;
    }
}


/* === H1 в статьях — как в категориях === */

/* Десктоп */
.article-header h1,
.item-page h1,
.page-header h1,
.article-details h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 40px !important;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .article-header h1,
    .item-page h1,
    .page-header h1,
    .article-details h1 {
        font-size: 28px !important;
    }
}




/* === Возвращаем Font Awesome 6 для иконок соцсетей в Offcanvas === */
.offcanvas-menu .fab,
.offcanvas-menu .fa-brands,
.offcanvas-menu .fas,
.offcanvas-menu .fa-solid,
.offcanvas-menu .far,
.offcanvas-menu .fa-regular,
.offcanvas-menu [class*="fa-"] {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 6 Free', 'FontAwesome' !important;
}

/* Брендовые иконки (VK, OK, Telegram) — только Brands */
.offcanvas-menu .fab,
.offcanvas-menu .fa-brands,
.offcanvas-menu .fa-vk,
.offcanvas-menu .fa-odnoklassniki,
.offcanvas-menu .fa-telegram,
.offcanvas-menu .fa-whatsapp {
    font-family: 'Font Awesome 6 Brands', 'FontAwesome' !important;
    font-weight: 400 !important;
}

/* Solid иконки (стрелки, крестики закрытия) */
.offcanvas-menu .fas,
.offcanvas-menu .fa-solid {
    font-family: 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 900 !important;
}

/* Regular иконки */
.offcanvas-menu .far,
.offcanvas-menu .fa-regular {
    font-family: 'Font Awesome 6 Free', 'FontAwesome' !important;
    font-weight: 400 !important;
}

/* Убираем Roboto Condensed с ::before псевдоэлементов иконок */
.offcanvas-menu .fab::before,
.offcanvas-menu .fas::before,
.offcanvas-menu .far::before,
.offcanvas-menu [class*="fa-"]::before {
    font-family: inherit !important;
}


/* === Увеличиваем иконки соцсетей в Offcanvas === */
.offcanvas-menu .social-icons {
    display: flex !important;
    gap: 0px !important;
    padding: 10px 0 !important;
}

.offcanvas-menu .social-icons li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.offcanvas-menu .social-icons .fab,
.offcanvas-menu .social-icons [class*="fa-"] {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
}


/* Разрешаем вертикальный скролл внутри Offcanvas */
.offcanvas-menu {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}





/* Расширение блока Offcanvas */
.offcanvas-menu {
    width: 330px;
}

body.ltr.offcanvs-position-right .offcanvas-menu {
    right: -340px;
}





/* Скрываем обычное десктопное меню в диапазоне 992px - 1199.20px */
@media (min-width: 992px) and (max-width: 1199.20px) {
    .sp-megamenu-parent,
    .sp-menu-wrap {
        display: none !important;
    }
}

/* Скрываем кнопку-бургер на больших экранах (от 1200px) */
@media (min-width: 1200px) {
    .burger-icon,
    .sp-module:has(.burger-icon),
    [class*="offcanvas-toggle"],
    [class*="offcanvas-menu-toggler"],
    [data-toggle="offcanvas"],
    [data-bs-toggle="offcanvas"],
    a[href="#offcanvas"],
    button[aria-controls="offcanvas"] {
        display: none !important;
    }
}



/* === Отступы для нумерованных и маркированных списков в статьях === */

.article-details ol,
.article-details ul,
.article-body ol,
.article-body ul {
    padding-left: 30px !important;
    margin-bottom: 20px !important;
}

/* Отступ между пунктами списка */
.article-details ol li,
.article-details ul li,
.article-body ol li,
.article-body ul li {
    margin-bottom: 12px !important;
    line-height: 1.625 !important;
}

/* Последний пункт без отступа снизу */
.article-details ol li:last-child,
.article-details ul li:last-child,
.article-body ol li:last-child,
.article-body ul li:last-child {
    margin-bottom: 0 !important;
}





/* === Колонка соцсетей в подвале === */
.footer-contacts-column {
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.footer-contacts-column h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-social-list li {
    margin-bottom: 12px !important;
}

.footer-social-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    transition: color 0.3s ease !important;
    padding: 4px 0 !important;
}

.footer-social-list li a:hover {
    color: #00aeef !important;
}

.footer-social-list li a i {
    font-size: 18px !important;
    width: 22px !important;
    min-width: 22px !important;
    text-align: center !important;
    color: #aaaaaa !important;
    transition: color 0.3s ease !important;
}

.footer-social-list li a:hover i {
    color: #00aeef !important;
}

.footer-social-list li a span {
    text-transform: none !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}



/* === Контакты в верхней панели === */
.top-bar-contacts {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.top-bar-contacts a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #cccccc !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-family: 'Roboto', sans-serif !important;
    transition: color 0.3s ease !important;
}

.top-bar-contacts a:hover {
    color: #00aeef !important;
}

.top-bar-contacts a i {
    font-size: 16px !important;
    color: #aaaaaa !important;
    transition: color 0.3s ease !important;
}

.top-bar-contacts a:hover i {
    color: #00aeef !important;
}



/* === Отступы заголовков внутри статьи === */

/* H1 — главный заголовок статьи */
.article-details h1,
.article-body h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* H2 — основные разделы */
.article-details h2,
.article-body h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 25px !important;
    margin-bottom: 20px !important;
}

/* H3 — подразделы */
.article-details h3,
.article-body h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
}

/* H4 — мелкие подразделы */
.article-details h4,
.article-body h4 {
    font-size: 21px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 15px !important;
    margin-bottom: 12px !important;
}

/* Первый заголовок после начала статьи — без большого отступа сверху */
.article-details h2:first-child,
.article-body h2:first-child {
    margin-top: 20px !important;
}

/* Мобильные устройства — уменьшаем отступы и размер */
@media (max-width: 767px) {
    .article-details h1,
    .article-body h1 {
        font-size: 28px !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }
    
    .article-details h2,
    .article-body h2 {
        font-size: 24px !important;
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .article-details h3,
    .article-body h3 {
        font-size: 21px !important;
        margin-top: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .article-details h4,
    .article-body h4 {
        font-size: 19px !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }
}



/* === Кнопка "Читать далее" в карточках материалов === */
.readmore a,
.item-readmore a,
.blog-item .readmore a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: transparent !important;
    color: #00aeef !important;
    border: 2px solid #00aeef !important;
    border-radius: 4px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
}

.readmore a:hover,
.item-readmore a:hover,
.blog-item .readmore a:hover {
    background: #00aeef !important;
    color: #ffffff !important;
}

.readmore a::after,
.item-readmore a::after,
.blog-item .readmore a::after {
    content: "→" !important;
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
}

.readmore a:hover::after,
.item-readmore a:hover::after,
.blog-item .readmore a:hover::after {
    transform: translateX(5px) !important;
}



/* ============================================================
   Спойлер описания категории — палитра и типографика сайта
   Акцент и ховер: #00aeef · Текст: #4a4a4a · Тёмный: #252525
   Типографика (стеки один-в-один с сайта):
   Roboto Condensed = шапка/заголовки, Roboto = текст и кнопки
   ============================================================ */
.category-spoiler {
    position: relative;
    margin-bottom: 28px;
    background: #ffffff;
    border: 2px solid #dceef8;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(37, 37, 37, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: catSpoilerIn 0.5s ease both;
}

.category-spoiler:hover {
    border-color: #bfe4f6;
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.10);
}

/* Верхняя акцентная полоса: единый голубой с мягким свечением по краям */
.category-spoiler::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 174, 239, 0.35) 0%, #00aeef 50%, rgba(0, 174, 239, 0.35) 100%);
    z-index: 3;
}

@keyframes catSpoilerIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Скрытый переключатель (доступен с клавиатуры) */
.category-spoiler .spoiler-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- Шапка: стек заголовков сайта ---------- */
.category-spoiler .spoiler-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 14px;
    background: #ffffff;
    border-bottom: 2px solid #e4f3fb;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease;
}

.category-spoiler .spoiler-header:hover { background: #f2fafd; }

.category-spoiler .spoiler-toggle:focus-visible + .spoiler-header {
    outline: 2px solid #00aeef;
    outline-offset: -3px;
}

/* Стрелка в круглом бейдже */
.category-spoiler .spoiler-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.12);
    color: #00aeef;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.category-spoiler .spoiler-header:hover .spoiler-arrow {
    background: rgba(0, 174, 239, 0.22);
}

.category-spoiler .spoiler-title {
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #00aeef;
    transition: color 0.25s ease;
}

.category-spoiler .spoiler-header:hover .spoiler-title { color: #00aeef; }

/* ---------- Тело: стек основного текста сайта ---------- */
.category-spoiler .spoiler-body {
    position: relative;
    background: #f7fcff;
}

.category-spoiler .spoiler-content {
    max-height: 250px;
    overflow: hidden;
    padding: 16px 20px 0;
    transition: max-height 0.55s ease;
}

.category-spoiler .spoiler-content p {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, Verdana, sans-serif !important;
    font-size: 19px;
    line-height: 1.625;
    color: #4a4a4a;
    margin: 0 0 15px;
}

.category-spoiler .spoiler-content p:last-child { margin-bottom: 0; }

.category-spoiler .spoiler-content strong { color: #252525; font-weight: 700; }

.category-spoiler .spoiler-content a {
    color: #00aeef;
    text-decoration: underline;
    transition: color 0.25s ease, text-decoration-thickness 0.25s ease;
}

.category-spoiler .spoiler-content a:hover {
    color: #00aeef;
    text-decoration-thickness: 2px;
}

.category-spoiler .spoiler-content ::selection {
    background: rgba(0, 174, 239, 0.25);
    color: #252525;
}

/* Градиентное затухание в цвет тела */
.category-spoiler .spoiler-body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(247, 252, 255, 0) 0%, rgba(247, 252, 255, 1) 85%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* ---------- Кнопки: стек body, Roboto 400, текст 18px ---------- */
.category-spoiler .spoiler-more,
.category-spoiler .spoiler-less {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #00aeef;
    border-radius: 40px;
    color: #00aeef;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, Verdana, sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
                opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Ховер: фон #00aeef, текст белый */
.category-spoiler .spoiler-more:hover,
.category-spoiler .spoiler-less:hover {
    background: #00aeef;
    border-color: #00aeef;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.28);
}

/* «Развернуть» — по центру поверх затухания */
.category-spoiler .spoiler-more {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 2;
}

.category-spoiler .spoiler-more:hover { transform: translateX(-50%) translateY(-1px); }

/* «Свернуть» — по центру под текстом */
.category-spoiler .spoiler-actions { display: none; }

.category-spoiler .spoiler-less:hover { transform: translateY(-1px); }

/* ---------- Раскрытое состояние ---------- */
.category-spoiler .spoiler-toggle:checked ~ .spoiler-header .spoiler-arrow {
    transform: rotate(180deg);
    background: rgba(0, 174, 239, 0.22);
    color: #00aeef;
}

.category-spoiler .spoiler-toggle:checked ~ .spoiler-header .spoiler-title { color: #00aeef; }

.category-spoiler .spoiler-toggle:checked ~ .spoiler-body .spoiler-content {
    max-height: 3000px;
    padding-bottom: 4px;
}

.category-spoiler .spoiler-toggle:checked ~ .spoiler-body::after { opacity: 0; }

.category-spoiler .spoiler-toggle:checked ~ .spoiler-body .spoiler-more {
    opacity: 0;
    pointer-events: none;
}

.category-spoiler .spoiler-toggle:checked ~ .spoiler-body .spoiler-actions {
    display: flex;
    justify-content: center;
    padding: 0px 20px 25px;
    animation: catSpoilerFadeIn 0.35s ease;
}

@keyframes catSpoilerFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Мобильные устройства ---------- */
@media (max-width: 767px) {
    .category-spoiler .spoiler-header { padding: 14px 16px 12px; }
    .category-spoiler .spoiler-content { max-height: 200px; padding: 14px 16px 0; }
    .category-spoiler .spoiler-toggle:checked ~ .spoiler-body .spoiler-content { max-height: 3000px; }
    .category-spoiler .spoiler-body::after { height: 76px; }
    .category-spoiler .spoiler-more,
    .category-spoiler .spoiler-less { padding: 10px 20px; }
}

/* ---------- Уважение к «уменьшить движение» Конец спойлера ---------- */
@media (prefers-reduced-motion: reduce) {
    .category-spoiler,
    .category-spoiler .spoiler-header,
    .category-spoiler .spoiler-arrow,
    .category-spoiler .spoiler-title,
    .category-spoiler .spoiler-content,
    .category-spoiler .spoiler-body::after,
    .category-spoiler .spoiler-more,
    .category-spoiler .spoiler-less {
        transition: none;
        animation: none;
    }
    .category-spoiler .spoiler-toggle:checked ~ .spoiler-body .spoiler-actions { animation: none; }
}


