/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}


@font-face {
    font-family: 'bodoninovaregular';
    src: url('/static/fonts/bodoninovaregular-webfont.eot');
    src: url('/static/fonts/bodoninovaregular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/static/fonts/bodoninovaregular-webfont.woff') format('woff'),
         url('/static/fonts/bodoninovaregular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'proxima_nova_regular';
    src: url('/static/fonts/proxima_nova_regular-webfont.eot');
    src: url('/static/fonts/proxima_nova_regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('/static/fonts/proxima_nova_regular-webfont.woff') format('woff'),
         url('/static/fonts/proxima_nova_regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

/* sprites */

.arrow-left-white {
  background: url(../img/sprite.png) -259px -63px no-repeat;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.arrow-right-white {
  background: url(../img/sprite.png) -231px -78px no-repeat;
  display: inline-block;
  width: 20px;
  height: 14px;
}

.close-white {
  background: url(../img/sprite.png) -252px -78px no-repeat;
  display: inline-block;
  width: 15px;
  height: 14px;
}

.logo-main {
  background: url(../img/sprite.png) 0px 0px no-repeat;
  display: inline-block;
  width: 230px;
  height: 186px;
}

.logo-small {
  background: url(../img/sprite.png) -231px 0px no-repeat;
  display: inline-block;
  width: 63px;
  height: 62px;
}

.scroll-down-black {
  background: url(../img/sprite.png) -231px -63px no-repeat;
  display: inline-block;
  width: 27px;
  height: 15px;
}


.menu-mobile {
  background: url(../img/sprite.png) -231px -99px no-repeat;
  display: inline-block;
  width: 30px;
  height: 21px;
}
html, body, #main-container{
    height: 100%;
}

body.noscroll{
    overflow: hidden;
}

img{
    -ms-interpolation-mode: bicubic;
}

span.nobr{
    white-space: nowrap;
}

a{
    color: #fff;
}

a.local{
    border-bottom: 1px dashed;
    text-decoration: none;
}

i{
    font-style: italic;
}

span.dense{
    letter-spacing: 1px;
}

h1{
    font: normal normal 310%/160% 'bodoninovaregular', "PT Serif", "Times New Roman", Georgia, serif;
    margin-bottom: .3em;
    text-transform: uppercase;
    letter-spacing: 5px;
}

h2{
    font: italic normal 125%/160% 'bodoninovaregular', "PT Serif", "Times New Roman", Georgia, serif;
    margin-bottom: 1em;
    text-transform: uppercase;
}


#main-menu{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #322d28;
    color: #fff;
    box-shadow: 0 1px 1px #322d28;
    z-index: 2;
    overflow: hidden;
    font-size: 120%;
}

.fixed#main-menu{
    position: fixed;
    top: 0;
}

#main-menu .logo a{
    display: inline-block;
    width: 280px;
    height: 65px;
    background: url(../img/logo-head.png) no-repeat 0 0;
}

#main-menu a{
    text-decoration: none;
}

#main-menu .menu-mobile{
    display: none;
}

#main-menu .to-index{
    display: none;
}

#main-menu .logo{
    margin: 5px 0 5px 20px;
    overflow: hidden;
    max-width: 280px;
}

#main-menu .logo .logo-small{
    float: left;
}

#main-menu .logo .name{
    font: normal normal 180%/100% 'bodoninovaregular', "PT Serif", "Times New Roman", Georgia, serif;
    letter-spacing: 1px;
    padding: 9px 0 0 70px;
    display: block;
}

#main-menu .logo small{
    font-style: italic;
    padding: 4px 0 0 70px;
    display: block
}

#main-menu menu{
    float: right;
    margin-top: 19px;
    margin-right: 10px;
    background: none;
}

#main-menu menu li{
    display: inline-block;
    margin: 0 15px;
    font-style: italic;
}

#main-menu menu a{
    display: block;
    padding: 10px 0 5px;
}

#main-menu menu a.active,
#main-menu menu a:hover{
    border-bottom: 1px solid;
}


.page{
    min-height: 100%;
    padding: 1px 0;
    position: relative;
}

