/*Диалог*/
.dialog
{
	position: fixed;
	overflow-x: hidden;
	overflow-y: scroll;
	width: 100vw;
	height: 100vh;
	height:100dvh;
	top: 0px;
	bottom: 0px;
	padding: 5px;
	border: none;
	background-color: rgba(0, 0, 0, 0.3);
	animation: none;
	z-index: 255;
	will-change:opacity, transform;
	animation-duration: 0.4s;
	animation-fill-mode: forwards;
	animation-timing-function: ease-in-out;
	backdrop-filter:blur(15px);
	-webkit-backdrop-filter: blur(15px);
	z-index: 999;
}

.dialog__background
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.dialog.show
{
	animation-name: show-backdrop;
}

.dialog.hide
{
	animation-name: hide-backdrop;
	animation-delay: 0.2s;
	animation-fill-mode: backwards;
}

.dialog__window
{
	animation: none;
	opacity: 0;
	will-change:transform, opacity;
	/*+border-radius: 12px;*/
	-moz-border-radius: 12px;
	-webkit-border-radius: 12px;
	-khtml-border-radius: 12px;
	border-radius: 12px;
	padding:calc(2 * var(--indent)) var(--indent) var(--indent);
	margin: 0 auto;
	background-color: #0E1111;
	border:1px solid var(--blue);
}

.dialog__content
{
	color:var(--white);
}

.show .dialog__window
{
	animation-name: show-dialog;
	animation-delay: 0.2s;
	animation-duration:var(--transition-time);
	animation-fill-mode: forwards;
}

.hide .dialog__window
{
	animation-name: hide-dialog;
	animation-duration:var(--transition-time);
	animation-fill-mode: backwards;
}

.dialog__close
{
	position: absolute;
	top: 5px;
	right:var(--vu);
	width: 32px;
	height: 32px;
	background-image:var(--icon-close);
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	z-index: 2;
	margin-left: auto;
	transition:var(--transition);
}

@media (min-width: 640px)
{
	.dialog
	{
		width: 100vw;
		height: 100vh;
		align-content: center;
	}
	
	.dialog__window
	{
		width: 530px;
		height: auto;
	}
	
	.dialog__content
	{
		height: 100%;
	}
}

@media (min-width: 1400px)
{
	.dialog__window
	{
		width: 855px;
		padding: 60px 40px 40px;
	}
	
	.dialog__close
	{
		top: 15px;
		right: 40px;
	}
}

@keyframes show-dialog
{
	from
	{
		opacity: 0;
		transform: translateY(100px);
	}
	
	to
	{
		opacity: 1;
		transform: translateY(0px);
	}
}

@keyframes hide-dialog
{
	from
	{
		opacity: 1;
		transform: translateY(0px);
	}
	
	to
	{
		opacity: 0;
		transform: translateY(100px);
	}
}

@keyframes show-dialog-from-left
{
	from
	{
		opacity: 0;
		transform: translateX(-200px);
	}
	
	to
	{
		opacity: 1;
		transform: translateX(0px);
	}
}

@keyframes hide-dialog-to-left
{
	from
	{
		opacity: 1;
		transform: translateX(0px);
	}
	
	to
	{
		opacity: 0;
		transform: translateX(-200px);
	}
}

@keyframes show-backdrop
{
	from
	{
		opacity: 0;
	}
	
	to
	{
		opacity: 1;
	}
}

@keyframes hide-backdrop
{
	from
	{
		opacity: 1;
	}
	
	to
	{
		opacity: 0;
	}
}

@media (min-width: 990px)
{
	@keyframes show-backdrop
	{
		from
		{
			opacity: 0;
		}
		
		to
		{
			opacity: 1;
		}
	}
	
	@keyframes hide-backdrop
	{
		from
		{
			opacity: 1;
		}
		
		to
		{
			opacity: 0;
		}
	}
}
