@font-face {
    font-family: 'Shruti';
    src: url('fonts/ShrutiRegular.eot');
    src: url('fonts/ShrutiRegular.eot') format('embedded-opentype'),
    url('fonts/ShrutiRegular.woff2') format('woff2'),
    url('fonts/ShrutiRegular.woff') format('woff'),
    url('fonts/ShrutiRegular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Shruti';
    src: url('fonts/ShrutiBold.eot');
    src: url('fonts/ShrutiBold.eot') format('embedded-opentype'),
    url('fonts/ShrutiBold.woff2') format('woff2'),
    url('fonts/ShrutiBold.woff') format('woff'),
    url('fonts/ShrutiBold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayThin.eot');
    src: url('fonts/RalewayThin.eot') format('embedded-opentype'),
    url('fonts/RalewayThin.woff2') format('woff2'),
    url('fonts/RalewayThin.woff') format('woff'),
    url('fonts/RalewayThin.ttf') format('truetype');
    font-weight: 100;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayExtraLight.eot');
    src: url('fonts/RalewayExtraLight.eot') format('embedded-opentype'),
    url('fonts/RalewayExtraLight.woff2') format('woff2'),
    url('fonts/RalewayExtraLight.woff') format('woff'),
    url('fonts/RalewayExtraLight.ttf') format('truetype');
    font-weight: 200;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayLight.eot');
    src: url('fonts/RalewayLight.eot') format('embedded-opentype'),
    url('fonts/RalewayLight.woff2') format('woff2'),
    url('fonts/RalewayLight.woff') format('woff'),
    url('fonts/RalewayLight.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayRegular.eot');
    src: url('fonts/RalewayRegular.eot') format('embedded-opentype'),
    url('fonts/RalewayRegular.woff2') format('woff2'),
    url('fonts/RalewayRegular.woff') format('woff'),
    url('fonts/RalewayRegular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayMedium.eot');
    src: url('fonts/RalewayMedium.eot') format('embedded-opentype'),
    url('fonts/RalewayMedium.woff2') format('woff2'),
    url('fonts/RalewayMedium.woff') format('woff'),
    url('fonts/RalewayMedium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewaySemiBold.eot');
    src: url('fonts/RalewaySemiBold.eot') format('embedded-opentype'),
    url('fonts/RalewaySemiBold.woff2') format('woff2'),
    url('fonts/RalewaySemiBold.woff') format('woff'),
    url('fonts/RalewaySemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayBold.eot');
    src: url('fonts/RalewayBold.eot') format('embedded-opentype'),
    url('fonts/RalewayBold.woff2') format('woff2'),
    url('fonts/RalewayBold.woff') format('woff'),
    url('fonts/RalewayBold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/RalewayExtraBold.eot');
    src: url('fonts/RalewayExtraBold.eot') format('embedded-opentype'),
    url('fonts/RalewayExtraBold.woff2') format('woff2'),
    url('fonts/RalewayExtraBold.woff') format('woff'),
    url('fonts/RalewayExtraBold.ttf') format('truetype');
    font-weight: 800;
}

*{
    transition: .5s ease-in-out; /* плавность переходов для всех элементов страницы*/
    margin: 0px;
    padding: 0px;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #451E00;
    min-height: calc(100vh - 350px);
}

ul {
    list-style: none;
    padding: 0px;
}

a {
    text-decoration: none;
    outline: none;
}

img {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    letter-spacing: 1px;
}

.container{
    max-width: 1120px;
    padding: 0px 20px;
    margin: 0px auto;
}

/* Body ********************************************************************************************************************************************************** */
header {
}

/* Header ********************************************************************************************************************************************************** */
.row_stripe{
    padding: 13px 0px;
    background: #fff3e9;
}

.quick_links {
    display: flex;
    justify-content: flex-end;
    margin: 0px 0px 0px auto; /* выровнять по правому краю */
}

.quick_links a{
    color: #451E00;
    font-size: 13px;
    text-decoration: underline;
}

.quick_links li{
    margin-left: 40px;
}

.row_logo{
    padding: 21px 0px;
}

.row_logo_content{
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    justify-content: space-between;
}

.logo{
    padding: 5px;
}
.contact{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px;
}

.contact p{
    margin: 7px 0px 7px 0px;
    font-family: 'Shruti', sans-serif;
    font-size: 14px;
}

.contact_data{
    margin: 0px 50px 0px 50px;
}

.contact_telephone a{
    color: #451E00;
    font-size: 20px;
    font-weight: 700;
}

nav{
    background: #960509;
}

.header_menu{
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.top_menu_toggle {
    display: none;
    position: relative;
    float: right;
    width: 24px;
    height: 12px;
    margin-bottom: 20px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    cursor: pointer;
}

.top_menu {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    padding-right: 50px;
}

#top_menu.active {
    max-height: 100%;
}

.top_menu a{
    display: flex;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.top_menu  a:hover {
    text-decoration: underline;
}

.top_menu_splitter {
    width: 1px;
    height: 10px;
    background: #E31E24;
}

.fa-search{
    margin:0px 20px 0px 0px;
    color: white; 
    font-size:18px; 
}

.row_info{
    padding: 32px 0px 40px 0px;
    background: #E31E24;
}

.row_info_title{
    color: white;
    line-height: 120%;
    font-size: 27px;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.row_info_content{
    display: flex;
    flex-wrap: wrap;
}

.row_info_item{
    display: flex;
    align-items: center;
    width: 200px;
    margin-right: 100px;
    margin-top: 20px;
}

.row_info_item p{
    padding-left: 20px;
    color: white;
    font-size: 14px;
}

.row_breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.breadcrumbs{
    display: flex;
    padding-top: 28px;
}

.breadcrumbs li{
    margin-right: 10px;
}

.breadcrumbs a{
    color: #451E00;
    font-size: 12px;
    font-weight: 200;
    text-shadow: 0 0 0 #451E00;
    text-decoration: underline;
}

/* row_content ********************************************************************************************************************************************************** */
.row_content{
    display: flex;
    flex-wrap: wrap;
    padding: 26px 20px;
}

.page_title{
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    padding-bottom: 20px;
}

.page_title h1{
    font-size: 24px;
    font-weight: 600;
}

.catalog_menu_toggle {
    display: none;
    position: relative;
    float: left;
    width: 24px;
    height: 12px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    background-color: #ffffff;
    color: red;
    cursor: pointer;
}

aside{
    margin-right: 20px;
}

.catalog_menu {
    display: flex;
    flex-direction: column;
    width: 300px;
}

#catalog_menu.active {
    max-height: 100%;
}

.catalog_menu  a {
    display: flex;
    align-items: center;
    height: 46px;
    padding-left: 16px;
    margin-bottom: 1px;
    vertical-align: middle;
    
    color: #451E00;
    font-size: 16px;
    text-decoration: none;
    transition: all, 0.3s;
}

.catalog_menu  a:hover {
    background: #960509;
    color: #FFF3E9;
    text-decoration: underline;
    font-weight: 700;
}

.catalog_level_1{
    background: #fff3e9;
}

.catalog_level_2{
    margin-left: 20px;
    background: #ffe9e9;
}

.content {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
        align-content: flex-start;
    max-width: calc(100% - 320px);
    min-height: calc(100vh - 550px);
}

.catalog_item {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 30%;
    height: 396px;
    min-width:190px;
    vertical-align: top;
    margin: 0px 10px 20px 10px;
    padding-bottom: 20px;
    background: #ffffff;
    box-sizing: border-box;
    border: 1px solid #dfdfdf;
    text-decoration: none;
}

.catalog_item:hover {
    border-color: #E31E24;
}

.catalog_item_photo {
    display: block;
    position: relative;
    height: 100%;
    margin: 20px;
}

.catalog_item_photo img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
}

.catalog_item_bottom {
    display: block;
    padding-left: 30px;
    padding-right: 20px;
    margin-top: -1px;
    text-align: left;
}

.catalog_item_name {
    display: block;
    min-height: 30px;
    margin-bottom: 13px;
    color: #451E00;
    font-size: 14px;
    line-height: 115%;
}

.catalog_item_name:hover {
    color: #0096ff;
    text-decoration: underline;
}

/* footer ********************************************************************************************************************************************************** */
footer {
    display: flex;
    flex-wrap: wrap;
    padding-top: 50px;
    padding-bottom: 26px;
    background: #960509;
    color: white;
}

footer a{
    color: white;
}

footer .fa{
    color: white;
    
}

footer .row_logo_content{
    flex-direction: column;
    align-items: flex-start;
}

footer .contact{
    align-items: flex-start;
    justify-content: flex-start;
}

footer .contact_data{
    margin-bottom: 20px;
    margin-right: 120px;
}

.footer_menu{
    display: flex;
    flex-direction: column;
    margin-right: 120px;
}

.footer_menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.footer_menu li {
    margin-bottom: 15px;
}

.footer_menu a:hover {
    text-decoration: underline;
}

/* поля форм и кнопки ********************************************************************************************************************************************************** */
.search_field {
    width: 160px;
    height: 29px;
    margin: 0;
    padding-left: 15px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    background: #962326;
    color: white;
    font-size: 12px;
    text-shadow: 0 0 0 #ffffff;
    font-family: 'Raleway', sans-serif;
    font-weight: 100;
}

.red_btn {
    display: inline-block;
    width: 148px;
    height: 38px;
    border: none;
    border-radius: 18px;
    background: #E31E24;
    color: white;
    text-align: center;
    line-height: 38px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
}

.red_btn:hover {
    background: #960509;
}

button{
    vertical-align: middle;
    border: none;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0; top: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9;
}

#scrollbox_new-backward,
#scrollbox_discount-backward{
    margin-left: 20px;
}

