                                                    /* main page */

@media screen and (max-width: 950px){
    .slide-nav{
        display: none;
    }
    #slides{
        display: none;
    }
}

@media screen and (max-width: 770px){
    #mini-features{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #mini-features .block{
        margin: 0;
    }

    #main-page2{
        padding: 0;
        padding: 0 16px;
    }
    
    .entry{
        max-width: 100%;
        /* padding: 0 16px; */
    }
    
    .entry h3{
        text-align: center;
    }
    
    .entry ul{
        padding: 0 0 0 14px;
    }
    
    .entry ol{
        padding: 0 0 0 14px;
    }
    
    .primary .widget_text{
        display: flex;
        flex-direction: column;
    }

    .sm01{
        text-align: center;
    }
    
    .m1{
        padding: 0;
        display: flex;
        justify-content: center;
    }

    #content{
       padding-top: 0;
    }

    #content #main-page1{
        padding-bottom: 0;
    }
}


@media screen and (max-width: 630px){
    #main-page1 .entry{
        display: none;
    }
}


                                                    /* footer */

                                                
@media screen and (max-width: 770px){
    #footer-widgets{
        display: flex;
        justify-content: center;
    }

    #footer-widgets .block{
        margin: 0;
        margin: 0 20px;
        clear: left;
        width: auto !important;
    }

    #text-43 .sm01{
        margin: 0 0 0 29px;
    }

    #text-43 .textwidget{
        margin-top: 10px;
    }

    #copyright {
        padding: 0 16px;
    }

    #copyright p{
        color: grey;
    }
}

@media screen and (max-width: 500px){
    #footer-widgets{
        flex-direction: column;
        align-items: center;
    }
}

                                                            /* news page */
@media screen and (max-width: 770px){
    #content{
        padding-left: 16px;
        padding-right: 16px;
    }

    .entry img, img.thumbnail{
        margin: 0;
        margin: 5px 5px 0 0;
    }

    .type-post .entry{
        padding: 0;
    }
}


                                                                    /* contact */
@media screen and (max-width: 770px){
    .size-medium{
        width: 300px !important;
        margin: 5px !important;
    }   

    iframe{
        width: 100%;
    }
}

@media screen and (max-width: 500px){
    .size-medium{
        width: 96% !important;
        margin: 0 !important;
        margin-bottom: 5px !important;
    } 

    .entry .text1{
        font-weight: 700;
        font-size: 20px;
    }

    .entry .text2 a{
        text-decoration: none !important;
        color: #303030;
    }

    .entry .text3{
        font-size: 20px;
        line-height: 28px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .entry .text3 span{
        font-size: 22px !important;
        font-weight: 400;
    }

}

                                                          /* menu */

.burger{
    display: none;
}

@media screen and (max-width: 500px){
    .burger{
        display: block;
    }
                                                                        /* изменение позиционирования блоков в хедере */

    #header{
        height: auto !important;
        min-height: auto  !important;
    }

    #header #top{
        min-height: auto  !important;
    }
    
    #header #logo{
        position: static !important;
        margin-top: 0  !important;
        margin-bottom: 0px;
        padding: 34vw 0 4vw 0;
    }

    #header .alignright.lic.reon01{
        position: static  !important;
        float: left;
        margin-bottom: 0;
        padding-bottom: 4vw;
    }

}


@media screen and (max-width: 500px){
    .sf-sub-indicator{
        display: none !important;
    }

    
    

    
                                                    /* плашка синяя */

    

    #top #navigation{
        background-color: #447192;
        width: 90%;
        position: relative;
        bottom: 0;
        transform: translateX(-50%);
        left: 50%;
        border-radius: 3px;
        top: 0;
        margin-bottom: 4vw;
        overflow: hidden;
    }

    .burger{
        background-color: #447192;
        top: -20px;
        position: relative;
        padding: 20px 0 14px 50px;
        font-weight: 800;
    }

    .nav li{
        border-bottom: 1px solid #4c7390;
        padding-left: 50px;
        padding: 15px 0 15px 50px;
        background-color: #3a617e;
    }

    .burgervisible{
        display: flex !important;
    }

    #top #navigation .burger::before{
        content: '';
        width: 18px;
        height: 3px;
        background-color: white;
        position: absolute;
        border-radius: 1px;
        left: 17px;
        top: 26px;
    }

    #top #navigation .burger::after{
        content: '';
        width: 18px;
        height: 3px;
        background-color: white;
        position: absolute;
        top: 10px;
        border-radius: 1px;
        left: 17px;
        top: 33px;
    }
    
    #top #navigation #main-nav{
        clear: left;
        display: flex;
        flex-direction: column;
        width: 100%;
        display: none;
    }

    #top #navigation::before{
        content: '';
        width: 18px;
        height: 3px;
        background-color: white;
        position: absolute;
        top: 20px;
        left: 17px;
        border-radius: 1px;
        z-index: 1;
    }

    #navigation, #navigation .nav a{
        color: white !important;
    }

    .nav a{
        padding: 0 !important;
    }

    #main-nav{
        /* padding-left: 35px; */
    }
}
                                                                /* суб меню */
@media screen and (max-width: 500px){

    .sub-menu{
        overflow: visible !important;
        position: static !important;
        border: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column;
        visibility: visible !important;
        /* border-top: 1px solid #4c7390 !important;
        border-bottom: 1px solid #4c7390 !important; */
        border: none !important;

    }

    

    .nav li ul li{
        border-bottom: none !important;
    }

    .sub-menu li {
        padding: 0 !important;
        border-bottom: 1px solid #4c7390 !important;
       
        border: none !important;
    }

    #menu-item-1795{
        padding: 0 !important;
    }

    .sf-with-ul a{
        padding: 15px 0 15px 50px !important;
        border-bottom: 1px solid #4c7390 !important;
        border-bottom: none !important;
    }

    /* .nav li ul li{
        border-bottom: 1px solid #4c7390 !important;
    } */

    .nav li ul li a{
        border-bottom: none!important;
        padding: 15px 0 15px 50px !important;
        width: auto !important;
        
    }

    .nav li ul li a:hover{
        background: none !important;
    }

    #menu-item-4313{
        border-bottom: 1px solid #4c7390 !important;
    }

    #menu-item-10{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-1670{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-11{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-4313{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-4316{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-5779{
        border-bottom: 1px solid #aaaeb0 !important;
    }

    #menu-item-4314{
        border-bottom: 1px solid #aaaeb0 !important; 
        border-top: 1px solid #aaaeb0 !important;
    }

    #menu-item-431455{
        border-top: 1px solid #aaaeb0 !important;
    }
    
    
}

@media screen and (max-width: 400px){
    #logo .site-title a{
        font-size: 20px!important;
    }

    #header #logo{
        padding: 46vw 0 4vw 0;
    }
}

@media screen and (max-width: 320px){
    .nav li{
        margin: 0 !important;
        /* border-bottom: none !important; */
    }
    .woo-slider #top{
        min-height: 560px;
    }
}









