#header-menu-template-2 {
    background: var(--g-color-1);
    background: linear-gradient(90deg, var(--g-color-1) 49%, var(--g-color-3) 50%);
    overflow-x: clip;
}

#header-menu-template-2 .header-menu-row{
    min-height: 56px;
}

#header-menu-template-2 .header-menu-category-lv0-link {
    padding-left: 36px;
    padding-right: 36px;
}

#header-menu-template-2 .nav-item:not(.homepage) {
}

/*#region separator */
#header-menu-template-2 .nav-item > a .separator:before {
    content: "";
    width: 1px;
    background: rgba(255,255,255,0.3);
    height: 16px;
    position: absolute;
    left: -1px;
    top: calc(50% - 8px);
    box-shadow: 0 0 1px rgb(255 255 255 / 50%);
}
#header-menu-template-2 .nav-item > a .separator:after {
    content: "";
    position: absolute;
    top: calc(50% - 3px);
    height: 5px;
    background: red;
    border-radius: 1px;
    left: -3px;
    width: 6px;
}

#header-menu-template-2 .nav-item.homepage > a .separator:after {
    display: none;
}

/*#endregion separator */

/*#region active category effect */

#header-menu-template-2 .nav-item > a.category-active:after {
    content: "";
    position: absolute;
    background: var(--g-color-2);
    width: 100%;
    height: 6px;
    bottom: 0;
}

#header-menu-template-2 .nav-item.homepage > a.category-active:after {
    display: none;
}


/*#endregion active category effect */

#header-menu-template-2 .nav-item.homepage {
    margin-left: 13px;
}

#header-menu-template-2 .nav-item.menu-group-1{
    background-color: var(--g-color-1);
    transition: background-color 0.3s ease-in-out;
}

#header-menu-template-2 .nav-item.menu-group-1:hover,
#header-menu-template-2 .nav-item.homepage:hover {
    background-color: #002a53;
}

#header-menu-template-2 .nav-item.menu-group-1:hover .lv1{
    max-height: calc(100vh - 285px);
    opacity: 1;
}

#header-menu-template-2 .nav-item > a {
    color: white;
    font-family: var(--font-primary);
    font-size: 14px;
}

#header-menu-template-2 .nav-item.homepage > a {
    font-size: 20px;
}

@media(min-width: 1300px){
    #header-menu-template-2 .nav-item.menu-group-1 > a,
    #header-menu-template-2 .nav-item.menu-group-2 > a {
        font-size: 15px;
    }
}

/*#endregion*/

/*#region levá část menu (na KDZ je menu rozdělené na 3 části)*/

#header-menu-template-2 .nav-item.menu-group-2 {
    background-color: var(--g-color-3);
    transition: background-color 0.3s ease-in-out;
}

#header-menu-template-2 .nav-item.menu-group-2:hover {
    background-color: #333333;
}

/*#endregion*/


/*#region speciální effekt šuplery pro Bilavčík */

#header-menu-template-2 .menu-effect-caliper:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -22px;
    width: 100vw;
    background: url('/_data/styly/bilavcik/caliper-dir-down.png') repeat-x;
    height: 22px;
    z-index: 9;
    pointer-events: none;
}

#header-menu-template-2 .menu-effect-caliper{
    width: 0;
}

/*.menu-effect-caliper:before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    left: 0;*/
/*    bottom: 0;*/
/*    width: 100vw;*/
/*    background: url('/_data/styly/bilavcik/caliper-dir-up.png') repeat-x;*/
/*    height: 22px;*/
/*    z-index: 9;*/
/*    opacity: 0.3;*/
/*}*/
/*#endregion speciální effekt šuplery pro Bilavčík  */


/* menu loading container */
#header-menu-template-2 .nav-item .sub_menu_container {
    width: 100%;
    height: 0;
    left: 0;
    transition: all 0.5s ease;
}

#header-menu-template-2 .nav-item:hover .sub_menu_container {
    width: 100%;
    height: auto;
    left: 0;
    background-color: white;
}

@keyframes bouncing-loader {
    to {
        opacity: 0.1;
        transform: translate3d(0, -16px, 0);
    }
}

#header-menu-template-2 .nav-item .loading-active .bouncing-loader {
    display: flex !important;
}

#header-menu-template-2 .nav-item:hover .bouncing-loader {
    display: none;
    justify-content: center;
    vertical-align: middle;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
}

#header-menu-template-2 .nav-item:hover .bouncing-loader .bouncing-loader-item {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 3rem 0.2rem;
    background: var(--g-color-4);
    border-radius: 50%;
    animation: bouncing-loader 0.6s infinite alternate;
}

#header-menu-template-2 .nav-item:hover .bouncing-loader > div:nth-child(2) {
    animation-delay: 0.2s;
}

#header-menu-template-2 .nav-item:hover .bouncing-loader > div:nth-child(3) {
    animation-delay: 0.4s;
}

/* Submenu */
#header-menu-template-2 .dummy-middle-point {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
}

/*#header-menu-template-2 .visibility-controller {*/
/*    !*opacity: 0;*!*/
/*    pointer-events: none;*/
/*}*/

#header-menu-template-2 .lv1 {
    top: 100%;
    left: -50vw;
    width: 100vw;
    background: white;
    box-shadow: 3px 3px 9px 0 rgb(0 0 0 / 20%);
    z-index: 99999;
    max-height: 0;
    overflow-y: auto;
    transition: 0.5s all ease-in-out;
    opacity: 0;
}


#header-menu-template-2 .nav-item .lv1{
    max-height: calc(100vh - 285px);
    transition: all 0.5s ease-in-out;
}

@media(min-width: 1920px){
    .header-submenu-template-2 .lv1 {
        left: calc(-1920px / 2);
    }
}
