html.nav-open,
body.nav-open {
    overflow: hidden !important;
}

.exam-detail-page .site-mobile-header-unified,
.exam-detail-page .site-mobile-glass-menu {
    display: none !important;
}

.site-mobile-header-unified,
.site-mobile-glass-menu {
    display: none;
}

@media (max-width: 1024px) {
    header.thegem-header,
    .thegem-header,
    .mobile-menu-overlay,
    .mobile-backdrop {
        display: none !important;
    }

    .exam-detail-page header.thegem-header,
    .exam-detail-page .thegem-header {
        display: block !important;
    }

    .exam-detail-page .mobile-menu-overlay {
        display: flex !important;
    }

    .exam-detail-page .mobile-backdrop {
        display: block !important;
    }

    .site-mobile-header-unified {
        position: fixed;
        inset: 0 0 auto 0;
        z-index: 2300;
        height: 74px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 16px;
        background: rgba(18, 12, 33, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-mobile-logo {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        height: 40px;
        text-decoration: none;
    }

    .site-mobile-logo img {
        display: block;
        width: auto;
        max-width: min(155px, calc(100vw - 104px));
        max-height: 40px;
        object-fit: contain;
    }

    .site-mobile-toggle {
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        cursor: pointer;
    }

    .site-mobile-toggle i {
        font-size: 1.32rem;
    }

    .site-mobile-glass-menu {
        position: fixed;
        inset: 0;
        z-index: 2400;
        display: flex;
        align-items: stretch;
        justify-content: center;
        padding: 0;
        background: #120c21;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .site-mobile-glass-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-mobile-glass-card {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 0;
        border-left: 0;
        border-radius: 0;
        background: #120c21;
        box-shadow: none;
        transform: translateY(8px);
        transition: transform 0.2s ease;
    }

    .site-mobile-glass-menu.active .site-mobile-glass-card {
        transform: translateY(0);
    }

    .site-mobile-top {
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-mobile-close {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        cursor: pointer;
    }

    .site-mobile-body {
        flex: 1;
        overflow: auto;
        padding: 34px 28px 26px;
    }

    .site-mobile-grid,
    .site-mobile-sub {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .site-mobile-link,
    .site-mobile-group-link,
    .site-mobile-group-toggle,
    .site-mobile-sub a,
    .site-mobile-cta {
        min-width: 0;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 1.28rem;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        cursor: pointer;
        overflow-wrap: anywhere;
    }

    .site-mobile-link.active,
    .site-mobile-group-link.active,
    .site-mobile-sub a.active {
        color: #cdfb3f !important;
    }

    .site-mobile-section {
        margin-top: 32px;
    }

    .site-mobile-group-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .site-mobile-group-link {
        flex: 0 1 auto;
    }

    .site-mobile-group-toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        justify-content: center;
        color: #fff !important;
    }

    .site-mobile-group-toggle span {
        min-width: 0;
    }

    .site-mobile-group-toggle i {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        font-size: 0.78rem;
        transition: transform 0.16s ease;
    }

    .site-mobile-section.open .site-mobile-group-toggle i {
        transform: rotate(180deg);
    }

    .site-mobile-sub {
        display: none;
        padding: 14px 0 0;
        gap: 13px;
    }

    .site-mobile-section.open .site-mobile-sub {
        display: grid;
    }

    .site-mobile-sub a {
        justify-content: center;
        text-align: center;
        color: rgba(255, 255, 255, 0.58) !important;
        font-size: 1.02rem;
        font-weight: 500;
    }

    .site-mobile-sub a img {
        width: 20px;
        height: 14px;
        object-fit: cover;
        border-radius: 2px;
        flex: 0 0 auto;
    }

    .site-mobile-sub a i:not(.fa-chevron-right) {
        width: 18px;
        text-align: center;
        flex: 0 0 auto;
    }

    .site-mobile-footer {
        padding: 16px 28px 28px;
        border-top: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .site-mobile-cta {
        width: 100%;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.86) !important;
        font-size: 1rem;
        font-weight: 500;
    }
}

@media (max-width: 420px) {
    .site-mobile-glass-menu {
        padding: 0;
    }

    .site-mobile-glass-card {
        width: 100vw;
        max-height: none;
    }

    .site-mobile-link,
    .site-mobile-group-toggle,
    .site-mobile-sub a,
    .site-mobile-cta {
        min-height: auto;
        font-size: 1.12rem;
        padding-inline: 0;
    }

    .site-mobile-sub a {
        font-size: 0.96rem;
    }
}
