/* =========================================================
TOPRUMMYAPP
通用 UI 样式
---------------------------------------------------------
全站共用样式：
- 页眉 (Header)
- 桌面端导航
- 移动端菜单
- 移动端底部导航
- 品牌 Logo
- 返回顶部按钮
- 通用共享 UI 元素
========================================================= */

.topbar,
.site-header {
    position: sticky;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    min-height: 62px;

    background: #ffffff;

    border-bottom: 1px solid var(--line);
}


/* =========================================================
页眉内部区域
========================================================= */

.nav,
.header-inner {
    width: min(1280px, calc(100% - 32px));

    min-height: 62px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 20px;

    box-sizing: border-box;
}

/* =========================================================
品牌标志
========================================================= */

.brand-logo {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex: 0 0 auto;

    color: var(--navy);

    text-decoration: none;

    white-space: nowrap;

    line-height: 1;
}

.brand-logo img {
    display: block;

    object-fit: contain;
}

.brand-logo-mark {
    width: 47px;
    height: 36px;

    display: block;

    flex: 0 0 47px;

    object-fit: contain;
}

/* =========================================================
品牌标志文本
========================================================= */

.brand-logo-copy {
    position: relative;

    display: inline-flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    min-width: 0;

    padding-bottom: 5px;
}


.brand-logo-name {
    display: block;

    color: var(--navy);

    font-size: 27px;

    font-weight: 950;

    letter-spacing: -1px;

    line-height: 0.95;
}


.brand-logo-name em {
    color: var(--red);

    font-style: normal;
}


.brand-logo-name strong {
    color: var(--navy);

    font-weight: 950;
}


.brand-logo-copy small {
    display: block;

    margin-top: 5px;

    color: var(--navy);

    font-size: 8px;

    font-weight: 850;

    letter-spacing: 1.15px;

    line-height: 1;
}


.logo {
    display: flex;

    align-items: center;

    gap: 8px;

    flex: 0 0 auto;

    color: var(--navy);

    font-size: 25px;

    font-weight: 950;

    white-space: nowrap;
}


.logo em {
    color: var(--red);

    font-style: normal;
}


.crown {
    font-size: 31px;

    line-height: 1;

    filter: drop-shadow(
        0 2px 2px rgba(0, 0, 0, 0.18)
    );
}


.tagline {
    display: block;

    margin-top: -5px;

    color: var(--navy);

    font-size: 9px;

    font-weight: 800;

    line-height: 1;

    text-align: center;
}


/* =========================================================
桌面端导航
========================================================= */

.navlinks,
.desktop-nav {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-left: auto;

    font-size: 12px;

    font-weight: 800;
}


.navlinks a,
.desktop-nav a {
    position: relative;

    color: var(--navy);

    white-space: nowrap;

    text-decoration: none;

    transition:
        color var(--transition);
}


.navlinks a:hover,
.navlinks a.active,
.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--red);
}


/* =========================================================
桌面版按钮
========================================================= */

.join,
.telegram-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex: 0 0 auto;

    min-height: 38px;

    padding: 9px 15px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #1264e8,
            #2b80ee
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 900;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.join:hover,
.telegram-btn:hover {
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(18, 100, 232, 0.22);
}

.telegram-join {
    display: none;

    align-items: center;

    justify-content: center;

    gap: 4px;

    flex: 0 0 auto;

    min-height: 32px;

    padding: 6px 9px;

    border: 1px solid #2876e8;

    border-radius: 7px;

    background: #2876e8;

    color: #ffffff !important;

    font-size: 11px;

    font-weight: 900;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    box-sizing: border-box;
}


.telegram-join:hover {
    background: #1d68d4;

    border-color: #1d68d4;

    color: #ffffff !important;
}


.telegram-join .telegram-icon {
    width: 17px;
    height: 17px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    font-size: 12px;

    line-height: 1;
}


/* =========================================================
搜索图标 / 链接
========================================================= */

