.modal-window {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	pointer-events: none;
}
.modal-window.active {
	pointer-events: all;
}
.modal-window.fullsize.active {
	overflow-y: auto;
}
.modal-window .modal-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100vw - 40px);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	max-width: 572px;
	border-radius: 20px;
	background-color: #fff;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	z-index: 2;
	overflow: hidden;
	opacity: 0;
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
}
.modal-window.fullsize .modal-inner {
	position: relative;
	top: auto;
	left: auto;
	margin: 20px auto 20px;
	border-radius: 20px;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
}
.modal-window.active .modal-inner {
	opacity: 1;
}
.modal-window .img {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background-color: #F2F2F7;
}
.modal-window .img img {
	display: block;
	max-width: 100%;
	max-height: 308px;
}
.modal-window .img img.dark {
	display: none;
}
.modal-window .content {
	padding: 20px 32px 32px;
}
.modal-window h3, 
.modal-window .modal-content-title {
	margin: 0 0 15px;
	text-align: center;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.25;
	color: #000;
}
.modal-window p {
	margin: 0 0 20px;
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
}
.modal-window h4, 
.modal-window .modal-content-subtitle {
	font-size: 20px;
	line-height: 1.4;
	text-align: left;
	font-weight: 600;
	margin-bottom: 8px;
}
.modal-window p strong {
	font-weight: 500;
}
.modal-window p a,
.modal-window li a {
	color: #007AFF;
	border-bottom: 1px solid transparent;
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	transition: all .3s ease;
	text-decoration: none;
}
.modal-window p a:hover,
.modal-window li a:hover {
	border-color: #007AFF;
}
.modal-window .buttons {
	display: flex;
	gap: 12px;
	flex-wrap: nowrap;
}
.modal-window .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	height: 60px;
	margin: 0;
	background-color: #007AFF;
	border-radius: 12px;
	border: none;
	outline: none;
	font-family: "proxima-nova", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
	cursor: pointer;
}
.modal-window .btn:hover {
	-webkit-transform: translateY(-3px);
	-moz-transform: translateY(-3px);
	transform: translateY(-3px);
}
.modal-window .link {
	display: block;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: #007AFF;
	text-align: center;
	text-decoration: none;
}
.modal-window .overlay-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.80);
	opacity: 0;
	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	transition: all .3s;
}
.modal-window.active .overlay-modal {
	opacity: 1;
}
.modal-window .close {
	position: absolute;
	top: 13px;
	right: 13px;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.37882 5.23657C6.06339 4.92114 5.55199 4.92114 5.23657 5.23657C4.92114 5.55199 4.92114 6.06339 5.23657 6.37882L10.8578 12L5.23657 17.6212C4.92114 17.9366 4.92114 18.448 5.23657 18.7634C5.55199 19.0789 6.06339 19.0789 6.37882 18.7634L12 13.1422L17.6212 18.7634C17.9366 19.0788 18.448 19.0788 18.7634 18.7634C19.0789 18.448 19.0789 17.9366 18.7634 17.6212L13.1423 12L18.7634 6.37882C19.0789 6.0634 19.0789 5.552 18.7634 5.23658C18.448 4.92115 17.9366 4.92115 17.6212 5.23658L12 10.8578L6.37882 5.23657Z' fill='black'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.95382 4.95382C5.42546 4.48219 6.19012 4.48219 6.66176 4.95382L12.0001 10.2922L17.3384 4.95383C17.8101 4.4822 18.5747 4.4822 19.0464 4.95383C19.518 5.42546 19.518 6.19013 19.0464 6.66176L13.708 12.0001L19.0464 17.3384C19.518 17.8101 19.518 18.5747 19.0464 19.0464C18.5747 19.518 17.8101 19.518 17.3384 19.0464L12.0001 13.708L6.66176 19.0464C6.19012 19.518 5.42546 19.518 4.95382 19.0464C4.48219 18.5747 4.48219 17.8101 4.95382 17.3384L10.2922 12.0001L4.95382 6.66176C4.48219 6.19012 4.48219 5.42546 4.95382 4.95382ZM5.23667 6.37891C4.92124 6.06349 4.92124 5.55209 5.23667 5.23667C5.55209 4.92124 6.06349 4.92124 6.37891 5.23667L12.0001 10.8579L17.6213 5.23667C17.9367 4.92125 18.4481 4.92125 18.7635 5.23667C19.079 5.5521 19.079 6.0635 18.7635 6.37892L13.1424 12.0001L18.7635 17.6213C19.079 17.9367 19.079 18.4481 18.7635 18.7635C18.4481 19.079 17.9367 19.079 17.6213 18.7635L12.0001 13.1424L6.37891 18.7635C6.06349 19.079 5.55209 19.079 5.23667 18.7635C4.92124 18.4481 4.92124 17.9367 5.23667 17.6213L10.8579 12.0001L5.23667 6.37891Z' fill='black'/%3e%3c/svg%3e") center center no-repeat;
	border: none;
	outline: none;
	margin: 0;
	padding: 0;
	opacity: 1;
	float: none;
	text-shadow: none;
	cursor: pointer;
}

