/**** normalize-5.0.0.css pieces ****/

html { line-height: 1.15; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }

body { margin: 0 }

hr {  box-sizing: content-box; height: 0; overflow: visible; }

a { background-color: transparent; -webkit-text-decoration-skip: objects; }

a:active, a:hover { outline: none }

b, strong { font-weight: inherit }
b, strong { font-weight: bolder }

/*small { font-size: 80%; }*/

sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em }
sup { top: -0.5em }

audio, video { display: inline-block }
audio:not([controls]) { display: none; height: 0; }

img { border-style: none }

button, input, select, textarea { font-family: sans-serif; font-family: 'Open Sans', sans-serif; font-size: 100%; line-height: 1.15; margin: 0; }

button, input { overflow: visible }
button, select { text-transform: none }

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }

textarea { overflow: auto }

[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }

[hidden] { display: none }



/**** layout ****/

html {height: 100%;}
body { margin: 0; height: 100%; display: flex; flex-direction: column;}
.site-header, .site-footer { flex: none;}
.site-main {flex: 1 0 auto;}


.container {margin: 0 auto; max-width: 1280px}

/* remove for responsive sites */ /* var */
/*
body { min-width: 880px}
.container { min-width: 800px; padding: 0 40px; }
*/

/* for browsers without flexbox */
.site-header:before, .site-header:after, .site-footer:before, .site-footer:after, .site-main:before, .site-main:after { display: table; content: " "; }
.site-header:after, .site-footer:after, .site-main:after { clear: both }


.main-sidebar { float: left; width: 240px; }
.main-content { margin-left: 260px; }

/* свойство 'order' для flexbox -- изменение порядка блоков */

/*
for responsive layouts
@media (max-width: ...) {
  .main-sidebar { float: none; width: 100%}
  .main-content { margin-left: 0}
}
*/

/* TODO: bootstrap columns */



/**** styles ****/

body {
	/*font-family: Georgia, "Times New Roman", Times, serif;*/
	font-family: 'Open Sans', sans-serif;
	font-size: 12pt;
	color: #404040; /* var */
	background-color: #fff;
}