.search-icon,
.search-link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    color: var(--navy);

    font-size: 21px;

    line-height: 1;

    transition:
        color var(--transition);
}


.search-icon:hover,
.search-link:hover {
    color: var(--red);
}


/* =========================================================
移动端菜单按钮
========================================================= */

.hamb,
.mobile-menu-btn {
    display: none;

    align-items: center;

    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    padding: 0;

    border: 1px solid #dfe4ee;

    border-radius: 8px;

    background: #ffffff;

    color: var(--navy);

    font-size: 21px;

    line-height: 1;

    cursor: pointer;

    box-shadow: none;
}


.hamb:hover,
.mobile-menu-btn:hover {
    background: #f7f9fc;

    border-color: #cfd6e3;
}

.mobile-menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 9998;

    background: rgba(0, 0, 0, 0.55);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.mobile-menu-overlay.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 9999;

    width: min(330px, 88vw);

    background: #f7f9fc;

    transform: translateX(105%);

    transition:
        transform 0.22s ease;

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, 0.18);

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}


.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-head {
    min-height: 68px;

    padding: 0 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--navy);

    color: #ffffff;
}


.mobile-menu-head strong {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    line-height: 1;
}


.mobile-menu-head button {
    width: 32px;
    height: 32px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;
}


.mobile-menu-head button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-links {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 13px 10px;
}


.mobile-menu-links a {
    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 7px 11px;

    border: 1px solid #e7ebf2;

    border-radius: 9px;

    background: #ffffff;

    color: #17204a;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}


.mobile-menu-links a:hover {
    border-color: #d6dce7;

    background: #f9fafc;
}


.mobile-menu-links a span {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin: 0;

    border-radius: 7px;

    background: #f0f3f8;

    color: #17204a;

    font-size: 14px;

    font-weight: 800;

    line-height: 1;
}


.mobile-menu-links a b {
    font-weight: 700;
}

.mobile-menu-links a.active {
    border-color: #ffbcbc;

    background: #fff1f1;

    color: var(--red);
}


.mobile-menu-links a.active span {
    background: var(--red);

    color: #ffffff;
}

.mobile-menu-links a::before,
.mobile-menu-links a::after,
.mobile-menu-links a span::before,
.mobile-menu-links a span::after {
    content: none;
}

.mobile-menu-links a.mobile-telegram {
    margin-top: 3px;

    justify-content: center;

    border-color: #2876e8;

    background: #2876e8;

    color: #ffffff;
}


.mobile-menu-links a.mobile-telegram:hover {
    border-color: #1d68d4;

    background: #1d68d4;

    color: #ffffff;
}


.mobile-menu-links a.mobile-telegram span {
    background: rgba(255, 255, 255, 0.18);

    color: #ffffff;
}

/* =========================================================
移动端菜单打开时的 body 样式
========================================================= */

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-nav {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9990 !important;

    height: 50px !important;
    padding: 3px 0 calc(3px + env(safe-area-inset-bottom)) !important;
    box-sizing: content-box !important;

    background: #fff !important;
    border-top: 1px solid #e3e6ed !important;
    box-shadow: 0 -4px 14px rgba(16, 20, 59, .10) !important;
}

.mobile-nav a,
.mobile-nav a:hover,
.mobile-nav a.active {
    flex: 1 1 20% !important;
    min-width: 0 !important;

    height: 50px !important;
    padding: 2px 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #1b1b1b !important;
    text-decoration: none !important;

    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.mobile-nav a svg {
    width: 20px !important;
    height: 20px !important;

    fill: currentColor !important;
    stroke: currentColor !important;

    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    flex-shrink: 0 !important;
}

.mobile-nav a span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;
    font-size: 8px !important;
    line-height: 1 !important;
}

.mobile-nav a.active,
.mobile-nav a.active:hover {
    color: #f23636 !important;
}

.mobile-nav a.active svg {
    color: #f23636 !important;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }
}
.mobile-drawer {
    width: 72% !important;
    max-width: 320px !important;
}

@media (max-width: 680px) {

    .mobile-drawer {
        width: min(84vw, 330px);
        background: #f7f9fd;
        box-shadow: -12px 0 35px rgba(8, 14, 45, .22);
    }

    .mobile-drawer-header {
        background:
            linear-gradient(
                135deg,
                #0b0d3d,
                #17134d 60%,
                #3a1825
            );
        padding: 20px 16px;
        color: #fff;
    }

    .mobile-drawer-header strong {
        font-size: 15px;
        font-weight: 900;
        letter-spacing: -.2px;
    }

    .mobile-drawer-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.18);
        background: rgba(255,255,255,.10);
        color: #fff;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer-nav {
        padding: 14px 10px;
    }

    .mobile-drawer-nav a {
        min-height: 50px;
        margin-bottom: 8px;
        padding: 0 13px;

        display: flex;
        align-items: center;
        gap: 12px;

        border: 1px solid #e4e9f2;
        border-radius: 12px;

        background: #fff;
        color: #10143b;

        font-size: 13px;
        font-weight: 800;

        box-shadow:
            0 4px 12px rgba(16,20,59,.045);

        transition:
            transform .18s ease,
            box-shadow .18s ease,
            border-color .18s ease;
    }

    .mobile-drawer-nav a:active {
        transform: scale(.98);
    }

    .mobile-drawer-nav a:hover {
        border-color: #d4dced;
        box-shadow:
            0 7px 18px rgba(16,20,59,.08);
    }

    .mobile-drawer-nav a.active {
        border-color: #d9def0;
        background: linear-gradient(
            90deg,
            #f0f3ff,
            #ffffff
        );
        color: #10143b;
    }

    .mobile-drawer-nav a .icon,
    .mobile-drawer-nav a i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 9px;
        background: #f1f4f9;
        color: #10143b;
        font-size: 16px;
    }

    .mobile-drawer-telegram {
        margin: 4px 10px 14px;
        min-height: 50px;

        border-radius: 12px;

        background: linear-gradient(
            135deg,
            #1677ea,
            #287bea
        );

        color: #fff;
        font-size: 13px;
        font-weight: 900;

        box-shadow:
            0 8px 20px rgba(22,119,234,.22);
    }
}
/* =========================================================
返回顶部按钮
========================================================= */

