
.header .header__container{
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
}

.header .header__logo{
    flex:0 0 auto !important;
}

.header .header__menu{
    flex:1 1 auto !important;
    min-width:0 !important;
}

.header .header__actions{
    margin-left:auto !important;
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:14px !important;
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
}

.header .header__actions .contacts__section{
    display:flex !important;
    align-items:center !important;
    gap:14px !important;
    flex-wrap:nowrap !important;
}

.header .country__section{
    display:none !important;
}

.header .header__phone{
    order:1 !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    white-space:nowrap !important;
    color:#ffffff !important;
    font-weight:700 !important;
    text-decoration:none !important;
}

.header .header__phone-icon{
    width:16px !important;
    height:16px !important;
    flex:0 0 16px !important;
    fill:none !important;
    stroke:#19a9e8 !important;
    stroke-width:2 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.header .header__call-btn,
.header .header__login-btn{
    height:42px !important;
    min-height:42px !important;
    max-height:42px !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    border-radius:11px !important;
    text-decoration:none !important;
    line-height:1 !important;
    font-weight:700 !important;
    white-space:nowrap !important;
}

.header .header__call-btn{
    order:2 !important;
    padding:0 20px !important;
    color:#ffffff !important;
    background:linear-gradient(180deg,#2db8ff 0%,#19a9e8 48%,#1297eb 100%) !important;
    border:1px solid rgba(91,205,255,.35) !important;
    box-shadow:0 6px 16px rgba(25,169,232,.16) !important;
}

.header .header__login-btn{
    order:3 !important;
    gap:8px !important;
    padding:0 15px !important;
    color:#ffffff !important;
    background:linear-gradient(180deg,rgba(25,169,232,.22) 0%,rgba(10,24,36,.96) 100%) !important;
    border:1px solid rgba(91,205,255,.48) !important;
    box-shadow:0 0 12px rgba(25,169,232,.10), inset 0 0 10px rgba(91,205,255,.05) !important;
    overflow:hidden !important;
    position:relative !important;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease,
        background .22s ease,
        filter .22s ease !important;
}

.header .header__login-btn:hover{
    transform:translateY(-1px) !important;
    background:linear-gradient(180deg,rgba(25,169,232,.38) 0%,rgba(11,28,42,.98) 100%) !important;
    border-color:rgba(91,205,255,.85) !important;
    box-shadow:0 0 18px rgba(25,169,232,.28), 0 0 34px rgba(25,169,232,.12), inset 0 0 14px rgba(91,205,255,.10) !important;
}

.header .header__login-btn:before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:80%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);
    transition:left .55s ease;
    pointer-events:none;
}

.header .header__login-btn:hover:before{
    left:140%;
}

.header .header__login-btn:hover .header__login-icon{
    stroke:#9fe4ff !important;
}

.header .header__login-btn:hover img{
    filter:drop-shadow(0 0 6px rgba(91,205,255,.55));
}

.header .header__login-btn img{
    width:17px !important;
    height:17px !important;
    flex:0 0 17px !important;
    object-fit:contain !important;
    display:block !important;
    position:relative !important;
    z-index:1 !important;
    transition:filter .22s ease !important;
}

.header .header__login-btn span{
    font-size:12.2px;
    line-height:1 !important;
    font-weight:700 !important;
    position:relative !important;
    z-index:1 !important;
}

.header .header__login-icon{
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
    fill:none !important;
    stroke:#5bcdff !important;
    stroke-width:2 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
    position:relative !important;
    z-index:1 !important;
    transition:stroke .22s ease !important;
}

.header .contacts__phone{
    display:none !important;
}

@media(max-width:1100px){
    .header .header__actions{
        gap:10px !important;
    }

    .header .header__phone span{
        display:none !important;
    }
}

@media(max-width:760px){
    .header .header__login-btn,
    .header .header__call-btn{
        display:none !important;
    }

    .header .contacts__phone{
        display:block !important;
    }
}

/* ===== VGL HEADER SOFT FIX v4: без изменения сетки шапки ===== */

/* не даем пунктам меню переноситься на 2 строки */
.header .menu__list:not(.mobile){
    display:flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:20px !important;
    margin:0 0 0 30px !important;
    padding:0 !important;
}

.header .menu__list:not(.mobile) > li{
    white-space:nowrap !important;
    flex:0 0 auto !important;
    margin:0 !important;
}

