/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* BASE STYLES */

:root {
	--primary-font: "FuturaBookC";
	--secondary-font: "FuturaDemiC";
	--background-image: url(../images/bg-1.jpg);
	--icon-shadow: 10px 10px 15px 0px;
}

@font-face {
	font-family: "FuturaBookC";
	src: url("../fonts/Futurabookc.otf") format("opentype");
}

@font-face {
	font-family: "FuturaDemiC";
	src: url("../fonts/Futurademic.ttf") format("truetype"), url("../fonts/Futurademic.woff") format("woff"),
		url("../fonts/Futurademic.woff2") format("woff2");
}

a,
a[data-fancybox="modal"] {
	cursor: pointer;
}

body {
	background-color: #e6e6ef;
	margin: 0;
	padding: 0;
	border: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
}

.background-wrap {
	position: relative;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	margin: 0 auto;
	height: 100vh;
	overflow: hidden;
}

.background-wrap>picture>img {
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: top center;
	object-position: top center;
	z-index: -2;
}

.content-wrap {
	position: absolute;
	z-index: 3;
}

.img-fluid {
	max-width: 100%;
	height: auto;
}

/* BASE STYLES - END */

/* FORM STYLES */

.fancybox__backdrop {
	background: rgba(54, 61, 80, 0.8);
}

.f-html {
	width: 510px;
	/* height: 710px; */
	border-radius: 40px;
	padding: 50px 40px !important;
}

.form-caption {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 40px;
}

.form-caption p,
.form-message p {
	font-family: var(--primary-font);
	font-weight: 400;
	font-size: 40px;
	line-height: 20px;
	vertical-align: middle;
	margin-bottom: 0;
}

.f-button svg {
	display: none;
}

.form-fields {
	display: flex;
	flex-direction: column;
}

.form-fields *::placeholder {
	color: #8395B0;
}

.form-fields .form-input {
	color: #8395B0;
	font-family: var(--primary-font);
	font-weight: 600;
	font-size: 18px;
	line-height: 28px;
	vertical-align: middle;
	border-radius: 35px;
	border: 2px solid #E6E6EF;
	margin-bottom: 20px;
	width: 430px;
	padding-left: 25px;
}

.form-fields textarea {
	padding: 25px 20px 0 0;
}

.form-fields .form-input:focus-visible,
.form-fields .form-input:focus {
	border: 2px solid #00C3BC !important;
	outline: none !important;
	/* чтобы убрать стандартную рамку */
	box-shadow: none !important;
	/* чтобы убрать glow Bootstrap */
}

.form-fields .form-input {
	width: 100%;
}

.form-fields .form-input::placeholder {
	text-transform: uppercase;
}

.form-fields input {
	height: 70px;
}

.form-fields textarea {
	resize: none;
	height: 200px;
}

.policy {
	font-family: var(--primary-font);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	margin: 20px 0 30px 0;
	display: flex;
	align-items: center;
}

.policy input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #00C3BC;
	border-radius: 4px;
	margin-right: 10px;
}

.policy input[type="checkbox"]:checked {
	background: #00C3BC;
}

.policy input[type="checkbox"]:checked::after {
	content: url(../images/checkbox-checked.png);
}

.policy a {
	font-weight: 600;
	color: #495562;
}

form p {
	font-weight: 600;
	font-size: 18px;
}

form .modal-btn,
.form-message .modal-btn {
	width: 270px;
	height: 60px;
	border-radius: 32px;
	border: 0;
}

form .modal-btn[disabled] {
	background: #E6E6EF;
}

form .modal-btn:not([disabled]),
.form-message .modal-btn:not([disabled]) {
	background: #00C3BC;
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
}

