html {
	height: 100vh;
}

html, body {
	width: 100%;
	min-width: 320px;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100vh;
	font: 16px Arial;
	color: #000;
	background: #fff;
}

body * {
	box-sizing: border-box;
}

header,
.top_menu,
.last_news,
footer {
	flex-shrink: 0;
}

.middle {
	flex: 1 0 auto;
}

.center {
	position: relative;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 30px;
	/*background: #fff;*/
	overflow: hidden;
}

/*------------------------CSS------------------------------*/

header {
	color: #fff;
    background: #0778c6;
}

header .center {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	min-height: 228px;
}

header .center > div {
	padding: 0 30px 0 0;
}

header .center > div:last-child {
	padding: 0;
}

.logo {
	margin-left: -13px;
	order: 1;
}

.title {
	font: 20px/34px OSans;
	text-transform: uppercase;
	order: 2;
}

.header_contacts {
	order: 3;
}

.header_contacts > span {
	position: relative;
	display: block;
	margin: 12px 0;
	padding: 0 0 0 33px;
	font: 16px/24px OSans_sb;
	white-space: nowrap;
}

.header_contacts > span:first-child {
	font: 18px/24px OSans_sb;
}

.header_contacts > span::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 25px;
	height: 24px;
	margin: auto 0;
	content: "";
}

.header_contacts > span:nth-child(1)::before {background: url('/img/hdr_tel.png') center center no-repeat;}
.header_contacts > span:nth-child(2)::before {background: url('/img/hdr_whours.png') center center no-repeat;}
.header_contacts > span:nth-child(3)::before {background: url('/img/hdr_adr.png') center center no-repeat;}

.header_contacts span span {
	display: inline-block;
	white-space: nowrap;
}
.div_basket {
  order: 4;
    font-size: 13px;
}
.div_basket a:last-child {font-size: 17px!important;}
.div_basket a:hover {text-decoration: underline;}
.header_basket {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	min-width: 120px;
	height: 46px;
	padding: 0px;
	background: #fff;
	font: 13px OSans;
	color: #1a7fcd;
	margin: 8px 0;
}

.header_basket_count {
	position: relative;
	width: 22px;
	height: 19px;
	margin: 7px 15px 0 0;
	background: url('/img/bskt.png') no-repeat;
}

.header_basket_count span {
	position: absolute;
	top: -13px;
	left: 14px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	font: 12px/20px OSans;
	color: #1a7fcd;
	text-align: center;
	background: #fff;
	box-shadow: 1px 1px 3px 0 rgba(0,0,0,.4);
	border-radius: 10px;
	overflow: hidden;
}

.top_menu {
	background: #0778c6;
	border-top: 1px solid #fff;
}

.top_menu .center {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	overflow: visible;
}

.top_menu .center .navbar-collapse2 > ul {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	margin: 0;
}

.top_menu .center .navbar-collapse2 ul > li {
	font: 16px OSans_sb;
	text-transform: uppercase;
	text-align: center;
	border-left: 1px solid #fff;
}

.top_menu .center .navbar-collapse2 ul > li:last-child {
	border-right: 1px solid #fff;
}

.top_menu .center .search_cont {
	flex: 1 0 0;
}

.top_menu .center .navbar-collapse2 > ul > li > a {
	position: relative;
	display: block;
	padding: 0 35px;
	color: #fff;
	text-decoration: none;
	outline: none;
}

.top_menu .center .navbar-collapse2 > ul > li > a > span {
	display: inline-block;
	border-top: 2px solid transparent;
	border-bottom: 2px solid transparent;
}

.top_menu .center .navbar-collapse2 > ul > li > a > span > span {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 77px;
}

.top_menu .center .navbar-collapse2 > ul > .active > a > span,
.top_menu .center .navbar-collapse2 > ul > li:hover > a > span {
	border-bottom: 2px solid #fff;
}

.search_cont {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	margin: 10px 0;
	padding-left: 30px;
}

.search_cont div {
	max-width: 462px;
	width: 100%;
	background: #fff;
	border: 1px solid #d9dcde;
	overflow: hidden;
}

.search_cont div input {
	height: 33px;
	border: none;
	outline: none;
}

.search_cont .search_field {
	width: calc(100% - 41px);
	height: 31px;
	padding: 0 0 0 15px;
	font: 14px OSans;
}

.search_cont .search_btn {
	width: 41px;
	background: none;
	background: url('/img/srch.png') center center no-repeat;
	color: transparent;
	cursor: pointer;
}

/*---------------------------------------------*/

.middle {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
}

.middle .center {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	padding: 60px 30px 65px;
}

