/* 
------------------
Styles for Card
------------------
*/
.wrapper-card {
    max-width: 1603px;
    padding: 0 15px;
    font-family: "futurabook";
}

.mb-30 {margin-bottom: 30px;}
.card a {
    color: #6aa1e6;
    display: block;
}
.card a img {opacity: 0.9;}
.card a:hover img {opacity: 1;}
.card {color: #535353;}

h2 {
	text-transform: uppercase;
	text-align: left;
	margin: 25px 0;
	font-weight: bold;
	font-size: 24px;
}

.card h1 {
	text-transform: uppercase;
	text-align: center;
	margin: 30px 0;
	font-weight: bold;
	font-size: 28px;
}

.card-block {
	display: inline-block;
	width: 100%;
}

.card-left {
	width: 35%;
	float: left;
	text-align: center;
}

.box1, .box2, .box3 {display: none;}
.box1 { display: block; }

.fotobl img {
	display: block;
	margin: 10px auto;
	max-width: 100%;
	height: 360px;
}

.picture-small {
	width: 100%;
	text-align: center;
}

.picture-small img { 
	border: 1px solid #e0dbd6;
	margin-right: 10px;
	max-width: 110px;
}

.card-left a.modal {
	display: inline-block;
	border-radius: 3px;
    border: 1px solid #4990e2;
    color: #4990e2;
    font-size: 18px;
    padding: 7px 25px;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    text-decoration: none;
}

.card-left a.modal:hover {
    color: #fff;
    background-color: #5c81ad;
    border: 1px solid #336299;
}

.card-left a.modal:active, .card-left a.modal:focus {
    color: #fff;
    background-color: #336299;
    border: 1px solid #336299;
}

.card-right {
	width: 60%;
	max-width: 630px;
	float: left;
	margin-left: 2%;
}

.card-right h2 {
	margin: 0;
	text-transform: none;
	display: inline-block;
	vertical-align: middle;
	font-size: 30px;
}

.card-right h2 span {
	color: red;
}


/* minus, plus */
.number {
	border: 1px solid #bfbfbf;
	border-radius: 3px;
	display: inline-block;
	vertical-align: middle;
	margin: 0 25px;
}

.number input {
	text-align: center;
	color: #535353;
	font-size: 20px;
	display: block;
	float: left;
	height: 41px;
	width: 35px;
	border: none;
	padding: 0;
}

.minus, .plus {
	width: 35px;
	text-align: center;
	display: block;
	float: left;
	line-height: 41px;
	color: #4990e4;
	cursor: pointer;
	font-size: 30px;
}

.minus:hover, .plus:hover {opacity: 0.85;}

.minus {line-height: 34px;}


.btn-add {
	background-color: #ffffff;
	border-radius: 3px;
    border: 1px solid #4990e2;
    color: #4990e2;
    height: 43px;
    padding: 0 35px;
    text-transform: uppercase;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.btn-add:hover {
    color: #fff;
    background-color: #5c81ad;
    border: 1px solid #336299;
}

.btn-add:active, .btn-add:focus {
    color: #fff;
    background-color: #336299;
    border: 1px solid #336299;
}



/* descript */
.descript {margin: 20px 0;}
.descript h3 {margin-bottom: 20px;}

.descriptbl {
	display: inline-block;
    width: 100%;
    background: url(../img/point.png) left 68% repeat-x;
    color: #808080;
}

.descriptbl p {
    display: inline-block;
    padding-right: 15px;
    margin: 5px 0;
    background: #ffffff;
}

.descriptbl span {
    display: inline-block;
    float: right;
    padding-left: 15px;
    margin: 5px 0;
    background: #ffffff;
}

.descriptbl a {text-decoration: none;}
.descriptbl a:hover {text-decoration: underline;}


/* modal-block */
.modal-block a {
    display: inline-block;
    vertical-align: middle;
    padding-left: 60px;  
    line-height: 50px;
}

.modal-block a {text-decoration: underline;}
.modal-block a:hover {text-decoration: none;}

.delivery {
    background: url(../img/move.png) left center no-repeat;
    background-size: contain;
    margin-right: 50px;
} 

.payment {
	background: url(../img/money.png) left center no-repeat;
    background-size: contain;
}


/* products-block */
.more-product {
	display: inline-block;
	width: 100%;
}

.products-block {
    width: 23%;
    float: left;
    margin-right: 2%;
    padding-bottom: 10px;
    text-align: center;
}

.products-block a:first-child {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-block img {
    max-width: 100%;
    margin-bottom: 5px;
    height: 100%;
    object-fit: contain;
}


/* styles for modals */
.overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: none;
    background-color: rgba(0, 0, 0, 0.65);
    position: fixed;
    cursor: default;
}

.overlay:target {
    display: block;
}

.popup {
    top: -100%;
    right: 0;
    left: 50%;
    z-index: 20;
    margin: 0;
    width: 85%;
    max-width: 800px;
    position: fixed;
    padding: 15px 25px;
    border: 1px solid #383838;
    background: #fefefe;
    border-radius: 4px;
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    -webkit-transform: translate(-50%, -500%);
    -ms-transform: translate(-50%, -500%);
    -o-transform: translate(-50%, -500%);
    transform: translate(-50%, -500%);
    -webkit-transition: -webkit-transform 0.6s ease-out;
    -moz-transition: -moz-transform 0.6s ease-out;
    -o-transition: -o-transform 0.6s ease-out;
    transition: transform 0.6s ease-out;
}

.overlay:target+.popup {
    top: 50%;
    left: 50%;
    margin-right: -50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    overflow: auto;
    height: auto;
    max-height: 90%;
}

.close {
    top: 5px;
    right: 10px;
    width: 30px;
    height: 30px;
    position: absolute;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}
.close:before {
    color: red;
    content: "x";
    font-size: 30px;
}


.popup h2 {
    color: #6aa1e6;
    margin: 10px 0 20px;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #6aa1e6;
    font-weight: bold;
}

.modal-form input {
    width: 48%;
    margin: 0 1%;
    float: left;
    height: 45px;
    border: 1px solid #d6d3d3;
    padding: 0 15px;
}

.modal-form {text-align: center;}

.modal-form button {
	margin: 20px auto;
	display: inline-block;
	padding: 0 50px;
}


.card-text ul {
    display: flex;
    flex-wrap: wrap;
}

.card-text ul li {
    margin: 0 20px 20px 0;
}

.card-text ul li a {
    text-decoration: none;
    padding: 5px 15px;
    height: auto;
}



/* Стили для адаптивности */
@media (min-width: 1600px) {
.wrapper-card .card-text, .wrapper-card .more-product {padding-left: 80px;}
}

@media (min-width: 1218px) and (max-width: 1435px) {
.number {margin: 0 10px;}
.btn-add {padding: 0 10px;}
.card-left {width: 39%;}
.card-right {width: 58%;}
}

@media (min-width: 992px) and (max-width: 1435px) {
.card-right h2 {font-size: 28px;}
.descript h3 {margin-bottom: 5px;}
.descriptbl p, .descriptbl span {margin: 0;}
.picture-small {margin-top: 15px;}
.fotobl img {height: auto;}
.picture-small img {max-width: 100px;}
}

@media (min-width: 992px) and (max-width: 1217px) {
.btn-add {padding: 0 25px;}
.card-left {width: 36%; display: inline-block; vertical-align: bottom; float: none;}
.card-right {width: 60%; display: inline-block; vertical-align: bottom; float: none;}
}

@media (min-width: 768px) and (max-width: 991px) {
.card h1 {font-size: 24px;}
.fotobl img {height: auto;}
.picture-small {margin-top: 15px;}
.picture-small img {max-width: 80px;}
.descriptbl {font-size: 18px;}
.card-left {width: 40%; display: inline-block; vertical-align: bottom; float: none;}
.card-right {width: 55%; display: inline-block; vertical-align: bottom; float: none;}
.card-left a.modal {font-size: 16px; padding: 7px 15px;}
.descriptbl p, .descriptbl span {margin: 0;}
.card-right h2 {font-size: 26px;}
.btn-add {margin-top: 10px; display: block;}
.descript h3 {margin-bottom: 0;}
.popup {font-size: 16px;}
.popup h2 {font-size: 20px;}
.video-v iframe {width: 50%;}
.products-block a:first-child {height: 200px;}
}

@media (max-width: 767px) {
.card-left, .card-right {width: 100%; float: none;}
.card-right {margin: 50px auto 0; max-width: 500px;}
.fotobl img {height: auto;}
.card-right h2 {font-size: 24px;}
.number {margin: -1px 15px 0;}
.btn-add {padding: 0 15px;}
.card {font-size: 18px;}
.popup h2 {font-size: 18px;}
.close {top: -5px; right: 5px;}
.wrapper-card button.add_item.btn-add.modala {margin-top: 10px;}
.video-v iframe {width: 100%;}
.products-block a:first-child {height: 100px;}
}

@media (max-width: 550px) {
.card h1 {font-size: 24px;}
.products-block {width: 47%; margin-right: 3%;}
.descriptbl {font-size: 16px;}
.btn-add {margin: 10px auto 0; display: block; padding: 0 50px;}
.picture-small img {max-width: 80px;}
.card-left a.modal {font-size: 16px; padding: 9px 15px;}
.number {margin: 0 0 0 10px;}
.card-right h2 {font-size: 22px;}
.descriptbl p {padding-right: 5px;}
.descriptbl span {padding-left: 5px;}
.descriptbl {font-size: 15px;}
.delivery {margin-right: 30px;}
.modal-form input {width: 100%; margin: 8px 0; float: left;}
.popup h2 {font-size: 15px;}
.wrapper-card button.add_item.btn-add.modala {background: #336299; color: #ffffff;}
.wrapper-card button.add_item.btn-add.modala:hover {background: #ffffff; color: #336299;}
.wrapper-card .price {text-align: center;}
.products-block a:first-child {height: 125px;}
}