.dm-overlay {
	position: fixed;
	top: 0;
	left: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(38, 8, 15, 0.58) 100%);
	display: none;
	overflow: auto;
	width: 100%;
	height: 100%;
	z-index: 99990;
	font-size: 12px;
}
.dm-table {
	display: table;
	width: 100%;
	height: 100%;
}
.dm-cell {
	display: table-cell;
    padding: 1em;
    vertical-align: middle;
    text-align: center;
    box-sizing: border-box;
}
.dm-modal {
    display: inline-block;
    position: relative;
    max-width: 520px;
    min-width: 284px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 12px 28px 61px rgba(0, 0, 0, 0.25), 0px -19px 70px rgba(241, 192, 62, 0.12);
    border-radius: 8px;
    padding: 24px;
	text-align: left;
}
.inv-modal {
	max-width: 272px;
}

.dm-modal>h2 {
	display: inline-block;
    font-family: 'Boombox', Tahoma, sans-serif;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    opacity: 0.9;
	margin-bottom: 24px;
	margin-right: 24px;
}

.close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    transition: .4s;
}
.close:hover svg>rect {
	fill: #9f2222;
    transition: .4s;
}


.windp {
	display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 100000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(38, 8, 15, 0.58) 100%);
}
.windp_block {
    background: #FFFFFF;
    box-shadow: 12px 28px 61px rgba(0, 0, 0, 0.25), 0px -19px 70px rgba(241, 192, 62, 0.12);
    border-radius: 8px;
    padding: 24px;
	display: grid;
    grid-template-columns: 44px auto;
    gap: 25px;
	max-width: 400px;
}
.windp_vert {
	background: #FFFFFF;
    box-shadow: 12px 28px 61px rgba(0, 0, 0, 0.25), 0px -19px 70px rgba(241, 192, 62, 0.12);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 284px;
}
.windp_block>img, .windp_block>svg, .windp_vert>img, .windp_vert>svg {
    max-width: 44px;
    max-height: 44px;
}
.windp_block b, .windp_vert b {
	font-family: 'Inter', Tahoma, sans-serif;
    display: block;
    margin-bottom: 24px;
	font-style: normal;
	font-weight: 600;
	font-size: 18px;
	line-height: 22px;
	color: #242526;
	opacity: 0.9;
}
.windp_block__center {
	font-family: 'Inter', Tahoma, sans-serif;
    display: block;
	font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #242526;
    opacity: 0.9;
	margin-bottom: 24px;
	max-width: 230px;
}
.windp_vert__center {
	font-family: 'Inter', Tahoma, sans-serif;
    display: block;
	font-weight: 600;
    font-size: 16px;
    line-height: normal;
    text-align: center;
    color: #242526;
    opacity: 0.9;
	margin-bottom: 19px;
	width: 100%;
}
.w138 { width:138px; }
.w100p { width:100%; }
.windp_block b>span {
	font-family: 'Mastodon', Tahoma, sans-serif;
    letter-spacing: 1.2px;
    font-size: 24px;
    font-weight: bold;
	padding-left: 5px;
}
.windp_block b>img {
	width: 25px;
	margin: 0 6px;
}
.button {
	display: inline-block;
	font-family: 'Boombox', Tahoma, sans-serif;
	padding: 5px 18px 3px 18px;
	color: #ffffff;
    font-style: normal;
	font-weight: 400;
	font-size: 22px;
	line-height: 25px;
    cursor: pointer;
    transition: .4s;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	border: none;
	min-width: 113px;
	text-align: center;
}
.button_green {
    background: #35B109;
}
.button_green:hover {
	background: #29820A;
    transition: .4s;
}
.button_red {
    background: #F75151;
}
.button_red:hover {
	background: #C23030;
    transition: .4s;
}
.button_blue {
    background: #0975B1;
}
.button_blue:hover {
	background: #166491;
    transition: .4s;
}

.margin_right8 { margin-right:8px; }
.close_mobile { display:none; }

@media screen and (max-width: 700px) {
	#ava, #har, .loc_window { height: calc(100% - 74px); }
	#ava .dm-cell, #har .dm-cell, .loc_window .dm-cell { padding:0; }
	#ava .dm-modal, #har .dm-modal, .loc_window .dm-modal {
		border-radius: 0;
		padding: 0 0 10px 0; /* 0 18px 18px 18px */
		max-width: 100%;
		width: 100%;
		height: 100%;
		box-shadow: none;
	}
	.loc_window .dm-modal {
		background: #1C1D22;
	}
	#har .dm-modal, .loc_window .dm-modal {
		padding: 0 18px;
		height: 100%;
	}
	#ava .dm-modal>h2 {
		margin: 0 0 24px 0px;
		width: 100%;
	}
	#har .dm-modal>h2, .loc_window .dm-modal>h2 {
		margin: 0 0 24px -18px;
		width: calc(100% + 36px);
	}
	#ava .dm-modal>h2, #har .dm-modal>h2, .loc_window .dm-modal>h2 {
		background: #1C1D22;
		border-radius: 0px 0px 4px 4px;
		line-height: 64px;
		text-align: center;
		color: #FFFFFF;
		opacity: 0.9;
		text-shadow: 0px 2.07958px 4.15917px rgba(0, 0, 0, 0.24), 0px 2.07958px 2.07958px rgba(0, 0, 0, 0.22);
		font-size: 21px;
		position: relative;
	}
	#ava .dm-modal>h2:after, #har .dm-modal>h2:after, .loc_window .dm-modal>h2:after {
		content: '';
		position: absolute;
		bottom: -3px;
		left: 3px;
		background: linear-gradient(89.98deg, #353577 32.49%, #7272CD 56.33%, #2F2F6F 75.39%);
		width: calc(100% - 6px);
		height: 3px;
		border-radius: 0px 0px 4px 4px;
	}
	#ava .close, #har .close, .loc_window .close { display:none; }
	#ava .close_mobile, #har .close_mobile, .loc_window .close_mobile {
		display: block;
		position: absolute;
		top: 0px;
		padding-top: 22px;
		left: 0px;
		padding-left: 25px;
		z-index: 1;
		width: 80px;
		height: 64px;
	}
	.ava_button {
		padding: 2px 0 0 !important;
		font-size: 14px !important;
		line-height: 18px !important;
		border-radius: 4px;
	}
	.ava_all__block>button { min-width:auto; }
	
	.dm-cell { padding: 2px; }
	.button {
		font-size: 18px;
		line-height: 21px;
		padding: 4px 16px 3px 16px;
	}
	.margin_right8 { margin-right:6px; }
	
	.windp_block {
		grid-template-columns: 100%;
		justify-items: center;
		gap: 18px;
	}
	.windp_block b {
		margin-bottom: 20px;
		text-align: center;
	}
	.windp_block b br { display:none; }
	.windp_block>div { text-align:center; }
	
} 