/* Mobile style for template: "Mystique-FJT" */

.modal-open {
	overflow: hidden;
}

@media screen and (min-width: 515px) {
	.mobile-header {
		display: none;
	}

	select.hidden.adaptive-table-column-control {
		display: none;
	}
}

/** Mobile menu **/
@media screen and (max-width: 515px) {
	.mobile-header {
		display: block;
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		max-height: 100%;
		overflow-y: scroll;
		z-index: 1000;
		font-family: 'Open Sans', sans-serif;
		font-size: 18px;
	}
	.mobile-header a {
		color: rgb(69, 59, 57);
		text-decoration: none;
	}
	
	.mobile-backdrop {
		position: fixed;
		width: 100%;
		height: 0vh;
		background-color: white;
		opacity: 0;
		cursor: pointer;
		-webkit-transition: height .2s ease-out,
							opacity .2s ease-out;
		transition: height .2s ease-out,
					opacity .2s ease-out;
	}
	.mobile-menu-button.toggled ~ .mobile-backdrop {
		height: 100vh;
		opacity: 0.7;
		-webkit-transition: opacity 0.7;
	}
	
	
	.mobile-menubar {
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 50px;
		z-index: 1;
		background-color: #dcd8c6;
		border-bottom: rgb(184, 190, 190) 1px solid;
	}
	
	.mobile-logo {
		position: absolute;
		box-sizing: border-box;
		width: 37%;
		max-width: 190px;
		height: 100%;
		opacity: 1;
		background: url("../images/logo.png") no-repeat 10px 50% / 90% auto;
		-webkit-transition: opacity .2s ease-in;
		transition: opacity .2s ease-in;
	}
	.mobile-menu-button.toggled ~ .mobile-menubar .mobile-logo {

	}
	
	.mobile-menu-title {
		position: absolute;
		box-sizing: border-box;
		height: 100%;
		padding: 12px 7% 12px 3%;
		-webkit-transform: translateX(-100%);
		transform: translateX(-100%);
		opacity: 0;
		-webkit-transition: -webkit-transform .2s ease-in,
							opacity .2s ease-in;
		transition: transform .2s ease-in,
					opacity .2s ease-in;
	}
	.mobile-menu-button.toggled ~ .mobile-menubar .mobile-menu-title {
		-webkit-transform: translateX(0%);
		transform: translateX(0%);
		opacity: 1;
	}
	
	.mobile-phone {
		display: block;
		box-sizing: border-box;
		margin-top: 13px;
		margin-right: auto;
		margin-left: auto;
		width: 60%;
		min-width: 136px;
		max-width: 167px;
		height: 22px;
		padding: 0 1% 0 3%;
		background: url("/images/header-phone.png") no-repeat 125% 73% / auto;
		/*-webkit-filter: invert(100%) grayscale(100%) brightness(124%);
		-moz-filter: invert(100%) grayscale(100%) brightness(124%);
		filter: invert(100%) grayscale(100%) brightness(124%);*/
	}
	
	/* Mobile menu button — start */
	.mobile-menu-button {
		display: block;
		position: fixed;
		right: 0;
		width: 50px;
		height: 50px;
		padding: 0;
		z-index: 2;
		border: none;
		background: transparent;
		outline: none;
	}
	
	.mobile-menu-button-stripe {
		display: block;
		position: relative;
		width: 24px;
		height: 4px;
		margin: auto;
		border-radius: 20%;
		border: #663a1f 0 solid;
		background-color: #663a1f;
		-webkit-transition: all .2s ease-out;
		transition: all .2s ease-out;
	}
	
	.mobile-menu-button-stripe::before,
	.mobile-menu-button-stripe::after {
		content: " ";
		display: block;
		position: absolute;
		width: 100%;
		height: 100%;
		left: 0;
		right: 0;
		margin: auto;
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
		border-radius: 20%;
		background-color: #663a1f;
		-webkit-transition: all .2s ease-out;
		transition: all .2s ease-out;
	}
	.mobile-menu-button-stripe::before {
		top: -7px;
	}
	.mobile-menu-button-stripe::after {
		top: 7px;
	}
	
	.mobile-menu-button.toggled .mobile-menu-button-stripe {
		width: 30px;
		height: 30px;
		border-radius: 100%;
		border-width: 1px;
		background-color: transparent;
	}
	
	.mobile-menu-button.toggled .mobile-menu-button-stripe::before,
	.mobile-menu-button.toggled .mobile-menu-button-stripe::after {
		top: 48%;
		width: 50%;
		height: 2px;
		border-radius: 0%;
	}
	.mobile-menu-button.toggled .mobile-menu-button-stripe::before {
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	.mobile-menu-button.toggled .mobile-menu-button-stripe::after {
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}
	/* Mobile menu button — end */
	
	.mobile-header .mobile-menu {
		display: block;
		padding-top: 50px;
		height: 0;
		-webkit-transform: scale(1, 0);
		-webkit-transform-origin: top;
		transform: scale(1, 0);
		transform-origin: top;
		opacity: 0;
		background-color: white;
		-webkit-transition: -webkit-transform .2s ease-out,
							height .2s ease-out,
							opacity .2s ease-out;
		transition: transform .2s ease-out,
					height .2s ease-out,
					opacity .2s ease-out;
	}
	.mobile-menu-button.toggled ~ .mobile-menu {
		height: 100%;
		-webkit-transform: scale(1, 1);
		transform: scale(1, 1);
		opacity: 1;
	}
	
	.mobile-menu .menu {
		margin: 0;
		padding-left: 0;
	}
		
	.mobile-menu li {
		display: block;
		margin: 0;
		background: url(../images/podmenurazdelitel.png) no-repeat scroll center bottom #dcd8c6;
	}
	
	.mobile-menu a {
		display: block;
		box-sizing: border-box;
		height: 35px;
		padding: 7px 18px;
		margin: 0;
		border-bottom: rgb(240, 240, 240) 1px solid;
		text-align: left;
	}
	.mobile-menu .current > a {
		background: none repeat scroll 0 0 #e5e1d1;
		color: black;
		font-weight: bold;
	}
	.mobile-menu .inner a {
		padding-left: 28px;
	}
	
	.mobile-menu h3 {
		background: url("../images/leftmenuzag.png") repeat 0 0 / 100% auto;
		padding: 5px 8px 0;
		text-align: left;
		color: #dcd8c6 !important;
		margin-bottom: 0px;
	}
	.mobile-menu .inner h3 {
		padding-left: 18px;
	}

	.zayavka-form {
		top: 65%;
	    left: 50%;
	    transform: translate(-50%, -50%);
	    position: fixed;
	}

	.zayavka-form h3 {
	    font-size: 30px;
	    margin: 10px;
	}

	.zayavka-form input[type="text"] {
	    height: 30px;
	    margin: 10px auto;
	}

	.zayavka-form textarea {
	    height: 55px;
	    margin: 10px auto;
	}

	span.hidden,
	th.hidden,
	td.hidden {
		display: none;
	}

	select.adaptive-table-column-control {
		width: 100%;
	}

	.content p,.contentbig p{ 
		font-size: 1em;
	}
}

@media screen and (max-width: 515px) {
	#phoca-header,
	#phoca-top-box,
	#phoca-side1 {
		display: none;
	}
	
	#phoca-wrap,
	#phoca-content2,
	#phoca-footer {
		display: block;
		box-sizing: border-box;
		float: none;
		width: 100%;
		min-width: 100%;
		max-width: 100%;
	}
	
	#phoca-content2 {
		padding-top: 50px;
	}
	
	#phoca-side1-bg {
		background-image: none;
	}
	
	#phoca-footer {
		height: auto;
		min-height: 50px;
	}
	
	img {
		max-width: 100%;
		height: auto;
	}
	.item-page img {
		display: block !important;
		margin: 1em auto !important;
		float: none !important;
	}
	
	.item-page h4 {
	    width: 100%;
	    margin-bottom: 1em;
	}
		
	#nav-bottom {
		padding: 20px 22px;
	}
	
	#nav-bottom ul,
	#nav-bottom ul li {
		float: none;
	}

	#nav-bottom a {
		padding: 5px 0;
	}

	ymaps.ymaps-2-1-62-map {
		width: 100% !important;
	}
}

