
body {
	background-image: url(../img/bg.png);
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	line-height: 1.3em;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	color: #363b3b;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 80%;
    margin: 0px auto;
    min-height: 100%;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-header {
	margin-top: 15px;
	margin-bottom: 25px;
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;

}

.logo {
	width: 55%;
}

.contacts {
	width: 40%;
	color: #053D4D;
	font-size: 28px;
	font-weight: 500;
	line-height: 38px;
	text-align: center;
}

.adress {
	display: inline-block;
	vertical-align: top;
	margin-top: 15px;
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
}

h1 {
	font-size: 1.8em;
	font-weight: 700;
	color: #1F4C59;
	text-align: center;
	margin-bottom: 40px;
}

.product-item-grid {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	min-height: 100%;
}

.product-item {
	display: flex;
	justify-content: center;
	flex-wrap: nowrap;
	background-color: #e6e7e9;
	width: 100%;
	box-shadow: 6px 6px 15px -6px #424242;
}

.product-img {
	width: 35%;
	height: 230px;
    width: auto\9; /* ie8 */
    border: 1px solid #bbb;
    margin: 0px auto 30px;
}

.attributes-list {
	margin-bottom: 15px;
	margin-right: 10px;
	width: 60%;
}

.attributes-list li {
	border-bottom: 1px solid #cccccc;
}

.attributes-list li:first-child {
	border-bottom: 0px;
}

.attributes-list li:last-child {
	border-bottom: 0px;
}

.product-name {
	font-size: 17px;
	font-weight: 500;
	color: #053D4D;
	margin-bottom: 20px;
	margin-top: 4px;
	text-align: center;
}

.attr-value {
	float: right;
	font-weight: 500;
}

/*FLIPPER*/

/* весь контейнер поддерживает перспективу */
.flip-container {
	 -moz-perspective: (1000px);
	 -webkit-perspective: 1000px;
	 perspective: 1000px;
	 margin: 15px;
}
 /* переверните сторону при проведении мышью */ 
.flip-container.hover .flipper, 
.flip-container.flip .flipper {
	-moz-transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
  	transform: rotateY(180deg);
 }


.flip-container, .front, .back {
	 width: 470px;
	 height: 292px;
}

/* здесь находится скорость перевертывания */
.flipper {
	-moz-transform: (1000px);
	 transition: 0.6s;
	-moz-transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	 position: relative;
}

/* лицевая сторона размещена над обратной */
.front {
	-webkit-transform: rotateY(0deg);
 	z-index: 2;
}

/* обратная, изначально скрытая сторона */
.back {
	-moz-transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg);
	 transform: rotateY(-180deg);
	 background-color: #e6e7e9;
	 font-size: 16px; 

}

/* скройте обратную сторону во время переворота */
.front, .back {
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	 position: absolute;
	 transform-style: preserve-3d;
	 transition: 0.6s;
	 top: 0;
	 left: 0;
}

/*FLIPPER-END*/


.order-btn {
  	background-color: #f2f3f5;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    box-shadow: 6px 6px 15px -6px #424242;
    transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
    color: #053D4D;
    display:block;
    width:45%;
    font-size: 22px;
    font-weight: 600;
    text-align:center;
    height: 60px;
    line-height: 20px;
    padding: 17px 6px;
    vertical-align: middle;
    margin: 40px auto;
    text-decoration: none;
    box-sizing: border-box;
}

.order-btn:hover, .order-btn:focus {
   border-color: #71D1CD;
   box-shadow: 0 1px 1px #71D1CD, 0 0 8px #71D1CD;
   outline: 0 none;
}

.about {
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	width: 90%;
	margin: 0 auto;

}

.footer-copyright {
	margin: 50px auto 5px;
	width: 20%;
	font-size: 14px;
	text-align: center;
}

.product-item-info-btn {
	background-color: #f2f3f5;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
    color: #053D4D;
    display:block;
    outline: none;
    padding: 5px;
    margin-top: 12px;
    width: 45%;
}

.product-item-info-btn:hover { 
   border-color: #71D1CD;
}

.btn-back {
	width: 25%;
	margin: 0 auto;
	position: absolute;
bottom: 5px;
left: 170px;
}

#btn-back-1,
#btn-back-3 {
	margin-top: 19px;
}

.product-item-info {
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	text-align: justify;
	font-size: 14px;
	text-indent: 20px;
}

.product-item-info p {
	margin-bottom: 0px;
	margin-top: 8px;
}


/*MODAL-DIALOG*/

