/* ----- ----- ----- ----- ----- TEMPLATES ----- ----- ----- ----- ----- */

:root {
	--bgcolor-main: #101010;
    --color-main: #b1b1b1;
	--color-light: #d7d7d7;
	--color-gray: #7d7d7d;
	--color-dark: #3d3d3e;
	--color-link: #007d9a;
	--color-link-dark: #324c51;
	--color-button: #004c60;
	--color-button-hover: #0082a1;
	--color-button-active: #00a9d1;
	--color-button-red: #600000;
	--color-button-red-hover: #a10000;
	--color-button-red-active: #d10000;
	--border-light: #1c2327;
	--border-dark: #191f21;
	--color-error: #8d2323;
}

/* ----- ----- ----- ----- ----- GENERAL ----- ----- ----- ----- ----- */

html {
	margin: 0;
	padding: 0;
	background: url('/res/img/background_main.png') center #161616;
	background-repeat: repeat-x;
	background-size: cover;
	background-attachment: fixed;
	color: var(--color-main);
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
}

main {
	background: var(--bgcolor-main);
}

/* ----- ----- ----- ----- ----- MAIN ----- ----- ----- ----- ----- */

#site-container {
	width: 1024px;
	margin: auto;
	padding: 80px 0 50px 0;
	font-size: 17px;
}

.main-full-container {
	padding: 20px;
}

.main-dual-container {
	display: flex;
}

#container-content {
	width: 724px;
}

#container-right-menu {
	background: #000000;
	width: 250px;
	padding: 20px 20px 20px 30px;
}

#container-right-menu ul {
	margin: 0;
	padding: 0;
}

/* ----- ----- ----- ----- ----- HEADER ----- ----- ----- ----- ----- */

header {
	width: 1024px;
	height: 280px;
}

#header-warning {
	position: absolute;
    top: 50px;
    padding-left: 10px;
    color: #6b1d1d;
}

#header-bar {
	height: 60px;
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
	flex-grow: 1;
}

#header-logo {
	min-width: 315px;
}

#header-logo {
	height: 60px;
	width: 315px;
    background: url('/res/img/logotype_main.png') no-repeat center;
	background-size: 90%;
}

#header-menu {
	width: max-content;
    height: 54px;
    padding: 3px 0;
}

#header-menu ul {
	margin: 0;
	padding: 0;
}

#header-menu li {
	float: left;
	border-left: 2px solid #0e1516;
	text-transform: uppercase;
}

#header-menu a {
	display: block;
	color: var(--color-gray);
	text-decoration: none;
	padding: 17px 24px;
}

#header-menu a:hover {
	background: linear-gradient(to right, #005a7261, #00000000);
	color: var(--color-light);
}

#header-menu a:active {
	background: linear-gradient(to right, #005a72a3, #0082a32b);
	color: #ffffff;
}

#header-menu .active {
	background: linear-gradient(to right, var(--color-button), var(--color-button-hover)) !important;
	color: var(--color-light);
}

#header-main {
	height: 220px;
	background: url('/res/img/background_header.png') no-repeat right bottom #101010;
	background-size: 102%;
}

/* ----- ----- ----- ----- ----- FOOTER ----- ----- ----- ----- ----- */

footer {
	font-size: 15px;
	color: var(--color-dark);
}

#footer-navigation {
	width: 914px;
	height: 110px;
	padding: 20px 55px 0 55px;
}

.footer-col-main {
	width: 315px;
	margin-right:29px
}

.footer-col {
	width: 170px;
	margin-left: 20px;
}

.footer-col ul {
	margin: 0;
}

.footer-col-main, .footer-col {
	height: inherit;
	float: left;
}

#footer-logo {
	width: 315px;
    height: 60px;
    background: url('/res/img/logotype_footer.png') center no-repeat;
    background-size: 90%;
}

#footer-promo {
	text-align: center;
	padding: 5px 0;
}

.footer-list-first {
	text-transform: uppercase;
	color: var(--color-gray);
	padding: 1px 0;
}

.footer-list-second {
	padding: 1px 0;
}

