.header {
    z-index: 80;
    top: 0;
    left: 0;
    right: 80px;
    background-color: var(--white);
    position: relative;
    white-space: nowrap;
    width: calc(100% - 160px);
    margin: 0 80px;
    position: fixed;
    border-bottom: 4px solid var(--border-2);
}

.header p {
    margin-bottom: 0;
}

.header ul {
    padding-left: 0;
    margin: 0;
}

.header-scrolled .header-item-other {
    display: none !important;
}

.header-item-single {
    padding-top: 20px;
    padding-bottom: 20px;
}
.header-item + .header-item{
    border-top: 1px solid var(--border-2);
}
.header-item-other {
    padding-top: 12px;
    padding-bottom: 12px;
}
.header-row{
    --logo-grid-size: 40%;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;
    --gap-rounded: 20px;
    margin-left: calc(var(--gap-rounded) * -1);
    margin-right: calc(var(--gap-rounded) * -1);
}
.header-row > .header-row-grid{
    padding-left: var(--gap-rounded);
    padding-right: var(--gap-rounded); 
}
.header-row-grid.header-grid--logo{
    flex: auto; overflow: hidden;
    max-width: var(--logo-grid-size); 
}
.header-grid--nav1{
    max-width: calc(100% - var(--logo-grid-size));
    margin-left: auto; justify-content: center;
}
.custom-lang-link.--active{
    pointer-events: none;
    color: var(--light);
}
.header-grid--last{
    flex: auto; 
    justify-content: center;
}

.header-group-text-info{
    gap: 5px;
    overflow: hidden;
}

.header-text-logo-label {
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}
.header-logo{
    gap: 25px;
    overflow: hidden;
}
.header-text-logo-title{
    font-size: var(--h3Size);
    font-weight: 800;
}

.header-menu-navigation-nav,
.header-menu-navigation-nav-ul{
    display: flex;
    align-items: center;
    position: relative;
}

a:focus,
.btn:focus {
    box-shadow: unset !important;
}

.header-nav-group-column {
    overflow: hidden;
    gap: var(--gap--xs);
    display: flex;
    flex-direction: column;
}
.header-nav-group-row{
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    min-height: var(--size-sm);
}

.custom-lang-list{gap: 15px;}
.header-nav-group-row-item{position: relative;}
.header-nav-group-row-item + .header-nav-group-row-item{
    padding-left: 14px;
    
}
.header-nav-group-row-item + .header-nav-group-row-item::before{
    content: "";
    display: block;
    min-height: 20px;
    max-height: 20px;
    width: 0.5px;
    background: var(--border-5);
    margin-right: 5px;
    pointer-events: none;
}

.location-custom-select,
.location-custom-select-wrpr {
    display: flex;
    align-items: center;
}
.location-ico-pin{
    --ico-size: 24px;
    color: var(--secondary-color-1);
}
.location-custom-select-wrpr{
    gap: 4px; overflow: hidden;
}
.location-custom-select-label{gap: 1px;}

.location-select-label-text{
    font-weight: 600;
}
.select-fale-select-control{
    gap: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--primary);
}
.select-fale-select-control-value{
    font-weight: 600;
    line-height: 1.2em;
    color: inherit;
    border-bottom: 1px dotted var(--primary);
}
.select-fake-select-icon{--ico-size: 18px;}
.btn-header-link-icon{--min-height: max-content;}

.header-link-mail{color: var(--secondary-color-3);}
.header-link-rss{color: var(--secondary-color-8);}

.social-list,
.social-list-item{
    display: flex;
    align-items: center;
}

.btn-social{
    color: var(--primary);
}

.btn--burger-menu{
    --ico-size: var(--min-height);
}


.header-navigation-link{
    font-weight: 600 !important;
    font-size: 14px;
    gap: var(--gap--xs);
    cursor: pointer;
}



.swiper-header-menu{
    width: 100%; margin: 0;
    display: flex; align-items: center;
}
.swiper-header-menu .swiper-slide{
    display: flex; max-width: 100%; width: max-content;
}

.header-logo-group{
    flex: auto;
    display: flex;
    overflow: hidden;
    align-items: center;
}

.header-collapse-wrapper{
    display: flex;
    flex-direction: column;
}

.btn-toggle-menu{
    font-size: 14px;
    border-radius: 360px;
    background-color: var(--light-3);
}

.hmnnu-li-item{
    position: relative;
    display: flex;
    flex-direction: column;
}

/* mobile header */
.hm-mobile {
    display: flex;
    --px: 18px;
    --py: 18px;
    z-index: 100;
    height: 100%;
    transform: translateX(calc(-100% - var(--header-mibile-headsize)));
    flex-direction: column;
    width: 100%;
    max-width: var(--header-mobile);
    position: fixed; top: 0; left: 0;
    background-color: var(--white);
    border-right: 1px solid var(--border-4);
    transition: transform 0.2s;
}
.hm-mobile--header{
    padding: 0 calc(var(--px) / 2);
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-4);
    height: 100%;
    max-height: var(--header-mibile-headsize);
}
.hm-mobile-wrapper-close{
    z-index: 1;
    top: 0; 
    right: calc(
        var(--header-mibile-headsize) * -1
    );
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: var(--header-mibile-headsize);
    max-width: var(--header-mibile-headsize);
    height: var(--header-mibile-headsize);
}
.hm-mobile--footer{
    display: flex;
    flex-direction: column;
}

