:root {
	--primary: #3f5f6c;
	--secondary: #2a3337;
	--yellow: #F8B801;
	--black: #000;
	--transition: all 0.3s;
}

.modal__call {
	width: 100%;
	max-width: 870px;
	height: 485px;
	padding: 0;
}

.modal-thanks {
	width: 100%;
	max-width: 714px !important;
	min-height: 308px;
	max-height: 308px;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0px 0px 10px 0px #00000040;
}

#modal-error {
    min-height: 340px;
	max-height: 340px;
}

.modal-thanks__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 4px;
}

.modal-thanks__socials {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.modal-thanks__row h2 {
	margin-bottom: 0;
}

#modal-thanks .fancybox-close-small {
	top: 0 !important;
	right: -44px !important;
	color: #000000;
	height: 32px;
	width: 32px;
	padding: 7px;
}

#modal-error .fancybox-close-small {
	top: 0 !important;
	right: -44px !important;
	color: #000000;
	height: 32px;
	width: 32px;
	padding: 7px;
}

#modal-error .fancybox-close-small svg,
#modal-thanks .fancybox-close-small svg {
	height: 19px;
	width: 19px;
	stroke: rgb(0 0 0);
}

.modal__call .fancybox-close-small {
	color: #000000;
	opacity: 1 !important;
	height: 32px;
	width: 32px;
	padding: 7px;
}

.modal__call .fancybox-close-small svg {
	height: 19px;
	width: 19px;
}

.modal-thanks__title {
	font-weight: 400;
	font-size: 48px;
	line-height: 100%;
	color: rgba(36, 37, 39, 1);
	margin-bottom: 10px;
}

.modal-thanks__inner {
	position: relative;
	padding: 40px;
	text-align: left;
	height: 100%;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}

.modal-thanks__social {
	transform: scale(1);
	transition: transform 0.3s ease;
}

.modal-thanks__social:hover {
	transform: scale(1.15);
}

.modal-thanks__inner h3 {
	margin-bottom: 32px;
}

.modal-thanks__inner .primary-btn {
	display: block;
	width: 100%;
}

.modal-thanks__subtitle {
	font-weight: 400;
	font-size: 16px;
	line-height: 114.99999999999999%;
	color: rgba(36, 37, 39, 1);
}

.modal-thanks-content {
	display: flex;
	align-items: center;
	overflow: hidden;
	justify-content: flex-start;
	border-radius: 4px;
}
.modal-thanks-img {
	max-width: 370px;
	width: 370px;
    height: 308px;
	/* height: 100%; */
}
#modal-error .modal-thanks-img {
    height: 340px;
}
.modal-thanks .primary-btn {
	max-width: 247px;
	margin-bottom: 40px;
}
.modal-thanks-links {
	display: flex;
	justify-content: space-between;
	gap: 24px;
}
.modal-thanks-links a svg path,
.modal-thanks-links a svg {
	transition: all 0.4s ease;
}

.modal-thanks-links a:hover svg path {
	fill: var(--yellow);
	box-shadow: 0px 0px 6px 0px #00000040;
}

.modal-thanks-links a:hover svg {
	transform: scale(1.1);
}
.modal-thanks-body {
	position: relative;
	padding: 40px;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-items: flex-start;
	text-align: left;
}
.modal__content {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
.modal__call-body {
	position: relative;
	padding: 40px;
	flex: 1;
}
.modal__call-content {
	display: flex;
	align-items: center;
	overflow: hidden;
	justify-content: flex-start;
	border-radius: 4px;
}
.modal-img {
	max-width: 370px;
	height: 100%;
}

.desc-hide {
	display: none;
}

.modal__call {
	position: relative;
	border-radius: 4px;
	box-shadow: 0px 0px 10px 0px #00000040;
}

.modal__call-img {
	height: 100%;
}

.modal img {
	object-fit: cover;
}

#modal__credit .modal-img img {
	object-position: 34% center;
}

.popup__img {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: -2;
	object-fit: cover;
	object-position: right center;
}

.modal__checkbox-container .checkbox {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal__checkbox-container input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.modal__checkbox-container .custom-checkbox {
	box-sizing: border-box;
	width: 14px;
	height: 13px;
	border: 1px solid #000000;
	border-radius: 2px;
	position: relative;
	flex: none;
	order: 0;
	flex-grow: 0;
	background: transparent;
	transition: all 0.3s ease;
	display: block;
    cursor: pointer;
}

.modal__checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
	background-color: transparent;
}