/* Adaptive tables */
@media screen and (max-width: 515px) {
	select.adaptive-table-column-control {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		display: block;
		padding: 10px 10px 10px 10px;
		margin: auto;
		background-color: white;
		background-image:  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAHCAYAAADebrddAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDE0IDc5LjE1Njc5NywgMjAxNC8wOC8yMC0wOTo1MzowMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTQgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjA1OEYwRkI1ODE2QzExRTRCMzZCQjczODMzRkJFMDMwIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjA1OEYwRkI2ODE2QzExRTRCMzZCQjczODMzRkJFMDMwIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDU4RjBGQjM4MTZDMTFFNEIzNkJCNzM4MzNGQkUwMzAiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDU4RjBGQjQ4MTZDMTFFNEIzNkJCNzM4MzNGQkUwMzAiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4m+6mfAAAAV0lEQVR42mJgYGBQAuJV////Z8CFoWrKmYDEeyB2YWRk7GDAAoDiIIW7gVgQptMFiN+BdGMx8S7MZmQJFA3oClEUo2noQFeIoRhNA4ancfneGJs4QIABALcAipDh+5NHAAAAAElFTkSuQmCC');
		background-position: calc(100% - 4px) center;
		background-repeat: no-repeat;
	}
}

@media screen and (max-width: 515px) { 
	.gorod-topmenu-wrapper .topmenu,
	.custom img,
	.nav.menu,
	.slogan {
		display: none;
	}

	.modal-open .nav.menu {
		display: block;
	}

	.header-wrapper,
	.content-wrapper,
	.footer-content,
	.contentbig,
	.copyright,
	.footer_contact, 
	.gorod-topmenu-wrapper {
		width: 100%;
	}

	.smeta-form {
		width: 90%;
	}

	.footer_contact,
	.copyright {
		margin-top: 0;
	}

	.logo {
		margin: -30px 0 0 10px;
		text-align: inherit;
		top: 100px;	
	}

	.gorod {
		float: right;
		width: 100%;
		font-size: 1.5em;
		line-height: 20px;
		margin-top: 0;
		padding-left: 0;
		width: 60%;
		max-width: 315px;
	}

	.header-phone-zayavka {
		margin-left: 0;
		margin-top: 15px;
		margin-right: 15px;
	}

	.zayavka a {
		margin: 0;
	}

	.contentbig {
		margin-left: 0;
	}

	.gorod-topmenu-wrapper {
		padding: 0;
	}

	header {
		height: auto;
	}

	.copyright {
		margin-right: 15px;
		margin-top: 15px;
		margin-bottom: 15px;
	}

	.footer-logo {
		margin-left: 15px;
	}

	.mobile-phone-calling {
		position: absolute;
	    top: 0;
	    left: 0;
	    display: block;
	    width: 100%;
	    height: 100%;
	    text-decoration: none;
	    z-index: 1;
	}
	
	.project-catalog .catalog-list {
	    justify-content: center;
	}

	.project-catalog .catalog-item {
	    width: 90%;
	    max-width: 270px;
	}
	
	.item-page .pricetable {
	    margin: 0 1em 2em 1em;
	}
	
	.item-page .catalog-all-link a {
	    margin: 1em;
	}
	
	.item-page .komplekt-block {
	    margin: 0 1em;
	}
	
	.goCatalogButton {
	    display: none;
	}
	
	ul.breadcrumb {
        margin: 0 1em;
    }
    
    h1 {
        margin: 0.67em 1em;
    }
    
    .project-page__desc {
        flex-direction: column;
    }
	
}