.hm-mobile .header-text-logo-title{
    font-size: 13px;
    line-height: 1.8em;
}
.hm-mobile .header-group-text-info{gap: 0;}
.hm-mobile .header-logo{gap: 15px;}
.header-text-logo-label{
    font-weight: 500;
    font-size: var(--text--xs);
}
.hm-mobile--header-item,
.hm-mobile--body-item,
.hm-mobile--footer-item{
    padding: var(--py) var(--px);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.hm-mobile--body-item{
    overflow: visible;
}
.hm-mobile--header-item + .hm-mobile--header-item{
    border-top: 1px solid var(--border-4);
}
.hm-mobile .header-nav-group-column{gap: var(--gap--sm);}
.hm-mobile--body-item + .hm-mobile--body-item{
    border-top: 1px solid var(--border-4);
}
.hm-mobile--body{
    padding-top: var(--py);
    padding-bottom: var(--py);
    display: flex;
    flex-direction: column;
    overflow: auto; flex: auto;
}

.hm-mobile--body::-webkit-scrollbar{
    display: none;
}
.hm-mobile .header-navigation-link{
    padding-left: var(--px);
    padding-right: var(--px);
    justify-content: space-between;
}
.hmnnu-li-item.mm-active > .header-navigation-link{
    color: var(--primary);
}
.hmnnu-li-item.mm-active > .header-navigation-link .header-nav-link-ico{
    transform: rotate(180deg);
}
.menu-overlay{
    font-weight: 600;
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 98;
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: flex-end;
    color: var(--white);
    font-size: 16px; padding: 10px;
}

.hm-mobile .custom-lang-list{
    gap: 0; width: 100%;
    background-color: var(--border-1);
    border-bottom: 1px solid var(--border-4);
}
.hm-mobile .custom-lang-list-item{
    flex: auto;
}
.hm-mobile .custom-lang-list-item + .custom-lang-list-item{
    border-left: 1px solid var(--light-2);
}
.hm-mobile .custom-lang-link.--active{
    color: var(--white);
    background-color: var(--border-3) !important;
}
.hm-mobile .btn-social{font-size: 20px;}

.toggle-slide{display: none !important;}
#toggleHeaderMenuJs.--active{color: var(--primary);}

.hm-mobile .hmnnu-li-item:not(:last-child){
    border-bottom: 1px solid var(--border-4);
}

.hmnnu-li-item-hasmenu{
    background: var(--light-3);
    border-top: 1px solid var(--border-4);
}
/* mobile header */











.metismenu{
    flex: auto; --size-menu: 200px;
}
.submenu {
    display: none;
    list-style: none;
    margin: 0;
    background: var(--white);
    min-width: var(--size-menu);
    max-width: var(--size-menu);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    position: absolute;
    top: 90%;
    left: 0;
    z-index: 9999;
    margin-top: -8px;
    padding-top: 8px;
}

/* Show dropdown on hover - only one level at a time */
.hmnnu-li-item {
    position: relative;
    z-index: 999;
}

.hmnnu-li-item:hover>.submenu.dropdown-menu {
    display: block !important;
    z-index: 10000;
}

/* Keep dropdown open when hovering over it */
.submenu.dropdown-menu:hover {
    display: block !important;
    z-index: 10000;
}

/* Hide nested dropdowns by default - only show on direct hover */
.submenu .submenu {
    display: none !important;
}

/* Show nested dropdowns only on direct hover of their parent */
.submenu .hmnnu-li-item:hover>.submenu.dropdown-menu {
    display: block !important;
    z-index: 10000;
    top: 0;
    left: 100%;
}

/* Position nested dropdowns to the right */
.hmnnu-li-item .hmnnu-li-item:hover>.submenu.dropdown-menu {
    top: 0;
    left: 100%;
    z-index: 10000;
}

/* Override inline display: none !important for nested dropdowns on hover */
.submenu .hmnnu-li-item:hover>ul[style*="display: none"] {
    display: block !important;
}

/* Most specific override for nested-dropdown class */
.submenu .hmnnu-li-item:hover>.nested-dropdown {
    display: block !important;
}

/* Use attribute selector for maximum specificity */
.submenu .hmnnu-li-item:hover>ul.nested-dropdown[style*="display: none"] {
    display: block !important;
}

/* Alternative: Use JavaScript-style approach with CSS */
.submenu .hmnnu-li-item:hover>.nested-dropdown[style] {
    display: block !important;
}

/* Prevent trembling with stable positioning */
.header-menu-navigation-nav-ul>.hmnnu-li-item {
    position: relative;
    z-index: 1;
}

.header-menu-navigation-nav-ul>.hmnnu-li-item:hover {
    z-index: 10;
}

/* Create invisible bridge area */
.hmnnu-li-item:hover>.submenu.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: -1;
}

/* Dropdown menu item styling */
.submenu .header-navigation-link {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-2);
    white-space: nowrap;
}

.submenu .header-navigation-link:last-child {
    border-bottom: none;
}

/* Prevent overlap issues */
.submenu.dropdown-menu {
    pointer-events: auto;
}

.hmnnu-li-item:hover>.submenu.dropdown-menu {
    pointer-events: auto;
}

[data-tippy-root] .submenu>.hmnnu-li-item:not(:last-child) {
    border-bottom: 1px solid var(--border-2);
}

[data-theme="metismenu-tippy"] {
    background-color: transparent;
    color: var(--defaultTextColor);
}

.tippy-content {
    padding: 0;
}

.tippy-box .header-navigation-link {
    width: 100%;
}

[data-tippy-root] .submenu {
    display: block !important;
}

.header .hover-show {
    display: none !important;
}

.header .hover-show:hover {
    display: block !important;
}