@import url('https://fonts.googleapis.com/css?family=Merriweather:400,400i,700,700i,900,900i&display=swap&subset=cyrillic');

@font-face {
	font-family: 'Lato';
	src: url('../font/Lato-Regular.ttf')  format('truetype'),            
	  font-weight: normal; 
	  font-style: normal; 
}
@font-face {
	font-family: 'Heuristica';
	src: url('../font/Heuristica.otf')  format('opentype'),          
}
*{
	margin: 0;
	padding: 0;
}
html{
	scroll-behavior: smooth;
}
body{
	font-family: 'Lato', sans-serif;
	min-width: 320px;
	background: #F8F5ED;
}
ul{
	padding-left: 15px;
}
input[type="text"]{
	height: 58px;
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
	padding-left: 30px;
	border: none;
	outline: none;
}
button[type="submit"]{
	background: #BFA34B;
	border-radius: 4px;
	height: 60px;
	color: #FFFFFF;
	font-size: 18px;
	border: none;
	outline: none;
	cursor: pointer;
	transition-duration: .2s;
}
button[type="submit"]:hover{
	background: #9e8842;
}
.button {
	background: #BFA34B;
        border-radius: 4px;
        color: #FFFFFF;
        font-size: 18px;
        border: none;
        outline: none;
        cursor: pointer;
        transition-duration: .2s;
        display: inline-block;
        padding: 20px 30px;
        text-decoration: none;
}
.button:hover{
	background: #9e8842;
}
textarea{
	font-family: 'Lato', sans-serif;
	height: 150px;
	width: calc(100% - 30px);
	border: none;
	border-radius: 4px;
	margin: 20px 0;
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	padding: 20px 0 0 30px;
}
h1{
	font-family: 'Merriweather', serif;
	font-style: italic;
	font-weight: 900;
	font-size: 52px;
	line-height: 140%;
	color: #fff;
	margin-bottom: 90px;
	max-width: 630px;
}
h2{
	font-family: Merriweather;
	font-style: normal;
	font-weight: 900;
	font-size: 32px;
	line-height: 150%;
	/* or 48px */
	text-align: center;
	color: #37372E;
}
h2:after{
	content: '';
	display: block;
	background-image: url('../img/ico-h2.svg');
	width: 52px;
	height: 22px;
	margin: 5px auto 40px auto;
}
h3{
	font-family: Merriweather;
	font-style: normal;
	font-weight: 900;
	font-size: 32px;
	line-height: 150%;
	/* or 48px */
	color: #37372E;
	margin-bottom: 40px;
}
h4{
	font-size: 18px;
	line-height: 150%;
	/* identical to box height, or 27px */
	text-align: center;
	margin-bottom: 15px;
	font-weight: 500;
}
/*main*/
#main{
	background: url('../img/bg-main.jpg');
	background-size: cover;
	background-position: center;
	height: 860px;
}
#main .container{
	max-width: 1170px;
	padding: 0 15px;
	margin: 0 auto;
}
#main input[type="text"]{
	width: 270px;
	margin-right: 30px;
}
#main button[type="submit"]{
	width: 270px;
}
#main p{
	font-size: 18px;
	line-height: 36px;
	color: #FFFFFF;
	margin-bottom: 15px;
}
header{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 150px;
	padding-top: 30px;
}
header .menu a{
	font-size: 16px;
	line-height: 19px;
	color: #FFFFFF;
	text-decoration: none;
	margin: 0 15px;
}
header .menu a:hover{
	text-decoration: underline;
}
header .contact-tell, header .contact-map{
	display: flex;
	align-items: center;
}
header .contact-tell img, header .contact-map img{
	padding: 10px 20px;
	border-right: 1px solid #BBBBBB;
}
header .contact-tell a, header .contact-map span{
	display: block;
	font-size: 16px;
	line-height: 150%;
	text-decoration: none;
	color: #fff;
	margin-left: 20px;
	line-height: 150%;
}
/*advantages*/
#advantages{
	/*background: #F8F5ED;*/
}
#advantages .container{
	background: #F8F5ED;
	max-width: 1170px;
	padding: 100px 15px 120px 15px;
	margin: 0 auto;
	margin-top: -70px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