.night-mode .modal-window .modal-inner {
	background-color: #1C1C1C;
}
.night-mode .modal-window .img img.dark {
	display: block;
}
.night-mode .modal-window .img img.light {
	display: none;
}
.night-mode .modal-window .img {
	background-color: #2B2B30;
}
.night-mode .modal-window p,
.night-mode .modal-window h3,
.night-mode .modal-window h4,
.night-mode .modal-window .modal-content-title,
.night-mode .modal-window .modal-content-subtitle {
	color: #F2F2F7 !important;
}
.night-mode .modal-window .close {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.37882 5.73657C6.06339 5.42114 5.55199 5.42114 5.23657 5.73657C4.92114 6.05199 4.92114 6.56339 5.23657 6.87882L10.8578 12.5L5.23657 18.1212C4.92114 18.4366 4.92114 18.948 5.23657 19.2634C5.55199 19.5789 6.06339 19.5789 6.37882 19.2634L12 13.6422L17.6212 19.2634C17.9366 19.5788 18.448 19.5788 18.7634 19.2634C19.0789 18.948 19.0789 18.4366 18.7634 18.1212L13.1423 12.5L18.7634 6.87882C19.0789 6.5634 19.0789 6.052 18.7634 5.73658C18.448 5.42115 17.9366 5.42115 17.6212 5.73658L12 11.3578L6.37882 5.73657Z' fill='%23A8A8AE'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.9537 5.4537C5.42533 4.98207 6.19 4.98207 6.66164 5.4537L12 10.792L17.3383 5.45371C17.8099 4.98207 18.5746 4.98207 19.0463 5.45371C19.5179 5.92534 19.5179 6.69001 19.0463 7.16164L13.7079 12.5L19.0462 17.8383C19.5179 18.3099 19.5179 19.0746 19.0463 19.5462C18.5746 20.0179 17.8099 20.0179 17.3383 19.5463L12 14.2079L6.66164 19.5463C6.19 20.0179 5.42533 20.0179 4.9537 19.5463C4.48207 19.0746 4.48207 18.31 4.9537 17.8383L10.292 12.5L4.9537 7.16164C4.48207 6.69 4.48207 5.92533 4.9537 5.4537ZM5.23654 6.87879C4.92112 6.56337 4.92112 6.05197 5.23654 5.73654C5.55197 5.42112 6.06337 5.42112 6.37879 5.73654L12 11.3577L17.6212 5.73655C17.9366 5.42113 18.448 5.42113 18.7634 5.73655C19.0788 6.05197 19.0788 6.56338 18.7634 6.8788L13.1422 12.5L18.7634 18.1212C19.0788 18.4366 19.0788 18.948 18.7634 19.2634C18.448 19.5788 17.9366 19.5788 17.6212 19.2634L12 13.6422L6.37879 19.2634C6.06337 19.5788 5.55197 19.5788 5.23654 19.2634C4.92112 18.948 4.92112 18.4366 5.23654 18.1212L10.8577 12.5L5.23654 6.87879Z' fill='%23A8A8AE'/%3e%3c/svg%3e");
}