#footer-copyright {
	padding: 20px 0 0 0;
	text-align: center;
}

footer a {
	color: var(--color-link-dark);
}

footer a:hover {
	color: var(--color-main);
}

#to-top-bar {
	width: max-content;
    height: 20px;
    background: var(--bgcolor-main);
    clip-path: polygon(100% 0%, 90% 100%, 10% 100%, 0% 0%);
    text-align: center;
    margin: auto;
    padding: 3px 50px;
    color: var(--color-gray);
	cursor: pointer;
}

#to-top-bar:hover {
	background: linear-gradient(to top, #1c1c1c, var(--bgcolor-main));
	color: var(--color-main);
}

/* ----- ----- ----- ----- ----- TEXT & FIELDS ----- ----- ----- ----- ----- */

a {
	color: var(--color-link);
	text-decoration: none;
}

.text-as-url {
	color: var(--color-link);
	cursor: pointer;
	display: inline !important;
}

a:hover {
	color: #ffffff;
}

.text-as-url:hover {
	color: #ffffff;	
}

.link-gray {
	color: var(--color-gray);
	text-decoration: none;
}

.link-gray:hover {
	color: #ffffff;
}

input[type="text"], input[type="password"], input[type="email"], textarea {
	height: 26px;
	width: 198px;
	border: 1px solid #252525;
	color: var(--color-gray);
	padding: 2px 10px;
	background: #101010;
	outline: none;
}

input:-webkit-autofill {
    animation: autofill-fix 0.001s forwards !important;
}

@keyframes autofill-fix {
    to {
		-webkit-box-shadow: 0 0 0px 1000px var(--bgcolor-main) inset;
		-webkit-text-fill-color: var(--color-main);
    }
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
	height: 26px;
	width: 198px;
	border: 1px solid #252525;
	color: var(--color-gray);
	padding: 2px 10px;
	background: var(--bgcolor-main);
	background-image: url(img/flag.png);
	background-repeat: no-repeat;
	background-position: right 7px center;
}

select:focus {
	background-image: url('/res/img/flag_active.png');
}

option:checked {
	color: var(--color-main);
}

input {
	border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

input[type="button"], input[type="submit"], button {
	height: 32px;
	cursor: pointer;
	border: none;
	background: var(--color-button);
	color: var(--color-light);
	text-transform: uppercase;
	padding: 2px 20px 0 20px;
}

.button-red {
	background: var(--color-button-red) !important;
}

input:hover[type="button"], input:hover[type="submit"], button:hover {
	background: var(--color-button-hover);
	color: #ffffff;
}

.button-red:hover {
	background: var(--color-button-red-hover) !important;
}

input:active[type="button"], input:active[type="submit"], button:active {
	background: var(--color-button-active);
	color: #ffffff;
}

.button-red:active {
	background: var(--color-button-red-active) !important;
}

.small-button {
	padding: 2px 10px !important;
	position: absolute;
    margin-left: 5px;
}

input[type="checkbox"], input[type="radio"] {
	height: 20px;
    width: 20px;
    border: 1px solid #252525;
    color: var(--color-gray);
    background: #101010;
    outline: none;
	padding: 3px;
	cursor: pointer;
	content: "\2714";
}

input[type="checkbox"]:checked::after {
	content: "\2714";
    margin: -4px 0 0 1px;
    position: absolute;
    font-weight: bold;
}

input[type="radio"] {
	border-radius: 50% !important;
}

input[type="radio"]:checked::after {
	content: "\25CF";
    margin: -8px 0 0 -1px;
    position: absolute;
    font-weight: bold;
    font-size: 23px;
}

h1 {
	margin: 10px 0;
	padding: 0;
	font-size: 20px;
	font-weight: normal;
	color: #ffffff;	
	text-transform: uppercase;
}

h2 {
	margin: 10px 0;
	padding: 0;
	font-size: 20px;
	font-weight: normal;
	color: #ffffff;	
}

h3 {
	text-transform: uppercase;
	color: var(--color-gray);
	font-size: 17px;
	font-weight: normal;
	margin: 5px 0;
}

h4 {
	text-transform: uppercase;
	color: var(--color-dark);
	font-size: 10px;
	font-weight: normal;
	margin: 2px 0;
}

h5 {
	text-transform: uppercase;
	color: var(--color-dark);
	font-size: 12px;
	font-weight: normal;
	margin: 2px 0;
	float: right;
}

h6 {
	color: var(--color-dark);
	font-size: 14px;
	font-weight: normal;
	margin: 2px 0;
}

hr {
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-dark);
	border-left: none;
	border-right: none;
	margin: 5px 0;
}

