.mobile-drawer__overlay {
    display: none;
}

.mobile-drawer {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-drawer__overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99998;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(15, 18, 24, 0.52);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        cursor: pointer;
    }

    body.mobile-drawer-open .mobile-drawer__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 88vw);
        height: 100vh;
        height: 100dvh;
        z-index: 99999;
        background: var(--white);
        transform: translate3d(100%, 0, 0);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        pointer-events: none;
    }

    body.mobile-drawer-open .mobile-drawer {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    body.mobile-drawer-open {
        overflow: hidden;
    }

    body.mobile-drawer-open .header-bottom {
        z-index: 100000;
    }

    .mobile-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 68px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }

    .mobile-drawer__title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-2);
    }

    .mobile-drawer__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--border-light);
        border-radius: 10px;
        background: var(--white);
        color: var(--color-2);
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-drawer__nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-drawer__foot {
        padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-light);
        background: var(--white);
        flex-shrink: 0;
    }

    .mobile-drawer__cta {
        width: 100%;
        min-height: 46px;
        padding: 0 22px;
        border-radius: 8px;
        background: var(--color-1);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(251, 97, 4, 0.18);
        transition: background 0.25s ease, transform 0.25s ease;
    }

    .mobile-drawer__cta:hover {
        background: var(--color-1-hover);
        transform: translateY(-1px);
    }

    .mobile-nav__item {
        width: 100%;
    }

    .mobile-nav__row {
        display: flex;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .mobile-nav__link {
        flex: 1;
        min-width: 0;
        min-height: 50px;
        padding: 0 14px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        font-size: 17px;
        font-weight: 600;
        width: 100%;
        color: var(--text-nav);
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-nav__item--branch .mobile-nav__link {
        justify-content: flex-start;
    }

    .mobile-nav__link span {
    }

    .mobile-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 42px;
        width: 42px;
        min-height: 50px;
        border-radius: 10px;
        background: var(--white);
        color: var(--text-meta);
        font-size: 12px;
        border: none;
        outline: none;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .mobile-nav__toggle i {
        transition: transform 0.2s ease;
    }

    .mobile-nav__item--open .mobile-nav__toggle {
        background: var(--bg-soft-3);
        border-color: var(--border-card-3);
        color: var(--color-1);
    }

    .mobile-nav__item--open .mobile-nav__toggle i {
        transform: rotate(180deg);
    }

    .mobile-nav__item--active > .mobile-nav__link,
    .mobile-nav__item--active.mobile-nav__item--branch .mobile-nav__row .mobile-nav__link {
        background: var(--bg-soft-3);
        color: var(--color-1);
    }

    .mobile-nav__sub {
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 2px 0 4px;
        padding: 4px 0 4px 10px;
    }

    .mobile-nav__item--open .mobile-nav__sub {
        display: flex;
    }

    .mobile-nav__sublink {
        position: relative;
        min-height: 38px;
        padding: 0 12px 0 18px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.25;
        color: var(--text-body-2);
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-nav__sublink::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 50%;
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: var(--border-soft);
        transform: translateY(-50%);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .mobile-nav__sublink span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-nav__sublink:hover,
    .mobile-nav__sublink--active {
        background: var(--bg-soft-3);
        color: var(--color-1);
    }

    .mobile-nav__sublink:hover::before,
    .mobile-nav__sublink--active::before {
        background: var(--color-1);
        transform: translateY(-50%) scale(1.15);
    }
}

@media (max-width: 767px) {
    .mobile-drawer__head {
        min-height: 62px;
        padding: 12px 16px;
    }

    .mobile-nav__link,
    .mobile-nav__toggle {
    }

    .mobile-nav__toggle {
        flex-basis: 40px;
        width: 40px;
    }
}
