/* ======================================================================
   03. Megamenü — minden oszlop, szöveg, ikon és fotó külön célzott szabály
   A panel a fejléc aljához igazodik. Nem tolja el az oldal tartalmát.
   ====================================================================== */

.sl-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: min(1328px, calc(100% - 2 * var(--sl-gutter)));
    margin-inline: auto;
    padding: 18px 16px 0;
    border: 1px solid var(--sl-border);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: #fff;
    box-shadow: 0 22px 38px rgb(4 22 52 / 18%);
    max-height: calc(100dvh - 125px);
    overflow-y: auto;
}

.sl-mega__grid {
    display: grid;
    grid-template-columns: 1.03fr 1.08fr .77fr 1.24fr;
}

.sl-mega__column {
    min-width: 0;
    padding: 8px 20px 12px;
    border-right: 1px solid var(--sl-border);
}

.sl-mega__column--purposes {
    padding-left: 15px;
}

.sl-mega__column--tools {
    padding-left: 25px;
}

.sl-mega__column--banks {
    padding-left: 26px;
}

.sl-mega__heading {
    margin-bottom: 23px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.sl-mega__purpose-list, .sl-mega__tool-list, .sl-mega__bank-list {
    list-style: none;
}

.sl-mega__purpose-list {
    display: grid;
    gap: 18px;
}

.sl-mega__purpose-link {
    display: flex;
    align-items: center;
    gap: 21px;
    min-height: 58px;
}

.sl-mega__purpose-icon {
    width: 32px;
    height: 32px;
    color: var(--sl-blue);
}

.sl-mega__purpose-copy {
    display: block;
    min-width: 0;
}

.sl-mega__purpose-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.sl-mega__purpose-description {
    display: block;
    margin-top: 4px;
    color: var(--sl-text);
    font-size: 14px;
    line-height: 1.4;
}

.sl-mega__purpose-link:hover .sl-mega__purpose-title {
    color: var(--sl-blue);
}

.sl-mega__tool-list {
    display: grid;
    gap: 2px;
}

.sl-mega__tool-link {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 54px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}

.sl-mega__tool-link:hover {
    color: var(--sl-blue);
}

.sl-mega__tool-icon {
    width: 28px;
    height: 28px;
    color: var(--sl-blue);
}

.sl-mega__bank-list {
    display: grid;
    gap: 10px;
}

.sl-mega__bank-link {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.sl-mega__bank-image {
    max-width: 160px;
    max-height: 39px;
}

.sl-mega__bank-image.sl-bank-logo--kh {
    max-height: 47px;
}

.sl-mega__all-banks {
    margin-top: 13px;
    font-size: 16px;
}

.sl-mega__feature {
    min-width: 0;
    margin-left: 16px;
    padding: 18px;
    align-self: start;
    border-radius: 12px;
    background: linear-gradient(135deg, #e1edff, #dcfbf9);
}

.sl-mega__feature-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.sl-mega__feature-description {
    margin-top: 8px;
    color: var(--sl-ink);
    font-size: 16px;
    line-height: 1.4;
}

.sl-mega__feature-media {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
}

.sl-mega__feature-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.sl-mega__feature-button {
    display: flex;
    width: 100%;
    min-height: 49px;
    margin-top: 14px;
    padding-inline: 12px;
    font-size: 16px;
    gap: 12px;
}

.sl-mega__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 70px;
    margin-top: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--sl-border);
}

.sl-mega__bottom-copy {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sl-mega__bottom-icon {
    width: 34px;
    height: 34px;
    color: var(--sl-blue);
}

.sl-mega__bottom-title {
    color: var(--sl-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.sl-mega__bottom-description {
    margin-top: 2px;
    color: var(--sl-muted);
    font-size: 13px;
    line-height: 1.4;
}

.sl-mega__bottom-link {
    flex: 0 0 auto;
    font-size: 15px;
}

@media (min-width: 1101px) and (max-width: 1320px) {
    .sl-mega {
        width: calc(100% - 5vw);
        padding-inline: 12px;
    }

    .sl-mega__column {
        padding-inline: 15px;
    }

    .sl-mega__heading {
        font-size: 19px;
    }

    .sl-mega__purpose-link {
        gap: 14px;
    }

    .sl-mega__purpose-title {
        font-size: 14px;
    }

    .sl-mega__purpose-description {
        font-size: 12px;
    }

    .sl-mega__tool-link {
        gap: 14px;
        font-size: 13px;
    }

    .sl-mega__bank-image {
        max-width: 137px;
        max-height: 34px;
    }

    .sl-mega__feature {
        padding: 14px;
        margin-left: 12px;
    }

    .sl-mega__feature-title {
        font-size: 20px;
    }

    .sl-mega__feature-description {
        font-size: 14px;
    }

    .sl-mega__feature-button {
        font-size: 14px;
    }

}

@media (max-width: 1100px) {
    .sl-mega, .sl-menu-backdrop {
        display: none !important;
    }

}