.modalDialog {
		position: fixed;
		font-family: 'Roboto', sans-serif;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(0,0,0,0.8);
		z-index: 99999;
		-webkit-transition: opacity 400ms ease-in;
		-moz-transition: opacity 400ms ease-in;
		transition: opacity 400ms ease-in;
		display: none;
		pointer-events: none;
	}

   .modalDialog:target {
		display: block;
		pointer-events: auto;
	}

	.modalDialog > div {
		width: 400px;
		position: relative;
		margin: 10% auto;
		padding: 5px 20px 25px 20px;
		border-radius: 5px;
		background: #e6e7e9;
		background: -moz-linear-gradient(#fff, #999);
		background: -webkit-linear-gradient(#fff, #999);
		background: -o-linear-gradient(#fff, #999);
	}

	.close {
		background: #096A66;
		color: #FFFFFF;
		line-height: 25px;
		position: absolute;
		right: -12px;
		text-align: center;
		top: -10px;
		width: 24px;
		text-decoration: none;
		font-weight: bold;
		-webkit-border-radius: 12px;
		-moz-border-radius: 12px;
		border-radius: 12px;
		-moz-box-shadow: 1px 1px 3px #000;
		-webkit-box-shadow: 1px 1px 3px #000;
		box-shadow: 1px 1px 3px #000;
	}

	.close:hover { 
		background: #1BA39E; 
	}

	h2 {
		text-align: center;
		color: #053D4D;
	}

	.modal-form {
		text-align: center;
		color: #053D4D;
	}

	.modal-form input {
		width: 80%;
		height: 30px;
		margin-bottom: 2px;

	}

	.modal-btn {
		padding: 17px 6px 36px;
		margin-top: 20px;
	}

	textarea {
		width: 80%;
		height: 50px;
	}



/*MEDIA*/
/*
@media (max-width: 950px) {
	.product-item {
		display: flex;
		justify-content: center;
		flex-wrap: nowrap;
		background-color: #e6e7e9;
		width: 100%;
		box-shadow: 6px 6px 15px -6px #424242;
		height: 292px;
}

	.product-img {
		width: 35%;
		height: 230px;
	    width: auto\9; /* ie8 *//*
	    border: 1px solid #bbb;
	    margin: 0px auto 30px;
}

	.attributes-list {
		margin-bottom: 15px;
		margin-right: 10px;
		width: 60%;
}

	.flip-container, .front, .back {
		 width: 470px;
		 height: 292px;
}

}
*/

@media (max-width: 1024px) {
	.container {
		max-width: 99%;
	}
}


@media (max-width: 850px) {
	
	.container {
		max-width: 95%;
	}

	.logo {
		width: 100%;
	}

	.contacts {
		width: 100%;
		font-size: 20px;
	}
	
	.product-img {
		width: 55%;
		margin-bottom: 10px;
	}

	.product-name {
		font-size: 16px;
	}

	.product-item {
		width: 300px;
		height: 546px;
		flex-wrap: wrap;
	}

	.flip-container, .front, .back {
		width: 300px;
		height: 546px;
		font-size: 14px;
	}

	.flip-container {
		margin: 0px;
		margin: 15px;
	}

	.attributes-list {
		width: 90%;
		margin-bottom: 0px;
	}

	.product-item-info-btn {
		width: 55%;
		margin: 12px auto;
		margin-bottom: 10px;
	}

	.product-item-info p {
		margin-bottom: 15px;
    	margin-top: 10px;
	}

	.btn-back {
		margin-top: 120px;
		position: absolute;
	    bottom: 10px;
	    left: 69px;
	}

	.order-btn {
		width: 65%;
	}
}

/*@media (max-width: 630px) {
	
	.container {
		max-width: 95%;
	}
	.main-header {
		flex-wrap: wrap;
	}
	.logo {
		width: 70%;
	}
	.contacts {
		width: 100%;
		font-size: 20px;
		line-height: 30px;
	}

	.flip-container, .front, .back {
		width: 390px;
	    height: 310px;
	    font-size: 14px;
	}

	.flip-container {
		margin: 0px;
		margin-bottom: 30px;
	}

	.product-item-info {
		height: 310px;
		font-size: 13px;
	}

	.btn-back {
		width: 35%;
		position: absolute;
		bottom: 10px;
		left: 133px;
	}
}
*/



@media (max-width: 630px) {
	.container {
		min-width: 95%;
	}

	.main-header {
		flex-wrap: wrap;
		text-align: center;
	}

	.logo {
		width: 85%;
	}

	.contacts {
		width: 100%;
		font-size: 20px;
		line-height: 30px;
	}

	.adress {
		margin-top: 10px;
		font-size: 13px;
	}

	.product-img {
		width: 60%;
		margin-bottom: 10px;
	}

	.product-name {
		font-size: 16px;
	}

	.product-item {
		width: 300px;
		height: 546px;
		flex-wrap: wrap;
	}

	.flip-container, .front, .back {
		width: 300px;
		height: 546px;
		font-size: 14px;
	}

	.flip-container {
		margin: 0px;
		margin-bottom: 20px;
	}

	.attributes-list {
		width: 90%;
		margin-bottom: 0px;
	}

	.product-item-info-btn {
		width: 55%;
		margin: 12px auto;
		margin-bottom: 10px;
	}

	.product-item-info p {
		margin-bottom: 15px;
    	margin-top: 10px;
	}

	.btn-back {
		margin-top: 120px;
		position: absolute;
	    bottom: 10px;
	    left: 69px;
	}

	.order-btn {
		width: 65%;
	}

	.about {
		font-size: 17px;
	}

	.footer-copyright {
		width: 100%;
	}

	.close {
		right: -9px;
	}

	.modalDialog > div {
		width: 260px;
	}

}























































