/* =======================================================
   MOLMED JOURNAL (FINAL CLEAN VERSION - BLACK LINKS)
   - Шапка: Фиксированная высота 59.91px, картинка.
   - Меню: Без подсветки.
   - Сайдбар: Ссылки всегда черные (не краснеют).
   ======================================================= */

/* 1. ШРИФТЫ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
body, h1, h2, h3, h4, h5, h6, p, a, li, div, span, input, button {
    font-family: "Inter", sans-serif !important;
}

/* =======================================================
   2. СТРУКТУРА И СЕТКА
   ======================================================= */
.pkp_structure_content {
    max-width: 1160px !important;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    overflow: visible !important;          /* критично для sticky */
    min-height: 100vh !important;           /* чтобы родитель был достаточно высоким */
}

.pkp_structure_main {
    width: 860px !important;
    padding-right: 20px;
}

.pkp_structure_sidebar {
    width: 300px !important;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .pkp_structure_sidebar {
        padding-top: 30px;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 60px !important;                   /* высота шапки + запас */
        align-self: flex-start !important;
        z-index: 98 !important;
        height: auto !important;
        max-height: none !important;
    }
}

@media (max-width: 991px) {
    .pkp_structure_main,
    .pkp_structure_sidebar {
        width: 100% !important;
        padding: 0 10px;
    }
    .pkp_structure_sidebar {
        order: 2;
        margin-top: 20px;
    }
}

/* Защита sticky от возможных обёрток OJS */
.pkp_structure_page,
main,
.pkp_structure_content > * {
    overflow: visible !important;
}

/* =======================================================
   3. КНОПКИ (ЖЕЛТЫЕ + ВОЛНА)
   ======================================================= */
html body #sub-btn-glow,
html body .sidebar-button,
html body .custom-sidebar-btn,
html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"] {
    background-color: #ffe100 !important;
    background: #ffe100 !important;
    border: 1px solid #ffe100 !important;
    border-bottom: 3px solid #cc4400 !important;
    border-radius: 10px !important;
    width: 240px !important;
    margin: 0 auto 15px auto !important;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block;
    text-align: center;
}

html body #sub-btn-glow a,
html body .sidebar-button a,
html body .custom-sidebar-btn a,
html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"] a {
    color: #000000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    position: relative;
    z-index: 5;
}

/* Блик */
html body #sub-btn-glow::before,
html body .sidebar-button::before,
html body .custom-sidebar-btn::before,
html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.7s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

html body #sub-btn-glow:hover::before,
html body .sidebar-button:hover::before,
html body .custom-sidebar-btn:hover::before,
html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"]:hover::before {
    left: 100%;
}

html body #sub-btn-glow:hover,
html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"]:hover {
    background: #ffeb3b !important;
    transform: translateY(-2px);
}

/* =======================================================
   4. САЙДБАР (ЗАГОЛОВКИ И ССЫЛКИ)
   ======================================================= */
