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;
}





