.body-overlayed embed, .body-overlayed object, .body-overlayed select
{
	visibility: hidden;
}

#sbox-window embed, #sbox-window object, #sbox-window select
{
	visibility: visible;
}

#sbox-overlay
{
	position: fixed !important;
	inset: 0;
	background: rgba(6, 12, 17, 0.78);
	backdrop-filter: blur(4px);
}

#sbox-window
{
	position: fixed !important;
	background: linear-gradient(180deg, rgba(248, 241, 227, 0.98), rgba(237, 226, 204, 0.97));
	text-align: left;
	overflow: visible;
	padding: 10px;
	border: 1px solid rgba(200, 184, 150, 0.76);
	border-radius: 16px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	box-sizing: border-box;
	max-width: calc(100vw - 24px) !important;
	max-height: calc(100vh - 24px) !important;
}

#sbox-btn-close
{
	position: absolute;
	width: 34px;
	height: 34px;
	right: -12px;
	top: -12px;
	background: radial-gradient(circle at 32% 28%, #3f5f78 0%, #253c4c 66%, #1a2d3a 100%);
	border: 1px solid rgba(200, 184, 150, 0.82);
	border-radius: 999px;
	box-shadow: 0 7px 14px rgba(0, 0, 0, 0.34);
	cursor: pointer;
	z-index: 2;
}

#sbox-btn-close::before
{
	content: "×";
	display: block;
	text-align: center;
	line-height: 32px;
	color: #f5efe1;
	font-size: 26px;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sbox-window-ie6 #sbox-btn-close
{
	background-image: url(../images/closebox.gif);
}

.sbox-loading #sbox-content
{
	background-image: url(../images/spinner.gif);
	background-repeat: no-repeat;
	background-position: center;
}

#sbox-content
{
	clear: both;
	overflow: auto;
	background-color: rgba(255, 255, 255, 0.82);
	border-radius: 12px;
	height: 100%;
	width: 100%;
}

.sbox-content-image#sbox-content
{
	overflow: visible;
}

#sbox-image
{
	display: block;
}

.sbox-content-image img
{
	display: block;
}

.sbox-content-iframe#sbox-content
{
	overflow: hidden;
}

#sbox-content iframe
{
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 10px;
	background: transparent;
}

@media screen and (max-width: 900px) {
	#sbox-overlay {
		backdrop-filter: blur(3px);
	}

	#sbox-window {
		padding: 8px !important;
		border-radius: 14px;
		max-width: calc(100vw - 10px) !important;
		max-height: calc(100vh - 10px) !important;
	}

	#sbox-content {
		border-radius: 10px;
	}

	#sbox-btn-close {
		width: 32px;
		height: 32px;
		right: -9px;
		top: -9px;
	}

	#sbox-btn-close::before {
		line-height: 30px;
		font-size: 24px;
	}
}

@media screen and (max-width: 640px) {
	#sbox-window {
		padding: 6px !important;
		border-radius: 12px;
	}

	#sbox-overlay {
		backdrop-filter: blur(2px);
	}
}

/* ОПТИМИЗАЦИЯ: Удалены устаревшие свойства для старых браузеров */
.footer
{
	font-family: Verdana, sans-serif;
	font-size: 12px;
	background-color: #EEEEEE;
	border: 1px solid #DDDDDD;
	opacity: 0.85;
	text-align: center;
}

.mfooter
{
	font-family: Verdana, sans-serif;
	font-size: 12px;
	background-color: #EEEEEE;
	border: 1px solid #DDDDDD;
	opacity: 0.85;
	text-align: center;
	width: 200px;
}


a.Main 
{
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #eee;
	border-right-color: #ddd;
	border-bottom-color: #ddd;
	text-align: center;
	font-family: "Trebuchet MS",Verdana, Geneva, Arial, Helvetica, sans-serif;
	z-index: 50;
	font-size: 12px;
	text-decoration: none;
}
a.Main:hover
{
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #eee;
	border-right-color: #ddd;
	border-bottom-color: #ddd;
	text-align: center;
	font-family: "Trebuchet MS",Verdana, Geneva, Arial, Helvetica, sans-serif;
	z-index: 50;
	font-size: 12px;
	color: #FFFFFF;
	text-decoration: none;
}

.wTitle
{
	border-style: none;
	background-color: transparent;
	font-family: Verdana, Arial, Tahoma;
	FONT-SIZE: 14px;
	COLOR: #FFF;
	font-weight: bold;
}

.sTitle
{
	border-style: none;
	background-color: transparent;
	font-family: Verdana, Arial, Tahoma;
	FONT-SIZE: 12px;
	COLOR: #FFF;
}