body{
    font: normal normal 80%/140% "PT Serif", 'bodoninovaregular', "Times New Roman", Georgia, serif;
}

#background{
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url(../img/bg.jpg) no-repeat 50% 50%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}

#main-logo{
    position: absolute;
    left: 50%;
    top: 40%;
    margin: -166px 0 0 -139px;
    background: #fff;
    padding: 10px;
}

#main-logo > div{
    border: 1px solid #999694;
    padding: 30px 15px;
}

#index p{
    position: absolute;
    text-align: center;
    color: #fff;
    left: 50%;
    font-size: 130%;
    top: 62%;
    text-transform: uppercase;
    line-height: 150%;
    font-style: italic;
    margin-left: -14.5em;
    letter-spacing: 2px;
}

#index .explore{
    position: absolute;
    left: 50%;
    bottom: 10%;
    margin-left: -18px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    padding: 14px 7px 7px;
}

#index .explore:hover{
    background: #76716c;
}

#index ~ .page{
    padding-top: 72px;
}

.page .container{
    width: 960px;
    margin: 10% auto; 
}

#about{
    background: #473d36 url(../img/roman.jpg) no-repeat 100% 200px;
    color: #fff;
}

#about h1{
    line-height: 130%;
}

#about h2{
    font-weight: normal;
    width: 50%;
    margin-bottom: 2em;
}

#about p{
    width: 50%;
    font: normal normal 120%/160% "PT Serif", "Times New Roman", serif; 
    margin-bottom: 1em;
}

#about a.btn{
    background: #fff;
    color: #473d36;
    text-decoration: none;
    padding: 6px 26px;
    letter-spacing: 2px;
    font-style: italic;
    display: inline-block;
}

#gallery{
    background: #fff;
    color: #322c27;
}

#gallery .container{
    width: 980px;
    margin: 50px auto;
}

#gallery h1{
    text-align: center;
    margin-bottom: 1em;
}

#gallery .galleries{
  	display: flex;
  	justify-content: flex-start;
  	flex-flow: row wrap;
}

#gallery .galleries li {
    width: 30%;
    margin-bottom: 5%;
    position: relative;
    margin-right: 5%;
}
#gallery .galleries li:before {
	content: "";
	
	display: block;
	padding-top: 75%;
}
#gallery .galleries li a {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
#gallery .galleries li:nth-child(3n) {
	margin-right: 0;
}

#gallery .galleries li a img{
    display: block;
    width: 100%;
    height: 100%;
    
    object-fit: cover;
    object-position: center;
}

#gallery .galleries li a span{
    display: block;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;

    background: #000;
    background: rgba(0,0,0,.4);
    font: normal normal 250%/120% 'bodoninovaregular', "PT Serif", "Times New Roman", Georgia, serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    padding: 25% 10% 0;
    -webkit-transition: opacity .3s linear;
    -moz-transition: opacity .3s linear;
    -o-transition: opacity .3s linear;
    -ms-transition: opacity .3s linear;
    transition: opacity .3s linear;
}
#gallery .galleries li a span ins {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 50%;
	display: block;
	text-decoration: none;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
}

#gallery .galleries li a:hover span{
    opacity: 1;
}

#gallery p{
    text-align: center;
}

#gallery a.btn{
    font: normal normal 120%/160% "PT Serif", Tahoma, Arial, sans-serif;
    background: #473d36;
    color: #fff;
    text-decoration: none;
    padding: 6px 26px;
    letter-spacing: 2px;
    font-style: italic;
    display: inline-block;
}


#gallery-fullscreen{
    background: #fff;
    color: #322c27;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    display: none;
}

#gallery-fullscreen .header{
    height: 70px;
    border-bottom: 1px solid #322c27;
}

#gallery-fullscreen .gallery-wrapper{
    padding: 20px 20px 0 20px;
    height: 632px;
    position: relative;
    overflow: hidden;
    -webkit-transition: padding .3s linear;
    -moz-transition: padding .3s linear;
    -o-transition: padding .3s linear;
    -ms-transition: padding .3s linear;
    transition: padding .3s linear;
}