.go-top-button {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 900;

    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--line);

    border-radius: 50%;

    background: #ffffff;

    color: var(--navy);

    font-size: 18px;

    font-weight: 900;

    box-shadow: var(--shadow);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background var(--transition),
        color var(--transition);
}


.go-top-button.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


.go-top-button:hover {
    background: var(--navy);

    color: #ffffff;
}

@media (min-width: 769px) {

    .mobile-menu-panel,
    .mobile-menu-overlay,
    .mobile-nav {
        display: none !important;
    }


    .hamb,
    .mobile-menu-btn {
        display: none;
    }


    .telegram-join {
        display: none !important;
    }

}

@media (max-width: 768px) {

    .topbar,
    .site-header {
        min-height: 58px;
    }


    .nav,
    .header-inner {
        width: calc(100% - 18px);

        min-height: 58px;

        gap: 8px;
    }


    .navlinks,
    .desktop-nav {
        display: none;
    }


    .join,
    .telegram-btn,
    .search-icon,
    .search-link {
        display: none;
    }


    .telegram-join {
        display: inline-flex;

        margin-left: auto;

        min-height: 31px;

        padding: 6px 9px;

        border-radius: 7px;

        font-size: 10px;
    }


    .telegram-join .telegram-icon {
        width: 16px;
        height: 16px;

        font-size: 11px;
    }

    .hamb,
    .mobile-menu-btn {
        display: inline-flex;

        margin-left: 0;

        width: 37px;
        height: 37px;

        flex: 0 0 37px;

        font-size: 20px;
    }

    .brand-logo {
        gap: 6px;

        min-width: 0;

        flex: 1 1 auto;

        overflow: hidden;
    }


    .brand-logo-mark {
        width: 38px;
        height: 31px;

        flex: 0 0 38px;
    }


    .brand-logo-name {
        font-size: 21px;

        letter-spacing: -0.7px;
    }


    .brand-logo-copy {
        padding-bottom: 3px;

        min-width: 0;
    }


    .brand-logo-copy small {
        margin-top: 3px;

        font-size: 6px;

        letter-spacing: 0.85px;
    }

    .logo {
        font-size: 21px;
    }


    .crown {
        font-size: 26px;
    }


    .tagline {
        font-size: 7px;

        margin-top: -3px;
    }

    .mobile-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 9990;

        height: 54px;

        display: flex;

        padding:
            4px 4px
            calc(4px + env(safe-area-inset-bottom));

        background: #ffffff;

        border-top: 1px solid #e1e5ec;

        box-shadow:
            0 -3px 12px rgba(20, 30, 60, 0.08);
    }


    .mobile-nav a {
        flex: 1 1 20%;

        min-width: 0;

        height: 50px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 2px;

        padding: 3px 1px;

        border: 0;

        border-radius: 0;

        background: #ffffff;

        color: #65708a;

        font-size: 9px;

        font-weight: 700;

        line-height: 1.1;

        text-decoration: none;

        transition:
            color var(--transition);
    }


    .mobile-nav a:hover {
        color: #65708a;

        background: #ffffff;
    }


    .mobile-nav a b {
        width: 20px;
        height: 20px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        margin: 0;

        background: transparent;

        color: #65708a;

        font-size: 15px;

        font-weight: 700;

        line-height: 1;
    }


    .mobile-nav a span {
        display: block;

        margin: 0;

        padding: 0;

        background: transparent;

        color: inherit;

        font-size: 9px;

        line-height: 1.1;
    }


    .mobile-nav a.active,
    .mobile-nav a.active:hover {
        background: #ffffff;

        color: var(--red);
    }


    .mobile-nav a.active b {
        color: var(--red);
    }

    .go-top-button {
        right: 12px;

        bottom: 68px;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }

}

