body.stm-mega-open {
    overflow-x: hidden;
}

.stm-mega-menu {
    display: none;
    position: fixed;
    top: var(--stm-header-offset, 76px);
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 9998;
    background: var(--stm-bg, #0b477d);
    color: var(--stm-text, #ffffff);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    font-family: inherit;
}

.stm-mega-menu.is-open {
    display: block;
}

.stm-mega-inner {
    width: 100%;
    max-width: var(--stm-max-width, 100%);
    margin: 0 auto;
    padding: 38px clamp(28px, 8vw, 116px) 22px;
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.25fr) minmax(220px, 1.25fr) minmax(220px, 1.25fr);
    gap: 0;
    box-sizing: border-box;
}

.stm-mega-col {
    min-height: 188px;
    padding: 0 clamp(28px, 3.2vw, 52px);
    border-right: 1px solid color-mix(in srgb, var(--stm-divider, #78a9cf) 72%, transparent);
    box-sizing: border-box;
}

.stm-mega-col:first-child {
    padding-left: 0;
}

.stm-mega-col:last-child {
    border-right: 0;
    padding-right: 0;
}

.stm-mega-intro-content h1,
.stm-mega-intro-content h2,
.stm-mega-intro-content h3,
.stm-mega-intro-content h4,
.stm-mega-intro-content h5,
.stm-mega-intro-content h6 {
    color: var(--stm-accent, #a9d2ef);
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 700;
}

.stm-mega-intro-content h3 {
    font-size: clamp(24px, 2vw, 31px);
}

.stm-mega-intro-content p,
.stm-mega-intro-content li {
    color: var(--stm-text, #ffffff);
    opacity: 0.98;
    font-size: 15px;
    line-height: 1.12;
}

.stm-mega-intro-content p {
    margin: 0 0 14px;
}

.stm-mega-intro-content a {
    color: var(--stm-accent, #a9d2ef);
    text-decoration: underline;
}

.stm-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stm-mega-item {
    margin: 0;
}

.stm-mega-link,
.stm-mega-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--stm-text, #ffffff);
    text-decoration: none;
    padding: 8px 0;
    min-height: 33px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    box-sizing: border-box;
}

.stm-mega-button strong,
.stm-mega-link strong {
    font-weight: 700;
}

.stm-mega-link:hover,
.stm-mega-button:hover,
.stm-mega-item.is-active > .stm-mega-button,
.stm-mega-item.is-active > .stm-mega-link {
    color: var(--stm-accent, #a9d2ef);
}

.stm-mega-item.is-active > .stm-mega-button,
.stm-mega-item.is-active > .stm-mega-link {
    border-bottom-color: var(--stm-accent, #a9d2ef);
    box-shadow: inset 0 -2px 0 var(--stm-accent, #a9d2ef);
}

.stm-mega-arrow {
    opacity: 0.95;
    flex: 0 0 auto;
}

.stm-mega-panel {
    display: none;
}

.stm-mega-panel.is-active {
    display: block;
}

.stm-mega-close {
    display: none;
    position: absolute;
    right: 28px;
    top: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--stm-text, #ffffff);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 999px) {
    .stm-mega-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        overflow: auto;
    }

    .stm-mega-close {
        display: block;
    }

    .stm-mega-inner {
        grid-template-columns: 1fr;
        padding: 72px 28px 36px;
        gap: 28px;
    }

    .stm-mega-col,
    .stm-mega-col:first-child,
    .stm-mega-col:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--stm-divider, #78a9cf);
        padding: 0 0 28px;
        min-height: auto;
    }

    .stm-mega-col:last-child {
        border-bottom: 0;
    }
}