#gallery-fullscreen .gallery-wrapper .controls{
    overflow: hidden;
    position: absolute;
    height: 100%;
    z-index: 1;
    left: 0;
    width: 0;
    -webkit-transition: width .3s linear;
    -moz-transition: width .3s linear;
    -o-transition: width .3s linear;
    -ms-transition: width .3s linear;
    transition: width .3s linear;
}

#gallery-fullscreen .gallery-wrapper.info{
    padding-left: 420px;
}

#gallery-fullscreen .gallery-wrapper.info .controls{
    width: 420px;
    max-width: 100%;
}

#gallery-fullscreen .gallery-wrapper .controls .description{
    position: relative;
    background: #fff;
    height: 100%;
    width: 420px;
    text-align: center;
    overflow: auto;
}

#gallery-fullscreen .gallery-wrapper .controls .description .inset{
    padding: 20px 40px 40px 20px;
}

#gallery-fullscreen .gallery-wrapper .controls .description .vignette{
    width: 50px;
    height: 1px;
    display: inline-block;
    background: #322d28;
}

#gallery-fullscreen .gallery-wrapper .controls .description p{
    padding-bottom: 40px;
}

#gallery-fullscreen .gallery-wrapper .controls .description h1{
    margin: 15px 0 0;
    line-height: 100%;
}

#gallery-fullscreen .gallery-wrapper .controls .description p{
    margin-top: 3em;
    font: normal normal 110%/160% "proxima_nova_regular", "PT Sans", Tahoma, Arial, sans-serif;    
}

#gallery-fullscreen .gallery-wrapper .button{
    display: inline-block;
    background: #322d28;
    border-radius: 50%;
    width: 40px;
    height: 28px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding-top: 12px;
    z-index: 1;
    position: absolute;
    bottom: 20px;
}

#gallery-fullscreen .gallery-wrapper .button:hover{
    background: #76716c;
}

#gallery-fullscreen .gallery-wrapper .info{
    left: 40px;
}

#gallery-fullscreen .gallery-wrapper .counter{
    background: #322d28 !important;
    right: 70px;
}

#gallery-fullscreen .gallery-wrapper .left{
    right: 120px;
}

#gallery-fullscreen .gallery-wrapper .right{
    right: 20px;
}

#gallery-fullscreen .gallery-wrapper .close{
    top: 40px;
    bottom: auto;
    right: 20px;
    z-index: 10;
}

#gallery-fullscreen .loading::after{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff url(../img/loading.gif) no-repeat 50% 50%;
    opacity: .7;
    z-index: 5;
}


#gallery-fullscreen .gallery-wrapper .gallery-slider{
    height: 100%;
    position: absolute;
    width: 10000em;
}

#gallery-fullscreen .gallery-wrapper .gallery-slider li{
    display: inline-block;
}

#gallery-fullscreen .gallery-wrapper .gallery-slider img{
    margin-right: 20px;
    max-width:100%; 
    max-height:100%;
    display: inline-block;
    background: #322c27;
}


#service{
    background: #dbd8d3;
    color: #322c27;
}

#service a.local{
    color: #322c27;
    border-bottom: 1px dotted;
}

#service .container{
    width: 980px;
    margin: 1% auto;
    overflow: hidden;
}

#service h1{
    text-align: center;
    margin-bottom: 1em;
}

#service h2{
    margin: 3em 0 1em;
    max-width: 30em;
}

#service p{
    font: normal normal 120%/160% "PT Serif", "bodoninovaregular", "Times New Roman", Georgia, serif;
    margin: 0 0 1em 8em;
}

#service ul{
    margin: 2em 0;
}

#service li{
    font: normal normal 120%/160% "PT Serif", "bodoninovaregular", "Times New Roman", Georgia, serif;
    margin: 1em 0 1em 8em;
}

#service li::before{
    content: "—";
    margin-left: -1.4em;
    position: absolute;
}

#service .container > div[id]{
    max-width: 800px;
}