.content {
	width: calc(92.4% - 252px);
	padding: 0 0 0;
	font: 14px/22px Arial;
	color: #858585;
	order: 2;
}

.left {
	width: 252px;
	margin: 0 7.6% 20px 0;
	padding: 0 0 0;
	order: 1;
}

.advirts {
	margin: 35px 0 40px;
}

.advirts > h2 {
	margin: 0 0 35px;
}

.partners ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.partners ul li {
	margin: 35px 0 0;
}

.partners > h2 {
	margin: 0;
}

/*---------------------------------------------*/

#btn_sidebar {
	display: none;
}

.side_menu > ul {
	background: url('/img/bg_s_menu.png') repeat;
}

.side_menu > ul > li {
	position: relative;
	font: 14px OSans;
	border-bottom: 1px solid #dfdfdf;
}

.side_menu > ul > li:last-child {
	border-bottom: none;
}

.side_menu > ul > li > a {
	position: relative;
	display: block;
	padding: 10px 10px 10px 8px;
	color: #1a7fcd;
	text-decoration: none;
	background: url('/img/marker.png') 20px center no-repeat;
	border-left: 2px solid transparent;
	outline: none;
}

.side_menu > ul > .active > a,
.side_menu > ul > li > a:hover {
	border-left: 2px solid #2585cf;
}

.sm_sub_menu {
	display: none;
	padding: 10px 0;
	background: #fff;
}

.active .sm_sub_menu {
	display: block;
}

.sm_sub_menu li {
	text-transform: none;
	background: url('/img/marker_sub.png') 9px 15px no-repeat;
}

.sm_sub_menu li a {
	display: block;
	padding: 5px 10px 5px 30px;
	color: #0087bf;
	text-decoration: none;
}

.side_menu > ul > li > ul > .active > a,
.side_menu > ul > li > ul > li > a:hover {
	background: #d8d8d8 url('/img/marker_a.png') 20px center no-repeat;
	text-decoration: none;
}

/*-------------------------------------------------------------------------*/

footer {
    background: #2183cf;
}

footer .center {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	padding-top: 48px;
	padding-bottom: 28px;
}

.f_left {
	font: 16px OSans;
	color: #fff;
}

.f_left > span {
	display: block;
	padding: 7px 0;
}

.f_left > span span {
	display: inline-block;
}

.f_menu {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	max-width: 45%;
	padding: 7px 0;
}

.f_menu a {
	font: 14px OSans;
	color: #fff;
	text-transform: uppercase;
}

.f_right {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-end;
}

.f_counter {
	display: inline-block;
	margin: 0 0 30px;
}

.gal {
	padding: 0 0 0 34px;
	font: 13px OSans;
	color: #fff;
	text-align: left;
	background: url('/img/gala.png') 0 center no-repeat;
	white-space: nowrap;
}

.gal a {
	color: #fff;
	text-decoration:underline;
}

.gal a:hover {
	text-decoration:underline;
}

.middle article {
	font: 15px OSans;
	color: #3f3f3f;
}

h1 {
	margin: -12px 0 35px;
	font: 41px OSans;
	color: #3f3f3f;
}

h2 {
	font: 36px OSans;
	color: #3f3f3f;
}

h3 {
	font: 31px OSans;
	color: #3f3f3f;
}

.btn {
	display: block;
	width: 100%;
	height: 35px;
	margin: 0 auto;
	font: 17px OSans;
	color: #fff;
	background: #1a7fcd;
	box-shadow: 2px 2px 8px 0 rgba(0,0,0,.4);
	border: none;
	outline: none;
	cursor: pointer;
}

.counter {
	font: 19px OSans_sb;
}

.login_form {
	max-width: 200px;
}

.login_form .d-flex,
.login_form .d-block {
	margin-bottom: 15px;
}

.login_form .btn_block {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
}

.login_form .d-flex > div:first-child {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	font: 12px OSans;
}

.login_form .btn {
	width: 100px;
	margin: 0;
}

.recovery_form,
.registr_form {
	max-width: 500px;
}

.recovery_form .d-block,
.registr_form .d-block {
	margin-bottom: 15px;
}

.recovery_form .d-block > span,
.registr_form .d-block > span {
	display: block;
	margin: 0 0 5px;
}

.recovery_form .btn,
.registr_form .btn {
	width: 200px;
	margin: 15px 0 0;
}

.required {
	font: 14px OSans;
}

/*-------------------------------------------------------------------------*/

.last_news {
	margin: 20px 0 0;
	padding: 0 0 20px;
	color: #676767;
	background: url('/img/bg_s_menu.png') repeat;
}