/* Заголовки блоков - СИНИЙ ГРАДИЕНТ */
.pkp_structure_sidebar .pkp_block .title {
    background: linear-gradient(180deg, #005b9f 0%, #00004d 100%) !important;
    color: #ffffff !important;
    border-radius: 10px;
    text-align: center;
    padding: 5px 0 !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* Разделители меню */
.pkp_structure_sidebar ul li {
    border-bottom: 1px solid #0e1162 !important;
    border-radius: 10px;
}

/* СТРОГИЙ ЧЕРНЫЙ ЦВЕТ ДЛЯ ССЫЛОК */
.pkp_structure_sidebar ul li a,
.pkp_structure_sidebar .pkp_block .content a {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.pkp_structure_sidebar ul li a:hover,
.pkp_structure_sidebar .pkp_block .content a:hover {
    color: #000000 !important;
    background: transparent !important;
}

/* =======================================================
   5. ОСТАЛЬНОЕ (КАРТИНКИ, PDF)
   ======================================================= */
.journal-top-banner img,
.custom-journal-wrapper img {
    width: 100%;
    height: auto;
}

/* PDF Header - Синий */
.header_view {
    background: linear-gradient(180deg, #005b9f 0%, #00004d 100%) !important;
    border-bottom: none;
}
.header_view .download {
    background: #ffe100 !important;
    color: #000 !important;
    border-radius: 4px;
}

/* Мобильная адаптация кнопок */
@media (max-width: 991px) {
    html body #sub-btn-glow,
    html body .pkp_structure_sidebar .pkp_block .content > div[style*="background-color"] {
        width: 100% !important;
    }
}

/* =======================================================
   АККОРДЕОН "ACADEMIC BLACK"
   ======================================================= */
.vrach-accordion-lite {
    max-width: 100%;
    margin: 30px 0;
    font-family: "Inter", sans-serif;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.vrach-accordion-lite details {
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    transition: all 0.3s ease;
}
.vrach-accordion-lite details:last-child { border-bottom: none; }
.vrach-accordion-lite summary {
    padding: 18px 10px 18px 35px;
    font-weight: 600;
    font-size: 15px;
    color: #555c66;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
}
.vrach-accordion-lite summary::-webkit-details-marker { display: none; }
.vrach-accordion-lite summary::before {
    content: '';
    position: absolute;
    left: 15px; top: 50%;
    width: 0; height: 0;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
    border-left: 7px solid #b0b0b0;
    transform: translateY(-50%);
    transition: all 0.2s ease;
}
.vrach-accordion-lite summary:hover { color: #333; }
.vrach-accordion-lite summary:hover::before {
    border-left-color: #888;
    transform: translateY(-50%) scale(1.1);
}
.vrach-accordion-lite details[open] summary {
    color: #000; font-weight: 700;
}
.vrach-accordion-lite details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
    border-left-color: #ef372e;
}
.vrach-accordion-lite .content {
    padding: 5px 10px 25px 35px;
    font-size: 15px; line-height: 1.6;
    color: #000000;
    font-weight: 400; opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.35s forwards 0.1s;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ЯЗЫКОВЫЕ КНОПКИ */
.hard-lang-switch {
    z-index: 100000 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px !important;
}
.hard-lang-switch a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    color: #333333 !important;
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: bold !important;
    font-size: 11px !important;
    height: 24px !important;
    padding: 0 8px !important;
    border-radius: 3px !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
}
.hard-lang-switch a:hover,
.hard-lang-switch a.active-locale {
    color: #ef372e !important;
    border-color: #ef372e !important;
    background-color: #fff !important;
}
/* =======================================================
   ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ
   Позиционируется относительно центральной области 1160px,
   а не относительно края монитора.
   ======================================================= */

/* Широкие экраны:
   левый край RU/EN начинается примерно в 6px после правого
   края центральной шапки шириной 1160px. */
@media (min-width: 1300px) {
    .hard-lang-switch {
        position: absolute !important;
        top: 28px !important;
        left: calc(50% + 586px) !important;
        right: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }
}

/* Ноутбуки и небольшие десктопы:
   когда снаружи уже мало места, держим переключатель
   аккуратно у правой стороны шапки. */
@media (min-width: 992px) and (max-width: 1299px) {
    .hard-lang-switch {
        position: absolute !important;
        top: 28px !important;
        right: 6px !important;
        left: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }
}

/* Планшеты */
@media (min-width: 521px) and (max-width: 991px) {
    .hard-lang-switch {
        position: fixed !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        padding: 0 !important;
        background: transparent !important;
        gap: 2px !important;
    }
}

/* Телефоны */
@media (max-width: 520px) {
    .hard-lang-switch {
        position: fixed !important;
        top: 7px !important;
        right: 7px !important;
        left: auto !important;
        padding: 0 !important;
        background: transparent !important;
        gap: 2px !important;
    }

    .hard-lang-switch a {
        height: 22px !important;
        padding: 0 6px !important;
        font-size: 10px !important;
        border-radius: 3px !important;
    }
}

/* =======================================================
   ШАПКА ФИКСИРОВАННОЙ ВЫСОТЫ (59.91px) + КАРТИНКА
   ======================================================= */
.pkp_structure_head {
    height: auto !important;
    min-height: 0 !important;
}
.pkp_site_name_wrapper {
    height: 59.91px !important;
    min-height: 59.91px !important;
    max-height: 59.91px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-image: url('https://vrach.digital-medic.ru//public/site/images/header-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 20px !important;
    box-sizing: border-box !important;
}
.pkp_site_name_wrapper h1 {
    font-size: 20px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* =======================================================
   КНОПКА НАВЕРХ
   ======================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #ffe100 !important;
    border-bottom: 3px solid #cc4400 !important;
    color: #000000 !important;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #ffeb3b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

@media (max-width: 991px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

/* =======================================================
   БЛОК С ЛОГОТИПОМ SCOPUS
   ======================================================= */
.custom-partners-logos {
    text-align: center;
    margin: 0;
    padding: 0;
}

.custom-partners-logos a {
    display: inline-block;
    transition: transform 0.25s ease;
}

.custom-partners-logos img.scopus-logo {
    height: 92px;
    width: auto;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    transition: all 0.25s ease;
}

.custom-partners-logos a:hover img.scopus-logo {
    transform: scale(1.07);
}

.pkp_structure_sidebar .custom-partners-logos {
    margin: 1px 0 3px;
}

.pkp_structure_sidebar .custom-partners-logos img.scopus-logo {
    height: 82px;
    max-width: 100%;
}

@media (max-width: 991px) {
    .custom-partners-logos {
        margin: 1px 0 3px;
    }
    .custom-partners-logos img.scopus-logo {
        height: 76px;
        max-width: 280px;
    }
}

/* =======================================================
   СТРАНИЦА КОНТАКТОВ — синий + жёлтый акцент
   ======================================================= */
.contacts-wrapper {
    width: 100%;
    font-family: "Inter", sans-serif;
    margin-top: 20px;
}
.contact-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.contact-header {
    background: linear-gradient(180deg, #005b9f 0%, #00004d 100%);
    padding: 15px 20px;
    text-align: center;
}
.contact-header h2 {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 18px !important;
    text-transform: uppercase;
    font-weight: 700;
}
.contact-body {
    padding: 25px;
}
.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}
.address-item {
    flex: 1 1 300px;
}
.address-label {
    color: #005b9f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.address-text {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}
.people-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.person-card {
    flex: 1 1 300px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid #005b9f;
    transition: transform 0.2s ease;
}
.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.person-role {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}
.person-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}
.person-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-link {
    text-decoration: none !important;
    color: #333 !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-link:hover {
    color: #005b9f !important;
}
.map-container {
    margin-top: 20px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.map-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
}
/* Уменьшаем логотип Scopus в сайдбаре (правый столбец) */
.pkp_structure_sidebar .custom-partners-logos img.scopus-logo {
    height: 70px !important;          /* было 82px → делаем меньше, например 70px */
    max-width: 100% !important;
}

/* Ещё меньше на мобильных */
@media (max-width: 991px) {
    .pkp_structure_sidebar .custom-partners-logos img.scopus-logo {
        height: 65px !important;      /* было 76px → подгони под вкус */
        max-width: 260px !important;  /* или оставь 100% */
    }
}


/* =======================================================
   БЛОК ПЕРЕХОДА НА САЙТЫ ЖУРНАЛОВ ИД "РУССКИЙ ВРАЧ"

   Главный принцип:
   баннер = блок журналов = текст "О журнале"
   Все занимают 100% ширины основной колонки.
   ======================================================= */

.publisher-journals-slot {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.publisher-journals-links {
    width: 100% !important;
    max-width: none !important;
    margin: 24px 0 26px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.publisher-journals-title {
    width: 100% !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #222222 !important;
}

/* Четыре равные колонки на всю ширину баннера */
.publisher-journals-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
    box-sizing: border-box !important;
}

.publisher-journal-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111111 !important;
    text-decoration: none !important;
}

.publisher-journal-card:hover,
.publisher-journal-card:focus {
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Обложка занимает ширину своей четверти.
   Пропорции сохраняются, картинка не режется. */
.publisher-journal-cover-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 4px !important;
}

.custom-journal-wrapper .publisher-journal-cover {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

/* Подпись всегда отдельно, под обложкой */
.publisher-journal-name {
    display: block !important;
    width: 100% !important;
    min-height: 34px !important;
    margin: 8px 0 0 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #111111 !important;
}

/* Лёгкий эффект без "карточности" */
.publisher-journal-card:hover .publisher-journal-cover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Баннер — тот же ориентир ширины */
.journal-top-banner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
}

.journal-top-banner img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 6px !important;
}

/* Текстовый блок "О журнале" — тот же ориентир ширины */
.journal-description-text {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Планшеты: две колонки, но блок по-прежнему 100% ширины */
@media (max-width: 991px) {
    .publisher-journals-links {
        width: 100% !important;
        margin: 20px 0 24px 0 !important;
    }

    .publisher-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
    }

    .publisher-journal-name {
        font-size: 13px !important;
    }
}

/* Телефоны */
@media (max-width: 520px) {
    .publisher-journals-links {
        margin: 16px 0 20px 0 !important;
    }

    .publisher-journals-title {
        margin-bottom: 12px !important;
        font-size: 16px !important;
    }

    .publisher-journals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
    }

    .publisher-journal-name {
        min-height: 30px !important;
        margin-top: 7px !important;
        padding: 0 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
}

/* =======================================================
   СТЫК ОСНОВНОГО КОНТЕНТА И ФУТЕРА
   Убираем светло-серую/голубую разделительную полосу.
   Сам футер и его содержимое не меняются.
   ======================================================= */

.pkp_structure_content {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.pkp_structure_footer_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
}

.pkp_structure_footer {
    margin-top: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
}

/* На случай, если полосу рисует псевдоэлемент темы */
.pkp_structure_footer_wrapper::before,
.pkp_structure_footer_wrapper::after,
.pkp_structure_footer::before,
.pkp_structure_footer::after {
    display: none !important;
    content: none !important;
}

/* =======================================================
   МОБИЛЬНАЯ ШАПКА И МЕНЮ OJS — ЧИСТАЯ ВЕРСИЯ
   Гамбургер: три белые полоски без квадрата.
   Раскрывающееся меню: белая аккуратная панель.
   Десктоп не затрагивается.
   ======================================================= */

@media (max-width: 991px) {

    /* Шапка как система координат */
    .pkp_site_name_wrapper {
        position: relative !important;
        min-height: 60px !important;
        height: 60px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 54px !important;
        padding-right: 84px !important;
    }

    /* Кнопка гамбургера: прозрачная, без плашки */
    .pkp_site_nav_toggle {
        position: absolute !important;
        top: 50% !important;
        left: 14px !important;
        right: auto !important;
        transform: translateY(-50%) !important;

        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;

        margin: 0 !important;
        padding: 0 !important;

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

        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;

        overflow: visible !important;
        z-index: 1002 !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    .pkp_site_nav_toggle:hover,
    .pkp_site_nav_toggle:focus,
    .pkp_site_nav_toggle:active {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Скрываем внутреннюю штатную графику/текст,
       чтобы не было второй, смещённой иконки */
    .pkp_site_nav_toggle > * {
        display: none !important;
    }

    /* Рисуем три белые полоски одной системой координат */
    .pkp_site_nav_toggle::before {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;

        width: 22px !important;
        height: 2px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
        border: 0 !important;
        border-radius: 2px !important;

        transform: translate(-50%, -50%) !important;

        box-shadow:
            0 -7px 0 #ffffff,
            0 7px 0 #ffffff !important;
    }

    .pkp_site_nav_toggle::after {
        content: none !important;
        display: none !important;
    }


    /* ===================================================
       РАСКРЫВАЮЩЕЕСЯ МЕНЮ
       =================================================== */

    .pkp_site_nav_menu {
        box-sizing: border-box !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;

        margin: 8px 10px 12px 10px !important;
        padding: 8px 0 !important;

        background: #ffffff !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        border-radius: 9px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;

        overflow: hidden !important;
    }

    .pkp_navigation_primary_row,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_user_wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_primary,
    .pkp_navigation_user {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_primary > li,
    .pkp_navigation_user > li {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #eeeeee !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_primary > li:last-child,
    .pkp_navigation_user > li:last-child {
        border-bottom: 0 !important;
    }

    .pkp_navigation_primary > li > a,
    .pkp_navigation_user > li > a {
        display: block !important;
        width: 100% !important;

        margin: 0 !important;
        padding: 12px 16px !important;

        color: #222222 !important;
        background: transparent !important;

        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;

        text-decoration: none !important;
        text-transform: none !important;

        box-sizing: border-box !important;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus,
    .pkp_navigation_user > li > a:hover,
    .pkp_navigation_user > li > a:focus {
        color: #000000 !important;
        background: #f6f6f6 !important;
        text-decoration: none !important;
    }

    /* Регистрация / вход — отдельная зона */
    .pkp_navigation_user_wrapper {
        margin-top: 4px !important;
        padding-top: 4px !important;
        border-top: 1px solid #e5e5e5 !important;
    }

    /* Подменю не должны вылетать за экран */
    .pkp_navigation_primary ul,
    .pkp_navigation_user ul {
        position: static !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 0 4px 16px !important;

        background: #fafafa !important;
        border: 0 !important;
        box-shadow: none !important;

        box-sizing: border-box !important;
    }

    .pkp_navigation_primary ul li,
    .pkp_navigation_user ul li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pkp_navigation_primary ul a,
    .pkp_navigation_user ul a {
        display: block !important;
        width: 100% !important;
        padding: 10px 14px !important;
        color: #444444 !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .pkp_navigation_search_wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
    }
}


/* Узкие телефоны */
@media (max-width: 520px) {

    .pkp_site_name_wrapper {
        min-height: 58px !important;
        height: 58px !important;
        padding-left: 50px !important;
        padding-right: 78px !important;
    }

    .pkp_site_nav_toggle {
        left: 11px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .pkp_site_nav_toggle::before {
        width: 21px !important;
        height: 2px !important;
        box-shadow:
            0 -6px 0 #ffffff,
            0 6px 0 #ffffff !important;
    }

    .pkp_site_nav_menu {
        width: calc(100% - 16px) !important;
        margin: 7px 8px 10px 8px !important;
        border-radius: 8px !important;
    }

    .pkp_navigation_primary > li > a,
    .pkp_navigation_user > li > a {
        padding: 11px 14px !important;
        font-size: 14px !important;
    }
}