p {
	font-size: 17px;
    margin-block-start: 10px;
    margin-block-end: 10px;
    margin-inline-start: 0;
    margin-inline-end: 0;
    unicode-bidi: normal;
}

@media(max-width: 1024px) {
	p {
		font-size: 17px;
	}
}

.text_light {
	color: var(--color-gray);
	font-size: 15px;
}

#button-search {
	width: 32px;
	height: 32px;
	cursor: pointer;
	border: none;
	background: var(--color-button);
	padding: 0;
	float: right;
	background-image: url('/res/img/icons/icon_search.png');
	background-position-x: right;
}

#button-search:hover {
	background: var(--color-button-hover);
	background-image: url('/res/img/icons/icon_search.png');
	background-position-x: left;
}

#button-search:active {
	background: var(--color-button-active);
	background-image: url('/res/img/icons/icon_search.png');
	background-position-x: left;
}

.page-selector-block {
	text-align: center;
	padding: 10px 0;
}

.page-selector {
	font-size: 13px;
    min-width: 30px;
    height: 30px;
    padding: 2px;
    background: var(--color-dark);
}

.page-selector:hover, .page-selector-block .active {
	background: var(--color-gray);
}

.page-selector:active {
	background: var(--color-main);
}

.page-fake-selector {
	font-size: 13px;
    padding: 7.5px 9.58px;
    background: #212020;
    display: inline;
}

li {
	list-style: none;
}

.list-style-paragraph {
	padding-left: 30px;
	margin: 10px 0;
}

.list-style-paragraph li {
	list-style: square;
	padding: 2px 0;
}

.list-first-level {
	text-transform: uppercase;
}

.list-secont-level {
	padding-left: 20px;
}

.highlight {
	background: var(--color-link-dark);
}

.link-right-menu {
	color: var(--color-gray);
}

.link-right-menu:hover {
	color: var(--color-light);
	text-decoration: underline;
}

.link-right-menu:active {
	color: #ffffff;
	text-decoration: underline;
}

.list-active::before {
	content: '►';
    color: var(--color-gray);
    font-size: 12px;
}

/* ----- ----- ----- ----- ----- PAGES ----- ----- ----- ----- ----- */

/* ----- Main page ----- */

#section-hello {
	height: 186px;
}

.hello-text {
	width: 612px;
	height: inherit;
	float: left;
	padding-right: 20px;
}

.hello-promo {
	width: 352px;
	height: inherit;
	float: left;
}

#section-status, #section-last-news {
	margin-top: 20px;
}

/* ----- ----- ----- ----- ----- NEWS ----- ----- ----- ----- ----- */

/* ----- Main page ----- */

#news-navigation {
	width: 100%;
	height: 32px;
}

#news-categories {
	width: max-content;
    float: left;
}

#news-categories .active {
	background: var(--color-button-hover);
}

.news-cat-button {
	width: 150px;
}

#news-search {
	width: max-content;
    float: right;
}

.news-search-field {
	width: 265px !important;
}

.news-search-warning {
	background: url('/res/img/icons/icon_warning.png') no-repeat left center;
	padding: 20px 0 15px 50px;
	margin-left: 10px;
}

.news-cat-empty {
	text-align: center;
    height: 521px;
    align-content: center;
    background: url('/res/img/empty.png') center bottom no-repeat;
    background-size: 100%;
}

.news-cat-forbidden {
	text-align: center;
    height: 521px;
    align-content: center;
    background: url('/res/img/forbidden.png') center bottom no-repeat;
    background-size: 100%;
}

