/* Fix double scrollbar + empty space after footer on short pages.
   Closed mega-menu must not extend document scroll height. */
html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    overflow: visible;
}

.header_drop {
    height: 0;
    overflow: hidden;
    border-top-width: 0;
    border-bottom-width: 0;
    transition: opacity 0.15s ease, visibility 0s linear 0.2s, height 0s linear 0.2s, border-width 0s linear 0.2s;
}

.header_bot-menu li:hover .header_drop {
    height: auto;
    overflow: visible;
    border-top-width: 1px;
    border-bottom-width: 1px;
    transition: opacity 0.15s ease, visibility 0s, height 0s, border-width 0s;
}

.header_bot-menu li:hover .header_drop:has(.header_drop-wrapper) {
    height: auto;
    max-height: 50vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 991.98px) {
    .header_drop {
        height: auto;
        overflow: visible;
        border-top-width: 0;
        border-bottom-width: 0;
        max-height: none;
    }

    .header_bot-menu li:hover .header_drop:has(.header_drop-wrapper) {
        max-height: none;
        overflow: visible;
    }
}
