:root{
    --submenu-before-width: 0;
    --submenu-before-left: 0;
}

.custom-submenu.lyzovani{
    background: url("lyzovani_bg.png") no-repeat 42.5% bottom;
    background-color: white;
    background-size: 325px;
    height: 350px;
}

.custom-submenu.cyklistika{
    background: url("cyklistika_bg.png") no-repeat left bottom;
    background-color: white;
    background-size: 275px;
    height: 425px;
}

.custom-submenu{
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #379683;
    padding: 20px;
    z-index: 9999;
}

.custom-submenu::before{
    content: "";
    position: absolute;
    top: -2px;
    left: var(--submenu-before-left);
    width: var(--submenu-before-width);
    height: 2px;
    background: white;
}

.custom-grid{
    width: fit-content;
    display: grid;
    row-gap: 0.5vw;
}

.custom-submenu.cyklistika > .custom-grid{
    margin-left: auto;
    max-width: 85%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.custom-submenu.lyzovani > .custom-grid{
    grid-template-columns: 1.5fr 1.5fr 2fr 1fr 1fr 2fr;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.custom-section{
    display: flex;
    align-items: stretch;
    gap: 5%;
}

.section-title{
    display: block;
    color: #141414 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 0.25em;
}

.section-text :not(.section-title){
    display: block;
    font-size: 13px;
    color: #379683;
    line-height: 2rem;
    text-decoration: underline;
}

.section-text :not(.section-title):hover{
    text-decoration: none;
}

.section-img img{
    display: block;
    height: auto;
    max-height: 54px;
    max-width: 76px;
}

.custom-submenu a {
    padding: 0 !important;
}

.custom-submenu.cyklistika a{
    padding-left: 0 !important;
}

#detskaKola{
    order: 1;
}

#jizdniKola{
    order: 2;
}

#elektrokola{
    order: 3;
}

#prislusenstvi{
    order: 4;
    text-align: right;
    grid-row: 1/3;
    grid-column: 4/5;
}

#servis{
    order: 5;
}

#komponenty{
    order: 6;
}

#komponenty img{
    opacity: 0;
}

#cyklistickeVybaveni{
    order: 7;
}

#cyklistickeObleceni{
    order: 8;
}

#banners{
    order: 9;
    flex-direction: column;
    gap: 10px;
}

.custom-submenu.lyzovani #banners{
    grid-row: 1/3;
    grid-column: 6/7;
}

#sjezdoveLyzovani{
    order: 1;
}

#snowboarding{
    order: 2;
}

#lyzarskeObleceni{
    order: 3;
    grid-row: 1/3;
    grid-column: 4/5;
}

#lyzarskeVybaveni{
    order: 4;
    grid-row: 1/3;
    grid-column: 5/6;
}

#bezeckeLyzovani{
    order: 5;
    grid-column: 1/2;
}

#skialpinismus{
    order: 6;
    grid-column: 2/3;
}

#banners>a{
    height: 45%;
}

.header-banner{
    height: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    color: white;
    background-color: darkgrey;
    border: solid 1px red;
    border-radius: 15px;
    display: flex;
    line-height: normal;
}

.header-banner p{
    margin: auto;
}

.highlight-menu-item{
    position: relative;
    overflow: hidden;
    border: 1px solid #379683 !important;
    border-bottom: none !important;
    border-radius: 15px 15px 0 0 !important;
}

.menu-item-3176:hover .cyklistika {display: block;}
.menu-item-3242:hover .lyzovani {display: block;}

@media only screen and (max-width: 1439px) {
    .custom-submenu.cyklistika{
        height: 500px;
    }

    .custom-submenu.lyzovani{
        height: 450px;
    }
}

@media only screen and (max-width: 1200px) {
    .custom-submenu.cyklistika, .custom-submenu.lyzovani{
        background: none;
        background-color: white;
    }

    .custom-submenu.lyzovani>.custom-grid{
        grid-template-columns: auto;
    }

    .custom-submenu.cyklistika>.custom-grid, .custom-submenu.lyzovani>.custom-grid{
        margin: auto;
        width: 100%;
        max-width: 100%;
    }

    #prislusenstvi{
        text-align: left;
    }
}

@media only screen and (max-width: 900px) {
    .section-img{
        display: none;
    }
}




/**************************
    ÚPRAVY MOBILNÍHO MENU
**************************/

@media only screen and (max-width: 767px) {
    .menu-level-1 li[class^="menu-item"]{
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .menu-level-1>.menu-item-2711>a:before {
        background-image: url("pujcovna.png");
    }

    .menu-level-1 > .menu-item-5894 > a::before {
        background-image: url("servis_menu.png");
    }

    .menu-level-1 > .menu-item-6826 > a::before {
        background-image: url("garmin.png");
        width: 46px;
    }

    .menu-level-1 > li > a::before{
        width: 40px;
        height: 40px;
    }

    .menu-level-1 > li:not(.appended-category) > a > b {
        margin-left: 25px;
    }

    .menu-item-3176{
        order: 1;
    }

    .menu-item-3242{
        order: 2;
    }

    body header#header .container.navigation-wrapper .menu-level-1 li.menu-item-6826 {
        order: 3;
    }

    .menu-item-5894{
        order: 4;
    }

    .menu-item-2711{
        order: 5;
    }

    #nav-manufacturers{
        order: 6;
    }

    .akip-mobile-menu>img{
        display: block;
        margin: 40px auto 40px auto;
        filter: invert(100%);
    }

    #mobile-menu-tel{
        color: white;
        text-decoration: none;
        font-size: 30px;
        text-align: center;
        letter-spacing: 0.5vw;
    }

    #mobile-menu-contacts{
        display: flex;
        justify-content: space-around;
        font-size: 16px;
    }

    #mobile-menu-contacts a{
        color: white;
        text-decoration: underline;
    }

    .mobile-grid{
        width: 80%;
        margin: auto;
        display: grid;
        grid-template-columns: 35px 1fr;
        column-gap: 5vw;
        row-gap: 15px;
    }

    .mobile-grid img{
        display: block;
        width: 25px;
        height: 25px;
        margin: auto;
    }

    #mailImg{
        width: 35px;
    }

    #visitUsBtn{
        display: flex;
        justify-content: space-evenly;
        background-color: white;
        color: #379683;
        border-radius: 9999px;
        padding: 10px;
        align-items: center;
        width: 50%;
        margin: 35px auto auto;
    }

    #visitUsBtn p{
        margin: 0;
        font-size: 16px;
    }

    #visitUsBtn img{
        width: 20px;
        height: 30px;
    }

    .custom-submenu.cyklistika, .custom-submenu.lyzovani{
        background: #009b8e;
        position: static;
        border: none;
        height: unset;
        padding: 0;
    }

    .custom-submenu::before{
       display: none;
    }

    .custom-grid{
        display: block;
    }

    .section-img, .section-text a:not(.section-title){
        display: none;
    }

    .section-title{
        color: white !important;
        font-size: 14px;
        line-height: 14px;
    }

    #banners{
        display: none;
    }

    .custom-section{
        padding-bottom: .9375rem;
        padding-top: .9375rem;
        padding-left: 40px;
    }



}

@media (min-width: 480px) and (max-width: 767px) {
    .navigation-window-visible #navigation {
        width: 100%;
    }

    #visitUsBtn{
        width: 35%
    }

    .mobile-grid{
        width: 70%
    }
}

@media (max-width: 370px) {
    #mobile-menu-tel{
        letter-spacing: normal;
    }
}