.modal__checkbox-container input[type="checkbox"]:checked + .custom-checkbox::after {
	content: '';
	position: absolute;
    width: 8px;
    height: 4.7px;
    left: calc(50% - 9px / 2);
    top: calc(50% - 6.7px / 2);
	border-left: 1.1px solid #000000;
	border-bottom: 1.1px solid #000000;
	transform: rotate(-45deg);
	box-sizing: border-box;
}
.fancybox-content {
	overflow: visible !important;
}
.fancybox-content > .fancybox-close-small {
	top: 0px !important;
	right: -44px !important;
	background-color: #ffffff40;
	color: #000000;
    border-radius: 50%;
}

/* .fancybox-content > .fancybox-close-small::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px #ffffff solid;
    transition: opacity 0.1s;
} */

/* .fancybox__container {
    --fancybox-bg: rgba(70, 67, 67, 0.52) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(54px);
} */

.fancybox__backdrop {
	background-color: rgba(70, 67, 67, 0.7) !important;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
}

.fancybox-content > .fancybox-close-small:hover::before {
	opacity: 0.2;
}

.fancybox-content {
	padding: 0 !important;
}

.modal__title {
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	color: #000;
	line-height: 1;
}

.modal__title span {
	color: var(--yellow);
}

.modal .btn {
    width: 100%;
    font-size: 24px;
}

.modal__subtitle {
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin-bottom: 24px;
	color: #000000;
}

.modal__subtitle a {
	color: var(--yellow);
	font-weight: 700;
	transition: all 0.3s ease;
}

.modal__subtitle a:hover {
	color: var(--yellow);
}

.modal__benefits-list {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin-bottom: 24px;
}

.modal__benefits-item {
	padding: 8px;
	background: linear-gradient(87.85deg, #7b0d20 0%, #e1183a 100%);
	color: #fff;

	font-weight: 600;
	font-size: 13px;
	line-height: 1;
}

.modal__call-body form {
	display: flex;
	flex-direction: column;
	align-items: start;
	width: 100%;
	gap: 16px;
}

.form-label {
	width: 100%;
}

.modal__call-body form input {
	padding: 12px;
	width: 100%;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 1);
	backdrop-filter: blur(4px);
	border-radius: 2px;
	background: transparent;
	font-weight: 400;
	font-size: 18px;
	line-height: 100%;
	letter-spacing: 0;
	color: rgba(0, 0, 0, 1);
	text-align: center;
}

.modal__call-body form input::placeholder {
	color: rgba(0, 0, 0, 1);
	opacity: 1;
}

.modal__call-body form input:focus {
	outline: none;
	border-bottom-color: rgba(0, 0, 0, 1);
	color: rgba(0, 0, 0, 1);
}

/* Для автозаполнения (Chrome, Edge, Safari) */
.modal__call-body form input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset;
	-webkit-text-fill-color: rgba(0, 0, 0, 0.8);
	transition: background-color 9999s ease-in-out 0s;
}

.modal__call-body form input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0) inset;
	-webkit-text-fill-color: rgba(0, 0, 0, 0.8);
}

input:-internal-autofill-selected {
	appearance: menulist-button;
	background-image: none !important;
	background-color: light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important;
	color: fieldtext !important;
}

.popup__btn {
	width: 100%;
}

.modal .checkbox-text {
	font-weight: 500;
	font-size: 12px;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba(0, 0, 0, 1);
}

.modal__call .custom-checkbox p {
	color: #212121;
}

.modal__call .custom-checkbox p a {
	color: #212121;
}
#popup-ty,
#popup-error {
	text-align: center;
}
#popup-ty {
	width: 497px;
	height: 326px;
}
#popup-error {
	width: 486px;
	height: 374px;
}
#popup-ty .popup__btn,
#popup-error .popup__btn {
	max-width: 232px;
	margin: 0 auto;
}

.social-link-inst {
	position: relative;
}

.social-link-inst:after {
	content: '*';
	color: #000;
	font-size: 16px;
	position: absolute;
	right: -8px;
	top: 2px;
}

