/**
 * From 1024px up: use DESKTOP menus (site header + LK text column).
 * Mobile icon-rail stays only below 1024 (phones / 768 / 820).
 * Does not edit custom.css / mobile-sidebar.css — overrides only.
 * PC ≥1200 already desktop; this extends the same to 1024–1199.98.
 */

@media (min-width: 1024px) {
    /* ---- Site: no left rail; header top-menu is the nav ---- */
    .cotinder-mnav--site,
    nav.cotinder-mnav--site {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        max-width: 0 !important;
    }

    body:not(.cotinder-mnav-personal) .main,
    body.cotinder-mnav-mobile.cotinder-mnav-has-site:not(.cotinder-mnav-personal) .main {
        padding-left: 0 !important;
    }

    /* Burger / header-mobile not needed — desktop top-menu + LK column */
    .header__burger,
    .header-mobile,
    body.cotinder-mnav-personal .header__burger,
    body.cotinder-mnav-personal .header-mobile {
        display: none !important;
    }

    /* custom.css hides .header nav below 1200 — restore desktop top-menu from 1024 */
    .header nav,
    .header__fixed nav {
        display: block !important;
    }

    .header .header__menu,
    .header__fixed .header__menu {
        display: flex !important;
        visibility: visible !important;
    }

    /* ---- Shared: kill mobile expand chrome ---- */
    .cotinder-mnav__toggle,
    .cotinder-mnav--cabinet .cotinder-mnav__backdrop,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__toggle,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__backdrop,
    body.cotinder-mnav-personal .person__form .top-filter__close-background[data-cotinder-mnav-close] {
        display: none !important;
    }

    .cotinder-mnav__ver {
        display: none !important;
    }

    /* ---- LK: desktop text column (same idea as ≥1200) ---- */
    body.cotinder-mnav-mobile.cotinder-mnav-personal .person__form,
    body.cotinder-mnav-personal .person__form {
        padding-left: 0 !important;
    }

    .person__form > .tabs__content_left.cotinder-mnav--cabinet,
    body.cotinder-mnav-personal .person__form > .tabs__content_left.cotinder-mnav--cabinet,
    .tabs__content_left.cotinder-mnav--cabinet {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        inset: auto !important;
        width: 346px !important;
        max-width: 346px !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        z-index: auto !important;
        display: block !important;
        overflow: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        pointer-events: auto !important;
        flex-shrink: 0 !important;
        /* custom.css ≤1199 hides ALL .tabs__content_left as filter overlay */
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .tabs__content_left.cotinder-mnav--cabinet .tabs__content_left-wrapper,
    .person__form > .tabs__content_left.cotinder-mnav--cabinet .tabs__content_left-wrapper {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        transform: none !important;
        touch-action: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: auto !important;
        background: #fff !important;
        border-radius: 20px !important;
    }

    .cotinder-mnav--cabinet .cotinder-mnav__cab-scroll,
    .cotinder-mnav--cabinet .person__form-menu,
    .cotinder-mnav--cabinet .person__form-menu_top,
    .cotinder-mnav--cabinet .person__form-menu_bottom {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
        touch-action: auto !important;
        padding-bottom: 0 !important;
        will-change: auto !important;
        width: 100% !important;
    }

    .cotinder-mnav--cabinet .cotinder-mnav__icon,
    .cotinder-mnav--cabinet .cotinder-mnav__icon-wrap,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__icon,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__icon-wrap {
        display: none !important;
    }

    /* JS keeps is-collapsed on desktop — force labels/links visible anyway */
    .cotinder-mnav--cabinet .cotinder-mnav__label,
    .cotinder-mnav--cabinet.is-collapsed .cotinder-mnav__label,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__label,
    body.cotinder-mnav-personal .person__form .cotinder-mnav.is-collapsed .cotinder-mnav__label {
        position: static !important;
        width: auto !important;
        height: auto !important;
        clip: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        flex: none !important;
        pointer-events: auto !important;
        white-space: normal !important;
    }

    body.cotinder-mnav-personal .person__form .person__form-menu_link,
    body.cotinder-mnav-personal .person__form .cotinder-mnav__link,
    .cotinder-mnav--cabinet .person__form-menu_link,
    .cotinder-mnav--cabinet .cotinder-mnav__link,
    .cotinder-mnav--cabinet.is-collapsed .person__form-menu_link,
    .cotinder-mnav--cabinet.is-collapsed .cotinder-mnav__link {
        display: block !important;
        justify-content: initial !important;
        align-items: initial !important;
        gap: 0 !important;
        min-height: 0 !important;
        padding: 20px !important;
        font-size: 20px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.cotinder-mnav-personal .person__form > .tabs__content_right {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .person__form-menu_item--mobile-only {
        display: none !important;
    }

    /* No mobile ▲▼ / expand chrome on desktop LK */
    .cotinder-mnav--cabinet .cotinder-mnav__scroller {
        display: none !important;
    }

    body.cotinder-mnav-personal .person__form.tabs__content {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    /* Clear mobile body locks if JS left them on during resize */
    body.cotinder-mnav-expanded {
        overflow: visible !important;
        touch-action: auto !important;
    }

    /* Kill mobile overlay/FAB from 1024 — was still active until 1199 and fought desktop menus */
    #cotinder-mobmenu,
    #cotinder-mobmenu-fab,
    #cotinder-mobmenu-scrollbtns,
    .cotinder-mobmenu,
    .cotinder-mobmenu__fab {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
