.fancybox__slide {
    opacity: 0;
    transform: scale(1);
    transition: 0.3s ease;
}

.fancybox__slide.is-selected {
    opacity: 1;
    /* transform: scale(1.3); */
}

.modal {
	width: max-content;
	display: none;
}

.modal__inner {
	width: 747px;
	height: 499px;
	display: grid;
	overflow: hidden;
}

.modal--default .modal__inner {
	background-image: url(../../img/modals/modal-offer-bg-desk-2.webp);
	background-position: top;
	background-repeat: no-repeat;
	background-size: contain;
}

.modal-credit .modal__inner {
	background-image: url(../../img/modals/modal-offer-bg-desk-2.webp);
}

.modal__content {
	padding: 146px 65px 36px 162px;
	/* padding: 50px 170px; */
	display: flex;
	flex-direction: column;
	height: 100%;
    width: fit-content;
    margin-left: auto;
}

.modal-title {
	font-weight: 700;
	font-size: 38px;
	line-height: 44px;
	color: var(--color-white);
	/* margin-bottom: 15px; */
}

@media (min-width: 1023px) {
	.modal-credit .modal-title {
		font-size: 34px;
		line-height: 1;
	}

	.modal-credit .modal-subtitle {
		font-size: 18px;
		line-height: 1;
		margin-top: 4px;
	}

	.modal-credit .modal-subtitle a {
		font-size: 18px;
		line-height: 1;
	}

	.modal-credit .modal__content {
		padding: 138px 65px 36px 162px;
	}
}

.modal-subtitle {
	font-weight: 400;
	font-size: 20px;
	line-height: 23px;
	color: var(--color-white);
    margin-bottom: 10px;
}
.modal-subtitle a {
    font-weight: 700;
	font-size: 20px;
	line-height: 23px;
	color: var(--color-white);
}

.modal__form {
	display: flex;
	flex-direction: column;
	width: 520px;
	gap: 10px;
}

.modal__form-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal__form-input {
	background-color: transparent;
	height: 36px;
    border-radius: 3px;
	padding: 0 16px;
	color:var(--color-white);
    text-align: center;
	font-size: 16px;
    font-weight: 500;
	border: 1px solid var(--color-white);
    /* flex: 1; */
    flex: none;
}
.modal__form-input::placeholder {
    color:var(--color-white);
}

.modal__form-btn {
	width: 100%;
	display: flex;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
    border-radius: 3px;
}

.modal__form-agreement {
	margin: 2px 0 0;
}

.modal__form .agreement__text,
.modal__form .agreement p {
	font-size: 10px;
	line-height: 1;
	opacity: 0.8;
}

.modal__form .agreement--dark input[type='checkbox'] + span {
    background-color: rgba(255, 255, 255, 1);
	border-radius: 2px;
}

.modal__inner--send {
	width: 600px;
	height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;

	background-image: url(../../img/modals/modal-thx-bg-desk.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--color-black);
}

.modal--thanks .modal__inner,
.modal--error .modal__inner {
	/* width: 1300px;
	height: 850px; */
	width: 747px;
	height: 499px;
	display: flex;
	color: var(--color-white);

    background-position: top;
	background-repeat: no-repeat;
	background-size: contain;
}

.modal--thanks .modal__inner {
	background-image: url(../../img/modals/modal-offer-bg-desk-2.webp);
	/* background-image: url(../../img/modals/modal-thx-bg-desk.webp); */
}

.modal--error .modal__inner {
	background-image: url(../../img/modals/modal-offer-bg-desk-2.webp);
}

.modal--thanks .modal__content {
	padding: 202px 119px 151px 184px
}

.modal--error .modal__content {
    padding: 202px 79px 151px 144px
}

.modal__send-message {
	display: flex;
	flex-direction: column;
}

.modal__send-title {
	font-weight: 700;
	font-size: 50px;
	line-height: 1;
	margin-bottom: 20px;
	text-align: center;
}

.modal__send-text {
	font-weight: 400;
	font-size: 38px;
	line-height: 1;
	text-align: center;
}

/* .modal__send-text br {
	display: none;
} */

.modal .agreement__item {
    gap: 11px;
}

.modal .form-guard__banner {
    max-width: 555px;
}

