/* ==========================================================
   GET4HOME PREMIUM
   MEGA MENU
========================================================== */

.g4h-nav ul{
    display:flex;
    align-items:center;
    gap:28px;
    margin:0;
    padding:0;
    list-style:none;
}

.g4h-nav li{
    position:relative;
}

.g4h-header .g4h-menu a{
    display:flex;
    align-items:center;
    gap:7px;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
    transition:opacity .2s;
}

.g4h-header .g4h-menu a:hover{
    opacity:.85;
}

/* ---------- Широкая единая панель ---------- */

.g4h-megamenu{
    position:fixed;
    top:96px;
    left:50%;
    width:92vw;
    max-width:1240px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 30px 60px rgba(18,35,61,.18);
    border:1px solid #ececec;
    z-index:900;

    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate(-50%, -12px);
    transition:opacity .25s ease, transform .25s ease, visibility .25s;
}

.g4h-has-megamenu.g4h-megamenu-open > .g4h-megamenu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(-50%, 0);
}

.g4h-megamenu-inner{
    display:flex;
    max-height:calc(100vh - 140px);
}

/* ---------- Сайдбар (11 категорий) ---------- */

.g4h-megamenu-sidebar{
    flex:0 0 300px;
    background:#f7f9fb;
    border-radius:20px 0 0 20px;
    padding:16px;
    overflow-y:auto;
    border-right:1px solid #ececec;
}

.g4h-megamenu-row{
    border-radius:12px;
    transition:background-color .15s;
    cursor:pointer;
}

.g4h-megamenu-row-link{
    display:flex !important;
    align-items:center;
    gap:11px;
    padding:10px 16px;
    border-radius:10px;
    color:#333 !important;
    font-size:14px;
    font-weight:600 !important;
    text-decoration:none;
    white-space:nowrap;
    transition:color .15s;
}

.g4h-megamenu-row-icon{
    flex-shrink:0;
    width:28px;
    height:28px;
    border-radius:8px;
    background:#eef2f6;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#0077B6;
    transition:background-color .15s, color .15s;
}

.g4h-megamenu-row-text{
    flex:1;
}

.g4h-megamenu-row-caret{
    color:#c3c9d1;
    flex-shrink:0;
    transition:transform .15s, color .15s;
}

.g4h-megamenu-row:hover,
.g4h-megamenu-row.g4h-row-active{
    background:#fff;
    box-shadow:0 2px 10px rgba(18,35,61,.06);
}

.g4h-megamenu-row:hover .g4h-megamenu-row-link,
.g4h-megamenu-row.g4h-row-active .g4h-megamenu-row-link{
    color:#0077B6 !important;
}

.g4h-megamenu-row:hover .g4h-megamenu-row-icon,
.g4h-megamenu-row.g4h-row-active .g4h-megamenu-row-icon{
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    color:#fff;
}

.g4h-megamenu-row:hover .g4h-megamenu-row-caret,
.g4h-megamenu-row.g4h-row-active .g4h-megamenu-row-caret{
    color:#FF8500;
    transform:translateX(3px);
}

/* ---------- Контентная область справа (подкатегории) ---------- */

.g4h-megamenu-content{
    flex:1;
    position:relative;
    padding:34px 40px;
    overflow-y:auto;
}

.g4h-megamenu-panel{
    display:none;
    animation:g4hFadeIn .2s ease;
}

.g4h-megamenu-panel.g4h-panel-active{
    display:flex;
    gap:36px;
}

@keyframes g4hFadeIn{
    from{ opacity:0; transform:translateY(6px); }
    to{ opacity:1; transform:translateY(0); }
}

.g4h-megamenu-subcats{
    flex:1;
    min-width:0;
}

/* ---------- Промо-баннер справа ---------- */

.g4h-megamenu-promo{
    flex:0 0 260px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    border-radius:16px;
    padding:26px 24px;
    text-decoration:none;
    background:linear-gradient(160deg,#00B4D8 0%,#0077B6 100%);
    min-height:220px;
    transition:transform .2s;
}

.g4h-megamenu-promo:hover{
    transform:translateY(-3px);
}

.g4h-megamenu-promo-eyebrow{
    display:block;
    color:rgba(255,255,255,.75);
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.g4h-megamenu-promo-title{
    display:block;
    color:#fff;
    font-size:20px;
    font-weight:800;
    line-height:1.35;
    margin-top:10px;
}

.g4h-megamenu-promo-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    align-self:flex-start;
    margin-top:20px;
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    color:#0077B6;
    padding:10px 18px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
}

.g4h-megamenu-columns{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
    gap:16px 30px;
}

.g4h-megamenu-col-title{
    display:block !important;
    color:#333 !important;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    white-space:normal;
    line-height:1.5;
    padding:6px 0;
    transition:color .15s, transform .15s;
}

.g4h-megamenu-col-title:hover{
    color:#0077B6;
    transform:translateX(3px);
}

.g4h-megamenu-viewall{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#0077B6 !important;
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    padding:12px 22px;
    border-radius:999px;
    font-size:14px;
    font-weight:800 !important;
    text-decoration:none;
    white-space:normal;
    margin-top:28px;
    transition:transform .15s, box-shadow .15s;
}

.g4h-megamenu-viewall:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(255,133,0,.3);
}

.g4h-megamenu-empty{
    color:#888;
    font-size:14px;
    margin:0 0 10px;
}

/* ---------- Мобильная адаптация ---------- */

@media(max-width:1300px){

    .g4h-nav{
        display:none;
    }

}

@media(max-width:900px){

    .g4h-megamenu-inner{
        flex-direction:column;
        max-height:calc(100vh - 120px);
        overflow-y:auto;
    }

    .g4h-megamenu-sidebar{
        flex:none;
        width:100%;
        border-radius:20px 20px 0 0;
        border-right:none;
        border-bottom:1px solid #ececec;
    }

    .g4h-megamenu-panel.g4h-panel-active{
        flex-direction:column;
    }

    .g4h-megamenu-promo{
        flex:none;
    }

}