@media (max-width: 480px) {

    .mobile-menu-panel {
        width: min(320px, 90vw);
    }


    .nav,
    .header-inner {
        width: calc(100% - 14px);

        gap: 7px;
    }

    .brand-logo-mark {
        width: 35px;
        height: 29px;

        flex-basis: 35px;
    }


    .brand-logo-name {
        font-size: 19px;
    }


    .brand-logo-copy small {
        font-size: 5.5px;

        letter-spacing: 0.7px;
    }

    .telegram-join {
        min-height: 30px;

        padding: 5px 8px;

        border-radius: 7px;

        font-size: 10px;
    }


    .telegram-join .telegram-icon {
        width: 15px;
        height: 15px;

        font-size: 10px;
    }

    .mobile-menu-btn,
    .hamb {
        width: 36px;
        height: 36px;

        flex-basis: 36px;

        font-size: 19px;
    }

    .mobile-nav {
        height: 52px;
    }


    .mobile-nav a {
        height: 48px;

        font-size: 8px;
    }


    .mobile-nav a b {
        font-size: 14px;
    }


    .mobile-nav a span {
        font-size: 8px;
    }

}

/* =========================================================
通用页脚
========================================================= */

.simple-footer {
    width: 100%;

    margin-top: 0;

    padding: 17px 15px;

    background: #10143b;

    color: #fff;

    text-align: center;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.5;

    box-sizing: border-box;
}


