.modal-preloader__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.modal-preloader__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: modalSpin 0.8s linear infinite;
}

@keyframes modalSpin {
    to {
        transform: rotate(360deg);
    }
}

.modal-new {
	position: fixed;
	inset: 0;
	z-index: 1000;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #33333399;

	/* по умолчанию скрыто */
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
}

.modal-new .coop-inputs {
	gap: 16px;
}

.modal-new.active {
	opacity: 1;
	visibility: visible;
}

.modal-new__content {
	width: 920px;
	height: 545px;

	display: flex;
	background: #fff;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
}

.modal-new__close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 38px;
	height: 38px;
	border: 0;
	background: #fff;
	line-height: 18px;
	border-radius: 4px;
}

.modal-new__left {
	width: 363px;
	height: 100%;
	flex-shrink: 0;
}

.modal-new__left img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal-new__right {
	width: calc(100% - 363px);
	flex: 0 0 calc(100% - 363px);
	height: 100%;

	padding: 30px;

	/* ключевой момент */
	overflow-y: auto;

	display: flex;
	flex-direction: column;
}

.modal-new__form {
	height: 100%;
	display: flex;
	flex-direction: column;
	margin-top: auto;
}

.modal-new__formblock {
	margin-bottom: 15px;
}

.modal-new__formbtnblock {
	margin-top: auto;
}

.modal-new__title {
	font-family: 'Princesa';
	font-style: normal;
	font-weight: 400;
	font-size: 36px;
	line-height: 44px;

	color: #333333;
}

.modal-new__subtitle {
	margin-top: 15px;

	font-family: 'Mulish';
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;

	color: #333333;
}

.modal-new__form {
	margin-top: 30px;
}

.modal-new__checkbox {
	font-family: 'Mulish';
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 18px;
	/* identical to box height */

	color: #333333;
}

.coop-inputs label.modal-new__checkbox {
	display: block;
}

.modal-new__checkbox a {
	text-decoration: underline;
}

@media (max-width: 920px) {
	.modal-new__content {
		width: 390px;
		height: 735px;
		max-height: 100%;

		flex-direction: column;
		padding-bottom: 20px;
	}

	.modal-new__left {
		width: 100%;
		height: 200px;
	}

	.modal-new__right {
		width: 100%;
		height: calc(100% - 200px);
		flex: 0 0 calc(100% - 200px);
		padding: 20px 10px 0px 10px;
	}

	.modal-new__close {
		top: 10px;
		right: 10px;
	}

	.modal-new__title {
		font-size: 30px;
		line-height: 36px;
	}
}

@media (max-width: 390px) {
	.modal-new__content {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.modal-new__checkbox {
		font-size: 12px;
	}
}

body:has(.modal-new.active) {
	overflow: hidden !important;
}