#advantages .collage img{
	margin: 0 30px;
}
#advantages .advantages-text{
	max-width: 440px;
	margin: 0 30px;
}
#advantages p{
	font-size: 16px;
	line-height: 150%;
	/* or 24px */
	color: #595947;
	margin-bottom: 12px;
}
#advantages h3{
	margin-bottom: 30px;
}
/*services*/
#services{
	background: #F8F5ED;
}
#services .container{
	max-width: 1230px;
	padding: 0 15px 110px 15px;
	margin: 0 auto;
}
.services-items{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
}
#services .services-items .item{
	height: 240px;
	width: 30%;
	margin: 15px;
	position: relative;
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
#services .services-items .item:nth-child(1){
	background-image: url('../img/ritual-agent.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(2){
	background-image: url('../img/organisation.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(3){
	background-image: url('../img/ritkrem.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(4){
	background-image: url('../img/transport.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(5){
	background-image: url('../img/docs.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(6){
	background-image: url('../img/rent.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(7){
	background-image: url('../img/music.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(8){
	background-image: url('../img/perenos.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(9){
	background-image: url('../img/obryad.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(10){
	background-image: url('../img/fotoportret.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item:nth-child(11){
	background-image: url('../img/eat.jpg');
	background-size: cover;
	background-position: center;
}
/**/
#services .container:nth-child(2) .services-items .item:nth-child(1){
	background-image: url('../img/truny.jpg');
	background-size: cover;
	background-position: center;
}
#services .container:nth-child(2) .services-items .item:nth-child(2){
	background-image: url('../img/kresty.jpg');
	background-size: cover;
	background-position: center;
}
#services .container:nth-child(2) .services-items .item:nth-child(3){
	background-image: url('../img/vinky.jpg');
	background-size: cover;
	background-position: center;
}
#services .container:nth-child(2) .services-items .item:nth-child(4){
	background-image: url('../img/atributika.jpg');
	background-size: cover;
	background-position: center;
}
#services .services-items .item .substrate{
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	bottom: 0;
	width: 100%;
	height: 60px;
	background: rgba(27, 36, 44, 0.8);
	font-size: 18px;
	line-height: 150%;
	/* or 27px */
	color: #FFFFFF;
	font-weight: 500;
	text-align: center;
}
#services .services-items .item .substrate-hover{
	position: absolute;
	bottom: 0;
	width: calc(100% - 50px);
	background: rgba(191, 163, 75, 0.9);
	padding: 25px;
	color: #fff;
	font-size: 14px;
	line-height: 150%;
	font-weight: 500;
	z-index: 2;
}
#services .slide-enter-active {
   -moz-transition-duration: 0.3s;
   -webkit-transition-duration: 0.3s;
   -o-transition-duration: 0.3s;
   transition-duration: 0.3s;
   -moz-transition-timing-function: ease-in;
   -webkit-transition-timing-function: ease-in;
   -o-transition-timing-function: ease-in;
   transition-timing-function: ease-in;
}

#services .slide-leave-active {
   -moz-transition-duration: 0.3s;
   -webkit-transition-duration: 0.3s;
   -o-transition-duration: 0.3s;
   transition-duration: 0.3s;
   -moz-transition-timing-function: ease-out;
   -webkit-transition-timing-function: ease-out;
   -o-transition-timing-function: ease-out;
   transition-timing-function: ease-out;
}

#services .slide-enter-to, .slide-leave {
   max-height: 100px;
   overflow: hidden;
}

#services .slide-enter, .slide-leave-to {
   overflow: hidden;
   max-height: 0;
}
.substrate{
	transition-duration: .3s;
	opacity: 1;
}
.fix:hover > .substrate{
	opacity: .0;
}

/* Auto photos */

#autos .textBlock {
    text-align: center;
    width: 50%;
    margin: 20px auto 0 auto;
    position: relative;
}

/*#autos .textBlock:before {
    content: '*';
    position: absolute;
    left: -10px;
    top: -10px;
    background: #000;
    color: #fff;
    width: 27px;
    height: 26px;
    display: flex;
    justify-content: center;
    border-radius: 100%;
    font-size: 30px;
}*/

#autos .textBlock p {
    font-size: 18px;
    background: #bfa34b;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.autos-items {
	display: flex;
	justify-content: center;
}

