﻿/* Сброс и базовые стили */
* {
	box-sizing: border-box;
}

/* Базовые переменные (если поддерживается) */
:root {
	--primary-color: #820000;
	--text-color: #FC9;
	--link-color: #820000;
	--bg-dark: #000;
	--bg-accent: #980505;
	--border-color: #000;
	--shadow-color: #666;
	--light-text: #FFF;
	--muted-text: #60606B;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-color);
	font-family: Verdana, sans-serif;
	font-size: 12px;
	margin: 10px auto;
	max-width: 1300px;
}

/* Меню */
.topmenu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 30px;
	font-size: 1em;
	line-height: 30px;
	margin: 0px 10px;
}

.topmenu-left,
.topmenu-right {
	display: flex;
	align-items: center;
	gap: 5px;
}

.topmenu a {
	text-decoration: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.topmenu a+a::before {
	content: "|";
	margin: 0 5px;
}

.topmenu img {
	vertical-align: middle;
	height: 16px;
	width: auto;
}

/* Ссылки */
a:link,
a:visited {
	color: var(--link-color);
	text-decoration: none;
}

a.active {
	color: darkorange;
}

/* Формы */
input,
textarea,
select {
	color: #FFDFBF;
	font: normal 1.1em sans-serif;
	border: 1px solid var(--border-color);
	border-radius: 3px;
	background-color: var(--primary-color);
	padding-left: 5px;
}

select:hover {
	filter: brightness(130%);
}

input[type="submit"] {
	padding: 5px 15px;
	transition: 0.5s;
	opacity: 1;
}

input[type="submit"]:hover {
	filter: brightness(130%);
}

hr {
	border: none;
	height: 0.5px;
	background-color: #3563D7;
}

/* Заголовки */
.headline {
	font-weight: bold;
	color: #87CEEB;
	font-size: 11px;
}

/* Основные строки */
.mainrow,
.siterow {
	color: var(--light-text);
	background-color: #510000;
}

.mainrow a:link,
.mainrow a:visited,
.mainrow a:active,
.siterow a:link,
.siterow a:visited,
.siterow a:active {
	color: #F2F2F2;
	padding: 1px;
}

/* Вспомогательные классы */
.scate {
	color: #696969;
	display: inline-block;
}

.scomm,
.nrate {
	display: inline-block;
	width: 45px;
}

.grate {
	display: inline-block;
}

/* Таблицы и контейнеры */
.maintable {
	width: 100%;
	background-color: var(--bg-accent);
	border-radius: 10px;
	border: 1px solid var(--border-color);
	box-shadow: 0 0 15px var(--shadow-color);
	padding: 0.5px;
}

/* Новости */
.news {
	padding-left: 15px;
	background-color: #000;
}

.newstitle {
	color: var(--light-text);
	padding-left: 25px;
	padding-bottom: 3px;
}

.newstd {
	padding-left: 20px;
	padding-right: 50px;
}

.newsdetails {
	border-top: 1px dashed #2B2B30;
	border-bottom: 1px dashed #2B2B30;
	color: var(--muted-text);
	padding: 3px 0 5px 15px;
	text-align: left;
	font-size: 8pt;
}

/* Отзывы */
.revtitle,
.revcomm {
	font-size: 1.1em;
	padding-left: 5px;
}

/* Реклама */
.sitead {
	border-top: 1px dashed #2B2B30;
	border-bottom: 1px dashed #2B2B30;
	color: var(--muted-text);
	padding: 3px 0 5px 15px;
	text-align: center;
	font-size: 10pt;
	opacity: 0.4;
	transition: 1s;
}

.sitead:hover {
	opacity: 1;
}

.revad {
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 10000;
	width: 100%;
	height: 31px;
	border-top: 1px dashed #2B2B30;
	color: var(--muted-text);
	font-size: 8pt;
	background-color: var(--bg-dark);
	opacity: 0.7;
}

/* Таймер */
.timer {
	margin-top: 5%;
	font-size: 2em;
	color: var(--primary-color);
	text-shadow: 2px 1px 2px #f00, 3px 3px 2em red;
}

/* Баннер и описание */
.siterank {
	vertical-align: middle;
	text-align: center;
	max-width: 60px;
}

.banimg {
	width: 100%;
	max-width: 468px;
	height: 60px;
	background: url(/images/loader.gif) 50% no-repeat;
	border: 0;
}

td.sitebanner {
	width: 470px;
	max-width: 100%;
	text-align: center;
}

.banimgno {
	max-width: 468px;
	max-height: 60px;
	border: 0;
}

.sitedescript {
	font-size: 1em;
}

.sitein {
	vertical-align: middle;
	text-align: center;
	max-width: 40px;
}

.siteout {
	vertical-align: middle;
	text-align: center;
	max-width: 40px;
}

/* Соцсети */
.ya-share2__container_size_s .ya-share2__popup_direction_bottom {
	opacity: 0.85;
}

.ya-share2 {
	float: right;
	height: 16px;
	margin-top: 3px;
	margin-right: 5px;
}

/* Адаптивность 768px */
@media (max-width: 900px) {
	.maintable {
		width: 99%;
		font-size: 1.1em;
		margin: 0px auto;
	}

	.topmenu {
		flex-direction: column;
		gap: 12px;
		height: auto;
		line-height: normal;
		padding: 10px 0;
	}

	.topmenu-left,
	.topmenu-right {
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	.topmenu-right {
		order: 2;
	}

	.topmenu a {
		background-color: rgba(96, 96, 107, 0.3);
		padding: 6px 10px;
		border-radius: 4px;
		white-space: nowrap;
	}

	.topmenu a+a::before {
		display: none;
	}

	.topmenu img {
		height: 14px;
	}

	td.sitebanner {
		width: 156px;
	}

	.banimg {
		height: 30px;
	}

	.ya-share2 {
		float: right;
		height: 16px;
		display: table;
	}
}