﻿.ag-mega {
    position: fixed;
    inset: 0;
    z-index: 85;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: .18s ease;
}

    .ag-mega.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.ag-mega__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.ag-mega__shell {
    position: relative;
    margin-top: 122px;
}

.ag-mega__box {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 460px;
    max-height: calc(100vh - 160px);
    overflow: hidden;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.ag-mega__left {
    background: #151a1e;
    color: #fff;
    overflow-y: auto;
}

.ag-mega__head {
    height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ag-mega__close {
    width: 34px;
    height: 34px;
    border: 0;
    background: var(--ag-red);
    color: #fff;
    border-radius: 6px;
    font-size: 24px;
    cursor: pointer;
}

.ag-mega__roots {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.ag-mega__root {
    width: 100%;
    border: 0;
    background: transparent;
    color: #dbe0e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

    .ag-mega__root svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    .ag-mega__root:hover,
    .ag-mega__root.is-active {
        background: var(--ag-red);
        color: #fff;
    }

.ag-mega__content {
    overflow-y: auto;
    background: #fff;
}

.ag-mega__pane {
    display: none;
    padding: 24px;
}

    .ag-mega__pane.is-active {
        display: block;
    }

.ag-mega__paneTop {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ag-border);
}

    .ag-mega__paneTop h3 {
        margin: 0 0 8px;
        font-family: Montserrat, Roboto, Arial, sans-serif;
        font-size: 24px;
        font-weight: 900;
    }

    .ag-mega__paneTop a {
        color: var(--ag-red);
        font-weight: 900;
        font-size: 13px;
    }

    .ag-mega__paneTop img {
        width: 180px;
        height: 86px;
        object-fit: cover;
        border-radius: 10px;
    }

.ag-mega__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ag-mega__title {
    display: inline-flex;
    color: #151a1e;
    font-weight: 900;
    margin-bottom: 10px;
}

.ag-mega__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ag-mega__col li a {
    color: #606a73;
    font-size: 13px;
    font-weight: 600;
}

    .ag-mega__col li a:hover {
        color: var(--ag-red);
    }

@media (max-width: 900px) {
    .ag-mega__shell {
        width: 100%;
        margin-top: 0;
    }

    .ag-mega__box {
        grid-template-columns: 1fr;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .ag-mega__left {
        max-height: 45vh;
    }

    .ag-mega__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ag-mega__paneTop img {
        display: none;
    }
}

@media (max-width: 560px) {
    .ag-mega__cols {
        grid-template-columns: 1fr;
    }
}