.modal__checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* @media (max-width: 1600px) {
	.modal__call {
		width: 100%;
		max-width: 834px;
		height: 465px;
		padding: 0;
	}
	.modal__call-body {
		position: relative;
		padding: 40px;
		flex: 1;
	}
	.modal-thanks {
		width: 100%;
		max-width: 714px !important;
		min-height: 391px;
		height: max-content;
		max-height: 391px;
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		border-radius: 4px;
	}
	.modal-thanks-img {
		max-width: 370px;
		height: 100%;
	}
	.modal-thanks-img img {
		max-width: 370px;
		height: 100%;
		object-fit: cover;
	}
	.modal-thanks-body {
		position: relative;
		padding: 40px;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	.modal__title {
		font-weight: 700;
		line-height: 100%;
		font-size: 28px;
		letter-spacing: -0.05em;
		margin-bottom: 5px;
		color: #000000;
	}
	.modal-thanks-content {
		display: flex;
		align-items: center;
		overflow: hidden;
		justify-content: flex-start;
		border-radius: 4px;
	}
	.modal__subtitle {
		margin-bottom: 24px;
	}
	.modal-thanks .primary-btn {
		max-width: 241px;
		margin-bottom: 24px;
	}
} */

@media (max-width: 992px) {
	.desc-hide {
		display: block;
	}
	.modal-text-hide-mob {
		display: none;
	}
	.modal-thanks {
		width: 100%;
		max-width: 328px !important;
		min-height: 385px;
		max-height: 385px;
		height: max-content;
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		border-radius: 4px;
	}
	.modal .btn {
		font-size: 16px;
	}
	.modal-thanks-body {
		position: relative;
		padding: 14px;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
	}
	#modal-error {
		min-height: 413px;
		max-height: 413px;
	}
	.modal-img {
		max-width: 100%;
		width: 100%;
		height: 140px;
		overflow: hidden;
	}
	.modal-img img {
		height: auto;
	}
	.modal__call-content {
		display: flex;
		align-items: center;
		overflow: hidden;
		justify-content: flex-start;
		border-radius: 4px;
		flex-direction: column;
	}
	.modal__title {
		font-size: 24px;
		margin-bottom: 14px;
	}
	.modal-thanks-content {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		overflow: hidden;
		justify-content: flex-start;
		border-radius: 4px;
	}
	.modal-thanks-img,
	#modal-error .modal-thanks-img {
		max-width: 100%;
		height: 218px;
		overflow: hidden;
	}
	.modal-thanks__inner {
		padding: 16px;
	}
	.modal-thanks__socials {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}
	.modal-thanks .primary-btn {
		max-width: 100%;
		margin-bottom: 16px;
		width: 100%;
		/* font-size: 14px; */
		padding: 14px;
	}
	.img-mini img {
		width: 374px;
		height: 191px;
		object-fit: cover;
	}
	.modal__call {
		max-width: 328px;
		height: 489px;
	}
	.modal__call-body {
		position: relative;
		padding: 14px;
		flex: 1;
	}
	.modal-thanks__inner h3 {
		margin-bottom: 24px;
	}
	.modal__subtitle {
		font-size: 14px;
		margin-bottom: 14px;
	}

	.modal__call-body form input {
		font-size: 16px;
		padding: 12px;
		text-align: center;
	}
	.modal__call-body form {
		width: 100%;
		margin-left: 0;
		max-width: none;
		gap: 8px;
	}
	.popup__btn {
		width: 100%;
		margin-bottom: 0;
		font-size: 14px;
		padding: 14px;
	}
	.checkbox-container {
		margin-top: 0;
	}
	.modal .checkbox-text {
		font-size: 11px;
	}
	.fancybox-content > .fancybox-close-small {
		top: auto !important;
		bottom: -56px !important;
		right: auto !important;
		left: 50% !important;
		transform: translateX(-50%);
		color: rgba(207, 207, 207, 1);
		height: 32px;
		width: 32px;
	}

	.fancybox-content > .fancybox-close-small svg {
		color: #000000;
		stroke-width: 3px;
	}

	.modal-thanks.fancybox-content > .fancybox-close-small svg {
		color: #000000;
	}

	#modal-thanks .fancybox-close-small,
	#modal-error .fancybox-close-small {
		top: auto !important;
		bottom: -56px !important;
		right: auto !important;
		left: 50% !important;
		transform: translateX(-50%);
		color: #ffffff;
		height: 32px;
		width: 32px;
	}

	#modal__credit .modal-img img {
		object-position: 34% center;
		max-height: 140px;
		width: 100%;
	}

	#modal__call .modal-img img {
		object-position: center 55%;
		max-height: 140px;
		width: 100%;
	}

	.modal-thanks-links a svg path {
		fill: #3E3A39;
	}

	.modal__benefits-item {
		font-size: 11px;
		padding: 6px;
	}
	.modal__benefits-list {
		margin-bottom: 16px;
	}
}