.last_news > h2 {
	margin: 0;
	padding: 10px;
	font: 18px OSans;
	color: #676767;
	border-bottom: 1px solid #dfdfdf;
}

.last_news > ul > li {
	position: relative;
	margin: 0 0 15px;
	font: 14px OSans;
}

.last_news > ul > li:last-child {
	margin: 0 0 15px;
}

.last_news_list {
	padding: 10px 10px 0;
}

.last_news_list h3 {
	margin: 0 0 10px;
	font: 17px OSans;
	color: #1680c9;
}

.ln_date {
	display: inline-block;
	margin: 0 0 10px;
}

.ln_img {
	display: block;
	margin: 0 0 10px;
}

.ln_txt {
	color: #3f3f3f;
}

.show_all,
.show_all_cont .show_all {
	display: block;
	padding: 0 10px 0 0;
	font: 14px OSans_i;
	text-align: right;
	color: #1680c9;
}

.last_categories h2 {
	font: 41px OSans;
}

.last_category_list_cont {
	position: relative;
}

.last_category_list {
	padding: 0 35px;
	font: 17px OSans_i;
}

.last_category_list li {
	width: 229px;
	min-height: 331px;
	margin: 0 10px;
	padding: 0 20px 20px;
	text-align: center;
	border: 2px solid #f6f6f6;
	border-radius: 4px;
}

.last_category_list li a {
	color: #1a7fcd;
	outline: none;
}

.last_category_list .img_wrapper_catalog_main {
	height: 208px;}

.lcat_left,
.lcat_right {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 35px;
	margin: auto 0;
	overflow: hidden;
	cursor: pointer;
	z-index: 1;
}

.lcat_left {
	left: 3px;
	background: url('/img/left.png') center center no-repeat;
}

.lcat_right {
	right: 3px;
	background: url('/img/right.png') center center no-repeat;
}

.category {
	margin: 0 0 16px;
	font: 17px OSans;
	text-align: center;
}

.col-md-3:nth-child(4n-3) .jumbotron {
	margin-left: 0;
}

.col-md-3:nth-child(4n) .jumbotron  {
	margin-right: 0;
}

.prod_name {
	display: block;
	margin: 0 0 20px;
	color: #3f3f3f;
	flex-grow: 1;
}

.price {
	display: block;
	margin: 0 0 15px;
	font: 17px OSans_sb;
	color: #1a7fcd;
}

.quantity {
	display: block;
	width: 100%;
	height: 35px;
	margin: 0 0 15px;
	font: 17px OSans;
	text-align: center;
}

.quantity input {
	width: calc(100% - 50px);
	max-width: 110px;
	margin: 0 10px 0 0;
	text-align: center;
	outline: none;
}

.new_cont {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	width: 100%;
	margin: 0 0 15px;
	padding: 27px;
	background: #f6f6f6;
}

.new_left {
	width: 29.4%;
	margin-right: 15px;
	text-align: center;
}

.new_left img {
	width: 100%;
}

.new_right {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	font: 16px OSans;
	color: #3f3f3f;
}

.new_right h3 {
	margin: -5px 0 0;
	font: 20px OSans;
	color: #1680c9;
}

.new_right h3 a {
	color: #1680c9;
}

.date {
	display: block;
	font: 16px OSans;
	color: #676767;
}

.new_right a {
	color: #3f3f3f;
}

.show_all_cont {
	margin-top: 5px;
}

.show_all_cont .show_all {
	padding: 0;
}

.mod_img_big {
	display: block;
	float: left;
}

.breadcrumb-item {
	font: 14px OSans;
}

.breadcrumb-item a {
	color: #8e8e8e;
}

/*--------------------ПРЕЛОДЕР-------------------------*/

#page-preloader {
    position: fixed;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: lightgray;
    z-index: 100500;
}

#page-preloader .spinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid blue;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
            animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@media (max-width: 1239px) {

	header .center {
		flex-wrap: wrap;
	}

	.header_contacts > span {
		white-space: normal;
	}
	
	.div_basket {
		order: 3;
      margin-bottom: 20px;
	}
	
	.title {
		width: 100%;
		order: 4;
	}
	
	.partners ul {
		justify-content: center;
	}
	
	.partners ul li {
		margin: 35px 15px 0;
	}
	.top_menu .center .navbar-collapse2 > ul > li > a {
		padding: 0 20px;
      font-size: 14px;
	}
	
}