#service a.btn{
    font: normal normal 120%/160% "PT Serif", Tahoma, Arial, sans-serif;
    background: #473d36;
    color: #fff;
    text-decoration: none;
    padding: 6px 26px;
    letter-spacing: 2px;
    font-style: italic;
    display: inline-block;
}

#service .container .column{
    width: 30%;
    float: left;
    text-align: center;
}

#service .container .middle{
    margin: 0 5%;
}

#partners{
    background: #fff;
    color: #322c27;
}

#partners .container{
    margin-top: 10px;
    overflow: hidden;
}

#partners .column{
    width: 50%;
    float: left;
}

#partners .container{
    margin: 7% auto;
    width: 980px;
}

#partners .container h1{
    text-align: center;
    margin-top: 0;
    margin-bottom: 3em;
}

#partners .container ul.logo{
    margin: -20px 0 0;
    padding: 0;
    overflow: hidden;
}

#partners .container ul.logo li{
    display: inline-block;
    margin: 0;
    padding: 0;
    opacity: 0.7;
    line-height: 140px;
    width: 50%;
    float: left;
}

#partners .container ul.logo li img{
    vertical-align: middle;
}

#partners h2{
    margin-left: 2em;
    font: italic normal  120%/160% "PT Serif", "bodoninovaregular", "Times New Roman", Georgia, serif;
    letter-spacing: 2px;
}

#partners p{
    margin-left: 2em;
    font: normal normal  120%/160% "PT Serif", "bodoninovaregular", "Times New Roman", Georgia, serif;
}

#partners ul{
    margin: 1em 0;
}

#partners li{
    font: normal normal  120%/160% "PT Serif", "bodoninovaregular", "Times New Roman", Georgia, serif;
    margin: .3em 0 .3em 2em;
}

#partners li::before{
    content: "—";
    margin-left: -1.4em;
    position: absolute;
}

#partners ul.logo li::before{
    display: none;
}


#contacts{
    background: #dbd8d3;
    color: #322c27;
}

#contacts .container{
    margin: 4% auto 1%;
    overflow: hidden;
}

#contacts .container h1{
    text-align: center;
    margin-bottom: 1.4em;
}

#contacts .column{
    width: 50%;
    float: left;
}

#contacts p{
    font: normal normal 110%/160% "PT Serif", "Times New Roman", serif;    
}

#contacts dl{
    overflow: hidden;
    margin-top: 1em;
    margin-bottom: 3em;
}

#contacts dl dt{
    font-style: italic;
    display: block;
    padding-top: 3px;
    padding-bottom: 6px;
}

#contacts dl dd{
    display: block;
    margin-bottom: 1.5em;
    font-size: 150%;
    line-height: 130%;
}

#contacts dl dd a{
    color: #322c27;
}

#contacts form .row{
    margin: 1em 0;
}

#contacts iframe{
    position: absolute;
    top: -1000em;
    width: 1px;
    height: 1px;
}

#contacts input, #contacts textarea{
    font: normal normal 100% "proxima_nova_regular", "PT Sans", Tahoma, Arial, sans-serif;    
    background: #fff;
    border: 1px solid #86827d;
    padding: 8px 14px;
    width: 380px;
    outline: none;
} 

#contacts input.error,
#contacts textarea.error{
    border-color: #900;
    background: #ffeeee;
}


#contacts h2{
   letter-spacing: 2px; 
}

#contacts button{
    font-family: inherit;
    background: #322d28;
    color: #fff;
    font-size: 110%;
    font-style: italic;
    text-transform: uppercase;
    border: none;
    padding: 8px 24px;
    letter-spacing: 2px;
}

#contacts button:hover{
    background: #76716c;
}


#copyright{
    background: #dbd8d3;
    color: #322c27;
    text-align: center;
    padding: 20px;
    font-style: italic;
}