a { color: #337ab7 } /* var */
a:hover { color: #23527c } /* var */

a.noline { text-decoration: none }

a.line-on-hover { text-decoration: none }
a.line-on-hover:hover { text-decoration: underline }

a.white { color: #fff }
a.black { color: #404040 }

a.dash { text-decoration: none; border-bottom: 1px dashed; }
a.dot {text-decoration: none; border-bottom: 1px dotted; }

.black { color: #404004}
.white { color: white}
.red { color: red }


/* tables */
table.data { width: 100%; border: none; border-collapse: collapse; border-spacing: 0; }
table.data th { background: #ededed; text-align: left; font-weight: bold; padding: 5pt; border-bottom: 1px solid #bfbfbf; }
table.data td { padding: 5pt; border-bottom: 1px solid #bfbfbf; }



/* headings */
h1, h2, h3, h4, h5, h6 {
	/* var */ /* color, font-weight, font-family, font-style, text-align */
	padding: 0;
	font-weight: 300;
	text-align: center;
}
h1, h2, h3 { margin: 25pt 0 20pt 0; }
h4, h5, h6 { margin: 20pt 0 15pt 0; }
h1 { font-size: 34pt; }
h2 { font-size: 30pt; }
h3 { font-size: 26pt; }
h4 { font-size: 22pt; }
h5 { font-size: 20pt; }
h6 { font-size: 18pt; }
/*h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child { margin-top: 10pt; }*/

p { margin: 10pt 0; line-height: 1.2em; }
.margin0 { margin-top: 0; margin-bottom: 0; }
.margin3 { margin-top: 3pt; margin-bottom: 3pt }
.margin5 { margin-top: 5pt; margin-bottom: 5pt; }
.margin10 { margin-top: 10pt; margin-bottom: 10pt; }
.margin15 { margin-top: 15pt; margin-bottom: 15pt; }
.margin20 { margin-top: 20pt; margin-bottom: 20pt; }

img.left { float: left; margin: 5pt 12pt 5pt 0; }
img.right { float: right; margin: 5pt 0 5pt 12pt; }
p img { /*background: #ededed; padding: 10px;*/ display: -moz-inline-block; display: inline-block; }
p[align='left'] img, p[style*='left'] img { float: left; margin: 5pt 15pt 5pt 0; }
p[align='right'] img, p[style*='right'] img { float: right; margin: 5pt 0 5pt 15pt; }
p > img[style*='left'] { float: left; margin: 5pt 15pt 5pt 0; }
p > img[style*='right'] { float: right; margin: 5pt 0 5pt 15pt; }

ol,ul { margin: 0 0 10pt 0; }
li { margin: 5pt 0 5pt 25pt; }


label { cursor: pointer }
textarea { resize: vertical }
input[type="text"], input[type="textarea"], input[type="password"], input[type="file"], select, textarea { box-sizing: border-box; padding: 3pt }
input.x100, textarea.x100, select.x100 { width: 100%; }
input.x50, textarea.x50, select.x50 { width: 50%;}
input.x25, textarea.x25, select.x25 { width: 25%; }
/* button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } */


div.file { padding: 15pt 0; padding-left: 80px; background: no-repeat left; }
div.file32 { padding: 2pt 0 2pt 40px; background: no-repeat left; }
div.file span, div.file32 span { white-space: nowrap; }



.title24 { font-size: 24pt; }
.title20 { font-size: 20pt; }
.title18 { font-size: 18pt; }
.title16 { font-size: 16pt; }
.title14 { font-size: 14pt; }
.title13 { font-size: 13pt; }
.title12 { font-size: 12pt; }
.small { font-size: 10pt;}
.lite,.lite:visited { color: #999999;}
.strong { font-weight: bold; }
.lighter { font-weight: lighter; }


.block-margins:before, .block-margins:after { display: table; content: " "; }

.noselect {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.nowrap { white-space: nowrap; }

.clear { clear: both }


.btn {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: none;
  white-space: nowrap;
  padding: 10px 40px;
  text-decoration: none;
  color: #fff !important;
  outline: none !important;
  background-color: #aa000c; /* var */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
	border: 2px solid #aa000c;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
	color: #aa000c !important; /* var */
	background-color: #fff; /* var */
	border-color: #aa000c; /* var */
}

.btn:active { background-color: #fff }


div.block { padding: 10pt 15pt; background-color: #f2f2f2; }

div.tabled, div.tabled-top { display: table; width: 100%; border-collapse: collapse; border-spacing: 0; }
.tabled > div { display: table-cell; vertical-align: middle}
.tabled-top > div { display: table-cell; vertical-align: top}


.action-buttons > a {
    display: inline-block;
    padding: 3px;
    transition: background-color 0.3s;
}
.action-buttons > a:hover { background: #999 }
.action-buttons > a > img { display: block }


.pagination { margin: 20px 0}
.pagination > a, .pagination > span { display: inline-block; font-size: 10pt; padding: 5px 8px; margin-right: 10px;}
.pagination > a {
  background: #337ab7; /* var */
  color: white; /* var */
  text-decoration: none
}
.pagination > span.page-active,
.pagination > a:hover {
  background: #286090; /* var */
  color: white;
}


.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

ul.list-unstyled,
ol.list-unstyled {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

ul.list-unstyled > li,
ol.list-unstyled > li {
  margin: 0;
}

img.responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* requires inline-block or block for proper styling */
.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


form.site-form {
    display: block;
    padding: 10pt 15pt;
    background-color: #f2f2f2;
    margin: 20px 0;
}

table.form-fields { width: 100%}
table.form-fields td:first-child { width: 25%}
table.form-fields td { padding: 5px 0}

/*
.row { margin-left: -15px; margin-right: -15px; }
.row:before, .row:after {display: table; content: ""; clear: both}
.row > .col4 { width: 25%; float: left; padding-left: 15px; padding-right: 15px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
.row > .col3 { width: 33.333333%; float: left; padding-left: 15px; padding-right: 15px; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
*/

.row-flex {
	display: flex;
	flex-flow: row wrap;
}

.square-image,
a.square-image {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 100%;
    text-decoration: none;
    outline: none;
}
.square-image > div,
a.square-image > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center no-repeat;
    background-size: 100%;
    background-size: cover;
}


/* ------------- gallery ------------------- */

.gallery { text-align: center; }

.gallery-album { display: table; width: 100%; margin: 20px 0;}
.gallery-album > div { display: table-cell; vertical-align: top;}
img.gallery-album-cover { border: solid 1px #bbbbbb}

.gallery-photo { margin: 0 10pt 20pt; display: inline-block; vertical-align: top; width: 220px; text-align: center}
.gallery-photo .image { border: solid 1px #bbbbbb; width: 100%}

a.index-gallery-photo {
	width: 300px;
	height: 300px;
	display: inline-block;
	text-decoration: none;
	float: left;
	transition: transform 0.25s;
}

a.index-gallery-photo:hover  {
	-o-transform: scale(1.05);
	-ms-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
	transition: transform 0.25s;
}


a.index-gallery-photo > img {
	display: block;
}

a.index-gallery-photo > .text {
	position: absolute;
	width: 300px;
	height: 0;
	bottom: 0;
	background: rgba(0,0,0,.5);
	transition: height 0.25s;
}

a.index-gallery-photo:hover > .text {
	height: 35%;
	transition: height 0.25s;
}

a.page-gallery-photo {
	width: 300px;
	height: 300px;
	display: inline-block;
	text-decoration: none;
	margin-bottom: -3px;
	position: relative;
	background-position: center;
	background-size: cover;
	transition: transform 0.25s;
}

a.page-gallery-photo:hover  {
	-o-transform: scale(1.05);
	-ms-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-webkit-transform: scale(1.05);
	transition: transform 0.25s;
}

a.page-gallery-photo > .text {
	position: absolute;
	text-align: left;
	width: 300px;
	height: 0;
	bottom: 0;
	background: rgba(0,0,0,.5);
	transition: height 0.25s;
}

a.page-gallery-photo:hover > .text {
	height: 35%;
	transition: height 0.25s;
}



/* ------------- menu ------------------- */

.main-menu { font-size: 14pt; display: table; width: 100%; border-collapse: collapse; color: white; /*table-layout: fixed*/}
.main-menu ul { display: table-row; }
.main-menu li { display: table-cell; list-style: none; vertical-align: middle}
.main-menu li a {
	padding: 15px 20px;
	text-align: center;
	white-space: nowrap;
	display: block;
	color: white;
	text-decoration: none;
	/*background: #9efeeb;*/
	/*border-left: solid 1px #9efeeb;*/
	transition: background-color 0.3s;
}
.main-menu li.social { text-align: right; padding-left: 0px }
.main-menu li.social a {display: inline-block; padding: 0; margin-left: 5px }
.main-menu li:first-child a { border-left: none; }
.main-menu li:hover a { /*background: #89dac8*/}
.main-menu li.active a, .main-menu li a:hover { text-decoration: underline }

#main-menu-toggle {
	/*float: right;*/
	display: none;
	/*display: inline-block;*/
	background: #920319 url('/images/hamburger-white.png') center no-repeat;
	background-size: 50% 60%;
	width: 36px;
	height: 36px;
	padding: 10px;
	border-radius: 50px;
	margin: 15px 0 5px;
	text-decoration: none;
	-webkit-transition: transform .25s;
	-moz-transition: transform .25s;
	-ms-transition: transform .25s;
	-o-transition: transform .25s;
	transition: transform .25s;
}

#main-menu-toggle.active {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	transform: rotate(90deg);
	-webkit-transition: transform .25s;
	-moz-transition: transform .25s;
	-ms-transition: transform .25s;
	-o-transition: transform .25s;
	transition: transform .25s;
}



/* ------------- slides ------------------- */
/*.slides { overflow: hidden; position: relative; }*/
#slides { }
.slide { width: 100%; overflow: hidden; background-size: cover; text-align: center; background-position: center; min-height: 400px; }
.slide > img { min-height: 400px; width: 100% }

a.slide-prev,
a.slide-next {
	display: block;
	width: 34px;
	height: 66px;
	position: absolute;
	top: 50%;
	margin-top: -33px;
	text-decoration: none;
	z-index: 200;
	opacity: 0.7;
}

a.slide-prev:hover,
a.slide-next:hover {
	opacity: 1;
}

a.slide-prev:active,
a.slide-next:active {
	opacity: 0.7;
}

a.slide-prev { left: 40px; }
a.slide-next { right: 40px; }

#logo-active { position: absolute; z-index: 100; /*width: 310px; height: 93px;*/ opacity: 0; transition: opacity 0.2s;}
#logo-active:hover { opacity: 1; transition: opacity 0.2s; }


.footer-contacts { width: 50%; top: 120px; position: absolute; z-index: 10; background: rgba(255,255,255,0.75); padding: 10px 0px 10px 40px }

.order-button { position: fixed; top: 210px; right: 0; background: linear-gradient(180deg, rgba(236,0,12,1) 0%, rgba(105,1,12,1) 100%); padding: 40px 20px; z-index: 100 }

div.developer { padding: 10px 0; padding-left: 38px; line-height: 1.1em; display: block; background: url('./images/o9media32.png') no-repeat left; }



@media (max-width: 1280px) {
	.container { margin: 0 20px; }
}

@media (max-width: 970px) {
	.main-menu li a { padding: 15px 10px; }
	.header-contacts { display: block !important; }
	.header-contacts > .tabled > div > .tabled > div { padding-left: 0 !important; }
	.logo { display: block !important; width: 100%; text-align: center; margin: 20px 0; }
	#logo-active { opacity: 1; display: inline-block; }
	.slide > img { display: none }

}

/* main part */
@media (max-width: 830px) {
	/*.site-header > div > div > .tabled { display: block; }*/
	.main-menu { display: none }
	.main-menu > ul { width: 100%; display: table }
	.main-menu > ul > li { display: table-row; padding: 0; margin: 0; text-align: center; }
	.main-menu > ul > li > a {
		/*padding: 5px 0;*/
		text-align: center;
		display: inline-block;
		/*margin: 10px 0;*/
		padding: 12px 0 !important;
	}
	.main-menu > ul > li.separator { display: none; }
	.main-menu li.social { text-align: center; width: 100% }

	#main-menu-toggle { display: inline-block; text-align: center }

	.order-button { top: 160px; padding: 20px 10px }
	.order-button img { width: 75% }

	.footer-contacts { width: 75%; }

	h1 { font-size: 28pt; }
	h2 { font-size: 26pt; }
	h3 { font-size: 22pt; }
	h4 { font-size: 18pt; }
	h5 { font-size: 16pt; }
	h6 { font-size: 14pt; }

}

@media (max-width: 767px) {
	.header-contacts > .tabled > div { display: block; margin: 20px 0 }
	/*.footer-contacts { width: 75%; }*/

}

@media (max-width: 600px) {
	.footer-contacts { width: auto; top: 50px }
}

@media (max-width: 500px) {
}