.header .menu__list:not(.mobile) > li > a{
    white-space:nowrap !important;
    font-size:15.5px !important;
    line-height:1.15 !important;
}

.header .menu__list:not(.mobile) > li > a br{
    display:none !important;
}

/* чуть больше полезного места под меню */
.header .header__menu{
    padding-left:0 !important;
    padding-right:28px !important;
    margin-left:30px !important;
}

/* правая часть компактнее, но без изменения высоты */
.header .header__actions{
    gap:10px !important;
}

.header .header__actions .contacts__section{
    gap:10px !important;
}

.header .header__call-btn{
    padding-left:16px !important;
    padding-right:16px !important;
}

.header .header__login-btn{
    padding-left:12px !important;
    padding-right:12px !important;
}

/* на средних экранах телефон оставляем иконкой, чтобы меню не ломалось */
@media(max-width:1480px){
    .header .menu__list:not(.mobile){
        gap:17px !important;
    }

    .header .menu__list:not(.mobile) > li > a{
        font-size:15px !important;
    }

    .header .header__phone span{
        display:none !important;
    }

    .header .header__phone{
        width:34px !important;
        flex:0 0 34px !important;
        justify-content:center !important;
    }

    .header .header__call-btn{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .header .header__login-btn{
        padding-left:11px !important;
        padding-right:11px !important;
    }
}

@media(max-width:1280px){
    .header .menu__list:not(.mobile){
        gap:14px !important;
    }

    .header .menu__list:not(.mobile) > li > a{
        font-size:14.5px !important;
    }
}


/* ===== VGL HEADER FINAL ALIGN FIX v5 ===== */

/* единая высота строки шапки для меню */
.header .menu__list:not(.mobile){
    align-items:stretch !important;
}

.header .menu__list:not(.mobile) > li{
    display:flex !important;
    align-items:center !important;
    height:72px !important;
}

.header .menu__list:not(.mobile) > li > a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:72px !important;
    padding:0 !important;
    margin:0 !important;
    white-space:nowrap !important;
    line-height:1 !important;
}

/* центрируем логотип и правый блок по той же высоте */
.header .header__logo{
    display:flex !important;
    align-items:center !important;
    height:72px !important;
}

.header .header__logo img{
    display:block !important;
    max-height:52px !important;
    width:auto !important;
}

.header .header__actions{
    height:72px !important;
    display:flex !important;
    align-items:center !important;
}

.header .header__phone,
.header .header__call-btn,
.header .header__login-btn{
    align-self:center !important;
}



/* ===== Compact header v2 ===== */
.header .header__container{
    min-height:64px !important;
}
.header .header__logo{
    height:64px !important;
}
.header .header__logo img{
    max-height:44px !important;
}
.header .menu__list:not(.mobile)>li,
.header .menu__list:not(.mobile)>li>a{
    height:64px !important;
    font-size:14px !important;
}
.header .menu__list:not(.mobile){
    gap:14px !important;
    margin-left:84px !important;
}
.header .header__menu{
    margin-left:0 !important;
    padding-right:16px !important;
}
.header .header__actions{
    height:64px !important;
    gap:8px !important;
}
.header .header__phone{
    font-size:12.5px !important;
    gap:5px !important;
}
.header .header__phone-icon{
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
}
.header .header__call-btn,
.header .header__login-btn{
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    font-size:13px !important;
}
.header .header__call-btn{
    padding:0 14px !important;
}
.header .header__login-btn{
    padding:0 10px !important;
}
.header .header__login-btn span{
    font-size:11.5px !important;
}
@media(max-width:1480px){
    .header .header__phone{
        width:auto !important;
        min-width:max-content !important;
        flex:0 0 auto !important;
        justify-content:flex-start !important;
        margin-right:4px !important;
        position:relative !important;
        z-index:2 !important;
    }

    .header .header__phone span{
        display:inline !important;
        white-space:nowrap !important;
    }
}



/* ===== Dropdown width and text containment fix ===== */
.header .menu__list:not(.mobile) .sub-menu,
.header .menu__list:not(.mobile) .submenu,
.header .menu__list:not(.mobile) .menu-item__submenu{
    width:640px !important;
    max-width:calc(100vw - 40px) !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
}