/*** Addons ***/
.page {
	padding-top: 0;
	padding-bottom: 0;
}
.header-contacts {
	float: right;
	margin: 20px 20px 0 0;
}
.header-social {
	margin-right: 20px;
	vertical-align: middle;
	display: inline-block;
	}
	.header-social-item {
		margin-right: 12px;
		box-sizing: border-box;
		display: inline-block;
		line-height: 28px;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		border: 1px solid #FFF;
		text-align: center;
		font-size: 16px;
	}
	.header-social-item:last-child {
		margin-right: 0;
	}
	.header-social-item:hover {
		opacity: 0.6;
	}
.header-phone {
	vertical-align: middle;
	display: inline-block;
	
	text-align: center;
	}
	.header-phone a {
		display: block;
		margin-bottom: 8px;
		
		font-size: 16px;
		line-height: 1;
	}
	.header-phone div {
		font-size: 14px;
	}
#main-menu .logo {
	float: left;
}
#main-menu menu {
	float: none;
	
	text-align: center;
}
#index p {
	top: 60%;
}
#index .explore {
	bottom: 5%;
}
.slider {
	padding-top: 10px;
}
.slider-item {
	width: 100%;
	height: 100%;
}
.slider-item-name {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-80%);
	
	width: 100%;
	
	font-family: "bodoninovaregular";
	font-size: 64px;
	color: #FFF;
	line-height: 70px;
	letter-spacing: 5px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
}
.slider-item-name:hover {
	opacity: 0.8;
}
.slider .fotorama__nav-wrap {
	position: absolute;
	z-index: 50;
	bottom: 20%;
	left: 0;
	
	width: 100%;
}
.slider .fotorama__nav--dots .fotorama__nav__frame {
	margin: 0 10px;
	width: 10px;
	height: 10px;
}
.slider .fotorama__dot,
.slider .fotorama__nav__frame.fotorama__active .fotorama__dot {
	position: static;
	width: 10px;
	height: 10px;
	
	border-radius: 50%;
	border: none;
	background-color: #FFF;
}
.slider .fotorama__nav__frame.fotorama__active .fotorama__dot {
	background-color: #322d28;
}
#about {
	padding-bottom: 10px;
	background: url("../../img/roman2.jpg") no-repeat center 70px fixed;
	background-size: cover;
}
#contacts .container {
	margin-bottom: 0;
}
#gallery .container {
	width: 80%;
	max-width: 1600px;
}
/*** //Addons ***/



.link {
	color: rgb(50, 44, 39);
	text-decoration: none;
}
.link--pdf {
	display: inline-block;
	padding-left: 25px;
	
	background: url("../img/download.svg") no-repeat left center;
	background-size: 18px 14px;
}
.link--pdf span {
	border-bottom: 1px solid rgb(50, 44, 39);
}
.link--pdf:hover span {
	border-bottom-color: transparent;
}


#how {
	padding-top: 0 !important;
}
#how p {
	font-size: 120%;
	line-height: 160%;
}
#how h1 {
	text-align: center;
}
#how h2.centered {
	margin-top: 80px;
	margin-bottom: 65px;
	
	text-align: center;
}
#how .features {
	display: flex;
	align-items: top;
	justify-content: space-between;
	flex-flow: row wrap;
}
#how .feature-item {
	width: 25%;
	
	text-align: center;
}
#how .feature-item span {
	margin-bottom: 10px;
	
	display: inline-block;
	padding: 25px;
	
	background-color: #DAD8D2;
	border-radius: 50%;
}

#how .feature-item span img {
	margin: 0 auto;
	
	display: block;
	max-width: 100%;
	height: auto;
}

#how ol {
	column-count: 2;
	column-gap: 60px;
	
	counter-reset: howCounter;
}
#how ol li {
	position: relative;
	margin-bottom: 70px;
	
	padding-left: 90px;
	min-height: 50px;
	
	-webkit-column-break-inside:avoid;
	-moz-column-break-inside:avoid;
	-moz-page-break-inside:avoid;
	page-break-inside:avoid;
	break-inside:avoid-column;
	
	counter-increment: howCounter;
}
#how ol li:before {
	content: counter(howCounter);
	
	position: absolute;
	left: 0;
	top: 0;
	
	display: block;
	width: 50px;
	height: 50px;
	
	background-color: #DAD8D2;
	border-radius: 50%;
	
	font-size: 24px;
	line-height: 1;
	line-height: 50px;
	text-align: center;
}