#show_cart:hover{
    cursor:pointer;
}

/* // стили для всплывающих окон корзины */
#popup_cart{
    display:none;
    /*width:600px;*/
    padding: 30px;
    background: white;
    border-radius: 5px;
    position: fixed;
    z-index: 999;
    /*top: 50%;
    left:50%;
    color: #565656;*/
}

#popup_send_order{
    display:none;
    width:600px;
    padding: 30px;
    background: white;
    border-radius: 5px;
    position: fixed;
    z-index: 999;
    top: 50%;
    left:50%;
    color: #565656;
}

/*#overlay{
    display:none;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    position: fixed;
    z-index: 998;
    top: 0;
    left:0;
}*/

.close_popup {
    width: 14px;
    height: 16px;
    background: url(images/close.png) no-repeat;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Форма для клиента */
/************************************/ 
/*.cart-orderform label {
    position: relative;
    display: inline-block;
    min-width: 150px;
    vertical-align: middle;
    overflow: hidden;
}

.cart-orderform label::after {
    position: absolute;
    bottom: 0;
    content: '';
    width: 100%;
    border-bottom: 1px dotted #CCC;
}*/

.cart-orderform p{
    margin: 5px;
}

.cart_list{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cart_element{
    display: flex;
    margin: 10px 0px;
}

.cart_item_photo{
    width: 30%;
}

.cart_item_photo img{
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.cart_item_name{
    width: 50%;
    padding: 5px;
}

.cart_item_price{
    width: 20%;
}

.cart_item_delete:hover{
    cursor:pointer;
}

.cart-orderform input[type=text],
.cart-orderform textarea {
    width: 250px;
    padding: 3px;
    border: 1px solid #CCC;
    border-radius: 5px;
    resize: vertical;
}

.delete_button:hover{
    cursor:pointer;
}

/* Стили для работы слайдера на главной странице */
.scroll-img{
    width: 100%;
    height: 306px;
    overflow: hidden;
}

.scroll-img ul{
    width: 200%;
    height: 600px;
    margin: 0;
}
.scroll-img ul li{
    display: inline-block;
    margin: 10px 0 10px 10px;
}

/* Стили для вывода кнопки общей корзины */
.main_cart{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    width: 150px;
}

.count_cart{
    padding: 5px 15px 5px 15px;
    background-color: #b42435;
    color:white; 
    border-radius: 10px;
}

/* Стили для вывода кнопки корзины в товарах */
.cart_icon{
    border: 2px solid #b42435;
    position:relative;top: -35px;
    margin: 0px auto;
    width: 40px;
    display: inline-block;
    padding: 5px;
    background-color: white;
    border-radius: 10px;
}
.cart_icon:hover{
    cursor:pointer;
}

/* Надпись новинка и скидка*/
.new_good {
    position: absolute;
    padding-left: 16px;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: #333333;
    background: #E31E24;
    top: 0px;
    padding-right: 12px;
    left: 0;
    z-index: 2;
    color: white;
}

/* Стили для вывода товара */
#good_photo_gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
}

#good_photo_gallery li{
    margin: 5px 0px;
    width: 32%;
    position: relative;
}

#good_photo_gallery li a img {
    width: 100%;
}












