/* ===== Мобильное меню (попап) ===== */

#mobile-menu-popup.pjs-popup_wrapper {
    justify-content: flex-end;
    align-items: stretch;
    width: 100%;
}

#mobile-menu-popup .pjs-popup_container.mobile-menu-popup {
    width: 280px;
    max-width: 280px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    background: rgba(30, 85, 168, 1);
    padding: 30px;
    box-sizing: border-box;
}

#mobile-menu-popup .pjs-popup_close_icon {
    fill: #ffffff;
}

#mobile-menu-popup .pjs-popup_content {
    overflow-y: visible;
    height: 100%;
}

/* Внутренний контейнер — растягиваем на всю высоту */
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 85%;
}

/* === Логотип === */
.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.mobile-menu-logo img {
    width: 40px;
    height: 40px;
}

.mobile-menu-logo span {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #ffffff;
}

/* === Навигация === */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
}

.mobile-nav a {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: #ffffff;
    text-decoration: none;
}

/* CTA-кнопка */
.mobile-nav-cta {
    margin-top: 20px;
    padding: 18px 24px;
    border-radius: 15px;
    background: #ffffff;
    color: #1E55A8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center;
}

/* === Футер меню === */
.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* margin-top: auto; */
}

.mobile-menu-footer a,
.mobile-menu-footer span {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 140%;
    color: #6A85B1;
    text-decoration: none;
}

/* На десктопе прячем */
@media screen and (min-width: 1401px) {
    #mobile-menu-popup {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    #mobile-menu-popup .pjs-popup_container.mobile-menu-popup {
        width: 250px;
        max-width: 250px;
        padding: 25px;
    }

    .mobile-menu-logo {
        margin-bottom: 30px;
    }

    .mobile-menu-logo img {
        width: 32px;
        height: 32px;
    }

    .mobile-menu-logo span {
        font-size: 18px;
    }

    .mobile-nav {
        gap: 20px;
    }

    .mobile-nav a {
        font-size: 16px;
    }

    .mobile-nav-cta {
        padding: 14px 20px;
        font-size: 13px !important;
    }

    .mobile-menu-footer {
        gap: 6px;
        padding-top: 20px;
    }

    .mobile-menu-footer a,
    .mobile-menu-footer span {
        font-size: 10px;
    }
}