@media screen and (max-width: 1740px) {
	#gallery .galleries li a span {
		font-size: 180%;
	}
}
@media screen and (max-width: 1540px) {
	#gallery .galleries li a span {
		font-size: 140%;
	}
}
@media screen and (max-width: 1200px) {
	#gallery .galleries li,
	#gallery .galleries li:nth-child(3n) {
		width: 48%;
		margin-right: 4%;
	}
	#gallery .galleries li:nth-child(2n) {
		margin-right: 0;
	}
	
}

@media (min-width: 220px) and (max-width: 1050px) { 
    #index{
        min-height: 100% !important;
    }

    /*#about{
        background-size: 75%;
    }*/

    .page .container{
        width: auto !important;
        margin: 10% 40px !important; 
    }

    .container .column{
        float: none !important;
        width: auto !important;
        margin-bottom: 2em !important;
    }

    #partners ul.logo li{
        text-align: center;
        min-width: 40%;
    }

    #contacts p{
        margin-top: -3em;
    }

    form{
        margin-top: 4em;
        text-align: center;
    }

    #contacts p{
        text-align: center;
        margin: 0 auto;
    }

    #contacts dl{
        margin-bottom: 2em;
    }

    #contacts dt, #contacts dd{
        float: none !important;
        display: block;
        text-align: center;
        margin-bottom: .4em;
    }

    #contacts dd{
        margin: -.6em 0 1em !important;
    }

 

    #main-menu{
        font-size: 100%;
    }
    
    
    #main-menu, #main-container{
        overflow: visible;
        -webkit-transition: -webkit-transform .2s linear;
        -moz-transition: -moz-transform .2s linear;
        -o-transition: -o-transform .2s linear;
        -ms-transition: -ms-transform .2s linear;
        transition: transform .2s linear;
    }

    #main-menu menu{
        position: fixed;
        top: -20px;
        bottom: -2000px;
        right: -240px;
        width: 230px;
        z-index: 2;
        padding-top: 1px;
        background: #fff;
    }

    .visible-menu #main-menu{
        -webkit-transform: translateX(-230px);
        -moz-transform: translateX(-230px);
        -o-transform: translateX(-230px);
        -ms-transform: translateX(-230px);
        transform: translateX(-230px);
    }

    .visible-menu #main-container{
        -webkit-transform: translateX(-230px);
        -moz-transform: translateX(-230px);
        -o-transform: translateX(-230px);
        -ms-transform: translateX(-230px);
        transform: translateX(-230px);
    }

    #main-menu menu li{
        float: none;
        display: block;
        text-align: center;
    }

    #main-menu menu li a{
        display: inline-block;
        color: #473d36;
        border-bottom: 1px solid #fff;
    }

    #main-menu .menu-mobile{
        display: inline-block;
        margin: 26px 20px 0 0;
        float: right;
    }

    #main-menu .to-index{
        display: block;
    }

    #main-menu .to-index a{
        display: block;
        height: 200px;
        background: #fff url(../img/logo-small.png) no-repeat 50% 50%;
        border: none !important;
    }
}