@media (max-width: 768px) {


    .mobile-menu-overlay {
        background: rgba(5, 8, 28, .68);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }


    .mobile-menu-panel {
        width: min(330px, 88vw);
        max-width: 330px;

        background: #f6f8fc;

        border-left: 1px solid rgba(255,255,255,.45);

        box-shadow:
            -18px 0 45px rgba(5, 10, 35, .28);

        overflow-y: auto;
        overscroll-behavior: contain;
    }


    .mobile-menu-head {
        min-height: 70px;
        padding: 0 15px;

        background:
            linear-gradient(
                135deg,
                #090c38 0%,
                #11164a 58%,
                #35182b 100%
            );

        box-shadow:
            0 4px 15px rgba(8, 12, 45, .16);

        position: relative;
    }


    .mobile-menu-head strong {
        font-size: 15px;
        font-weight: 900;
        letter-spacing: -.25px;
    }


    .mobile-menu-head button {
        width: 34px;
        height: 34px;

        border: 1px solid rgba(255,255,255,.20);
        border-radius: 50%;

        background: rgba(255,255,255,.10);

        color: #ffffff;

        font-size: 19px;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.10);
    }


    .mobile-menu-head button:active {
        transform: scale(.94);
    }

    .mobile-menu-links {
        gap: 8px;

        padding: 14px 11px 16px;
    }


    .mobile-menu-links a {
        min-height: 51px;

        padding: 7px 11px;

        display: flex;
        align-items: center;

        gap: 12px;

        border: 1px solid #e3e8f1;
        border-radius: 12px;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fbfcfe 100%
            );

        color: #11163d;

        font-size: 13px;
        font-weight: 800;

        box-shadow:
            0 3px 10px rgba(15, 25, 60, .035);

        transition:
            transform .16s ease,
            border-color .16s ease,
            box-shadow .16s ease,
            background .16s ease;
    }


    .mobile-menu-links a:active {
        transform: scale(.985);
    }


    .mobile-menu-links a:hover {
        border-color: #d5dceb;

        background: #ffffff;

        box-shadow:
            0 7px 18px rgba(15, 25, 60, .08);
    }

    .mobile-menu-links a span {
        width: 34px;
        height: 34px;

        flex: 0 0 34px;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        margin: 0;

        border-radius: 9px;

        background:
            linear-gradient(
                145deg,
                #f1f4f9,
                #e8edf5
            );

        color: #10143b;

        font-size: 15px;
        font-weight: 900;

        box-shadow:
            inset 0 1px 1px rgba(255,255,255,.8),
            0 2px 5px rgba(16,20,59,.06);
    }


    .mobile-menu-links a b {
        font-size: 13px;
        font-weight: 800;
        color: inherit;
    }

    .mobile-menu-links a.active {
        border-color: #ffd1d1;

        background:
            linear-gradient(
                100deg,
                #fff1f1,
                #ffffff
            );

        color: #ed3030;

        box-shadow:
            0 5px 14px rgba(239, 48, 48, .07);
    }


    .mobile-menu-links a.active span {
        background:
            linear-gradient(
                145deg,
                #ff3c3c,
                #e92d2d
            );

        color: #ffffff;

        box-shadow:
            0 4px 9px rgba(239, 48, 48, .20);
    }

    .mobile-menu-links a.mobile-telegram {
        min-height: 51px;

        margin-top: 3px;

        justify-content: center;

        border: 0;

        background:
            linear-gradient(
                135deg,
                #176ee8,
                #2c82ef
            );

        color: #ffffff;

        box-shadow:
            0 8px 18px rgba(32, 112, 232, .22);
    }


    .mobile-menu-links a.mobile-telegram:hover {
        background:
            linear-gradient(
                135deg,
                #1265dc,
                #2479e5
            );

        color: #ffffff;

        border-color: transparent;
    }


    .mobile-menu-links a.mobile-telegram span {
        background: rgba(255,255,255,.16);

        color: #ffffff;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14);
    }

    .mobile-nav {
        height: 54px !important;

        padding:
            3px 4px
            calc(3px + env(safe-area-inset-bottom)) !important;

        background: rgba(255,255,255,.98) !important;

        border-top: 1px solid #e1e5ed !important;

        box-shadow:
            0 -5px 18px rgba(12, 20, 50, .10) !important;

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }


    .mobile-nav a {
        height: 50px !important;

        color: #68728a !important;

        font-size: 8px !important;
        font-weight: 800 !important;

        gap: 3px !important;
    }


    .mobile-nav a b {
        width: 21px !important;
        height: 21px !important;

        display: inline-flex !important;

        align-items: center;
        justify-content: center;

        color: #68728a !important;

        font-size: 15px !important;
    }


    .mobile-nav a span {
        color: inherit !important;

        font-size: 8px !important;
        font-weight: 800 !important;
    }


    .mobile-nav a.active,
    .mobile-nav a.active:hover {
        color: #f23636 !important;
        background: transparent !important;
    }


    .mobile-nav a.active b {
        color: #f23636 !important;
    }


    .topbar,
    .site-header {
        box-shadow:
            0 2px 10px rgba(15, 20, 55, .05);
    }


    .brand-logo {
        gap: 6px;
    }


    .telegram-join {
        box-shadow:
            0 4px 10px rgba(20, 105, 230, .18);
    }


    .mobile-menu-btn,
    .hamb {
        border-color: #dce2ec;

        background: #ffffff;

        box-shadow:
            0 2px 6px rgba(15,20,59,.04);
    }

}