.header .menu__list:not(.mobile) .sub-menu li,
.header .menu__list:not(.mobile) .submenu li,
.header .menu__list:not(.mobile) .menu-item__submenu li{
    min-width:0 !important;
    box-sizing:border-box !important;
}

.header .menu__list:not(.mobile) .sub-menu a,
.header .menu__list:not(.mobile) .submenu a,
.header .menu__list:not(.mobile) .menu-item__submenu a{
    display:block !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    line-height:1.35 !important;
    box-sizing:border-box !important;
}

/* Two-column dropdowns: give the long right column more room. */
.header .menu__list:not(.mobile) .sub-menu{
    grid-template-columns:minmax(240px,.9fr) minmax(320px,1.1fr) !important;
}



/* ===== DEFINITIVE DROPDOWN WORD WRAP FIX ===== */
/* Target every nested desktop-menu level, regardless of the Walker's submenu class names. */
.header nav.header__menu > ul.menu__list:not(.mobile) > li > ul,
.header nav.header__menu ul.menu__list:not(.mobile) li > ul{
    box-sizing:border-box !important;
}

/* The white dropdown shown for "Сфера применения". */
.header nav.header__menu ul.menu__list:not(.mobile) li > ul{
    width:640px !important;
    max-width:calc(100vw - 40px) !important;
}