@media (min-width: 220px) and (max-width: 767px) { 
	.slider-item-name {
		font-size: 40px;
		line-height: 50px;
	}
	#gallery .galleries li a span {
		font-size: 135%;
	}
	
   /* #about{
        background-size: 75%;
        background-position: 100% 100% !important;
   }*/

    #index p{
        line-height: 120%;
        font-size: 110%;
    }

    .page .container{
        margin: 0 40px !important;
    }

    h1{
        margin: 0 0 1em 0 !important;
    }

  /*  #about{
        background-size: 75%;
  }*/

    #about h1{
        margin-top: .6em !important;
    }

    #about h2{
        width: auto;
    }



    #service li, 
    #service p {
        margin-left: 3em;
    }
    
    
   #gallery .gallery-wrapper{
        padding: 20px 0;
    }

    #gallery .gallery-wrapper .info{
        left: 20px;
    }

    #gallery-fullscreen .gallery-wrapper{
        overflow: auto;
    }

    #gallery-fullscreen .loading::after{
        display: none;
    }

    #gallery-fullscreen .gallery-wrapper .controls,
    #gallery-fullscreen .gallery-wrapper.info .controls,
    #gallery-fullscreen .gallery-wrapper .gallery-slider,
    #gallery-fullscreen .gallery-wrapper .controls .description{
        overflow: visible;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    #gallery-fullscreen .gallery-wrapper .controls{
        padding-top: 30px;
    }

    #gallery-fullscreen .gallery-wrapper .gallery-slider img{
        vertical-align: bottom;
        margin-bottom: 20px;
        max-height: auto;
    }

    #gallery-fullscreen .gallery-wrapper .controls .description h1{
        margin: .8em 0 .4em !important;
        font-size: 180%;
    }

    #gallery-fullscreen .gallery-wrapper .button{
        display: none;
    }

    #gallery-fullscreen .gallery-wrapper .close.button{
        display: block;
        position: fixed;
        top: 20px;
    }

    #gallery-fullscreen .gallery-wrapper .controls .description .inset{
        padding: 0;
    }

    #gallery .galleries li{
	    margin-right: 0;
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
	#gallery .galleries li:nth-child(3n) {
		width: 100%;
		margin-right: 0;
	}
}

@media (min-width:480px) and (max-width: 599px) { 
    #about{
        background-size: 75% !important;
        background-position: 100% 100% !important;
    }

    #about h2{
        width: auto;
    }
}


@media (min-width: 220px) and (max-width: 599px) { 
	.slider-item-name {
		font-size: 26px;
		letter-spacing: 2px;
		line-height: 36px;
	}
	.header-contacts {
		display: none;
	}
	
	
    h1{
        margin: .6em 0 1em 0 !important;
        font-size: 270%;
    }

    .page .container{
        margin: 0 20px !important;
    }

    #main-logo, #main-menu .logo a{
        -webkit-transform: scale(0.75);
        -moz-transform: scale(0.75);
        -o-transform: scale(0.75);
        -ms-transform: scale(0.75);
        transform: scale(0.75);
        -webkit-transform-origin: 50% 50%;
        -moz-transform-origin: 50% 50%;
        -o-transform-origin: 50% 50%;
        -ms-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
    }
    #main-menu .logo p {
    	width: 240px;
    	display: inline-block;
    }

    #main-menu .logo a{
        -webkit-transform-origin: 0 50%;
        -moz-transform-origin: 0 50%;
        -o-transform-origin: 0 50%;
        -ms-transform-origin: 0 50%;
        transform-origin: 0 50%;
    }

    /*#about{
        background-size: 125%;
        background-position: -30% 100%;
        padding-bottom: 280px;
    }*/

    #about h1{
        text-align: center;
    }

    #about h2{
        width: auto;
    }

    #about p{
        width: auto;
    }

    #partners ul.logo li{
        display: block !important;
        float: none !important;
        width: auto !important;
        text-align: center;
    }

    #contacts input, #contacts textarea{
        width: 80% !important;
    }

}


@media (min-width: 220px) and (max-width: 480px) { 
    #index p{
        display: none;
    }

    #gallery .gallery-wrapper.info{
        padding-left: 320px;
    }

    #gallery .gallery-wrapper.info .controls{
        width: 320px;
        max-width: 100%;
    }

    #gallery .gallery-wrapper .controls .description{
        width: 280px;
    }

    #gallery .galleries li a span{
        font-size: 180%;
    }
}


@media (min-width: 220px) and (max-width: 800px) {
	#how h2.centered {
		margin: 40px 0 30px 0;
	}
	#how ol {
		column-count: 1;
	}
	#how ol li {
		margin-bottom: 40px;
		
		padding-left: 60px;
	}
	#how ol li:before {
		width: 40px;
		height: 40px;
		
		font-size: 20px;
		line-height: 40px;
	}
	
	#how .feature-item {
		margin-bottom: 40px;
		
		width: 100%;
	}
}