.autos-items div {
	width: 30%;
	margin: 10px;
	transition: all 0.5s;
}

.autos-items div:hover {
	transform: scale(1.04);
	transition: all 0.5s;
}

.autos-items img {
	width: 100%;
	box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
}

/*reviews*/
#reviews{
	background: url('../img/bg-reviews.jpg');
	background-size: cover;
	background-position: center;
}
#reviews .container{
	max-width: 1170px;
	padding: 80px 15px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#reviews .reviews-text{
	font-family: Merriweather;
	font-style: italic;
	font-weight: bold;
	font-size: 32px;
	line-height: 150%;
	/* or 48px */
	color: #FFFFFF;
	min-width: 40%;
}
#reviews .reviews-items{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}
#reviews .reviews-items .item{
	max-width: 35%;
	min-height: 260px;
	margin: 0 0 20px 15px;
	background: rgba(0, 0, 0, 0.5);
	box-shadow: 0px 9px 15px rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	font-size: 16px;
	line-height: 150%;
	/* or 24px */
	color: rgba(255, 255, 255, 0.8);
	padding: 30px;
}
#reviews .reviews-items .item .date{
	font-style: italic;
	font-size: 14px;
	line-height: 150%;
	/* identical to box height, or 21px */
	color: rgba(255, 255, 255, 0.7);
	margin-top: 10px;
}
/*form*/
#form{
	background: #F8F5ED;
}
#form .container{
	max-width: 1170px;
	padding: 100px 15px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}
#form .contact-info span{
	font-family: Merriweather;
	font-style: normal;
	font-weight: 900;
	font-size: 17px;
	line-height: 150%;
	/* identical to box height, or 27px */
	color: #37372E;	
	margin-top: 25px;
}
#form .contact-info .item{
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}
#form .contact-info .item:nth-child(1){
	align-items: flex-start;
}
#form .contact-info .item p, #form .contact-info .item a{
	font-size: 16px;
	line-height: 150%;
	/* or 24px */
	color: #666666;
	text-decoration: none;
}
#form .contact-info .item a:hover{
	text-decoration: underline;
}
#form .contact-info .item img{
	border: 1px solid #BFA34B;
	padding: 12px;
	border-radius: 4px;
	margin-right: 30px;
}
#form button[type="submit"]{
	width: 270px;
}
#form .double-input{
	display: flex;
	justify-content: space-between;
}
#form .double-input input[type="text"]:nth-child(1){
	margin-right: 15px;
}
#form .double-input input[type="text"]:nth-child(2){
	margin-left: 15px;
}
#form input[type="text"]{
	width: 50%;
}
#form .feedback{
	width: 60%;
}
/*footer*/
footer{
	background: #1B242C;
	color: #fff
}
footer .container{
	max-width: 1170px;
	padding: 20px 15px;
	margin: 0 auto;	
	display: flex;
	align-items: center;
	justify-content: space-between;
}
footer span{
	font-size: 12px;
}
footer p{
	font-family: Heuristica;
	font-size: 17px;
	line-height: 140%;
}
footer p b{
	color: #BFA34B;
}
footer .footer-logo{
	display: flex;align-items: center;
	justify-content: space-between;
}
footer .footer-logo img{
	margin-right: 20px;
}
footer .footer-logo img{
	max-width: 38px;
	width: 100%;
}
/*animation*/
	.fade-enter-active, .fade-leave-active {
	    transition: all .3s ease;
    	height: 365px;
    	background-color: #eee;
    	overflow: hidden;
	}
	.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
		height: 0;
	    opacity: 0;
	}
/*sm-menu*/
	#sm-menu{
		display: none;
		position: relative;
		z-index: 999;
	}
	#sm-menu .sm-button-menu{
		background: url('../img/sm-menu.svg');
		background-size: 50%;
		background-position: center;
		background-repeat: no-repeat;
		background-color: #BFA34B;
		display: block;
		width: 30px;
		height: 30px;
		position: fixed;
		right: 15px;
		top: 50px;
		cursor: pointer;
		padding: 10px;
		border-radius: 999px;
		box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.1);
		transition-duration: .3s;
	}
	#sm-menu .sm-button-menu:hover{
		background-color: #9e8842;
	}
	#sm-menu .sm-menu-container{
		position: fixed;
		top: 110px;
		left: 15px;
		width: calc(100% - 30px)
	}
	#sm-menu ul{
		padding-left: 0px;
	}
	#sm-menu ul, #sm-menu li{
		width: 100%;
		list-style: none;
	}
	#sm-menu .sm-menu-container ul a{
		font-weight: 400;
		font-size: 16px;
		text-align: center;
		background: rgba(17, 17, 17, 0.98);
		padding: 16px 0px;
		display: inline-block;
		color: #fff;
		text-decoration: none;
		border-bottom: 1px solid #FFFFFF30;
		width: 100%;
		transition-duration: .3s;
	}
	#sm-menu .sm-menu-container ul a:hover{
		background: rgba(37, 37, 37, 0.98);
	}