.form-message {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.form-message img {
	width: 100px;
	height: 100px;
}

.form-message p:nth-of-type(1) {
	font-size: 40px;
	margin-bottom: 60px;
}

.form-message p:nth-of-type(2) {
	font-size: 24px;
	margin: 20px 0 95px 0;
}

/* FORM STYLES - END */

header {
	padding: 30px 0 106px 0;
}

.menu-slider {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
	position: relative;
	left: 425px;
}

.menu {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.menu ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.menu ul li:nth-of-type(2) {
	margin: 10px 0;
}

.menu img {
	margin-right: 30px;
}

.menu li a {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	font-family: var(--primary-font);
	font-size: 26px;
	text-decoration: none;
	color: #495562;
	padding: 14.5px 0;
}

.menu li:hover {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, #ffffff 30.29%, #ffffff 59.62%, rgba(255, 255, 255, 0) 89.9%);
	background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), color-stop(30.29%, #ffffff), color-stop(59.62%, #ffffff), color-stop(89.9%, rgba(255, 255, 255, 0)));
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 30.29%, #ffffff 59.62%, rgba(255, 255, 255, 0) 89.9%);
}

.menu li:hover img {
	border-radius: 0 0 5px 0;
}

.menu li:nth-of-type(1):hover img {
	-webkit-box-shadow: var(--icon-shadow) #25c8ff4d;
	box-shadow: var(--icon-shadow) #25c8ff4d;
}

.menu li:nth-of-type(2):hover img {
	-webkit-box-shadow: var(--icon-shadow) #30df3c4d;
	box-shadow: var(--icon-shadow) #30df3c4d;
}

.menu li:nth-of-type(3):hover img {
	-webkit-box-shadow: var(--icon-shadow) #fcb0664d;
	box-shadow: var(--icon-shadow) #fcb0664d;
}

.menu-text {
	margin-top: 30px;
}

.menu-text p {
	font-family: var(--secondary-font);
	font-weight: 600;
	font-size: 30px;
	line-height: 40px;
	text-transform: uppercase;
	margin: -1px 0;
	/* чтобы не двоился текст */
}

.menu p span {
	color: #00c3bc;
}

.menu-text a {
	font-family: var(--primary-font);
	font-weight: 400;
	font-size: 26px;
	line-height: 40px;
	text-decoration: underline;
	-webkit-text-decoration-style: solid;
	text-decoration-style: solid;
	color: #495562;
}

.slider {
	background: url(../images/phone-1.png) no-repeat;
	max-width: 600px;
	height: 46rem;
	position: relative;
	bottom: 210px;
}

.example-swiper div.swiper-slide:not(.swiper-slide-active) {
	visibility: hidden;
	/* чтобы прятался неактивный слайд */
}

.swiper-controls {
	position: absolute;
	top: 47rem;
	left: 20%;
	width: 356px;
}

.swiper-button-next,
.swiper-button-prev {
	width: 36px !important;
	height: 36px !important;
}

.swiper-button-prev::after {
	content: url(../images/arrow-left.svg);
}

.swiper-button-prev {
	left: 5rem;
}

.swiper-button-next::after {
	content: url(../images/arrow-right.svg);
}

.swiper-button-next {
	right: 5rem;
}

.swiper-pagination {
	font-family: var(--primary-font);
	color: #858e9f;
	font-size: 26px;
	position: relative;
	left: 8rem !important;
	bottom: 0.2rem !important;
	height: 36px;
	width: 100px !important;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	position: fixed;
	width: 100%;
	bottom: 20px;
	right: 226px;
}

footer p {
	margin: 0;
	font-family: var(--secondary-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	color: #858e9f;
}

/* MEDIA QUERIES */

@media (min-width: 1921px) and (max-width: 2560px) {
	.background-wrap {
		width: 1920px;
	}
}

@media (max-width: 1439px) {
	/* 	* {
	outline: 1px solid red;
} */
	/* для отладки разметки и границ */

	.background-wrap {
		overflow-x: hidden;
	}

	header>picture>img {
		width: 486px;
	}
}

@media (min-width: 1440px) and (max-width: 2560px) {
	.mobile_only {
		display: none;
	}
}

@media (min-width: 1024px) and (max-width: 1439px) {
	.mobile_only {
		display: none;
	}

	.background-wrap>picture>img {
		height: 900px;
	}

	.content-wrap {
		width: 1024px;
		height: 900px;
	}

	header {
		padding: 10px 0 0px 10px;
	}

	.menu-slider {
		left: 81px;
		top: 105px;
	}

	.menu {
		position: relative;
		top: 24px;
		left: 52px;
	}

	.menu li a {
		font-size: 22px;
	}

	.menu-text {
		margin-top: 20px;
	}

	.menu-text p {
		font-size: 26px;
	}

	.menu-text a {
		font-size: 22px;
		position: relative;
		bottom: -1px;
		/* чтобы совпадало с макетом */
	}

	.slider {
		bottom: 135px;
		right: -56px;
		background-size: 440px;
		width: 440px;
		height: 550px;
	}

	.slider img {
		width: 440px;
	}

	.swiper-controls {
		top: 34rem;
		left: 10%;
	}

	footer {
		right: 310px;
	}
}

@media (min-width: 860px) and (max-width: 1023px) {
	.mobile_only {
		display: none;
	}

	.background-wrap>picture>img {
		position: relative;
		right: 2px;
		height: 1080px;
	}

	/* чтобы совпадало с фоном из макета */

	.content-wrap {
		margin: 0 auto;
	}

	header {
		padding: 10px 0 130px 5px;
	}

	header>picture>img {
		position: relative;
		right: 10px;
		width: 49%;
	}

	.menu-slider {
		left: 158px;
	}

	.menu {
		position: relative;
		top: -1px;
		right: 58px;
	}

	.menu li a {
		font-size: 22px;
	}

	.menu-text {
		margin-top: 21px;
	}

	/* чтоб не двоился текст */

	.menu-text p {
		font-size: 26px;
	}

	.menu-text a {
		font-size: 22px;
	}

	.slider {
		background-size: 440px;
		bottom: 160px;
		right: 56px;
	}

	.swiper-wrapper,
	.slider img {
		width: 440px;
	}

	.swiper-controls {
		top: 34rem;
		left: 12%;
	}
}

/* -- MOBILE VERSION -- */

@media (max-width: 859px) {

	.f-html {
		width: 364px;
	}

	.form-fields .form-input {
		width: 300px;
	}

	.background-wrap {
		overflow-y: visible;
	}

	.content-wrap {
		height: 1280px;
		width: 100vw;
	}

	header {
		width: 354px;
		margin: 0 auto;
		position: relative;
		right: 8rem;
	}

	/* выровнить согласно макету 859-640 */

	.menu-slider {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		position: initial;
	}

	.menu {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		position: relative;
		top: -22px;
		/* подгонял по макету */
	}

	.menu ul {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
	}

	.menu ul li:nth-of-type(2) {
		margin: 0 15px;
	}

	.menu img {
		margin: 0 40px 22px 0;
	}

	.menu li a {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
		font-size: 17px;
		padding: 17px 0 10px 10px;
	}

	.menu li:hover {
		background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #ffffff 19.71%, #ffffff 80.29%, rgba(255, 255, 255, 0) 100%);
		background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(19.71%, #ffffff), color-stop(80.29%, #ffffff), to(rgba(255, 255, 255, 0)));
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 19.71%, #ffffff 80.29%, rgba(255, 255, 255, 0) 100%);
	}

	.menu-text {
		margin-top: 20px;
		padding-left: 10px;
		position: relative;
		bottom: 8px;
	}

	.menu-text p {
		font-size: 22px;
		margin: 0;
	}

	.menu-text a {
		font-size: 20px;
		position: relative;
		bottom: 6px;
	}

	.slider {
		bottom: 12px;
		background-size: 440px;
		max-width: 440px;
		margin: 0 auto;
		/* фиксированная высота слайдера */
	}

	.slider img {
		width: 440px;
	}

	.swiper-controls {
		top: 32.3rem;
		left: 8%;
	}

	footer {
		position: relative;
		bottom: 20px;
		right: 0;
	}
}

@media (max-width: 639px) {

	header {
		width: 100vw;
		position: relative;
		right: calc(4vw - 10px + (-2vw));
		padding-right: 1vw;
	}

	header>picture>img {
		width: 365px;
		position: relative;
		bottom: 30px;
	}

	/* подогнать под ширину 380px */

	.menu {
		right: 0;
	}

	.slider {
		top: 34px;
	}
}

@media (max-width: 440px) {
	header>picture>img {
		width: 352px;
	}

	.slider {
		background-size: 420px;
	}

	.swiper-wrapper,
	.slider img {
		width: 420px;
	}

	.swiper-controls {
		left: 8%;
	}
}

@media (max-width: 390px) {

	header>picture>img {
		width: 73%;
	}

	.menu ul {
		-ms-flex-pack: distribute;
		justify-content: space-around;

	}

	.menu ul li:nth-of-type(2) {
		margin: 0;
	}

	.menu li a {
		-webkit-box-align: start;
		-ms-flex-align: start;
		align-items: flex-start;
	}

	.menu-text {
		margin: 0 auto;
	}

	.slider {
		width: 100vw;
		display: flex;
		flex-direction: column;
		align-items: center;
		background-position: top center;
	}
}

/* MEDIA QUERIES - END */