
* {
    box-sizing:border-box;
}

@font-face{
    font-family:'Evolventa';
    src:url(../fonts/Evolventa.ttf) format("truetype");
    font-weight:400;
    font-style:normal
}
@font-face{
    font-family:'Evolventa';
    src:url(../fonts/Evolventa-Bold.ttf) format("truetype");
    font-weight:700;
    font-style:normal
}


/* Popup */
@media (min-width: 992px) {
	.popup-timer {
		display: none !important;
	}
}
.custom-btn-tel {
    overflow: hidden;
    position: relative;
}
	.custom-btn-tel:after {
	content: '';
    margin-left: 60px;
    width: 30px;
    height: 300px;
    background: #fff;
    -webkit-animation-delay: 0.05s;
    animation-delay: 0.05s;
    position: absolute;
    left: -40px;
    top: -150px;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
    -webkit-animation-name: slideme;
    animation-name: slideme;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
	.popup-timer {
		display: none;
		width: 908px;
		height: 597px;
		box-shadow: 0 3px 21px 1px rgba(0, 0, 0, 0.35);
		background: #cbccce;
		border-radius: 8px;
		padding: 39px 50px 60px;

		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 99999
	}
	.popup-timer__title {
		text-shadow: 0 3px 3px rgba(0, 0, 0, 0.35);
		color: #000000;
		font-family: "Evolventa", sans-serif;
		font-size: 57px;
		font-weight: 700;
		line-height: 1.1;
		text-transform: uppercase;
		text-align: center;
		padding-bottom: 17px;
		line-height: 1.12;
	}
	.popup-timer__subtitle {
		color: #ffffff;
		font-size: 44px;
		font-weight: 700;
		line-height: 54.52px;
		padding-bottom: 71px;

		text-align: center;
	}


	.timer__circle {
		position: relative;
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
	}
	.timer__circle:not(:last-child) {
		margin-right: 15px;
	}
	.circle__item {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: #595959;
		font-size: 50px;
	}
	.popup-timer__item {
		position: relative;
		margin: auto;
		display: block;
		width: 264px;
		text-align:center;
	}
	
	.popup-timer__item input {
        box-sizing: border-box;
	}
	.popup-timer__item > span {
		position: absolute;
		left: 50%;
		transform: translate(-50%);
		text-align: center;
		top: -47px;
		white-space: nowrap;
		color: #595959;
		font-size: 26px;
	}
	.circle__name {
		position: absolute;
		left: 50%;
		transform: translate(-50%);
		text-align: center;
		bottom: -27px;
		color: #595959;
		font-size: 18px;
	}
	.popup-form {
		margin-top: 50px;
	}
	.popup-form__item {
		text-align: center;
		display: flex;
		justify-content: space-around;
	}
	.popup-form__item input {
		width: 233px;
		height: 51px;
		border: none;
		border-radius: 4px;
		font-size: 25px;
		padding: 8px;
	}
	.popup-timer canvas {
		animation: 7s rotate-360 linear infinite;
	}
	@keyframes rotate-360 {
		0% {
			transform:  rotate(0);

		}
		100% {
			transform:  rotate(-360deg);
		}
	}
	.exit {
		position: absolute;
		top: 15px;
		right: 25px;
		background: url('../img/exit.svg');
		width: 27px;
		height: 27px;
		font-size: 0;
		cursor: pointer;
		opacity: 0.8;
	}
	.exit:hover {
		opacity: 1;
	}
	.popup-form__item input[type=submit] {
		background: #69599d;
		color: #fff;
		padding: 0;
		font-size: 30px;
	}
	.bg-for-pop {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.5);
		z-index: 998;
		display: none;
	}
	.custom-btn {
		position: relative;
		overflow: hidden;
		display: inline-flex;
	}
	.custom-btn:before {
		content: '';
		margin-left: 60px;
		width: 30px;
		height: 300px;
		background: #fff;
		-webkit-animation-delay: 0.05s;
		animation-delay: 0.05s;
		position: absolute;
		left: -40px;
		top: -150px;
		-webkit-animation-timing-function: ease-in-out;
		animation-timing-function: ease-in-out;
		-webkit-transition: all 0.1s;
		transition: all 0.1s;
		-webkit-animation-name: slideme;
		animation-name: slideme;
		-webkit-animation-duration: 3s;
		animation-duration: 3s;
		-webkit-animation-iteration-count: infinite;
		animation-iteration-count: infinite;
		-webkit-transform: rotate(45deg);
		-ms-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	@keyframes slideme {
		0% {
			left: -30px;
			margin-left: 0px;
		}
		30% {
			left: 110%;
			margin-left: 80px;
		}
		100% {
			left: 110%;
			margin-left: 80px;
		}
	}
	.custom-btn img {
		display:none;
	}
	.custom-btn:hover {
		opacity: .6;
		-webkit-transition: all .3s;
		-o-transition: all .3s;
		transition: all .3s;
	}
@media (min-width: 320px) and (max-width: 992px) {
	.form-first-display {
		display: none !important;
	}
	.popup-timer {
    width: calc(100% - 40px);
    height: calc(568px - 40px);
    padding: 39px 30px 39px;
	flex-direction: column;
	justify-content: space-around;
	}
	.popup-form__item input {
		display: none;
	}
	.popup-form__item input[type=submit] {
		display: block;
		height: 72px;
		padding-right: 37px;
		width: 274px;
	}
	.custom-btn img {
		display: block;
		width: 50px;
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
	}
}
@media (min-width: 320px) and (max-width: 768px) { 
	.popup-timer {
		width: calc(100% - 15px);
		height: calc(568px - 15px);
		padding: 39px 15px 39px;
	}
}

@media (min-width: 650px) and (max-width: 992px) {
	.popup-timer__title {
	font-size: 40px;
	}
	.popup-timer__subtitle {
	
		font-size: 38px;
	
		line-height: 1;
	}
	.popup-timer__item > span {
		font-size: 23px;
	}
	.circle__item {
	font-size: 38px;
}
}
@media (min-width: 320px) and (max-width: 650px) {
	.popup-timer__title {
	font-size: 31px;
	}
	.popup-timer__subtitle {
	
		font-size: 22px;
	
		line-height: 1;
	}
	.popup-timer__item > span {
		font-size: 18px;
	}
	.circle__item {
	font-size: 33px;
	}
	.popup-timer__title {
		font-size: 43px;
	
	}
	.exit {
		cursor: pointer;
		position: absolute;
		top: 8px;
		right: 16px;
		background: url(../img/exit.svg);
		width: 15px;
		height: 15px;
		font-size: 0;
		object-fit: contain;
		background-size: contain;
		opacity: 0.8;
	}
	.exit {
		opacity: 1;
	}
	.popup-timer__subtitle {
		font-size: 29px;
		line-height: 1.22;
	}

	.popup-timer__item > span {
		font-size: 24px;
		top: -37px;
	}
	.popup-form__item input[type=submit] {
		display: block;
		height: 65px;
		padding-right: 37px;
		width: 256px;
	}
}
	.custom-btn-tel {
		display: none;
	}
	@media (max-width: 992px) {
		.custom-btn {
		display: none;
	}
		.custom-btn-tel {
			position: relative;
			display: flex;
			align-items: center;
			justify-content: center;
			height: 65px;
			background: #bc0a66;
			border-radius: 8px;

			width: 256px;
		}
		.custom-btn-tel img {
			display: block;
			width: 50px;
			position: absolute;
			right: 10px;
			top: 50%;
			transform: translateY(-50%);
		}
		.custom-btn-tel span {
			color: #fff;
			padding: 0;
			font-size: 30px;
			padding-right: 40px;
		}
	}
@media (max-width: 416px) and (min-width: 320px) {
	.popup-timer__title {
    font-size: 30px;
}
.popup-timer__subtitle {
	font-size: 22px;
    line-height: 1.22;
    color: #db0c80;
}

.popup-timer__subtitle_two {
    font-size: 16px;
    line-height: 25px;
    padding-top: 10px;
}

.popup-timer__item > span {
    font-size: 21px;
    top: -37px;
}
.popup-timer {
	height: 520px;
}

}
.custom-btn-tel a {
	text-decoration: none;
}


/* Popup end */

.active-popup {
	display: flex !important;
}

@media (min-width: 992px){
	.active-popup {
		display: block !important;
	}	
}


/* AJAX FORM */
	.form-main {
		background: #8ebfc8;
		width: 349px;
		height: 371px;
		border-radius: 8px;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: none;
		z-index: 999999

	}
	.form-main .popup-form {
		height: 100%;
		margin-top: 0;
	}
	.form-main .popup-form__item {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		height: 100%;
		padding: 40px 0;
	}
	.form-main .popup-form__item input {
		width: 270px;
		height: 55px;
	}
	.form-main .popup-form__item input::placeholder {
		color: #6f58a0;
	}
	.form-main .popup-form__item input:nth-child(2) {
		margin-bottom: 40px;
	}
	@media (max-width: 400px) {
		.form-main {
			width: 315px;
		}
	}

.form-ok .pima {
    display: block;
    margin: 28px auto;
    margin-bottom: 22px;
}
.form-ok .inst {
    display: block;
    margin: 8px auto;
}
.form-ok {
	display: none;
	width: 433px;
	height: 460px;
	box-shadow: 2px 3px 12px 1px rgba(0, 0, 0, 0.21);
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #8ebfc8;
	border-radius: 8px;
	z-index: 999999;
}
.form-ok-title {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 40px;
    padding: 18px 0;
    background: #6f58a0;
    border-radius: 8px;
    font-family: 'Evolventa';
}
.form-ok-text {
	color: #fff;
	text-align: center;
	font-size: 30px;
	padding: 0 20px;
	font-family: 'Evolventa';
}
@media (max-width: 450px) {
	.form-ok {
		width: 300px;
		height: 413px;
	}
	.form-ok-title {
		font-size: 32px;
	}
	.form-ok .pima {
		width: 150px;
	}
	.form-ok-text {
		font-size: 25px;
	}
	.form-ok .inst {
		margin: 25px auto;
	}

}
/*END AJAX FORM */