@media (max-width: 940px) {
	.top_menu .center .navbar-collapse2 > ul > li {
		font: 14px OSans_sb;
	}
	
	.top_menu .center .navbar-collapse2 > ul > li > a {
		padding: 0 15px;
	}
}

@media (max-width: 906px) {

	header .center {
		margin-top: 20px;
		margin-bottom: 20px;
	}

	header .center .title {
		width: calc(100% - 339px);
		padding-right: 0;
		text-align: right;
		order: 2;
	}
	
	.header_contacts {
		order: 3;
	}

	.header_basket {
		order: 4;
	}
	
	.f_left {
		padding-right: 30px;
	}
	
	.f_menu {
		flex-direction: column;
		flex-grow: 1;
		width: auto;
		padding: 0 30px 0 0;
	}
	
	.f_menu a {
		display: block;
		margin: 7px 0;
	}
	
	.f_right {
		padding-top: 7px;
	}
	
}

@media (min-width: 801px) {
	.side_menu {
		display: block;
	}
}

@media (max-width: 800px) {
	.middle .center {
		flex-direction: column;
		padding: 30px 30px 35px;
	}
	
	#btn_sidebar {
		display: block;
	}
	
	.left {
		width: 100%;
	}
	
	.content {
		width: 100%;
	}
	
	.top_menu .center {
		flex-wrap: wrap;
		align-items: center;
	}
	
	.navbar-toggler {
		order: 1;
	}
	
	.top_menu .center .navbar-collapse2 {
		
		width: 100%;
		margin-bottom: 10px;
		order: 3;
	}
	
	.top_menu .center .navbar-collapse2 > ul {
		flex-direction: column;
		justify-content: center;
	}
	
	.top_menu .center .navbar-collapse2 > ul > li {
		display: inline-block;
		margin: 2px 0;
		border: 1px solid #fff;
	}
	
	.top_menu .center .navbar-collapse2 > ul > li > a > span {
		height: auto;
		padding-bottom: 3px;
		border-bottom: none;
	}
	
	.top_menu .center .navbar-collapse2 > ul > li > a > span > span {
		height: auto;
	}
	
	.top_menu .center .navbar-collapse2 > ul > .active > a > span,
	.top_menu .center .navbar-collapse2 > ul > li:hover > a > span {
		border-bottom: none;
	}
	
	.search_cont {
		order: 2;
      padding-left: 0px;
	}
	
	h1 {
		margin: 0 0 35px;
	}
	
	.last_news {
		display: none;
	}
}

@media (max-width: 631px) {

	.logo {
		margin: 0 auto 15px;
		padding: 0 !important;
	}

	header .center .title {
		width: 100%;
		text-align: left;
	}
	
	
}

@media (max-width: 580px) {

	.header_contacts {
		padding: 0 !important;
	}
	
	.header_contacts > span span {
		display: inline-block;
	}
	
	.header_basket {
		min-width: 300px;
		height: 66px;
	}
	
	footer .center {
		flex-wrap: wrap;
	}
	
	.f_left {
		width: 50%;
		order: 2;
	}
	
	.f_left > span:last-child {
		padding-bottom: 0;
	}
	
	.f_menu {
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		max-width: 100%;
		padding: 0;
		margin: 0 0 15px;
		order: 1;
	}
	
	.f_menu a {
		margin: 0 7px 7px;
	}

	.f_right {
		justify-content: flex-end;
		width: 50%;
		order: 3;
	}
}

@media (max-width: 480px) {
	.logo img {
		width: 100%;
	}

	.center {
		padding: 0 10px;
	}
	
	.middle .center {
		padding: 30px 10px 35px;
	}
	
	h1 {
		font: 35px OSans;
	}

	h2 {
		font: 30px OSans;
	}

	h3 {
		font: 25px OSans;
	}
	
	.f_left {
		width: 100%;
		padding-right: 0;
		text-align: center;
	}
	
	.f_menu {
		justify-content: center;
	}
	
	.f_right {
		width: 100%;
		align-items: center;
		padding-top: 15px;
	}
	
	.f_counter {
		margin: 0 0 15px;
	}
	
	.new_cont {
		flex-direction: column;
		justify-content: flex-start;
	}
	
	.new_left {
		width: 100%;
		margin: 0 0 15px;
		text-align: center;
	}

	.new_left img {
		width: auto;
	}

	.new_right {
		width: 100%;
	}
	
	.mod_img_big {
		float: none;
		margin: 0 0 15px;
		text-align: center;
	}
	
	.recovery_form .btn,
	.registr_form .btn  {
		margin: 15px auto 0;
	}
	
	.recovery_form .required,
	.registr_form .required {
		text-align: center;
	}
}