.gallery_container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.gallery_container ul li a {
  overflow: hidden;
  position: relative;
  float: left;
}

.gallery_container ul li a img {
  transition: transform 0.15s ease 0s;
}
.gallery_container ul li a:hover img {
  transform: scale3d(1.1, 1.1, 1.1);
}

.gallery_container ul li a:hover .gallery_container_zoom img {
  opacity: 1;
}

.gallery_container ul li a .gallery_container_zoom {
  background-color: rgba(0, 0, 0, 0.1);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: background-color 0.15s ease 0s;
}

.gallery_container ul li a .gallery_container_zoom img {
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transition: opacity 0.3s ease 0s;
}

.gallery_container ul li a:hover .gallery_container_zoom {
  background-color: rgba(0, 0, 0, 0.5);
}

















/* стиль для описания товара в таблице */  
.doted{
    border-bottom: 1px dotted;
}

.good_item{
    display: flex;
    flex-wrap: wrap;
}

.good_image{
    width: 300px;
    margin-right: 20px;
    margin-bottom: 20px;
}


.good_main_photo{
}

.good_main_photo img{
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.good_parameters{
    display: flex;
    flex-direction: column;
    
}

.good_price{
    font-size: 24px;
    font-weight: bold;
    color: red;
    margin-bottom: 20px;
}
.good_branch{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.good_model{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.good_description{
    line-height: 1.5;
}

/* Стили для вывода филиалов в контактах */
.contact_gallery li{
    display: block;
    float: left;
    height: 100px;
    margin-bottom: 6px;
    margin-right: 6px;
    width: 100px;
}
 
.contact_gallery li a{
    height: 60px;
    width: 100px;
}

.contact_gallery li a img{
    max-width: 100px;
    margin: 0px;
}


/* --------------------------------------------- */
@media(max-width: 1010px) {
.catalog_item{    
    width: 45%;
}
}

@media(max-width: 960px) {
main{
    height: calc(100vh - 410px);
}

.row_stripe {
    display: none;
}

.row_logo_content{
    flex-direction: column;
    align-items: center;
}

.contact{
    justify-content: center;
}

/* показываем кнопку для переключения верхнего меню */
.top_menu_toggle {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 12px;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.top_menu_toggle:after {
    content: '';
    width: 100%;
    height: 2px;
    left: 0; top: 0; bottom: 0;
    margin: auto;
    position: absolute;
    background: #ffffff;
}

.top_menu_splitter{
    display: none;
}

aside{
    flex: 1 1 100%;
}

.content{
    flex: 1 1 100%;
    max-width: 100%;
}

.catalog_menu_toggle {
    display: inline-block;
    margin-right: 20px;
    border-color: black;
}

.catalog_menu_toggle:after {
    content: '';
    width: 100%;
    height: 2px;
    left: 0; top: 0; bottom: 0;
    margin: auto;
    position: absolute;
    background: black;
}
    
#catalog_menu {
    max-height: 0;
    overflow: hidden;
    left: 0px;
    display: block;
    width: 280px;
    height: 100%;
    background: #ffffff;
    position: fixed;
    z-index: 10;
    top: 0;
}

/* скрываем верхнее меню */ 
#top_menu {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background: #960509;
    position: fixed;
    top: 0px;
    right: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
}

.top_menu a{
    height:20px;
    font-size: 14px;
}

.catalog_item {
    width: 30.5%;
}

}

@media(max-width: 770px) {
.catalog_item{    
    width: 45%;
}
}

@media(max-width: 650px) {
.good_image{
    width: 100%;
    margin-right: 0px; */
}
}

@media(max-width: 476px) {
.catalog_item{    
    flex-grow: 1;
}

.fa-search{
    display: none; 
}

#search_form{
    display: flex; 
    flex-direction:column; 
    align-items:center;
    width:90%;
}

#search_form input{
    margin: 10px;
}

#scrollbox_new-backward,
#scrollbox_discount-backward{
    margin-left: 0px;
}
}