@media(max-width: 992px){
	#form button[type="submit"]{
		margin-bottom: 40px;
	}
	#advantages .container{
		margin-top: 0px;
	}
	h3, h2{
		font-size: 28px;
		margin-bottom: 30px;
	}
	#services .services-items .item{
		width: 29%;
	}
	#reviews .container{
		flex-direction: column;
	}
	#reviews .reviews-text{
		text-align: center;
		margin-bottom: 30px;
	}
	#reviews .reviews-items{
		justify-content: center;
	}
	#reviews .reviews-items .item{
		margin: 10px;
	}
	#advantages .collage img{
		max-width: 300px;
	}
	#services .services-items .item .substrate-hover{
		padding: 15px;
		width: calc(100% - 30px);
	}
	#form .container{
		flex-direction: column-reverse;
	}
	#form .feedback{
		width: 100%;
	}
	#services .services-items .item .substrate{
		font-size: 16px;
	}
	#advantages p{
		text-align: justify;
	}
	#advantages .advantages-text{
		max-width: 100%;
	}
	#sm-menu{
		display: block;
	}
	header .menu, header .contact-tell, header .contact-map img{
		display: none;
	}
	header{
		margin-bottom: 80px;
		justify-content: flex-start;
	}
	#main{
		height: 720px;
	}
	#autos .textBlock {
    	width: 80%;
	}
}
@media(max-width: 767px){
	#advantages h3{
		text-align: center;
	}
	header .contact-tell a, header .contact-map span{
		margin-left: 15px;
		font-size: 14px;
	}
	h3, h2{
		font-size: 18px;
		margin-bottom: 10px;
	}
	h2:after{
		margin-bottom: 0px;
	}
	#services .services-items .item{
		width: 100%;
		margin: 20px 0 0 0;
	}
	#advantages .collage img{
		display: none;
	}
	#reviews .reviews-text{
		font-size: 20px;
		margin-bottom: 20px;
	}
	#reviews .reviews-items .item{
		max-width: 100%;
		min-height: auto;
	}
	#form .double-input{
		flex-direction: column;
	}
	#form .double-input input[type="text"]:nth-child(2){
		margin-left: 0;
	}
	#form .double-input input[type="text"]:nth-child(1){
		margin-bottom: 20px;
	}
	#form input[type="text"]{
		width: calc(100% - 20px);
		padding-left: 20px;
	}
	textarea{
		padding-left: 20px;
		width: calc(100% - 20px);
	}
	button[type="submit"]{
		width: 100% !important;
	}
	#services .container{
		padding-bottom: 50px;
	}
	#form .container{
		padding: 50px 15px 50px 15px;
	}
	#advantages .container{
		padding: 50px 15px 60px 15px;
	}
	h1{
		font-size: 28px;
		margin-bottom: 40px;
	}
	footer .container{
		flex-direction: column;
	}
	footer span{
		margin-top: 10px;
	}
	#main{
		height: 620px;
	}
	#main input[type="text"]{
		width: calc(100% - 30px);
		margin-bottom: 20px;
		margin-right: 0px;
	}
	#main p{
		font-size: 15px;
		margin-bottom: 3px;
	}
	#advantages .advantages-text{
		margin: 0px;
	}

	#autos .textBlock {
    	width: 100%;
	}

	.autos-items {
    	flex-wrap: wrap;
	}

	.autos-items div {
    	width: 47%;
    	margin: 5px;
	}
}

@media(max-width: 767px){
	.autos-items div {
    	width: 100%;
    	margin: 0 0 5px 0;
	}
}