/* #Mobile (Landscape) */

@media only screen and (max-width: 1280px)
{
    .news_page a.news_article {
        width: 33.3%;
    }
} 

@media only screen and (max-width: 768px) 
{
    .container {
        height: 100vh;
    }

    .mainnav {
        margin-top: 0;
    }

    #mobile_langbar_wrap {
        position: fixed;
        right: 0;
        top: 50px;
        background: #373a3b;
        z-index: 999;
        min-height: initial !important;
        display: none;
        width: 100%;
		height: 700px;
		text-align:center;
    }

    .header {
        display: none;
    }

    #mobile_langbar_wrap .langbar {
        display: block;
        position: initial;
    }

    #mobile_langbar_wrap .mainnav {
        margin-top: 0;
    }

    #mobile_langbar_wrap .langbar ul li {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    #mobile_langbar_wrap .langbar ul li a {
        padding: 10px 0;
        border-left: 0;
    }

    #mobile_langbar_wrap .mainnav ul li a:hover, #mobile_langbar_wrap .mainnav ul li.current a {
        border-left: 0;
        border-right: 2px solid #c81b21;
		border-bottom:1px solid #555;
        font-size: 14px;
        font-family: "Titillium Web", sans-serif;
    }

    .homecontent, .maincontent {
        padding-left: 0;
        padding-right: 0;
        position: relative;
    }
    .mobile_header {
        display:block;
        background:#373a3b;
        text-align:center;
        position:fixed;
		z-index: 10;
        height: 60px;
        box-sizing: border-box;
		padding-top:20px;
    }
    .home_logo {
        width:42.5%;
        margin:0 auto;
        max-width:270px;
    }
    .home_logo a {
        display: block;
        text-align: center;
    }
    .home_logo img {
        height: 24px;
    }
    .mobilemenu_btn {
        position:absolute;
        top: 0;
        left: 0;
        cursor:pointer;
        display: block;
        padding: 18px 14px;
    }

    .mobilemenu_btn img.on-default {
        display: inline;
    }

    .mobilemenu_btn img.on-hover {
        display: none;
    }

    .mobilemenu_btn.open img.on-hover {
        display: inline;
    }

    .mobilemenu_btn.open img.on-default {
        display: none;
    }

    .mobile_langbar, .mobile_langbar:active {
        display: block;
        position: absolute;
        right: 12px;
        top: 20px;
        font-size: 16px;
        color: #ffffff;
        cursor: pointer;
    }

    .home_mobilemainnav {
        display:block;
        background:#373a3b;
    }
	
	.mobile_langbar::before{
	content: "";
    display: block;
    background: url("/wp-content/themes/vivix/images/lang.svg") no-repeat;
    width: 25px;
    height: 25px;
    float: left;
    margin: 0;
		padding-right:7px;
	transition: all 0.3s ease-in;
}
	
	.mobile_langbar:hover:before{
	transform:rotate(-45deg)
}
	
.mainnav ul li a {
        color: #FFFFFF;
        display: block;
        font-family: "Titillium Web", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: normal;
        padding: 10px 10px 10px 74px;
        text-decoration: none;
        text-transform: uppercase;
    }
	

	.mainnav .menu-item.current-menu-ancestor .sub-menu, .mainnav .menu-item.current-menu-item .sub-menu {
    display: block;
    padding-left: 70px;
}
	
    #news-slider {
        height: 80vh;
    }

    .flexslider {
        background:#ffffff;
        position: relative;
        width: 100%;
        margin:0 auto;
        z-index:10;
        min-height:520px;
    }
    .flexslider .slides img {
        display: block;
        width: 100%;
    }

    #about-page-bg.flexslider .slides img
    {
        max-height: 300px;
        width: auto;
    }

    #about-page-bg {
        height: 300px;
        min-height: initial;
    }

    #about-page-bg.flexslider .slides > li {
        max-height: 300px;
    }

    #news-slider .slides .caption {
        left: 0;
        right: 0;
        padding: 28px;
    }

    #news-slider .slides .caption .read-more {
        display: initial;
        text-align: center;
    }

    .flex-direction-nav {
        display: none;
    }

    .flex-control-nav {
        position: absolute;
        bottom: 20px;
        right: 0;
        width: 100%;
        text-align: center;
    }


/* Mobiilimenu */
	
    .header.mobile {
        position: fixed;
        box-sizing: border-box;
        top: 60px;
        bottom: 0;
		width:100%;
    }
	

    .header.mobile .side_socialbar {
        bottom: 38px;
    }

    .header.mobile .logo {
        display: none;
    }

    .header.mobile .langbar {
        display: none;
    }

    .floating-logo {
        display: none;
    }

    .news_page {
        -webkit-flex-flow: wrap;
        -moz-flex-flow: wrap;
        -ms-flex-flow: wrap;
        flex-flow: wrap;
        display: block;
        float: none;
    }

    .news_page a.news_article {
        width: 50%;
    }

    .goods_page a.goods_block {
        width: 50%;
    }

    #contact-offices {
        width: 50%;
    }

    .contact-office {
        width: 100%;
    }

    .contact-office > img {
        width: 100%;
    }

}

/* #Mobile (Portrait) */

    /* Note: Design for a width of 320px */

@media only screen and (max-width: 480px) 
{

    .container {
    	width:100%;
    }

    .flexslider {
    	background:#ffffff;
        position: relative;
    	width: 100%;
    	margin:0 auto;
    	z-index:10;
    	min-height:410px;
    }

    .goods_page a.goods_block {
        width: 100%;
    }

    .article_content.post-type-tooted .img_wrap {
        padding: 0;
    }

    .news_page a.news_article {
        width: 100%;
    }

    .contact_page .page_content {
        -webkit-flex-flow: wrap;
        -moz-flex-flow: wrap;
        -ms-flex-flow: wrap;
        flex-flow: wrap;
        display: block;
        float: none;
    }

    #contact-info {
        width: 100%;
        box-sizing: border-box;
    }

    #contact-offices {
        width: 100%;
    }

    .contact_page {
        padding: 0;
    }

    #news-slider .slides .caption h2 {
        font-size: 30px;
		line-height:2rem;
    }

    .news_page .news_pic img {
        max-width: 425px;
    }
}

@media only screen and (max-width: 320px) {
    #partner-sites-wrap a.partner-site {
        width: 100%;
    }
    .news_page .news_pic img {
        max-width: 265px;
    }
}