.modal .form-guard__banner-text {
    font-size: 12px;
}
@media screen and (max-width: 1560px) {
    /* .modal {
        transform: scale(0.7);
    } */
    /* .modal__inner {
        width: 1200px;
	    height: 720px;
    }
    .modal--thanks .modal__inner,
    .modal--error .modal__inner {
         width: 1200px;
	    height: 720px;
    } */
    /* .modal__content {
        padding: 10px 70px;
    } */
}

@media screen and (max-width: 1440px) {
    /* .modal {
        transform: scale(0.7);
    } */
    /* .modal__inner {
        width: 1000px;
	    height: 590px;
    }
    .modal--thanks .modal__inner,
    .modal--error .modal__inner {
        width: 1000px;
	    height: 590px;
    } */
    /* .modal__content {
        padding: 10px 70px;
    } */
}
@media screen and (max-width: 1023px) {
    /* .modal {
        transform: none;
    } */
	.modal--default .modal__inner {
		/* width: 350px; */
		height: 572px;
		width: 400px;
		/* height: 620px; */
		max-width: 100%;
        margin-right: 25px;
        background-size: cover;
		display: flex;
		flex-direction: column;
		background-image: url(../../img/modals/modal-offer-bg-mob.webp);
	}

	.modal-credit .modal__inner {
		width: 364px;
		height: 620px;
		background-image: url(../../img/modals/modal-credit-bg-mob.webp);
	}

	.modal--default .modal__content {
		/* padding: 27px 14px; */
		padding: 0;
        height: fit-content;
        margin: auto auto 27px;
        padding-left: 23px;
        width: 320px;
		/* padding-bottom: 10px; */
	}

	.modal-title {
		font-size: 25px;
		margin-bottom: 11px;
		line-height: 1;
	}

	.modal-subtitle {
		font-size: 14px;
        margin-bottom: 14px;
		line-height: 120%;
	}
    .modal-subtitle a {
        font-size: 14px;
		line-height: 120%;
    }

	.modal__form {
		width: 100%;
		gap: 3px;
	}

    .modal__form-inputs {
        flex-direction: column;
        row-gap: 15px;
    }

	.modal__form-input {
		font-size: 12px;
		padding: 0 16px;
        text-transform: uppercase;
        flex: none;
	}

	.modal__form-input::placeholder {
		color: rgba(255, 255, 255, 0.6);
	}

	.modal__form .custom-checkbox-text {
		font-size: 10px;
		max-width: 100%;
	}

	.modal__form {
		gap: 10px;
	}

	.modal__inner--send {
		width: 350px;
		height: 620px;
		max-width: 100%;
        margin-right: 25px;
        background-size: cover;
		background-image: url(../../img/modals/modal-thx-bg-mob.webp);
	}

	.modal--thanks .modal__inner,
	.modal--error .modal__inner {
		width: 350px;
		height: 450px;
		max-width: 100%;
        margin-right: 25px;
        background-size: cover;
		display: flex;
		flex-direction: column;
		background-image: url(../../img/modals/modal-thx-bg-mob.webp);
	}

	.modal--thanks .modal__content,
	.modal--error .modal__content {
		padding: 0;
        height: fit-content;
        margin: auto auto 95px;
        padding-left: 20px;
        width: 320px;
	}

	.modal__send-title {
		font-size: 28px;
		margin-bottom: 28px;
	}
	.modal__send-text {
		font-size: 25px;
	}

	.modal__send-text br {
		display: block;
	}

	.modal .modal__form-input-name {
		margin-bottom: -7px;
	}

	.modal .form-guard__banner {
		width: 100%;
		max-width: 100%;
	}

	.modal .form-guard__banner.is-visible {
		padding: 10px;
	}

        .fancybox__slide {
        opacity: 0;
        transform: scale(1);
        transition: 0.3s ease;
    }

    .fancybox__slide.is-selected {
        opacity: 1;
        /* transform: scale(1.2); */
    }
    .modal__form .agreement__text,
    .modal__form .agreement p {
    	font-size: 11px;
		opacity: 0.4;
    }

    .modal__form-btn {
        height: 28px;
		font-size: 12px;
    }

	.modal .agreement {
		gap: 8px;
	}
}

@media screen and (max-width: 400px) {

        .fancybox__slide {
        opacity: 0;
        transform: scale(1);
        transition: 0.3s ease;
    }

    .fancybox__slide.is-selected {
        opacity: 1;
        /* transform: scale(1.1); */
    }
}
