@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html{
	height: 100%;
	width: 100%;
	margin: 0;
	-webkit-overflow-scrolling:touch;
}
body{
	margin: 0;
	color: #000000;
	font-size: 14px;
	line-height: 1.2;
	font-family: "Playfair Display", serif;
	position: relative;
	width: 100%;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	min-height: 100%;
	min-width: 320px;
}
h1, h2, h3, h4, h5, h6{
	margin: 0 0 30px 0;
	font-weight: 700;
	color: #040404;
	line-height: 1.2;
}
p {
	font-weight: 400;
	font-size: 16px;
	color: #fff;
	line-height: normal;
	margin: 0 0 25px 0;
}
p a{
	text-decoration: underline;
	text-decoration-skip-ink: none;
	color: #fff;
}
img{
	display: block;
	max-width: 100%;
}
a {
	outline: none;
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
}
/*== buttons
---------------------------------*/
button{
	margin:0;
	padding:0;
	border:none;
	background:none;
	cursor:pointer;
	overflow:visible;
	width:auto;
	outline: none;
	box-shadow: none;
	font-family: inherit;
}
button:hover , button:focus , button:active{
	outline: none;
	text-decoration: none;
}
/*== inputs
---------------------------------*/
input{
	outline: none;
	border: none;
	font-family: inherit;
}
textarea{
	height: 80px;
	outline: none;
}
.primary-btn{
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #8e8e8e;
	height: 48px;
	border-radius: 4px;
	padding: 14px 19px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	color: #212121;
	transition: 0.3s;
}
.primary-btn:hover{
	border-color: #212121;
	background: #212121;
	color: #fff;
}
.input:not(:last-child){
	margin-bottom: 12px;
}
.input__text{
	font-family: "Playfair Display", serif;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	width: 100%;
	height: 42px;
	background: #fff;
	padding: 0 25px 0 11px;
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #212121;
}
.input__text::-webkit-input-placeholder{
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #838383;
}
.input__text:-moz-placeholder{
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #838383;
}
.input.error .input__text{
	border-color: #ff6464;
	background-image: url("../img/att.svg");
	background-position: right 10px top 3px;
	background-repeat: no-repeat;
}
.error__text{
	font-weight: 500;
	font-size: 14px;
	line-height: 0.98;
	color: #ff6464;
	text-align: left;
	margin-top: 3px;
}
textarea{
	height: 80px;
	outline: none;
	resize: none;
}
.b-textarea{
	font-family: "Playfair Display", serif;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	width: 100%;
	height: 133px;
	padding: 15px 11px 11px 11px;
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #212121;
}
.b-textarea::-webkit-input-placeholder{
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #838383;
}
.b-textarea:-moz-placeholder{
	font-weight: 500;
	font-size: 16px;
	line-height: 18px;
	text-transform: capitalize;
	color: #838383;
}

/* End Total css ====*/
*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.b-container{
	position: relative;
	height: 100vh;
	overflow: auto;
}
.blocks{
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}
.block{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: translateX(100%);
	will-change: transform;
	pointer-events: auto;
	overflow: auto;
	background: url("../img/bg1.jpg") center top no-repeat;
	background-size: cover;
	padding: 100px 0 60px 0;
	display: grid;
	align-items: center;
	min-height: 100vh;   /* чтобы занял всю высоту экрана */
}

/* активный экран — на месте */
.block.active {
	transform: translateX(0);
	z-index: 2;
}

@keyframes slideIn {
	0%   { transform: translateX(100%); }
	75%  { transform: translateX(-2%); }  /* чуть перелетает за центр */
	100% { transform: translateX(0); }    /* плавно возвращается */
}

@keyframes slideOut {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

.block.from-right {
	z-index: 3;
	pointer-events: none;
	animation: slideIn 1s ease-out forwards; /* плавнее */
}

.block.to-left {
	z-index: 1;
	pointer-events: none;
	animation: slideOut 0.8s ease-in forwards;
}


.block__wrap{

}
.logo{
	font-weight: 600;
	font-size: 43px;
	line-height: 0.98;
	text-transform: capitalize;
	color: #212121;
	position: relative;
	margin:0 auto 122px;
	width: 139px;
}
.logo span{
	max-width: 276px;
	position: absolute;
	top: 50%;
	left: calc(100% + 30px);
	transform: translateY(-50%);
}
.block__contacts{

}
.block__contacts p , .block__contacts a{
	font-weight: 500;
	font-size: 18px;
	line-height: 1.4;
	text-align: center;
	color: #212121;
}
.block__contacts a{
	display: block;
	text-decoration: none;
	transition: 0.3s;
}
.block__contacts a:hover{
	opacity: 0.7;
}
.block_1 .primary-btn{
	width: 182px;
	margin:98px auto 0;
}

.block_2{
	background: url("../img/bg2.jpg") center top no-repeat;
	background-size: cover;
	display: block;
}
.block_2 .logo{
	width: 70px;
	margin: 0 auto 70px;
}
.block__form{
	max-width: 362px;
	margin: 0 auto 0;
}
.block__container-title{
	font-weight: 500;
	font-size: 64px;
	line-height: 0.98;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-align: center;
	color: #212121;
	margin-bottom: 33px;
}
.block__form-text{
	font-weight: 500;
	font-size: 14px;
	line-height: 42px;
	text-align: center;
	color: #838383;
	margin-top: 12px;
}
.block__form-text a{
	text-decoration: underline;
	text-decoration-skip-ink: none;
	color: #212121;
}
.block__form-btn{
	width: 100%;
}
.block__form-text a:hover{
	text-decoration: none;
}


.block_3{
	background: url("../img/bg3.jpg") center top no-repeat;
	background-size: cover;
}
.block_3 .block__wrap{
	position: relative;
	z-index: 2;
}
.block_3 .logo{
	width: 204px;
	margin-bottom: 100px;
	transition: 0.3s;
}
.block_3 .logo span{
	opacity: 0;
	visibility: hidden;
}
.block_3 p{
	font-weight: 500;
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
	color: #212121;
}
.block_3 .block__contacts{
	margin-top: 203px;
}
.block_3 .primary-btn{
	opacity: 0;
	visibility: hidden;
	height: 0px;
	padding: 0;
	width: 182px;
	overflow: hidden;
}
.block__info{
	transition: 0.3s;
}



@media (max-width: 1009px) {
	.block{
		padding: 60px 0;
	}
	.block__container-title{
		font-size: 44px;
	}
	.block_1 .logo{
		margin-bottom: 50px;
		width: 110px;
	}
	.logo{
		font-size: 30px;
	}
	.logo span{
		left: calc(100% + 15px);
	}
	.block_1 .primary-btn{
		margin-top: 60px;
	}

	.block_2 .logo{
		margin-bottom: 40px;
	}

	.block_3 .logo{
		width: 110px;
		margin-bottom: 50px;
	}
	.block_3 .block__contacts{
		margin-top: 50px;
	}
}

@media (max-width: 767px) {
	.block{
		padding: 60px 15px;
	}
	.logo{
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 0 15px;
	}
	.logo span{
		position: static;
		transform: none;
	}
	.block__contacts p, .block__contacts a{
		font-size: 16px;
	}
	.block__container-title{
		font-size: 34px;
	}
	.block__form-text{
		line-height: 1.2;
	}
	.block__form-text a{
		display: block;
	}
	.block_3 .logo span{
		position: absolute;
	}
	.block_3 .block__wrap{
		overflow: hidden;
	}
}