@media (max-width: 480px) {

    .mobile-menu-panel {
        width: min(320px, 89vw);
    }


    .mobile-menu-head {
        min-height: 66px;
        padding: 0 14px;
    }


    .mobile-menu-head strong {
        font-size: 14px;
    }


    .mobile-menu-links {
        padding: 12px 10px 14px;
        gap: 7px;
    }


    .mobile-menu-links a {
        min-height: 49px;

        border-radius: 11px;

        font-size: 12px;
    }


    .mobile-menu-links a span {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }


    .mobile-menu-links a b {
        font-size: 12px;
    }


    .mobile-menu-links a.mobile-telegram {
        min-height: 49px;
    }


    .mobile-nav {
        height: 52px !important;
    }


    .mobile-nav a {
        height: 48px !important;
    }

}


@media (max-width: 768px) {


    html {
        scroll-padding-bottom: 70px;
    }

    body {
        padding-bottom: 60px;
    }

    .mobile-nav {
        position: fixed !important;

        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100% !important;

        height: 58px !important;

        margin: 0 !important;

        padding:
            4px 5px
            calc(4px + env(safe-area-inset-bottom))
            !important;

        box-sizing: border-box !important;

        display: flex !important;

        align-items: stretch !important;
        justify-content: space-between !important;

        background: rgba(255,255,255,.98) !important;

        border-top: 1px solid #e2e6ee !important;

        box-shadow:
            0 -5px 20px rgba(12,20,55,.12) !important;

        z-index: 99990 !important;

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-nav a,
    .mobile-nav a:hover,
    .mobile-nav a:focus,
    .mobile-nav a:active,
    .mobile-nav a.active {
        flex: 1 1 20% !important;

        width: 20% !important;
        min-width: 0 !important;

        height: 50px !important;

        margin: 0 !important;

        padding: 3px 1px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 3px !important;

        border: 0 !important;
        border-radius: 9px !important;

        background: transparent !important;

        color: #68728a !important;

        text-decoration: none !important;

        font-size: 8px !important;
        font-weight: 800 !important;

        line-height: 1 !important;

        box-shadow: none !important;

        transform: none !important;
    }

    .mobile-nav a b {
        width: 22px !important;
        height: 22px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;

        color: #68728a !important;

        font-size: 16px !important;
        font-weight: 900 !important;

        line-height: 1 !important;

        border-radius: 0 !important;
    }


    .mobile-nav a svg {
        width: 19px !important;
        height: 19px !important;

        margin: 0 !important;

        display: block !important;

        color: #68728a !important;

        fill: currentColor !important;
        stroke: currentColor !important;

        stroke-width: 1.8 !important;
    }

    .mobile-nav a span {
        display: block !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        color: inherit !important;

        font-size: 8px !important;
        font-weight: 800 !important;

        line-height: 1 !important;

        white-space: nowrap !important;
    }

    .mobile-nav a.active,
    .mobile-nav a.active:hover,
    .mobile-nav a.active:focus {
        color: #f23636 !important;

        background: #fff !important;
    }


    .mobile-nav a.active b,
    .mobile-nav a.active svg {
        color: #f23636 !important;
    }


    .mobile-nav a.active span {
        color: #f23636 !important;
    }

    .mobile-menu-overlay {
        position: fixed !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        background: rgba(5,9,30,.62) !important;

        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;

        z-index: 99998 !important;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .22s ease,
            visibility .22s ease;
    }


    .mobile-menu-overlay.open {
        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;
    }

    .mobile-menu-panel {
        position: fixed !important;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: min(340px, 86vw) !important;
        max-width: 340px !important;

        height: 100dvh !important;

        margin: 0 !important;

        padding: 0 !important;

        display: flex !important;

        flex-direction: column !important;

        background:
            linear-gradient(
                180deg,
                #f7f9fd 0%,
                #f4f7fb 100%
            ) !important;

        border-left: 1px solid rgba(255,255,255,.45) !important;

        box-shadow:
            -18px 0 50px rgba(5,10,35,.28) !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;

        transform: translateX(105%) !important;

        transition:
            transform .28s cubic-bezier(.22,.8,.24,1) !important;

        z-index: 99999 !important;
    }


    .mobile-menu-panel.open {
        transform: translateX(0) !important;
    }

    .mobile-menu-head {
        min-height: 70px !important;

        flex: 0 0 70px !important;

        width: 100% !important;

        box-sizing: border-box !important;

        padding: 0 15px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: space-between !important;

        background:
            linear-gradient(
                135deg,
                #090c38 0%,
                #11164a 55%,
                #35182c 100%
            ) !important;

        color: #ffffff !important;

        box-shadow:
            0 5px 18px rgba(7,12,42,.18) !important;
    }


    .mobile-menu-head strong {
        display: flex !important;

        align-items: center !important;

        color: #ffffff !important;

        font-size: 15px !important;

        font-weight: 900 !important;

        letter-spacing: -.25px !important;

        line-height: 1 !important;
    }

    .mobile-menu-head button {
        width: 34px !important;
        height: 34px !important;

        flex: 0 0 34px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid rgba(255,255,255,.22) !important;

        border-radius: 50% !important;

        background: rgba(255,255,255,.10) !important;

        color: #ffffff !important;

        font-size: 18px !important;

        line-height: 1 !important;

        cursor: pointer !important;

        box-shadow:
            inset 0 1px 1px rgba(255,255,255,.08) !important;
    }


    .mobile-menu-head button:active {
        transform: scale(.92) !important;
    }

    .mobile-menu-links {
        width: 100% !important;

        box-sizing: border-box !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 8px !important;

        padding: 14px 10px 18px !important;

        margin: 0 !important;
    }


    .mobile-menu-links a {
        width: 100% !important;

        min-height: 52px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding: 7px 12px !important;

        display: flex !important;

        align-items: center !important;

        gap: 12px !important;

        border: 1px solid #e2e7ef !important;

        border-radius: 12px !important;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #fbfcfe 100%
            ) !important;

        color: #11163d !important;

        text-decoration: none !important;

        font-size: 13px !important;

        font-weight: 800 !important;

        line-height: 1 !important;

        box-shadow:
            0 3px 10px rgba(15,25,60,.035) !important;

        transition:
            transform .16s ease,
            box-shadow .16s ease,
            border-color .16s ease !important;
    }


    .mobile-menu-links a:hover {
        border-color: #d3dbea !important;

        box-shadow:
            0 7px 18px rgba(15,25,60,.08) !important;

        background: #ffffff !important;
    }


    .mobile-menu-links a:active {
        transform: scale(.985) !important;
    }

    .mobile-menu-links a span {
        width: 34px !important;
        height: 34px !important;

        min-width: 34px !important;

        flex: 0 0 34px !important;

        display: inline-flex !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        border-radius: 9px !important;

        background:
            linear-gradient(
                145deg,
                #f3f6fa,
                #e8edf4
            ) !important;

        color: #11163d !important;

        font-size: 15px !important;

        font-weight: 900 !important;

        line-height: 1 !important;

        box-shadow:
            inset 0 1px 1px rgba(255,255,255,.9),
            0 2px 5px rgba(16,20,59,.06) !important;
    }


    .mobile-menu-links a b {
        margin: 0 !important;

        color: inherit !important;

        font-size: 13px !important;

        font-weight: 800 !important;
    }

    .mobile-menu-links a.active {
        border-color: #ffd1d1 !important;

        background:
            linear-gradient(
                100deg,
                #fff1f1,
                #ffffff
            ) !important;

        color: #ed3030 !important;

        box-shadow:
            0 5px 14px rgba(239,48,48,.07) !important;
    }


    .mobile-menu-links a.active span {
        background:
            linear-gradient(
                145deg,
                #ff4141,
                #e92d2d
            ) !important;

        color: #ffffff !important;

        box-shadow:
            0 4px 10px rgba(239,48,48,.20) !important;
    }

    .mobile-menu-links a.mobile-telegram {
        min-height: 52px !important;

        margin-top: 2px !important;

        justify-content: center !important;

        gap: 9px !important;

        border: 0 !important;

        border-radius: 12px !important;

        background:
            linear-gradient(
                135deg,
                #1673e8,
                #2d82ef
            ) !important;

        color: #ffffff !important;

        box-shadow:
            0 8px 20px rgba(22,115,232,.24) !important;
    }


    .mobile-menu-links a.mobile-telegram:hover {
        border: 0 !important;

        background:
            linear-gradient(
                135deg,
                #1268dc,
                #2679e7
            ) !important;

        color: #ffffff !important;
    }


    .mobile-menu-links a.mobile-telegram span {
        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;

        flex-basis: 32px !important;

        border-radius: 9px !important;

        background: rgba(255,255,255,.16) !important;

        color: #ffffff !important;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14) !important;
    }


    .mobile-menu-links a::before,
    .mobile-menu-links a::after,
    .mobile-menu-links a span::before,
    .mobile-menu-links a span::after {
        content: none !important;
    }
}