/* Allow each submenu column and item to shrink inside the white panel. */
.header nav.header__menu ul.menu__list:not(.mobile) li > ul li{
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

/* Force long submenu titles to wrap only between words. */
.header nav.header__menu ul.menu__list:not(.mobile) li > ul li > a{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    overflow-wrap:normal !important;
    word-wrap:normal !important;
    word-break:normal !important;
    hyphens:none !important;
    line-height:1.3 !important;
    box-sizing:border-box !important;
}

/* The second column contains the longest names, so constrain its text width. */
.header nav.header__menu ul.menu__list:not(.mobile) li > ul > li:nth-child(2) li > a,
.header nav.header__menu ul.menu__list:not(.mobile) li > ul > li:nth-child(n+2) > a{
    max-width:275px !important;
}


/* ===== MOBILE AND PRINT HEADER FIX ===== */
@media (max-width:760px){
    /* Логотип чуть правее, чтобы не накладывался на бургер */
    .header .header__logo{
        margin-left:20px !important;
    }

    .header .header__logo img{
        max-height:38px !important;
    }

    /* Полностью убираем белую мобильную иконку телефона */
    .header .contacts__phone{
        display:none !important;
    }
}

@media print{
    /* Убираем белую иконку телефона при печати */
    .header .contacts__phone{
        display:none !important;
    }

    /* Сохраняем отступ логотипа от меню */
    .header .header__logo{
        margin-left:20px !important;
    }
}


/* ===== VGL MOBILE MENU CLEAN FIX v2 ===== */
@media (max-width:760px){

    /*
     * Закрытая мобильная шапка:
     * бургер -> логотип -> номер телефона справа.
     */
    .header .header__container{
        min-height:64px !important;
        height:64px !important;
        display:flex !important;
        align-items:center !important;
        flex-wrap:nowrap !important;
        position:relative !important;
        padding-left:18px !important;
        padding-right:16px !important;
    }

    .header .header__burger{
        position:relative !important;
        z-index:10003 !important;
        flex:0 0 auto !important;
        margin:0 !important;
    }

    .header .header__logo{
        height:64px !important;
        margin:0 0 0 16px !important;
        padding:0 !important;
        flex:0 0 auto !important;
        display:flex !important;
        align-items:center !important;
        position:relative !important;
        z-index:10002 !important;
    }

    .header .header__logo img{
        display:block !important;
        max-height:38px !important;
        width:auto !important;
    }

    /* В обычной шапке показываем только номер телефона из правого блока. */
    .header .header__actions,
    .header .header__contacts{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        margin-left:auto !important;
        height:64px !important;
        flex:0 0 auto !important;
        gap:0 !important;
    }

    .header .header__call-btn,
    .header .header__login-btn,
    .header .contacts__phone{
        display:none !important;
    }

    .header .header__phone,
    .header .contacts__number.header__phone{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        width:auto !important;
        min-width:0 !important;
        flex:0 0 auto !important;
        margin:0 !important;
        gap:6px !important;
        color:#fff !important;
        font-size:13px !important;
        line-height:1 !important;
        font-weight:700 !important;
        white-space:nowrap !important;
        text-decoration:none !important;
        position:relative !important;
        z-index:10002 !important;
    }

    .header .header__phone span{
        display:inline !important;
        white-space:nowrap !important;
    }

    .header .header__phone-icon{
        width:15px !important;
        height:15px !important;
        flex:0 0 15px !important;
    }

    /* Desktop-main-menu не должен просвечивать поверх мобильной шапки. */
    .header nav.header__menu > ul.menu__list:not(.mobile){
        display:none !important;
    }

    /*
     * Выезжающая голубая панель.
     * Десктопные стили не затрагиваются.
     */
    .header .header__menu.menu{
        box-sizing:border-box !important;
    }

    .header .header__menu.menu.active,
    .header .header__menu.menu._active,
    .header .header__menu.menu.open{
        width:min(86vw,360px) !important;
        max-width:360px !important;
        height:100dvh !important;
        min-height:100vh !important;
        padding:0 !important;
        background:#24a9e2 !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        box-shadow:18px 0 44px rgba(0,0,0,.18) !important;
    }

    .header .menu__mobile{
        display:block !important;
        box-sizing:border-box !important;
        width:100% !important;
        padding:58px 24px 34px !important;
    }

    .header .menu__mobile .vgl-mobile-main-menu{
        display:block !important;
        margin:0 !important;
        padding:0 !important;
        list-style:none !important;
    }

    .header .menu__mobile .vgl-mobile-main-item{
        display:block !important;
        width:100% !important;
        height:auto !important;
        margin:0 !important;
        padding:0 !important;
        border-bottom:1px solid rgba(255,255,255,.14) !important;
    }

    .header .menu__mobile .vgl-mobile-main-item > a{
        display:block !important;
        width:100% !important;
        height:auto !important;
        min-height:0 !important;
        margin:0 !important;
        padding:14px 2px !important;
        color:#fff !important;
        font-size:18px !important;
        line-height:1.25 !important;
        font-weight:600 !important;
        white-space:normal !important;
        text-decoration:none !important;
    }

    .header .menu__mobile .vgl-mobile-main-item > a br{
        display:none !important;
    }

    /* Подчинённые ссылки под "Продукты". */
    .header .vgl-mobile-products-subnav{
        display:block !important;
        margin:-2px 0 10px !important;
        padding:0 0 2px 18px !important;
        list-style:none !important;
    }

    .header .vgl-mobile-products-subnav li{
        display:block !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
    }

    .header .vgl-mobile-products-subnav a{
        position:relative !important;
        display:block !important;
        padding:9px 8px 9px 18px !important;
        color:rgba(255,255,255,.88) !important;
        font-size:15px !important;
        line-height:1.25 !important;
        font-weight:500 !important;
        text-decoration:none !important;
    }

    .header .vgl-mobile-products-subnav a::before{
        content:"" !important;
        position:absolute !important;
        left:1px !important;
        top:50% !important;
        width:7px !important;
        height:1px !important;
        background:rgba(255,255,255,.68) !important;
        transform:translateY(-50%) !important;
    }

    .header .vgl-mobile-blog-item > a{
        font-weight:700 !important;
    }

    .header .vgl-mobile-menu__actions{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:11px !important;
        margin-top:26px !important;
        padding-bottom:18px !important;
    }

    .header .vgl-mobile-menu__login,
    .header .vgl-mobile-menu__call{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:100% !important;
        min-height:48px !important;
        padding:12px 16px !important;
        border-radius:11px !important;
        font-size:14px !important;
        line-height:1.2 !important;
        font-weight:700 !important;
        text-align:center !important;
        text-decoration:none !important;
    }

    .header .vgl-mobile-menu__login{
        color:#14202a !important;
        background:#fff !important;
    }

    .header .vgl-mobile-menu__call{
        color:#fff !important;
        background:rgba(0,0,0,.14) !important;
        border:1px solid rgba(255,255,255,.34) !important;
    }

    /* Белый крестик внутри голубой панели, в правом верхнем углу. */
    .header .menu__close-button{
        position:absolute !important;
        top:16px !important;
        right:16px !important;
        z-index:10005 !important;
        display:block !important;
        width:36px !important;
        height:36px !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:50% !important;
        background:rgba(0,0,0,.10) !important;
        color:transparent !important;
        font-size:0 !important;
        line-height:0 !important;
        cursor:pointer !important;
    }

    .header .menu__close-button::before,
    .header .menu__close-button::after{
        content:"" !important;
        position:absolute !important;
        left:9px !important;
        top:17px !important;
        width:18px !important;
        height:2px !important;
        border:0 !important;
        background:#fff !important;
        border-radius:2px !important;
        transform-origin:center !important;
        opacity:1 !important;
    }

    .header .menu__close-button::before{
        transform:rotate(45deg) !important;
    }

    .header .menu__close-button::after{
        transform:rotate(-45deg) !important;
    }
}

/* ===== VGL MOBILE MENU DARK SLIDE v4 ===== */
@media (max-width:760px){

    /*
     * Меню снова выезжает слева, но теперь оно тёмное — в цвет мобильного header.
     * Панель находится поверх страницы, но под логотипом и номером телефона.
     */
    .header .header__menu.menu.active,
    .header .header__menu.menu._active,
    .header .header__menu.menu.open{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        right:auto !important;
        bottom:0 !important;

        width:min(86vw,360px) !important;
        max-width:360px !important;
        height:100dvh !important;
        min-height:100vh !important;

        margin:0 !important;
        padding:0 !important;

        background:#1B1D1F !important;
        color:#fff !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        box-shadow:18px 0 44px rgba(0,0,0,.28) !important;
        z-index:20000 !important;
    }

    /*
     * Оставляем сверху место под логотип и телефон.
     */
    .header .header__menu.menu.active .menu__mobile,
    .header .header__menu.menu._active .menu__mobile,
    .header .header__menu.menu.open .menu__mobile{
        width:100% !important;
        min-height:100% !important;
        padding:82px 24px 34px !important;
        background:transparent !important;
    }

    /*
     * Логотип и номер телефона остаются поверх открытого меню.
     * Бургер, наоборот, уходит под панель — вместо него используется крестик.
     */
    .header .header__logo{
        z-index:20002 !important;
    }

    .header .header__actions,
    .header .header__contacts,
    .header .header__phone,
    .header .contacts__number.header__phone{
        position:relative !important;
        z-index:20002 !important;
    }

    .header .header__burger{
        z-index:10003 !important;
    }

    /*
     * Пункты меню на тёмной панели.
     */
    .header .menu__mobile .vgl-mobile-main-item{
        border-bottom:1px solid rgba(255,255,255,.11) !important;
    }

    .header .menu__mobile .vgl-mobile-main-item > a{
        color:#fff !important;
    }

    .header .vgl-mobile-products-subnav a{
        color:rgba(255,255,255,.72) !important;
    }

    .header .vgl-mobile-products-subnav a::before{
        background:rgba(25,169,232,.85) !important;
    }

    /*
     * Крестик располагаем чуть ниже строки с телефоном.
     * Он остаётся внутри выезжающей панели справа.
     */
    .header .menu__close-button{
        position:fixed !important;
        top:68px !important;
        left:min(calc(86vw - 52px),308px) !important;
        right:auto !important;
        z-index:20003 !important;

        width:34px !important;
        height:34px !important;
        margin:0 !important;
        padding:0 !important;

        border:1px solid rgba(255,255,255,.20) !important;
        border-radius:50% !important;
        background:rgba(255,255,255,.06) !important;
        color:transparent !important;
        font-size:0 !important;
        line-height:0 !important;
        cursor:pointer !important;
    }

    .header .menu__close-button::before,
    .header .menu__close-button::after{
        content:"" !important;
        position:absolute !important;
        left:8px !important;
        top:15px !important;
        width:18px !important;
        height:2px !important;
        background:#fff !important;
        border-radius:2px !important;
        opacity:1 !important;
        transform-origin:center !important;
    }

    .header .menu__close-button::before{
        transform:rotate(45deg) !important;
    }

    .header .menu__close-button::after{
        transform:rotate(-45deg) !important;
    }

    /*
     * Кнопки внизу чуть адаптируем под тёмную панель.
     */
    .header .vgl-mobile-menu__login{
        color:#15202c !important;
        background:#fff !important;
    }

    .header .vgl-mobile-menu__call{
        color:#fff !important;
        background:#19a9e8 !important;
        border-color:#19a9e8 !important;
    }
}

