/* --- 1. ШРИФТ И ОСНОВНОЙ ЦВЕТ ШАПКИ --- */
body, html, a, p, div, span, h1, h2, h3 {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.pkp_structure_head {
    background-color: #B32D15 !important; /* Глубокий красный */
    padding: 25px 0 10px 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- 2. РЕГИСТРАЦИЯ И ВХОД (БЕЛЫЕ И КРУПНЫЕ) --- */
.pkp_navigation_user a {
    color: #ffffff !important;
    font-size: 16px !important; /* Увеличили размер */
    font-weight: 600 !important;
    opacity: 1 !important;
    padding: 5px 10px !important;
}

.pkp_navigation_user a:hover {
    text-decoration: underline !important;
}

/* --- 3. КНОПКА "НАЙТИ" (БЕЛАЯ И КРУПНАЯ) --- */
/* Прописываем максимально детально, чтобы убрать черный цвет */
.pkp_navigation_search a,
.pkp_navigation_search_wrapper a,
.pkp_search_link,
.pkp_navigation_search .search_prompt,
.pkp_navigation_search .fa-search {
    color: #ffffff !important;
    font-size: 18px !important; /* Сделали больше основного меню */
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* --- 4. ГЛАВНОЕ МЕНЮ --- */
.pkp_navigation_primary_wrapper {
    background-color: #B32D15 !important;
    border-top: 1px solid rgba(255,255,255,0.2) !important;
}

.pkp_navigation_primary a {
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    padding: 15px 20px !important;
}

/* Полоска под текущим разделом */
.pkp_navigation_primary .current a {
    border-bottom: 3px solid #ffffff !important;
}

/* --- 5. ВЫПАДАЮЩЕЕ МЕНЮ (ПОДМЕНЮ) --- */
.pkp_navigation_primary ul {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.pkp_navigation_primary ul li a {
    color: #B32D15 !important; /* Красный текст на белом фоне */
    font-size: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* --- 6. ЛОГОТИП И ВЫРАВНИВАНИЕ --- */
.pkp_site_name img {
    max-height: none !important;
    max-width: none !important;
    width: 480px !important; 
    height: auto !important;
}

.pkp_site_name_wrapper, 
.pkp_navigation_primary_wrapper .pkp_navigation_primary {
    max-width: 1100px !important;
    margin: 0 auto !important;
}
/* --- СТИЛЬ БОКОВОЙ ПАНЕЛИ (КНОПКИ) --- */
.custom-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Расстояние между кнопками */
    margin-bottom: 25px;
}

.side-btn {
    display: block !important;
    padding: 12px 15px !important;
    background-color: #f4f4f4 !important; /* Серый фон */
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

/* Темные кнопки */
.side-btn-dark {
    background-color: #555 !important;
    color: #fff !important;
}

/* Эффект при наведении */
.side-btn:hover {
    background-color: #B32D15 !important; /* Наш красный */
    color: #fff !important;
    padding-left: 20px !important;
}

/* Сетка индексации */
.indexing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.indexing-item {
    border: 1px solid #eee;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
/* --- ТЮНИНГ БОКОВОЙ ПАНЕЛИ --- */

/* Заголовки блоков (Язык, Информация и т.д.) */
.pkp_structure_sidebar .block .title {
    font-size: 14px !important;
    text-transform: uppercase !important;
    color: #B32D15 !important; /* Наш красный */
    border-bottom: 2px solid #B32D15 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Скрываем стандартную серую кнопку "Отправить материал" внизу */
.block_make_submission {
    display: none !important;
}

/* Блок выбора языка */
.block_language ul li {
    list-style: none !important;
    margin-bottom: 10px !important;
}

.block_language ul li a {
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    display: block;
    padding: 5px 0;
    transition: all 0.2s;
}

.block_language ul li a:hover {
    color: #B32D15 !important;
    padding-left: 5px;
}

/* Исправляем сетку индексации (чтобы пустые рамки не висели) */
.indexing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.indexing-item {
    border: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.indexing-item img {
    max-width: 100%;
    max-height: 30px;
    filter: grayscale(100%); /* Делаем логотипы ч/б для стиля */
    opacity: 0.7;
    transition: 0.3s;
}

.indexing-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- СТИЛИЗАЦИЯ СТРАНИЦЫ РЕГИСТРАЦИИ --- */

/* Главный заголовок "Регистрация" */
.page_register h1 {
    color: #B32D15 !important;
    border-bottom: 2px solid #B32D15 !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

/* Заголовки разделов (Профиль, Войти в систему) */
.page_register h2, 
.page_register legend {
    color: #B32D15 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 35px !important;
    border: none !important;
}

/* Названия полей (Имя, Фамилия и т.д.) */
.page_register label {
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

/* Поля ввода и выпадающие списки */
.page_register input[type="text"],
.page_register input[type="password"],
.page_register input[type="email"],
.page_register select {
    border: 1px solid #ddd !important;
    padding: 10px !important;
    border-radius: 4px !important;
    width: 100% !important;
    max-width: 450px !important; /* Чтобы поля не растягивались на весь экран */
    transition: border-color 0.3s !important;
}

/* Подсветка поля при клике */
.page_register input:focus, 
.page_register select:focus {
    border-color: #B32D15 !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(179, 45, 21, 0.2) !important;
}

/* Главная кнопка "Регистрация" */
.page_register .buttons button,
.page_register button[type="submit"] {
    background-color: #B32D15 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    margin-top: 20px !important;
}

.page_register .buttons button:hover {
    background-color: #8a2210 !important;
}

/* Ссылка "Войти в систему" рядом с кнопкой */
.page_register .buttons a {
    color: #B32D15 !important;
    margin-left: 20px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.page_register .buttons a:hover {
    text-decoration: underline !important;
}

/* Стилизация чекбоксов и их текстов */
.page_register .checkboxes label {
    font-weight: normal !important;
    font-size: 14px !important;
    color: #555 !important;
}

/* --- ИСПРАВЛЕНИЕ МЕНЮ ПОЛЬЗОВАТЕЛЯ (ВХОД / ПРОФИЛЬ) --- */

/* Фон выпадающего списка профиля (делаем белым с тенью) */
.pkp_navigation_user ul {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    border: none !important;
    padding: 5px 0 !important;
}

/* Текст в выпадающем списке профиля (делаем темным/красным) */
.pkp_navigation_user ul li a {
    color: #333333 !important; /* Темный текст */
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    display: block !important;
}

/* Эффект при наведении на пункт в меню профиля */
.pkp_navigation_user ul li a:hover {
    background-color: #f8f8f8 !important;
    color: #B32D15 !important; /* Наш фирменный красный */
    text-decoration: none !important;
}

/* Исправляем цвет самого имени пользователя (maulen_88) в шапке */
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* --- СТИЛИЗАЦИЯ СТРАНИЦЫ ВХОДА (LOGIN) --- */

/* Заголовок "Войти в систему" */
.page_login h1 {
    color: #B32D15 !important;
    border-bottom: 2px solid #B32D15 !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

/* Названия полей (Имя пользователя, Пароль) */
.page_login label {
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Поля ввода (логин и пароль) */
.page_login input[type="text"],
.page_login input[type="password"] {
    border: 1px solid #ddd !important;
    padding: 12px !important;
    border-radius: 4px !important;
    width: 100% !important;
    max-width: 400px !important; /* Ограничиваем ширину для аккуратности */
    transition: all 0.3s ease !important;
    font-size: 15px !important;
}

/* Подсветка при клике в поле */
.page_login input:focus {
    border-color: #B32D15 !important;
    box-shadow: 0 0 8px rgba(179, 45, 21, 0.15) !important;
    outline: none !important;
}

/* Ссылка "Забыли пароль?" */
.page_login .forgot_password {
    display: inline-block !important;
    margin-top: 5px !important;
    font-size: 13px !important;
    color: #B32D15 !important;
    text-decoration: none !important;
}

.page_login .forgot_password:hover {
    text-decoration: underline !important;
}

/* Секция с кнопками (Регистрация и Войти) */
.page_login .buttons {
    margin-top: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Кнопка "Войти в систему" */
.page_login button[type="submit"] {
    background-color: #B32D15 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.page_login button[type="submit"]:hover {
    background-color: #8a2210 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Ссылка "Регистрация" рядом с кнопкой */
.page_login .register {
    color: #B32D15 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

.page_login .register:hover {
    text-decoration: underline !important;
}

/* Текст "Запомнить меня" */
.page_login .remember {
    font-size: 14px !important;
    color: #666 !important;
    margin-top: 15px !important;
}

/* --- СТИЛИЗАЦИЯ СТРАНИЦЫ ОТПРАВКИ МАТЕРИАЛОВ --- */

/* Главный заголовок */
.page_submissions h1 {
    color: #B32D15 !important;
    border-bottom: 2px solid #B32D15 !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

/* Подзаголовки разделов (Руководство, Контрольный список и др.) */
.page_submissions h2, 
.page_submissions h3 {
    color: #B32D15 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

/* Блок уведомления (Синяя рамка "Для отправки материала...") */
/* Делаем его строгим и заметным */
.page_submissions .cmp_notification.instruction {
    background-color: #f9f9f9 !important;
    border: none !important;
    border-left: 5px solid #B32D15 !important;
    color: #333 !important;
    padding: 20px !important;
    font-size: 15px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Ссылки внутри уведомления */
.page_submissions .cmp_notification.instruction a {
    color: #B32D15 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

/* Списки (Контрольный список) */
.page_submissions ul {
    padding-left: 20px !important;
    margin-bottom: 25px !important;
}

.page_submissions ul li {
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    position: relative;
    list-style: none !important;
}

/* Кастомный маркер для списков (красная точка) */
.page_submissions ul li::before {
    content: "•";
    color: #B32D15;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Текст параграфов */
.page_submissions p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 20px !important;
}

/* Ссылки в тексте */
.page_submissions a {
    color: #B32D15 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(179, 45, 21, 0.3);
}

.page_submissions a:hover {
    border-bottom: 1px solid #B32D15;
}

/* --- СТИЛИЗАЦИЯ СТРАНИЦЫ ИНФОРМАЦИИ (ДЛЯ АВТОРОВ) --- */

/* Главный заголовок */
.page_information h1 {
    color: #B32D15 !important;
    border-bottom: 2px solid #B32D15 !important;
    padding-bottom: 10px !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    font-size: 26px !important;
    font-weight: 700 !important;
}

/* Текст параграфов */
.page_information p {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    text-align: justify; /* Делаем ровный край для академичности */
}

/* Ссылки в тексте */
.page_information a {
    color: #B32D15 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(179, 45, 21, 0.2);
    transition: all 0.2s ease;
}

.page_information a:hover {
    border-bottom: 1px solid #B32D15;
    background-color: rgba(179, 45, 21, 0.05);
}

/* Стилизация хлебных крошек (Главная / Информация...) */
.pkp_structure_breadcrumb a {
    color: #666 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.pkp_structure_breadcrumb a:hover {
    color: #B32D15 !important;
}

.pkp_structure_breadcrumb .current {
    color: #999 !important;
    font-size: 13px !important;
}

/* --- ИСПРАВЛЕНИЕ СПИСКА СТРАН --- */

.page_register select,
.page_login select {
    height: 45px !important;       /* Устанавливаем четкую высоту */
    padding: 5px 10px !important;  /* Уменьшаем вертикальный отступ */
    line-height: normal !important; /* Сбрасываем высоту строки */
    font-size: 15px !important;
    color: #333 !important;        /* Цвет текста */
    background-color: #fff !important;
    display: block !important;
    -webkit-appearance: menulist !important; /* Возвращаем стандартный вид стрелочки */
    appearance: menulist !important;
}

/* Чтобы текст внутри вариантов (options) тоже был виден */
.page_register select option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 10px !important;
}

/* Полностью убираем системный логотип и надпись OJS / PKP внизу */
.pkp_brand_footer, 
.pkp_footer_content .pkp_brand_footer,
footer .pkp_brand_footer {
    display: none !important;
}

/* Если останется пустое место или отступ снизу */
.pkp_structure_footer {
    padding-bottom: 0 !important;
}

/* --- ПЕРЕМЕЩЕНИЕ БЛОКА "О ЖУРНАЛЕ" НАВЕРХ --- */

/* Контейнер всей главной страницы */
.page_index_journal {
    display: flex !important;
    flex-direction: column !important;
}

/* Находим наш блок дополнительного контента и даем ему приоритет */
.page_index_journal .additional_content {
    order: -1 !important; /* Это поднимет блок в самый верх */
    margin-bottom: 50px !important; /* Отступ от выпуска снизу */
}

/* Текущий выпуск теперь будет вторым */
.page_index_journal .current_issue {
    order: 1 !important;
}

/* Ссылка "Показать все выпуски" тоже пусть будет внизу */
.page_index_journal .homepage_issue_view_all {
    order: 2 !important;
}

/* ҚАЗАҚША НҰСҚАҒА АРНАЛҒАН CSS ТЕҢШЕЛІМДЕРІ */

/* Егер қазақша мәтін ұзын болса, карточкалардың енін сәл реттейміз */
.locale_kk_KZ .additional_content .flex-item {
    min-width: 220px !important;
}

/* Қазақша "Толығырақ" мәтінін CSS арқылы ауыстыру (егер қолданылса) */
.locale_kk_KZ .description::after {
    content: "Толығырақ..." !important;
    color: #0056b3;
}

/* Басқару батырмаларын қазақшалау (егер жүйеде аударылмаған болса) */
.locale_kk_KZ .homepage_issue_view_all a::after {
    content: " Барлық шығарылымдарды көрсету" !important;
}

/* ENGLISH LOCALE SPECIFIC TWEAKS */

/* Narrowing cards slightly for shorter English labels */
.locale_en_US .additional_content .flex-item {
    min-width: 180px !important;
}

/* Custom "Read More" text for the English version */
.locale_en_US .description::after {
    content: "Read more..." !important;
    color: #0056b3;
    font-weight: 600;
}

/* Internationalizing the 'View All Issues' button */
.locale_en_US .homepage_issue_view_all a::after {
    content: " Show all issues" !important;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (СМАРТФОНЫ И ПЛАНШЕТЫ) --- */

@media (max-width: 768px) {
    /* 1. Превращаем 2 колонки (содержание и рубрикатор) в 1 колонку друг под другом */
    .additional_content div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 2. Карточки (Периодичность, Языки) тоже выстраиваем в ровный столбик */
    .additional_content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* 3. Уменьшаем внутренние отступы белого фона, чтобы не съедать края экрана телефона */
    .additional_content > div {
        padding: 15px !important;
    }

    /* 4. Уменьшаем размер главного заголовка "О журнале" */
    .additional_content h2 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    /* 5. Уменьшаем боковые отступы на самой странице */
    .page_index_journal {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* 1. Общий контейнер меню — делаем его аккуратным */
.pkp_navigation_primary, .pkp_navigation_user {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* 2. Стили для ссылок меню */
.pkp_navigation_primary > li > a, 
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    padding: 12px 18px !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* Эффект при наведении на пункт */
.pkp_navigation_primary > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
}

/* 3. Магия для Поиска (Лупа) */
/* Скрываем текст "Іздеу" или "Поиск" */
li.search > a {
    font-size: 0 !important; 
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
}

/* Вставляем иконку лупы через фон */
li.search > a::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    visibility: visible !important;
}

/* Если есть старая иконка от OJS (квадратик) — убираем её */
li.search > a > span {
    display: none !important;
}

/* 4. Выпадающее меню (Ақпарат) */
.pkp_navigation_primary ul {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    border: none !important;
    border-radius: 4px !important;
}

.pkp_navigation_primary ul li a {
    color: #333333 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

/* 1. Находим пункт "Найти" и выравниваем его */
.pkp_navigation_primary li.search a {
    display: flex !important;
    align-items: center !important;
}

/* 2. Убиваем этот надоедливый пустой квадрат */
.pkp_navigation_primary li.search a::before {
    content: none !important;
    display: none !important;
}

/* 3. Ставим надежную SVG-лупу, которая сработает всегда */
.pkp_navigation_primary li.search a::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px; /* Расстояние до слова "Найти" */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    order: -1; /* Магия: переносим иконку в начало слова */
    visibility: visible !important;
}

/* 4. На всякий случай убираем старые иконки-заглушки */
.pkp_navigation_primary li.search a .fa, 
.pkp_navigation_primary li.search a span {
    display: none !important;
}

/* 1. ПОЛНОСТЬЮ УБИРАЕМ СИСТЕМНЫЙ КВАДРАТ (ИЗ ВСЕХ ВОЗМОЖНЫХ МЕСТ) */
.pkp_navigation_primary li.search a::before, 
.pkp_navigation_primary li.search a span, 
.pkp_navigation_primary li.search a .fa,
.pkp_navigation_primary li.search a [class*="icon"] {
    display: none !important;
    content: none !important;
    width: 0 !important;
    margin: 0 !important;
}

/* 2. ПОДГОТАВЛИВАЕМ КНОПКУ */
.pkp_navigation_primary li.search a {
    position: relative !important;
    padding-left: 35px !important; /* Оставляем место под новую лупу */
    display: flex !important;
    align-items: center !important;
    min-height: 20px !important;
}

/* 3. РИСУЕМ НОВУЮ ЛУПУ ЧЕРЕЗ SVG (ОНА 100% ОТОБРАЗИТСЯ) */
.pkp_navigation_primary li.search a::after {
    content: "" !important;
    position: absolute !important;
    left: 10px !important; /* Позиция лупы слева */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    
    /* Сама иконка лупы в формате SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    visibility: visible !important;
    display: block !important;
}

/* 1. Убиваем шрифт-иконку, который превращается в квадрат */
.pkp_navigation_primary li.search a {
    font-family: 'Noto Sans', Arial, sans-serif !important; /* Принудительно ставим обычный шрифт */
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 35px !important; /* Место под лупу */
    text-decoration: none !important;
}

/* 2. Полностью вырезаем системный символ (даже если он в коде) */
.pkp_navigation_primary li.search a::before,
.pkp_navigation_primary li.search a span.fa,
.pkp_navigation_primary li.search a [class*="icon"] {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    width: 0 !important;
}

/* 3. Ставим нашу гарантированную лупу через фон */
.pkp_navigation_primary li.search a::after {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: block !important;
}

.indexing-section {
  font-family: Arial, sans-serif;
  padding: 20px;
}

.indexing-title {
  color: #c00; /* Тот же красный */
  text-transform: uppercase;
  font-size: 1.2em;
  border-bottom: 2px solid #c00;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.indexing-container {
  display: flex;
  flex-wrap: wrap; /* Разрешает перенос */
  gap: 20px; /* Отступы между карточками */
  justify-content: center; /* Центрирует карточки */
}

.indexing-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px; /* Скругленные углы */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Тень */
  transition: transform 0.2s, box-shadow 0.2s; /* Анимация */
  min-width: 150px; /* Минимальная ширина */
  text-decoration: none; /* Убирает подчеркивание ссылки */
}

.indexing-card:hover {
  transform: translateY(-5px); /* Небольшое поднятие при наведении */
  box-shadow: 0 8px 12px rgba(0,0,0,0.15); /* Увеличенная тень */
}

.indexing-logo {
  max-height: 40px; /* Одинаковая высота логотипов */
}

/* Специфический стиль для ROAD */
.pink-background {
  background-color: #fce4ec; /* Светло-розовый */
}

/* Исправление мобильного меню */
@media (max-width: 991px) {
    /* Делаем все главные пункты меню блоками на всю ширину */
    .pkp_navigation_primary > ul > li,
    .pkp_navigation_user > ul > li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px !important;
    }

    /* Растягиваем ссылки на всю ширину для удобного нажатия пальцем */
    .pkp_navigation_primary > ul > li > a {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Подменю (выпадающий список) тоже адаптируем */
    .pkp_navigation_primary ul li ul {
        position: relative !important;
        width: 100% !important;
        box-shadow: none !important;
        margin-top: 5px;
    }
}

@media (max-width: 992px) {
    /* Принудительно делаем контейнер меню вертикальной колонкой */
    ul#navigationPrimary, 
    .pkp_navigation_primary > ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Растягиваем каждый пункт меню на всю ширину */
    ul#navigationPrimary > li,
    .pkp_navigation_primary > ul > li {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin: 8px 0 !important; /* Отступы между пунктами */
        text-align: left !important;
    }

    /* Подменю (выпадающий список) встраиваем в общую колонку */
    ul#navigationPrimary li ul,
    .pkp_navigation_primary ul li ul {
        position: relative !important;
        width: 100% !important;
        box-shadow: none !important;
        padding-left: 15px !important; /* Легкий отступ для подменю */
    }
}

/* Основной контейнер боковой панели */
.indexing-sidebar-wrapper {
    font-family: Arial, sans-serif;
    width: 280px; /* Пример ширины, как на скриншоте. Вы можете изменить */
    margin: 20px auto; /* Центрирование блока */
}

/* Заголовок */
.indexing-title {
    color: #b22222; /* Цвет заголовка */
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

/* Список карточек */
.indexing-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Отступы между карточками */
}

/* Карточка (ссылка) */
.indexing-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e35c3e; /* Рамка нужного цвета */
    border-radius: 4px; /* Закругление углов */
    padding: 10px; /* Отступ внутри рамки */
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Легкая тень */
    overflow: hidden;
}

/* Изображения внутри карточек */
.indexing-card img {
    display: block;
    margin: 0 auto; /* Центрирование изображения */
    max-width: 100%;
    height: auto;
}

/* --- ОСНОВНЫЕ СТИЛИ НАВИГАЦИИ --- */
.adlet-nav {
    background-color: #B32D15; /* Твой фирменный красный */
    width: 100%;
    font-family: 'Noto Sans', Arial, sans-serif;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between; /* Бургер слева, Поиск справа */
    align-items: center;
    height: 60px;
}

/* --- ВЫРАВНИВАНИЕ МЕНЮ ПО ЦЕНТРУ --- */
.menu-wrapper {
    flex-grow: 1; /* Обертка занимает все свободное место */
    display: flex;
    justify-content: center; /* Центрируем список ul */
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px; /* Отступы между пунктами */
}

.nav-menu li a {
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: block;
}

/* Эффект при наведении */
.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* --- БЛОК ПОИСКА --- */
.search-block a {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 50%;
    transition: 0.2s;
}

.search-block a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.search-block svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* --- БУРГЕР-МЕНЮ И ЧЕКБОКС (Скрыты на десктопе) --- */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* --- АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ (max-width: 768px) --- */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between; /* Бургер слева, Поиск справа */
    }

    /* Делаем бургер видимым */
    .nav-toggle-label {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        cursor: pointer;
    }

    .nav-toggle-label span {
        display: block;
        width: 100%;
        height: 3px;
        background: #ffffff;
        border-radius: 2px;
        position: absolute;
        transition: 0.3s;
    }

    /* Позиционирование полосок бургера */
    .nav-toggle-label span:nth-child(1) { top: 6px; }
    .nav-toggle-label span:nth-child(2) { top: 13px; }
    .nav-toggle-label span:nth-child(3) { top: 20px; }

    /* Превращаем центральное меню в выпадающий список */
    .menu-wrapper {
        position: absolute;
        top: 60px; /* Сразу под полоской навигации */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Белый фон для мобильного меню */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: block; /* Переходим с flex на block */
        height: 0; /* Скрыто по умолчанию */
        overflow: hidden;
        transition: height 0.3s ease;
    }

    .nav-menu {
        display: block; /* Списком вниз */
        padding: 15px 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        color: #333333 !important; /* Черный текст на белом фоне */
        text-transform: none;
        font-size: 15px;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li a:hover {
        background-color: #f8f8f8;
    }

    /* МАГИЯ: По клику на бургер раскрываем меню */
    .nav-toggle:checked ~ .menu-wrapper {
        height: auto; /* Показываем меню */
        border-top: 1px solid #eee;
    }

    /* МАГИЯ: Анимация бургера в крестик */
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: rotate(45deg); top: 13px; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: rotate(-45deg); top: 13px; }

    /* Поиск на мобильном оставляем справа */
    .search-block {
        order: 3; /* Принудительно ставим третьим */
    }
}

/* 1. Мягкое центрирование контейнера меню */
.pkp_navigation_primary {
    display: flex !important;
    justify-content: center !important; /* Ставим ровно по центру */
    align-items: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important; /* ВАЖНО: возвращаем выпадающие меню к жизни */
}

/* 2. Запрещаем словам разрываться внутри кнопок */
.pkp_navigation_primary > li {
    white-space: nowrap !important;
    display: block !important;
}

/* 3. Делаем пункты компактнее, чтобы ВСЁ влезло в 1 строку на мониторе */
.pkp_navigation_primary > li > a {
    padding: 15px 12px !important; /* Уменьшили отступы слева и справа */
    font-size: 13px !important; /* Оптимальный размер шрифта */
    letter-spacing: 0 !important; /* Убрали лишние пробелы между буквами */
}

/* 4. Позиционируем Поиск в линию */
.pkp_navigation_primary li.search {
    margin-left: 10px !important;
}

  /* Контейнер для кнопок */
  .custom-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Noto Sans', Arial, sans-serif;
    margin-bottom: 20px;
  }
  
  /* Общие стили для всех ссылок-кнопок */
  .custom-sidebar-container a {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
  }

  /* 1. Главные кнопки (Темные/Бордовые) */
  .custom-sidebar-container .side-btn-dark {
    background-color: #b32d15;
    color: #ffffff;
    border: 1px solid #b32d15;
    box-shadow: 0 4px 10px rgba(179, 45, 21, 0.2);
  }
  .custom-sidebar-container .side-btn-dark:hover {
    background-color: #922411; /* Чуть темнее при наведении */
    transform: translateY(-2px); /* Легкий подъем вверх */
    box-shadow: 0 6px 15px rgba(179, 45, 21, 0.3);
  }

  /* 2. Стандартные кнопки (Светлые) */
  .custom-sidebar-container .side-btn {
    background-color: #ffffff;
    color: #444444;
    border: 1px solid #eaeaea;
    border-left: 4px solid #b32d15; /* Красивая бордовая полоса слева */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  }
  .custom-sidebar-container .side-btn:hover {
    background-color: #fdfdfd;
    color: #b32d15;
    border-color: #dcdcdc;
    border-left: 4px solid #922411;
    transform: translateX(4px); /* Легкий сдвиг вправо при наведении */
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  }

  /* Стрелочки */
  .custom-sidebar-container .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
  }
  .custom-sidebar-container a:hover .arrow {
    transform: translateX(3px); /* Стрелочка уезжает вправо при наведении */
  }



/* --- ИСПРАВЛЕНИЕ ВЫПАДАЮЩЕГО МЕНЮ (чтобы текст не вылезал) --- */

/* 1. Заставляем белую рамку тянуться по ширине текста */
.pkp_navigation_primary ul {
    width: max-content !important; /* Рамка автоматически подстроится под самое длинное слово */
    min-width: 260px !important; /* Задаем минимальную ширину, чтобы не было слишком узко */
    padding: 0 !important;
}

/* 2. Разрешаем тексту внутри подменю вести себя нормально */
.pkp_navigation_primary ul li {
    white-space: normal !important; /* Отменяем запрет на перенос строк для подпунктов */
    width: 100% !important;
}

/* 3. Делаем отступы внутри подменю аккуратными */
.pkp_navigation_primary ul li a {
    white-space: normal !important; 
    line-height: 1.5 !important;
    padding: 12px 20px !important; /* Возвращаем комфортные отступы для чтения */
    display: block !important;
}

/* Стили самой кнопки */
  #scrollToTopBtn {
    display: none; /* Скрыта по умолчанию */
    position: fixed; /* Зафиксирована на экране */
    bottom: 30px; /* Отступ снизу */
    right: 30px; /* Отступ справа */
    z-index: 9999; /* Всегда поверх других элементов */
    border: none;
    outline: none;
    background-color: #b32d15; /* Фирменный бордовый цвет журнала */
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Круглая форма */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Красивая тень */
    transition: all 0.3s ease; /* Плавная анимация при наведении */
    opacity: 0.8;
    align-items: center;
    justify-content: center;
  }

  /* Скили для иконки-стрелки внутри */
  #scrollToTopBtn .arrow-up {
    font-size: 24px;
    font-weight: bold;
    line-height: 50px; /* Центрирование по вертикали */
  }

  /* Эффект при наведении мышки */
  #scrollToTopBtn:hover {
    background-color: #922411; /* Чуть темнее при наведении */
    opacity: 1;
    transform: translateY(-5px); /* Легкий подъем вверх */
    box-shadow: 0 6px 15px rgba(179, 45, 21, 0.3); /* Насыщенная тень */
  }

html {
    scroll-behavior: smooth;
}


/* --- УМНЫЙ АРХИВ С ГОДАМИ (4 КОЛОНКИ) --- */

.page_issue_archive .issues_archive_custom {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 колонки */
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Заголовок года на всю ширину (занимает все 4 колонки) */
.page_issue_archive .year_header {
    grid-column: 1 / -1 !important;
    margin-top: 40px !important;
    border-bottom: 2px solid #b32d15 !important; /* Фирменный бордовый */
    padding-bottom: 5px !important;
}

.page_issue_archive .year_header h3 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #333 !important;
}

/* Скрываем обложки и длинный текст из стандартного шаблона */
.page_issue_archive .issue_item .cover,
.page_issue_archive .issue_item .description,
.page_issue_archive .issue_item .series {
    display: none !important;
}

/* Оформляем ссылки на выпуски */
.page_issue_archive .issue_item .obj_issue_summary {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.page_issue_archive .issue_item .title {
    display: block !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #1a5b92 !important; /* Академический синий */
    text-decoration: none !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #ddd !important;
    transition: color 0.2s !important;
}

.page_issue_archive .issue_item .title:hover {
    color: #b32d15 !important;
}

/* 1. Логотип (остается аккуратным) */
.pkp_structure_head img,
.pkp_site_name .is_img img,
.header_site_name img {
    max-width: 130px !important; 
    height: auto !important;
    object-fit: contain;
}

/* 2. Шапка (даем чуть больше высоты, чтобы вместить опущенное меню) */
.pkp_structure_head {
    min-height: 380px !important; /* Немного увеличили, чтобы меню не висело в воздухе */      
    background-size: cover !important;  
    background-position: center center !important; 
    padding-top: 20px !important; 
    padding-bottom: 0px !important; 
}

/* 3. Красное меню (толкаем сильнее вниз) */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    margin-top: 190px !important; /* Сильно увеличили отступ, чтобы меню опустилось под слово «ӘДІЛЕТ» */
}

@media (max-width: 768px) {
  /* Замените .header-background-class на ваш реальный класс шапки OJS */
  .header-background-class {
    background-size: contain !important; /* Вписывает картинку целиком по ширине */
    background-position: center top !important; /* Выравнивает фон по центру и верху */
    background-repeat: no-repeat !important;
  }
}