@media (max-width: 480px) {

    body {
        padding-bottom: 58px;
    }


    /* Bottom navigation */

    .mobile-nav {
        height: 56px !important;

        padding:
            3px 4px
            calc(3px + env(safe-area-inset-bottom))
            !important;
    }


    .mobile-nav a {
        height: 49px !important;

        font-size: 8px !important;
    }


    .mobile-nav a b {
        width: 20px !important;
        height: 20px !important;

        font-size: 15px !important;
    }


    .mobile-nav a svg {
        width: 18px !important;
        height: 18px !important;
    }


    .mobile-nav a span {
        font-size: 8px !important;
    }


    .mobile-menu-panel {
        width: min(330px, 88vw) !important;
    }


    .mobile-menu-head {
        min-height: 66px !important;

        flex-basis: 66px !important;

        padding: 0 13px !important;
    }


    .mobile-menu-head strong {
        font-size: 14px !important;
    }


    .mobile-menu-head button {
        width: 32px !important;
        height: 32px !important;

        flex-basis: 32px !important;
    }


    .mobile-menu-links {
        gap: 7px !important;

        padding:
            12px 9px 16px
            !important;
    }


    .mobile-menu-links a {
        min-height: 49px !important;

        border-radius: 11px !important;

        font-size: 12px !important;
    }


    .mobile-menu-links a span {
        width: 32px !important;
        height: 32px !important;

        min-width: 32px !important;

        flex-basis: 32px !important;
    }


    .mobile-menu-links a b {
        font-size: 12px !important;
    }


    .mobile-menu-links a.mobile-telegram {
        min-height: 49px !important;
    }
}

@media (min-width: 769px) {

    .mobile-nav,
    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none !important;
    }

}