.news-cat-empty .search-text, .news-cat-forbidden .search-text, .news-cat-undefined .search-text {
	font-size: 20px;
}

.news-search-result {
	background: url('/res/img/icons/icon_search_result.png') no-repeat left center;
	padding: 20px 0 15px 50px;
	margin-left: 10px;
}

.news-cat-undefined {
	text-align: center;
    height: 521px;
    align-content: center;
    background: url('/res/img/news/no_icon.png') center bottom no-repeat;
    background-size: 100%;
}

/* ----- Main page ----- */

.news-hidened-title {
	font-size: 20px;
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
    color: #ffffff;
}

/* ----- Preview ----- */

.news-preview-container {
	cursor: pointer;
	padding: 15px 0;
	height: 124px;
}

.news-preview-container:hover {
	background: linear-gradient(to right, #005a7221, #00000005);
}

.news-preview-container:hover h3 {
	color: #d7d7d7;
}

.news-preview-logo {
	width: 220px;
	float: left;
	margin-left: 15px;
}

.news-preview-content {
	width: 714px;
	height: 124px;
	float: right;
	margin: 0 15px 0 20px;
	display: grid;
	align-content: center;
}

/* ----- News page ----- */

#news-content {
	margin: 15px 0;
}

#news-keywords {
	text-transform: uppercase;
    color: var(--color-dark);
    font-size: 10px;
    margin: -13px 0 2px 0;
	float: right;
	text-align: right;
	width: max-content;
	max-width: 350px;
	padding-left: 15px;
    background: url('/res/img/icons/icon_tags.png') left center no-repeat;
    background-size: 4%;
}

#news-view-counter {
	text-transform: uppercase;
    color: var(--color-dark);
    font-size: 12px;
    float: right;
    padding-top: 8px;
}

/* ----- ----- ----- ----- ----- ERROR PAGES ----- ----- ----- ----- ----- */

.error-page {
	display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.error-icon {
	width: 270px;
	height: 450px;
	float: left;
}

#icon-prepare {
	background: url('/res/img/error/prepare.png') no-repeat center;
}

#icon-prof {
	background: url('/res/img/error/prof.png') no-repeat center;
}

#icon-fatal {
	background: url('/res/img/error/fatal.png') no-repeat center;
}

#icon-403 {
	background: url('/res/img/error/403.png') no-repeat center;
}

#icon-404 {
	background: url('/res/img/error/404.png') no-repeat center;
}

#icon-report {
	background: url('/res/img/error/report.png') no-repeat center;
}

#error-message {
	width: 500px;
	height: 450px;
	float: left;
	margin-left: 30px;
}

#site-container-error {
	height: 450px;
	background: var(--bgcolor-main);
}

#error-block {
	height: 415px;
	align-content: center;
}

#error-codename {
    font-size: 35px;
    text-transform: uppercase;
	width: max-content;
}

#error-code {
    font-size: 60px;
    text-transform: uppercase;
	width: -webkit-fill-available;
	border-left: 4px solid #0e1516;
    padding-left: 10px;
    background: linear-gradient(to right, #005a7261, #00000000);
    margin-bottom: 10px;
}

#error-block .small {
	font-size: 38px;
}
#error-block .redcode {
	border-left: 4px solid #211111;
	background: linear-gradient(to right, #72000061, #00000000);
}

#error-text {
	color: #757575;
    width: -webkit-fill-available;
    max-width: 500px;
    font-size: 18px;
    margin: 20px 20px 20px 0;
}

#error-copyright {
	font-size: 13px;
	color: #3f3f3f;
	margin: 10px 0;
}

.error-report-line {
	padding: 5px 0;
	display: flex;
	align-items: center;
	width: 440px;
}

.error-report-title {
	width: 120px;
}

.error-report-value {
	width: 300px;
	margin-left: 20px;
}

.error-input {
	width: -webkit-fill-available !important;
}

.error-textinput {
	width: -webkit-fill-available;
	height: 45px;
	margin-bottom: 5px;
	resize: none;
}