/* =========== © 2020 CENTROARTS =========== */

@font-face {
	font-family: 'hdp_tt_commons';
	src: url('../fonts/tt_commons_regular.eot');
	src: url('../fonts/tt_commons_regular.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/tt_commons_regular.woff2') format('woff2'),
	     url('../fonts/tt_commons_regular.woff') format('woff'),
	     url('../fonts/tt_commons_regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'hdp_tt_commons';
	src: url('../fonts/tt_commons_bold.eot');
	src: url('../fonts/tt_commons_bold.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/tt_commons_bold.woff2') format('woff2'),
	     url('../fonts/tt_commons_bold.woff') format('woff'),
	     url('../fonts/tt_commons_bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}

:root, [data-theme="light"] {
	color-scheme: light;

	--c-body: #F0F0F0;
	--c-body-rgb: 240, 240, 240;
	--gradient-body: linear-gradient(180deg, #f7f7f7 0%, var(--c-body) 100%);

	--c-text: #262626;
	--c-text-rgb: 38, 38, 38;
	--c-text-mute: #B6B6B6;

	--c-hr: #EDEFF1;

	--c-primary: #F06513;
	--c-primary-rgb: 240, 101, 19;

	--c-primary-a: #E24C01;
	--c-primary-a-rgb: 226, 76, 1;

	--c-primary-bg: #fd823e;
	--c-primary-bg-rgb: 253, 130, 62;

	--c-link: var(--c-primary);
	--c-link-rgb: var(--c-primary-rgb);

	--logo-smile-shadow: rgba(38, 38, 38, 0.1);
	--logo-smile-border: var(--c-text);
	--logo-smile-head: #ffde59;
	--logo-smile-mouth: #871a45;
	--logo-smile-tongue: #fabfde;
	--logo-smile-eye: #fff;
	--logo-smile-light: #ff9;
	--logo-text-primary: var(--c-primary);
	--logo-text-second: var(--c-text);
	--logo-text-sub: var(--c-text-mute);

	--header-line: 0 1px 0 0 #fff, inset 0 -1px 0 0 rgba(0,0,0,0.075);
	--footer-line: 0 -1px 0 0 rgba(0,0,0,0.075), inset 0 1px 0 0 #fff;

	--block-bg: #F6F6F6;
	--block-bg-rgb: 246, 246, 246;
	--block-light-bg: #fafafa;
	--block-light-bg-rgb: 250, 250, 250;

	--block-main-bg: #FAFAFA;
	--block-main-bg-rgb: 250, 250, 250;
	--block-main-light-bg: #ffffff;
	--block-main-light-bg-rgb: 255, 255, 255;

	--block-sw: 0 .5rem 1rem 0 rgba(0,0,0,0.03), 0 0 0 1px rgba(0,0,0,0.05);

	--foot-line-bg: #F4F4F4;

	--mobile-menu-bg: #FAFAFA;
	--mobile-menu-sw: 0 1rem 2rem 0 rgba(0,0,0,0.2);

	--mobile-head-tools-bg: #262626;
	--mobile-head-tools-text: #ffffff;

	--dropdown-bg: #ffffff;
	--dropdown-sw: 0 .5rem 2rem -.5rem rgba(0,0,0,0.2);

	--modal-bg: #fafafa;

	--edit-btn-bg: #fdfdfd;
	--edit-btn-br: #ededed;
	--edit-btn-hover-bg: #f7f7f7;
	--edit-btn-active-sw: inset .1125rem .1125rem .5rem 0 rgba(0,0,0,0.05);

	--darkmod-switch: #ffffff;
	--darkmod-switch-bg: #EAEAEA;

	--ankers-gradient: linear-gradient(180deg, rgba(var(--c-text-rgb),0) 0%, rgba(var(--c-text-rgb),0.075) 300px, rgba(var(--c-text-rgb),0.075) 100%);
	--ankers-up-border: #E4E4E4;
	--ankers-up-sw: #fff;

	--btn-c-text: #ffffff;
	--btn-c-bg: var(--c-primary);
	--btn-c-bg-active: var(--c-primary-a);
	--btn-sw: 0 0 0 0 rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(var(--c-primary-rgb),0.6);
	--btn-sw-hover: 0 0 0 .25rem rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(var(--c-primary-rgb),0.6);
	--btn-sw-active: inset 0 .125rem .125rem 0 rgba(0,0,0,.1);

	--btn-gradient: linear-gradient(180deg, var(--btn-c-bg) 0%, var(--btn-c-bg-active) 100%);
	
	--btn-dark-c-text-hover: #EF6412;
	--btn-dark-c-text-active: #D85C13;
	--btn-dark-c-bg: #2C2C2C;
	--btn-dark-c-bg-active: #242424;
	--btn-dark-sw: 0 0 0 0 rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(44,44,44,0.2);
	--btn-dark-sw-hover: 0 0 0 .25rem rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(0,0,0,0.2);
	--btn-dark-sw-active: inset 0 .125rem .125rem 0 rgba(0,0,0,.3);

	--input-bg: #ffffff;
	--alert-bg: #feeba7;
	--alert-c-text: #7e5315;

	--select-arrow: url("../images/select-arrow-light.svg");
}

[data-theme="dark"] {
	color-scheme: dark;

	--c-body: #222222;
	--c-body-rgb: 34, 34, 34;
	--gradient-body: linear-gradient(180deg, #2d2d2d 0%, var(--c-body) 100%);

	--c-text: #F4F4F4;
	--c-text-rgb: 244, 244, 244;
	--c-text-mute: #B6B6B6;

	--logo-smile-shadow: rgba(0, 0, 0, 0.15);
	--logo-smile-border: #1D1D1D;
	--logo-smile-eye: #fff;
	--logo-smile-light: #ff9;
	--logo-text-primary: var(--c-primary);
	--logo-text-second: var(--c-text);
	--logo-text-sub: var(--c-text-mute);

	--header-line: 0 1px 0 0 rgba(255,255,255,.075), inset 0 -1px 0 0 rgba(0,0,0,0.15);
	--footer-line: 0 -1px 0 0 rgba(0,0,0,0.15), inset 0 1px 0 0 rgba(255,255,255,.075);

	--mobile-menu-bg: #313131;

	--ankers-up-border: #1d1d1d;
	--ankers-up-sw: rgba(255,255,255,.075);

	--block-bg: #2D2D2D;
	--block-bg-rgb: 45, 45, 45;
	--block-light-bg: #343434;
	--block-light-bg-rgb: 52, 52, 52;

	--block-main-bg: #313131;
	--block-main-bg-rgb: 49, 49, 49;
	--block-main-light-bg: #3B3B3B;
	--block-main-light-bg-rgb: 59, 59, 59;

	--block-sw: 0 .5rem 1rem 0 rgba(3, 3, 3, 0.03), 0 0 0 1px rgba(var(--c-text-rgb),0.1);

	--foot-line-bg: #292929;

	--dropdown-bg: #313131;
	--dropdown-sw: 0 .5rem 2rem -.5rem rgba(0,0,0,0.4);

	--modal-bg: #313131;

	--edit-btn-bg: #343434;
	--edit-btn-br: #3d3d3d;
	--edit-btn-hover-bg: #414141;
	--edit-btn-active-sw: inset .1125rem .1125rem .5rem 0 rgba(0,0,0,0.05);

	--darkmod-switch: #F4F4F4;
	--darkmod-switch-bg: var(--c-primary);

	--btn-dark-c-bg: #434343;
	--btn-dark-c-bg-active: #3B3B3B;
	--btn-dark-sw: 0 0 0 0 rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(44,44,44,0.2);
	--btn-dark-sw-hover: 0 0 0 .25rem rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(0,0,0,0.2);
	--btn-dark-sw-active: inset 0 .125rem .125rem 0 rgba(0,0,0,.3);

	--input-bg: #3B3B3B;
	--alert-bg: #eec636;
	--alert-c-text: #463113;

	--select-arrow: url("../images/select-arrow-dark.svg");
}


/* Общее */
*, *::before, *::after { box-sizing: border-box; -webkit-box-sizing: border-box; }
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; }
html { font-family: sans-serif; line-height: 1; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0); }

[tabindex="-1"]:focus { outline: 0 !important; }

hr { box-sizing: content-box; -webkit-box-sizing: content-box; height: 0; overflow: visible; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; }
p { margin-top: 0; margin-bottom: 2rem; }

abbr[title],
abbr[data-original-title] {
	text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted;
	cursor: help; border-bottom: 0; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none;
}
address { margin-bottom: 1rem; font-style: normal; line-height: inherit; }
ol, ul, dl { list-style: none; padding: 0; margin: 0; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin-bottom: .5rem; margin-left: 0; }
blockquote { margin: 0 0 1rem; }
b, strong { font-weight: bold; }
small, .small { font-size: .75em; }
sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }

a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):focus { outline: 0; }

pre, code, kbd, samp { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }
pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; }
figure { margin: 0 0 1rem; }
img { vertical-align: middle; border-style: none; }
svg { overflow: hidden; vertical-align: middle; }
table { border-collapse: collapse; }
caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: var(--c-text-mute); text-align: left; caption-side: bottom; }
th { text-align: inherit; }
label { display: inline-block; margin-bottom: 0.5rem; }
button { border-radius: 0; }
button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, input { overflow: visible; }
button, select { text-transform: none; }
select { word-wrap: normal; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; outline: none !important; }
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) { cursor: pointer;}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner { padding: 0; border-style: none; }
input[type="radio"],
input[type="checkbox"] { box-sizing: border-box; -webkit-box-sizing: border-box; padding: 0; }
textarea { overflow: auto; resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal;}
progress { vertical-align: baseline; }
[type="search"] { outline-offset: -2px; -webkit-appearance: none; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; }
output { display: inline-block; }
summary { display: list-item; cursor: pointer; }
template { display: none; }
[hidden] { display: none !important; }

/* Настройка основной типографии */
body {
	margin: 0; font-family: hdp_tt_commons, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: 1rem; font-weight: normal; line-height: 1.5; text-align: left;
	text-rendering: optimizeLegibility;
}
html { height: 100%; overflow-y: scroll; }
body { min-height: 100%; min-width: 320px; display: flex; flex-direction: column; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	margin-bottom: 0.5rem;
	font-weight: 500;
	line-height: 1.3;
}
@media (min-width: 576px) {
	h1, .h1 { font-size: 2rem; }
	h2, .h2 { font-size: 1.625rem; }
	h3, .h3 { font-size: 1.5rem; }
	h4, .h4 { font-size: 1.25rem; }
	h5, .h5 { font-size: 1.125rem; }
}
@media (max-width: 575px) {
	h1, .h1 { font-size: 1.75rem; }
	h2, .h2 { font-size: 1.5rem; }
	h3, .h3 { font-size: 1.25rem; }
	h4, .h4 { font-size: 1.125rem; }
	h5, .h5 { font-size: 1rem; }
}
h6, .h6 { font-size: 1rem; }

.title { line-height: 1.3; }

hr { margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid var(--c-hr); }

.fw-bold { font-weight: bold; }
.fw-normal { font-weight: normal; }
.uppercase { text-transform: uppercase; }
.noline { text-decoration: none !important; }

.vhide { border: 0; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }
.cover { display: block; background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; }
	
/* --- Базовые слои --- */
body { color: var(--c-text); background-color: var(--c-body); }
body::after {
	content: ""; position: absolute; left: 0; top: 0; z-index: -1; width: 100%; height: 32rem;
	background-image: var(--gradient-body);
}
a { color: var(--c-link); text-decoration: none; background-color: transparent; }
@media (min-width: 992px) {
	a:hover { text-decoration: underline; }
}
.muted { color: var(--c-text-mute) !important; }
.c-orange { color: var(--c-primary) !important; }
.bg-orange { background-color: var(--c-primary-bg) !important; }
.btn, .bbcodes, .ui-button, .btn-dark {
	height: 2.5rem; line-height: 1.5rem; padding: .5rem 1rem; border-radius: 1.25rem; white-space: nowrap; text-align: center;
	display: inline-block; vertical-align: top; border: 0 none; text-transform: uppercase; font-weight: bold;
	cursor: pointer; outline: none; text-decoration: none !important;
	color: var(--btn-c-text) !important; text-decoration: none !important;
	transition: box-shadow .15s cubic-bezier(.26,.56,.54,.88);
}
.btn, .bbcodes, .ui-button {
	background-color: var(--btn-c-bg);
	background-image: var(--btn-gradient);
	box-shadow: var(--btn-sw);
}

.ui-button, .qq-upload-button { padding: .5rem .75rem; line-height: 1rem; height: 2rem; font-size: .75rem; }
.btn-dark { background: var(--btn-dark-c-bg); box-shadow: var(--btn-dark-sw); }

@media (min-width: 992px) {
	.btn:hover, .bbcodes:hover, .ui-button:hover { box-shadow: var(--btn-sw-hover); }
	.btn:active, .bbcodes:active, .ui-button:active { background: var(--btn-c-bg-active); box-shadow: var(--btn-sw-active); }
	.btn-dark:hover {
		color: var(--btn-dark-c-text-hover) !important; box-shadow: var(--btn-dark-sw-hover);
		transition: box-shadow .15s cubic-bezier(.26,.56,.54,.88), color .15s cubic-bezier(.26,.56,.54,.88);
	}
	.btn-dark:active { color: var(--btn-dark-c-text-active) !important; background: var(--btn-dark-c-bg-active); box-shadow: var(--btn-dark-sw-active); }
}
@media (max-width: 575px) {
	.btn-block { width: 100%; }
}

[class^="i__"], [class*=" i__"] { width: 1.5rem; height: 1.5rem; }

.wrp { padding-left: 1rem; padding-right: 1rem; } 
@media (min-width: 768px) {
	.wrp { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1130px) {
	.wrp { padding-left: 5rem; padding-right: 1.5rem; }
}
@media (min-width: 1420px) {
	.wrp { width: 100%; max-width: 110rem; padding: 0 4rem 0 5rem; margin: 0 auto; }
}

/* --- Шапка сайта (HEADER) --- */
.header { position: relative; box-shadow: var(--header-line); }
.header > .wrp, .logo { display: flex; align-items: center; }

/* Logo */
.logo svg { width: auto; height: 2.25rem; }
@media (min-width: 520px) {
	.logo svg { height: 3rem; }
}
.logo-smile-shadow { fill: var(--logo-smile-shadow); }
.logo-smile-border { fill: var(--logo-smile-border); }
.logo-smile-head { fill: var(--logo-smile-head); }
.logo-smile-mouth { fill: var(--logo-smile-mouth); }
.logo-smile-tongue { fill: var(--logo-smile-tongue); }
.logo-smile-eye { fill: var(--logo-smile-eye); }
.logo-smile-light { fill: var(--logo-smile-light); }
.logo-text-primary { fill: var(--logo-text-primary); fill: var(--c-primary); }
.logo-text-second { fill: var(--logo-text-second); fill: var(--c-text); }
.logo-text-sub { fill: var(--logo-text-sub); fill: var(--c-text-mute); }

/* Head BTN */
.head_links, .head_tools { display: flex; align-items: center; }
@media (min-width: 860px) {
	.header { padding: 1rem 0; }
	.head_tools { margin-left: auto; }
	.tools_btn { display: block; height: 3rem; width: 100%; line-height: 1.5rem; padding: .75rem; white-space: nowrap; border: 0 none; background: none; }
	.tools_btn > svg { width: 1.5rem; height: 1.5rem; vertical-align: top; }
	.head_tools .qsearch_btn { margin-right: .5rem; display: block !important; }
	.head_links .tools_btn:hover, .dropdown.open .drop_btn, .head_tools > .tools_btn { color: var(--c-primary); transition: color .2s ease; }
	.user_menu .drop_menu { margin-top: .25rem; }
}
@media (max-width: 991px) {
	.vmenu_btn { display: block !important; margin-right: 1rem; margin-left: -.75rem; color: var(--c-primary); }
	.head { display: flex; }
	
	html.hm body { overflow: hidden; height: 100%; }
	.side_left.open, .side_left.open + .vmenu_close { display: block !important; }
	.vmenu_close {
		background-color: #000; opacity: 0;
		position: fixed; left: 0; top: 0; bottom: 0; right: 0; outline: 0; z-index: 1110;
		transition: opacity .4s ease;
	}
	.side_left {
		position: fixed; left: 0; top: 0; bottom: 0; z-index: 1111; -webkit-overflow-scrolling: touch; outline: 0;
		width: 100%; max-width: 13rem; height: 100%; overflow: hidden; overflow-y: auto; background-color: var(--mobile-menu-bg);
		box-shadow: var(--mobile-menu-sw); transform: translateX(-50%); opacity: 0;
		transition: opacity .3s ease, transform .2s ease;
	}
	html.hm .side_left.open { opacity: 1; }
	html.hm .side_left.open { transform: translateX(0); }
	html.hm .side_left.open + .vmenu_close { opacity: .2; }

	.side_left .block { box-shadow: none; background: none; border-top: 1px solid rgba(var(--c-text-rgb),0.075); margin-top: .5rem; border-radius: 0; }
	.side_left .darkmod-toggle + .block { margin-top: 0; }
	.side_left .block:first-child { margin-top: 0 !important; }
}
@media (max-width: 859px) {
	.header > .wrp { flex-direction: column; padding: 0; }
	.head, .head_tools { width: 100%; }
	.head_tools { display: none !important; background-color: var(--mobile-head-tools-bg); color: var(--mobile-head-tools-text); font-size: .875rem; }
	.head_tools .tools_btn, .head .tools_btn { white-space: nowrap; border: 0 none; background: none; padding: 0; }
	.head_tools .tools_btn::after { display: none !important; }
	.head_tools .tools_btn { height: 2.5rem; line-height: 1.5rem; padding: .5rem 1rem; }
	.head_tools .btn, .head_tools .btn-dark { background: none; border-radius: 0; box-shadow: none; }
	.head_links { margin-right: auto; }
	.head_links .select_lang, .head_tools { order: -1; }
	.head_tools .select_lang .drop_menu { left: 0; }
	.head_tools .dropdown .drop_menu { transform: translate(0, -.5rem) !important; background-color: var(--mobile-head-tools-bg); border-top-right-radius: 0; border-top-left-radius: 0; }
	.head_tools .dropdown.open .drop_btn { opacity: .3; }
	.head_tools .dropdown.open .drop_menu { transform: translate(0, 0) !important; }
	.usc18 { opacity: .5; }

	.head { height: 4rem; padding: .5rem .25rem; }
	.head .logo { margin: 0 auto; }
	.head .tools_btn { display: block; height: 3rem; width: 100%; max-width: 3rem; line-height: 1.5rem; padding: .75rem; margin: 0; }
	.head .tools_btn > svg { width: 1.5rem; height: 1.5rem; vertical-align: top; }
	.head .qsearch_btn { display: block !important; color: var(--c-primary); }
}
@media (min-width: 768px) and (max-width: 859px) {
	.head_tools { padding: 0 .5rem; }
	.head { padding-left: .75rem; padding-right: .75rem; }
}

.head_links .tools_btn { color: inherit; text-transform: uppercase; text-decoration: none !important; }

.avatar { display: block; }
.avatar > .cover {
	width: 3rem; height: 3rem; box-shadow: inset 0 0 0 1px rgba(var(--c-text-rgb),0.075);
	border-radius: 50%; position: relative;
} 
.avatar.online > .cover::after {
	content: ""; position: absolute; left: 0; top: 100%;
	margin-top: -.25rem; width: .25rem; height: .25rem;
	background-color: #ADCE41; border-radius: 50%;
}

.dropdown { position: relative; }
.dropdown .drop_btn.btn::after, .dropdown .drop_btn.btn-dark::after { display: none; }
.dropdown .drop_btn::after {
	content: ""; display: inline-block; vertical-align: middle; margin-top: -.215rem; margin-left: .25rem;
	width: 0; height: 0; border: solid; border-width: 5px 3px 0 3px;
	border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent;
}

.user_menu .drop_menu { left: auto; right: 0; transform: translate(0, 1rem); }
.drop_menu {
	position: absolute; top: 100%; left: 50%; z-index: 99; width: 9rem; font-size: .85rem; border-radius: .25rem;
	border: 1px solid rgba(var(--c-text-rgb),0.03); padding: .5rem 0;
	box-shadow: var(--dropdown-sw);
	background-clip: padding-box; background-color: var(--dropdown-bg);
	transform: translate(-50%, 1rem); transition: opacity .2s ease, transform .4s ease;
}
.dropdown.open .drop_menu { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, 0); }
.dropdown.user_menu.open .drop_menu { transform: translate(0, 0); }

.drop_menu > a {
	text-decoration: none !important; color: inherit; display: block;
	padding: .25rem 1rem; border: 0 none; white-space: nowrap; color: inherit;
	transition: background-color .2s ease;
}
.drop_menu > a:hover, .langs > li a:hover { background-color: rgba(var(--c-primary-rgb),0.05); }
.drop_menu > .sep { display: block; height: 1px; margin: .5rem 0; background-color: rgba(var(--c-text-rgb),0.075); }
.drop_menu > .avatar { padding: .5rem 1rem .75rem 1rem; }

.langs > a { padding: .25rem 1rem; color: inherit !important; text-decoration: none !important; display: flex; align-items: center; }
.langs > a:hover { background-color: rgba(var(--c-primary-rgb),0.05); }
.langs > a img { width: 1.25rem; height: 1.25rem; margin-right: .5rem; }
.langs > a::after { content: attr(title); }

/* --- ФУТЕР --- */
.footer { margin-top: auto; font-size: .875rem; box-shadow: var(--footer-line); }
.footer footer { display: flex; align-items: center; height: 4rem; padding: 1rem 0; padding-left:4rem; }
.footer .counters { display: flex; }
.footer .counter { margin-left: 1rem; opacity: .3; transition: opacity .2s ease; }
.footer .counter:hover { opacity: .8; }
.copyright { margin-right: auto; }
.copyright a { color: inherit; }

/* --- Контент --- */
.content { padding: 1.5rem 0; position: relative; }
.side_left { display: none; min-width: 13rem; max-width: 13rem; order: -1; margin-right: 1.5rem; font-size: .875rem; }
.structure { margin-top: -1rem; }

@media (min-width: 768px) {
	.content { padding: 2rem 0; flex: 1 1 auto; }
	.structure { margin-top: -1.5rem; }
	.ankers { display: flex !important; }
}
@media (min-width: 992px) {
	.structure { display: flex; justify-content: end; }
	.side_main { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 14.5rem); }
	.footer footer { padding-left: 14.5rem; }
	.side_left { display: block; flex-shrink: 0; }
}
@media (min-width: 1130px) {
	.ankers svg { vertical-align: top; }
	.ankers { position: absolute; left: 0; top: 0; bottom: 0; width: 3.5rem; flex-direction: column; }
	.ankers::after {
		content: ""; position: absolute; right: 0; height: 100%; width: 1px;
		background-image: var(--ankers-gradient);
	}
	.ankers > a { width: 100%; height: 3.5rem; display: flex; align-items: center; justify-content: center; color: inherit !important; text-decoration: none !important; }
	.ankers > .anker_up { margin-top: auto; position: sticky; bottom: 0; }
	.ankers > .anker_down { position: sticky; top: 0; }
}
@media (min-width: 768px) and (max-width: 1129px) {
	.ankers { position: absolute; top: 100%; left: 0; }
	.anker_down { display: none; }
	.ankers > .anker_up { color: inherit; width: 4rem; height: 4rem; padding: 1.25rem; display: block; }
}
@media (max-width: 767px) {
	.footer { position: relative; }
	.footer .anker_up {
		display: flex !important; width: 3rem; height: 3rem; align-items: center; justify-content: center;
		position: absolute; left: 0; top: 0; margin: -.5rem 0 0 .5rem; color: inherit;
	}
	.footer .anker_up::before {
		content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid var(--ankers-up-border); border-top-color: transparent;
		margin: -1rem 0 0 -1rem; transform: translateY(-1px); width: 2rem; height: 2rem; border-radius: .25rem;
		border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 1px 0 0 var(--ankers-up-sw);
	}
}
@media (max-width: 575px) {
	.footer footer { padding-left: 0; display: block; height: auto; text-align: center; }
	.footer .counters { justify-content: center; margin-top: .5rem; }
	.footer .counter:first-child { margin-left: 0; }
}

/* Блоки */
.block { margin-top: 1rem; border-radius: .25rem; background-color: var(--block-bg); box-shadow: var(--block-sw); }
.block > .title { font-weight: bold; margin: 0; }
.block > .title, .block > .cont { padding: 1rem; }
.block > .title + .cont { margin-top: -1rem; }
.block > .block { margin-top: 0; border-top: 1px solid rgba(0,0,0,0.05); border-radius: 0; box-shadow: none; background-color: transparent !important; }

.side_left .block > .title { text-transform: uppercase; line-height: 1.3; }
.side_main .block { background-color: var(--block-main-bg); }
.side_main .block .title { line-height: 1; word-wrap: break-word; }
@media (min-width: 768px) {
	.block { margin-top: 1.5rem; }
	.side_main .block .title { font-size: 1.625rem; line-height: 1; }
	.side_main .block > .cont, .side_main .block > .title, .buy-premium { padding: 2rem; }
	.side_main .block .title + .cont, .story-cont + .buy-premium { margin-top: -2rem; }
}
@media (min-width: 992px) {
	.block.sticky { position: sticky; top: 1.5rem; }
}
@media (max-width: 767px) {
	.side_main .block > .title { font-size: 1.125rem; }
	.side_main .block > .cont, .side_main .block > .title, .buy-premium { padding: 1.25rem; }
	.side_main .block .title + .cont, .story-cont + .buy-premium { margin-top: -1.25rem; }
}
@media (max-width: 575px) {
	.side_main .block .title { text-align: center; }
}

/* DarkMod */
.darkmod-toggle {
	position: relative; z-index: 1; display: flex; align-items: center;
	padding: 10px; gap: 6px; user-select: none;
}
.darkmod-toggle .darkmod-label { flex: 1 1 auto; padding-left: 6px; }
.darkmod-switch {
	flex-shrink: 0; width: 36px; height: 20px; border-radius: 20px;
	background-color: var(--darkmod-switch-bg);
	box-shadow: inset 0 3px 6px 0 rgba(0,0,0,.1);
	padding: 2px; border: 0 none;
	transition: background-color .2s ease-out;
}
.darkmod-switch::after { content: ""; position: absolute; inset: 0; }
.darkmod-switch > i {
	display: block;
	width: 16px; height: 0; padding-top: 16px; overflow: hidden;
	background-color: var(--darkmod-switch); border-radius: 50%;
	box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
	transition: transform .2s ease-out;
}
[data-theme="dark"] .darkmod-switch > i { transform: translateX(16px); }

/* Левые блоки */
.vmenu > a {
	display: block; padding: .375rem 1rem; line-height: 1.3rem; margin: 0 -1rem; overflow: hidden; position: relative;
	text-decoration: none !important; transition: background-color .125s ease;
}
.vmenu > a:hover { background-color: rgba(var(--c-primary-rgb),0.07); }
.vmenu > a:not(.active) { color: inherit; }
.vmenu > a.active { background-color: var(--block-light-bg); }
.vmenu > a.active::after {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0;
	background-color: var(--c-primary); width: 2px; border-radius: 0 2px 2px 0;
}

.menu-friends > a { display: flex; align-items: center; padding-top: .125rem; padding-bottom: .125rem; }
.menu-friends > a::before { content: ""; min-width: .5rem; max-width: .5rem; height: .5rem; margin: -2px .5rem 0 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23B6B6B6' d='M4,7.12l-.48-.44C1.8,5.12.67,4.09.67,2.83A1.81,1.81,0,0,1,2.47,1h0A2,2,0,0,1,4,1.7,2,2,0,0,1,5.5,1,1.81,1.81,0,0,1,7.33,2.8v0c0,1.26-1.13,2.29-2.85,3.85Z'/%3E%3C/svg%3E"); }
.menu-friends > a.fw-bold::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23F06513' d='M4,7.12l-.48-.44C1.8,5.12.67,4.09.67,2.83A1.81,1.81,0,0,1,2.47,1h0A2,2,0,0,1,4,1.7,2,2,0,0,1,5.5,1,1.81,1.81,0,0,1,7.33,2.8v0c0,1.26-1.13,2.29-2.85,3.85Z'/%3E%3C/svg%3E"); }

.vert-ad { padding: 1.5rem; text-align: center; }
.vert-ad > img { vertical-align: top; }

/* Посты */
.story { position: relative; }
.story-foot, .story-cont, .story-head { padding: 1.25rem; }
.story-foot, .story-cont { position: relative; }

.story-head > .title { font-size: 1.625rem; margin: -.125em 0 .25em 0; line-height: 1.3 !important; }
.story-head > .title a { color: inherit; text-decoration: none !important; }
a.shortstory-img { display: block; text-align: center; }
.shortstory-img::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; z-index: 1; }

.story-head-tools { display: flex; align-items: center; }
.story-head-tools .meta { font-size: .875rem; }
.story-head-tools .link-cat .link-cat-in { background-color: rgba(var(--c-primary-rgb),0.05); }
.link-cat + .meta { margin-left: 1.5rem; }

.link-cat { display: flex; font-size: .875rem; min-width: 0; }
.link-cat-in { height: 1.5rem; line-height: 1.25rem; padding: .125rem .5rem; border-radius: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-cat.muted .link-cat-in { box-shadow: inset 0 0 0 1px rgba(var(--c-text-rgb),0.1); }
.link-cat a { position: relative; z-index: 1; text-decoration: none !important; }
.link-cat:not(.muted) { color: rgba(0,0,0,0.1); }
.link-cat.muted a { color: inherit; }

.story-head > .avatar { float: right; margin-left: 1rem; }
.shortstory .story-cont { position: relative; }
.story-cont img { max-width: 100%; vertical-align: top; }

.story-edit { position: relative; z-index: 2; }
.story-edit > a {
	display: block; padding: .5rem; height: 2.25rem; width: 2.25rem;
	border-radius: 50%; box-shadow: 0 .5rem 1rem 0 rgba(0,0,0,0.12), 0 0 0 1px rgba(var(--c-text-rgb),0.075);
	background-color: var(--block-main-light-bg);
}
.story-edit > a svg { width: 1.25rem; height: 1.25rem; display: block; }

.meta { display: flex; align-items: center; }
.meta > li { margin-right: 1.5rem; white-space: nowrap; position: relative; z-index: 1; }
.meta > li:last-child { margin-right: 0; }
.meta > li a { color: inherit; text-decoration: none !important; }
.meta > li a:hover { opacity: .8; }
.meta-link { position: relative; }
.meta-link > a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
.meta svg { width: 1.25rem; height: 1.25rem; vertical-align: middle; margin-right: .5rem; margin-top: -.125rem; color: var(--c-primary); }

.story-next-prev { display: flex; }
.story-prev, .story-next {
	border-top: 1px solid rgba(var(--c-text-rgb),0.075);
	padding: 1.25rem; width: 100%; flex-basis: 0; flex-grow: 1; max-width: 100%; min-width: 0;
	position: relative; border-radius: 0 0 .25rem .25rem;
	transition: background-color .3s cubic-bezier(.26,.56,.54,.88);
}
.story-prev:not(:last-child) { flex: 0 0 50%; max-width: 50%; border-bottom-right-radius: 0; }
.story-next:not(:first-child) { flex: 0 0 50%; max-width: 50%; border-bottom-left-radius: 0; }
.story-prev span, .story-next span { display: block; font-size: .875rem; margin-bottom: .5rem; text-transform: uppercase; }
.story-prev svg, .story-next svg {
	width: 1.25rem; height: 1.25rem; vertical-align: middle;
	margin-left: -.125rem; margin-right: .5rem; margin-top: -.125rem;
}
.story-prev + .story-next { border-left: 1px solid rgba(var(--c-text-rgb),0.075); }
.story-prev a, .story-next a { color: inherit !important; display: block; text-decoration: none !important; word-wrap: break-word; }
.story-prev:hover, .story-next:hover { background-color: var(--block-main-light-bg); }
.story-prev a::after, .story-next a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }

@media (max-width: 991px) {
	.story-edit { position: absolute; right: 0; top: 0;  margin-top: -.75rem; margin-right: -.75rem; }
}
@media (min-width: 992px) {
	.story-head > .title a:hover, .link-cat.muted a:hover { color: var(--c-primary); transition: color .2s ease; }

	.story-edit { float: left; margin-left: -2.25rem; margin-top: -.3em; }
	.story-edit > a {
		opacity: 0; visibility: hidden;
		transition: opacity .25s ease, visibility .125s ease, transform .25s ease;
	}
	.story-edit > a svg { transition: transform .25s ease; }
	.story:hover .story-edit > a { opacity: 1; visibility: visible; transform: translateX(-30%); }
	.story-edit > a:hover svg { transform: scale(1.2); }

	.story-cont { font-size: 1.125rem; }
	.link-cat:not(.muted) a:hover { opacity: .8; }
	.readmore:hover .btn-dark { transform: translateX(.5rem); }
	.readmore .btn-dark:hover { box-shadow: 0 .125rem .75rem -.25rem rgba(0,0,0,0.2); }
}
@media (min-width: 768px) {
	.story-foot, .story-cont, .story-head { padding: 2rem; }
	.story-icon {
		width: 3.5rem; height: 0; padding-top: 3.5rem; overflow: hidden; float: right; margin-left: 1rem;
		background-image: url("../images/markers.png");
		background-size: 100% auto; background-repeat: no-repeat;
	}
	.marker_HD { background-position: 0 0; }
	.marker_4K { background-position: 0 -56px; }
	.marker_FullHD { background-position: 0 -112px; }
	.marker_SD { background-position: 0 -168px; }

	.foot-line { background-color: var(--foot-line-bg); height: 3rem; border-radius: 1.5rem; display: flex; align-items: center; }
	.foot-line .meta { margin-left: auto; padding: 0 1.5rem; }

	.readmore { display: block; position: relative; text-decoration: none !important; z-index: 1; font-size: 1.125rem }
	.readmore .btn, .readmore .btn-dark { height: 3rem; padding: .75rem 1.5rem; border-radius: 1.5rem; margin: 0; }
	.readmore .btn-dark { padding-left: 5rem; margin-left: -4rem; transition: box-shadow .15s cubic-bezier(.26,.56,.54,.88), color .15s cubic-bezier(.26,.56,.54,.88), transform .25s ease; }
	.readmore .btn { position: relative; z-index: 1; }
	.story-prev, .story-next { padding: 1.75rem 2rem; }
}
@media (min-width: 576px) {
	.story-head + .story-cont::after, .story-foot::after {
		content: ""; position: absolute; left: 0; width: 70%; height: 1px; top: 0;
		background-image: linear-gradient(-90deg, rgba(var(--c-text-rgb),0) 0%, rgba(var(--c-text-rgb),0.075) 100%);
	}
}
@media (min-width: 1040px) {
	.readmore { font-size: 1.25rem; }
}
@media (max-width: 767px) {
	.story-icon, .story-head-tools .meta { display: none; }

	.meta { font-size: .875rem; }
	.story-foot { padding: 0; display: block !important; }
	.story-foot::after { display: none; }
	.foot-line { display: flex; flex-direction: column; }
	.foot-line .meta { color: var(--c-text-mute); order: -1; display: flex; justify-content: center; background-color: var(--foot-line-bg); height: 2.5rem; padding: .5rem 1rem; }
	.foot-line .meta svg { color: inherit; }
	.readmore { display: flex; }
	.readmore > span { width: 100%; flex-basis: 0; flex-grow: 1; max-width: 100%; padding-left: .5rem; padding-right: .5rem; border-radius: 0; }
	.readmore > span:last-child { border-bottom-right-radius: .25rem; }
	.readmore > span:first-child { border-bottom-left-radius: .25rem; }

	.story-prev a, .story-next a { font-size: .75rem; }
}
@media (max-width: 575px) {
	.story-head { padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
	.story-head + .story-cont { margin-top: -1.25rem; }
	.link-cat, .story-head-tools { justify-content: center; }
	.story-head > .title { margin-top: 0; font-size: 1.125rem; font-weight: bold; }
}

/* Watch Online */
.video_wrap { width: 100%; position: relative; padding-top: 56.4%; background-color: #EEE; }
#video iframe { z-index: 1; }
#video iframe, #video { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0 none; display: block; margin: 0; overflow: hidden !important; }
#video::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0; visibility: hidden;
	border: 6px solid var(--c-primary); border-bottom-color: transparent; border-radius: 50%; transform-origin: 50% 50%;
	animation: video_load 1s linear infinite;
	transition: opacity .3s linear;
}
#video.video_load::after { opacity: 1; visibility: visible; }
@keyframes video_load {
	0% { transform: rotate(0); }
	100% { transform: rotate(360deg); }
}
iframe.loading { position:absolute; left:-1000px; top:-1000px; }

/* --- Buy Premium --- */
.buy-premium-box { display: flex; align-items: center; flex-wrap: wrap; background-color: var(--block-main-light-bg); padding: .5rem; box-shadow: 0 .5rem 1.5rem 0 rgba(0,0,0,0.075); border-radius: 2.75rem; }
.buy-premium-box > * { width: 100%; margin: 0; }
.bp-submit .btn { font-size: 1.25rem; height: 3rem; width: 100%; padding: .75rem; border-radius: 1.75rem; }
.bp-item, .bp-item * { display: block; }
.bp-item {
	display: flex; flex-direction: column; justify-content: center; height: 4.5rem; padding: .5rem; padding-left: 2.5rem;
	transition: background-color .15s linear; position: relative;
	white-space: nowrap;
}
.bp-item > span { transition: color .12s linear; }
.bp-item .fw-bold { font-size: 1.125rem; line-height: 1.3; }
.bp-item-check {
	position: absolute; left: .75rem; top: 50%; margin-top: -1.375rem; width: 1.125rem; height: 1.125rem;
	border: 2px solid var(--c-primary); border-radius: 50%; transition: border-color .12s linear;
}
.bp-item-check::after {
	content: ""; position: absolute; left: 50%; top: 50%; background-color: var(--c-primary); opacity: 0;
	margin: -.25rem 0 0 -.25rem; width: .5rem; height: .5rem; border-radius: 50%; transition: opacity .2s ease;
}
.bp-label { position: relative; }
.bp-label * { cursor: pointer; }
.bp-label > input { position: absolute; right: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.bp-label > input:checked + .bp-item { background-color: rgba(var(--c-primary-rgb), 0.125); }
.bp-label > input:checked + .bp-item .fw-bold, .bp-item:hover .fw-bold { color: var(--c-primary); }
.bp-label > input:checked + .bp-item .muted { color: rgba(var(--c-text-rgb),0.75) !important; }
.bp-label > input:checked + .bp-item .bp-item-check { border-color: rgba(var(--c-primary-rgb), 0.5); }
.bp-label > input:checked + .bp-item .bp-item-check::after { opacity: 1; }

@media (min-width: 1580px) {
	.bp-item .fw-bold { font-size: 1.25rem; }
	.bp-item { padding-left: 3.5rem; }
	.bp-item-check { left: 1.25rem; }
	.bp-submit .btn { font-size: 1.625rem; height: 3.5rem; padding: 1rem; }
}
@media (min-width: 1320px) {
	.buy-premium-box > * { flex: 0 0 25%; max-width: 25%; }
	.bp-submit { padding: .5rem; padding-left: 1rem; }
	.bp-item { border-radius: 2.25rem; }
}
@media (min-width: 768px) and (max-width: 1319px) {
	.bp-label { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
}
@media (max-width: 1319px) {
	.buy-premium-box { border-radius: 1.25rem; }
	.bp-submit { padding: .5rem; padding-top: 1rem; }
	.bp-item { border-radius: .875rem; }
}

/* --- Related --- */
.card-list { margin: -.75rem; display: flex; }
.card-item { width: 100%; padding: .75rem; flex: 0 0 25%; max-width: 25%; }
.card { position: relative; }
.card-img { margin-bottom: 1rem; }
.card-img > .cover {
	position: relative;
	padding-top: 60%; border-radius: .25rem; box-shadow: 0 .125rem .5rem 0 rgba(0,0,0,0.05);
	transition: transform .2s ease, box-shadow .2s ease;
}
.card-img > .cover::after {
	content: ""; position: absolute; left: 50%; top: 50%; margin: -2rem 0 0 -2rem;
	width: 4rem; height: 4rem; border-radius: 50%; opacity: 0; transform: scale(.5);
	transition: opacity .2s ease, transform .2s cubic-bezier(.26,.56,.54,.88);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M47,32,23,46V18Z'/%3E%3C/svg%3E");
	background-position: 50% 50%; background-color: rgba(var(--c-primary-rgb),.5); background-size: 100% auto;
}
.card-link { display: block; line-height: 1.3; color: inherit; text-decoration: none !important; word-wrap: break-word; }
.card-link::after { content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; cursor: pointer; }
@media (min-width: 768px) {
	.card-list { flex-wrap: wrap; }
	.card-link:hover { color: var(--c-primary); transition: color .2s ease; }
	.card:hover .card-img > .cover { transform: translateY(-.5rem); box-shadow: 0 .625rem 1rem 0 rgba(0,0,0,0.05); }
	.card:hover .card-img > .cover::after { opacity: 1; transform: scale(1); }
}
@media (max-width: 767px) {
	.cont-scroll { overflow: hidden; overflow-x: auto; padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 2.25rem !important; -webkit-overflow-scrolling: touch; }
	.cont-scroll .card-list { padding-left: .25rem; min-width: 60rem; margin: 0; }
	.cont-scroll .card-list::after { content: ""; min-width: 1.25rem; max-width: 1.25rem; }
	.cont-scroll .card-list .card-item { padding-top: 0; padding-left: 1rem; padding-right: 0; padding-bottom: 1rem; }

	.cont-scroll + .swipe { display: block !important; text-align: center; height: .625rem; transform: translateY(-1.25rem); margin-top: -.625rem; }
	.swipe svg { height: .625rem; width: 8.5rem; color: var(--c-text-mute); vertical-align: top; }
}

/* --- Постраничная навигация --- */
.block.navigation {
	background-color: var(--block-bg) !important; box-shadow: none !important; padding: 1rem 1.25rem;
	display: flex; flex-wrap: wrap; align-items: center;
}
@media (min-width: 768px) {
	.block.navigation { padding: 1rem 2rem; }
	.pages { font-size: 1.125rem; }
}
@media (min-width: 1200px) {
	.pages { font-size: 1.25rem; }
	.pages-prevnext { margin-left: 1.5rem; }
	.pages > span:not(.nav_ext) {
		background-color: var(--c-primary);
		background-image: linear-gradient(180deg, var(--c-primary) 0%, var(--c-primary-a) 100%);
		box-shadow: 0 0 0 0 rgba(var(--c-primary-rgb),0.2), 0 .125rem .75rem -.25rem rgba(var(--c-primary-rgb),0.6);
	}
	.pages > a, .pages > span { min-width: 2.5rem; height: 2.5rem; padding: .5rem; border-radius: 1.5rem; }
	.pages > span:not(.nav_ext) { color: #fff !important; }
}
@media (max-width: 1199px) {
	.block.navigation { padding-top: 0; }
	.pages {
		width: 100%; flex: 1 1 auto; min-width: 0;
		overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch;
	}
	.pages::after, .pages::before { content: ""; display: block; height: 1rem; }
	.pages > a, .pages > span { min-width: 2.5rem; height: 3.5rem; padding: 1rem .25rem; border-radius: 1.5rem; }
	.pages > span { position: relative; }
	.pages > span::after { position: absolute; left: 0; top: 0; height: 2px; width: 100%; border-radius: 0 0 2px 2px; background-color: var(--c-primary); }
	.pages > span:not(.nav_ext) { color: var(--c-primary) !important; }
	.pages > span:not(.nav_ext)::after { content: ""; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.pages { font-size: 1.125rem; margin-left: -2rem; margin-right: -2rem; }
	.pages::after, .pages::before { min-width: 2rem; max-width: 2rem; }
}
@media (max-width: 767px) {
	.pages { margin-left: -1.25rem; margin-right: -1.25rem; }
	.pages::after, .pages::before { min-width: 1.25rem; max-width: 1.25rem; }
}

.pages-prevnext { margin-right: 1rem; display: flex; box-shadow: inset 0 0 0 1px rgba(var(--c-text-rgb),0.1); border-radius: 1.25rem; }
.pages-prevnext > * { width: 2.5rem; height: 2.5rem; padding: .5rem; text-decoration: none !important; }
.pages-prevnext > a svg { transition: transform .15s ease; }
.pages-prevnext > a:hover svg { transform: scale(1.1); }
.pages-prevnext > * svg { display: block; }
.pages-prevnext > span { opacity: .2; }

.pages { font-weight: bold; display: flex; }
.pages > a, .pages > span { text-align: center; line-height: 1.5rem; }
.pages > a { color: inherit; text-decoration: none !important; cursor: pointer; }
.pages > a:hover { color: var(--c-primary); transition: color .15s ease; }

.selectpage { margin-left: auto; position: relative; }
.selectpage > input { height: 2.5rem !important; width: 9rem !important; font-size: 1.125rem; padding: .5rem 3.5rem .5rem 1rem !important; border-radius: 1.25rem !important; border: 0 none !important; box-shadow: 0 .5rem 1rem 0 rgba(0,0,0,0.05); }
.selectpage > button {
	position: absolute; right: 0; top: 0; color: var(--c-primary);
	font-size: 1.25rem; font-weight: bold; height: 2.5rem; width: 3.5rem; background: none;
	border: 0 none; padding: .25rem; text-transform: uppercase;
}

/* --- Modals Bootstrap --- */
.modal-open { height: 100%; overflow: hidden !important; }
.modal {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050;
	display: none; overflow: hidden; -webkit-overflow-scrolling: touch; outline: 0;
}
.modal-dialog { position: relative; width: auto; min-height: 100%; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-content { position: relative; background-color: var(--modal-bg); width: 100%; outline: 0; }
.modal-body { padding: 1.5rem; }
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .3; }
.modal-dialog .close {
	position: absolute; right: 0; top: 0; padding: .5rem; width: 2.5rem; height: 2.5rem; background: none;
	border: 0 none; outline: none !important; pointer-events: auto;

	width: 2.5rem; height: 2.5rem; color: var(--c-text-mute); background: none;
	transition: color .15s ease-out;
}
.modal-dialog .close:hover { color: var(--c-primary); }
.modal .modal-dialog > .close { width: 4rem; height: 4rem; padding: 1rem; z-index: 1; }
.modal .modal-dialog > .close svg { width: 2rem; height: 2rem; fill: currentColor; }

/* Modal Search */
.modal-search { background-color: rgba(0,0,0,0.7); }
.modal-search .modal-dialog { align-items: flex-start; padding: 0; margin: 0; }
.modal-search .modal-content { background: none; box-shadow: none; }

.modal.modal-search.fade .modal-dialog { transform: scale(1) translateY(-2rem) !important; }
.modal.modal-search.in .modal-dialog { transform: translateY(0) !important; }
.modal-search .modal-content { max-width: 50rem; }
.modal-search .modal-body { padding-top: 4rem; }

.searchfield { position: relative; }
.searchfield > input { font-size: 1.25rem !important; line-height: 1.5rem; height: 3.5rem !important; padding: 1rem !important; padding-right: 4.5rem !important; }
.modal-search .searchfield > input { border-radius: 28px; box-shadow: 0 1rem 3rem 0 rgba(0,0,0,0.5); }
.searchfield > button {	
	position: absolute; top: 50%; right: 0; color: var(--c-primary);
	transform: translateY(-50%); width: 3.5rem; height: 3.5rem;
	padding: 1rem; margin: 0; border: 0 none; background: none;
}
.searchfield > button > svg { width: 1.5rem; height: 1.5rem; display: block; transition: transform .15s ease-out; }
.searchfield > button:hover > svg { transform: scale(1.1); }
.qsearch-advanced { position: relative; z-index: 1; margin-top: 1rem; text-align: right; }

input#dofullsearch { display: none !important; }
.searchtable td.search { padding: 0 !important; }
.searchtable td.search > div { margin: 0 !important; }
.searchtable td.search > div input[type="text"] { width: 100% !important; }

@media (min-width: 576px) {
	.modal.fade .modal-dialog { transform: scale(.85); transition: transform .2s ease; }
	.modal.in .modal-dialog { transform: scale(1); }
	.modal-content {
		pointer-events: auto; background-clip: padding-box; max-width: 24rem; min-height: 0;
		border-radius: .25rem; box-shadow: 0 1rem 1.5rem -.25rem rgba(0,0,0,0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
	}
	.container .modal-content { box-shadow: 0 1rem 3.25rem -.25rem rgba(0,73,150,0.125), 0 0 0 1px rgba(0,73,150, 0.1); }
	.modal-dialog {
		display: flex; align-items: center; justify-content: center; pointer-events: none;
		margin: 1rem auto; min-height: calc(100% - 2rem); padding-left: .5rem; padding-right: .5rem;
	}
	.modal-body { padding: 2rem; }

}
@media (max-width: 575px) {
	.modal-dialog { display: flex; }
	.modal-body { min-height: 100% !important; padding-top: 3.5rem; }
}

/* --- Modals jQuery UI --- */
.ui-widget-overlay { background: #000; opacity: 0.5; left: 0; top: 0; right: 0; bottom: 0; position: fixed; }
.ui-helper-clearfix:after { clear: both; content: ""; display: block; height: 0; visibility: hidden; }
.ui-helper-clearfix { display: inline-block }
* html .ui-helper-clearfix { height: 1% }
.ui-helper-clearfix { display: block }
.ui-dialog {
	text-align: left; overflow: hidden; padding: 0; position: absolute; width: 420px; z-index: 9999;
	border-radius: .25rem; box-shadow: 0 .5rem 2.5rem 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(var(--c-text-rgb),0.075);
	background-color: var(--modal-bg); background-clip: padding-box;
}
.ui-dialog-titlebar {
	height: 4rem; line-height: 1.5rem; white-space: nowrap; padding: 1.25rem 2rem; position: relative;
	border-bottom: 1px solid rgba(var(--c-text-rgb),0.075);
}
.ui-dialog-title {
	display: block; font-weight: bold; font-size: 1rem; text-transform: uppercase;
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	margin-right: 1.5rem;
}
.ui-dialog-titlebar-close {
	position: absolute; right: 0; top: 0; overflow: hidden; background: none !important; padding: 0 !important;
	padding-top: 4rem !important; width: 4rem !important; height: 0; box-shadow: none !important;
	border: 0 none !important; margin: 0 !important;
}
.ui-dialog-titlebar-close .ui-icon {
	position: absolute; left: 50%; top: 50%; margin: -.75rem 0 0 -.75rem; width: 1.5rem; height: 1.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z' fill='%23F06513'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 1.5rem auto;
	opacity: .5;
}
.ui-dialog-buttonset button + button { margin-left: .5rem; }
.ui-dialog-titlebar-close:hover .ui-icon { opacity: 1; }
.ui-icon { overflow: hidden; text-indent: -9999px; }
.ui-dialog-content { padding: 2rem; overflow: auto; position: relative; zoom: 1; }
.loginbox.ui-dialog, .loginbox .ui-dialog-content { overflow: visible !important; }
.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold }
.ui-dialog .ui-dialog-buttonpane { padding: 1.25rem 2rem; border-top: 1px solid rgba(var(--c-text-rgb),0.075); }
.ui-draggable .ui-dialog-titlebar { cursor: move; }
.ui-helper-hidden-accessible { display: none; }

#modal-overlay { background-color: rgba(0,0,0,.3) !important; }

@media (max-width: 767px) {
	.ui-dialog { width: 100% !important; max-width: 100% !important; top: 0 !important; left: 0 !important; }
}
@media (max-width: 575px) {
	.ui-dialog-titlebar { padding-left: 1.5rem; }
	.ui-dialog-content { padding: 1.5rem; }
	.ui-dialog .ui-dialog-buttonpane { padding: 1.25rem 1.5rem; }
}

/* --- Окно пользователя --- */
@media (min-width: 768px) {
	.user-block { display: flex; }
	.user-block .user-left { margin-right: 4rem; font-size: 1rem; }
	.user-block .usinf { flex: 1 1 auto; max-width: 50rem; }
	.user-left .avatar > .cover { width: 6rem; height: 6rem; margin-bottom: 1.5rem; } 
}
@media (max-width: 767px) {
	.user-block .user-left {
		display: flex;
		background-color: #fff; border-radius: .5rem; padding: 1rem; margin-bottom: 1rem;
		box-shadow: 0 0.5rem 1.5rem 0 rgba(0,0,0,0.05);
	}
	.user-block .user-left .avatar { margin-right: 1rem; }
}
.usinf > li { padding: .75rem 0; border-top: 1px solid rgba(var(--c-text-rgb),0.075); display: flex; }
.usinf > li:first-child { border-top-width: 0; }

.ui-c1, .ui-c2 { display: inline-block; vertical-align: top; }
.ui-c1 { width: 30%; flex: 0 0 30%; max-width: 20rem; margin-right: 1rem; }
.ui-c2 { flex: 1 1 auto; }

.popup_userinfo_top { padding: 2rem; margin: -2rem; padding-bottom: 0; margin-bottom: 2rem; height: 3.5rem; background-color: #F6F6F6; }

/* --- Информация об ошибках --- */
.alert { background-color: var(--alert-bg) !important; color: var(--alert-c-text) !important; padding: 1rem 1.25rem; }
@media (min-width: 768px) {
	.alert { padding: 1.25rem 2rem; }
}

/* --- Загрузчик AJAX --- */
#loading-layer {
	display: none; background-color: rgba(255,255,255,0.9);
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
	width: 100%; height: 100%; text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
#loading-layer:before, #loading-layer:after { content: ""; border-radius: 50%;
	position: absolute; left: 50%; top: 50%;
	width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem;
	background-color: var(--c-primary);
}
#loading-layer:after { background-color: #2C2C2C; }
#loading-layer:before { animation: load1 .8s infinite ease; }
#loading-layer:after { animation: load2 .8s infinite ease; }
@keyframes load1 {
	0%, 80%, 100% { transform: translate(-100%, 0); }
	40% { transform: translate(50%, 0); }
}
@keyframes load2 {
	0%, 80%, 100% { transform: translate(100%, 0); }
	40% { transform: translate(-50%, 0); }
}

/* PM */
html.darkmod .dlepm-editor { filter: invert(75%) contrast(120%) brightness(90%); }
.pm-box { background-color: var(--block-main-light-bg); border-radius: .5rem; padding: 2rem; box-shadow: 0 0.5rem 1.5rem 0 rgba(0,0,0,0.05); }
.pm-menu { display: flex; justify-content: center; font-weight: bold; }
.pm-menu > a {
	color: inherit; padding: .5rem 1rem; text-decoration: none !important;
	border: 1px solid rgba(var(--c-text-rgb),0.075);
}
.pm-menu > a + a { border-left-width: 0; }
.pm-menu > a:first-child { border-radius: 1.5rem 0 0 1.5rem; margin-left: 0; }
.pm-menu > a:last-child { border-radius: 0 1.5rem 1.5rem 0; }
.pm-menu > a:hover { color: var(--c-primary); transition: color .15s ease; }
.pm_status { max-width: 50rem; margin: 0 auto; margin-top: 2rem; text-align: center; }
.pm_progress_bar { background-color: rgba(var(--c-text-rgb),0.05); margin-bottom: 1rem; border-radius: .25rem; overflow: hidden; }
.pm_progress_bar span { background: var(--c-primary); font-size: 0; height: 1.5rem; border-radius: .25rem; display: block; overflow: hidden }

.pmlist { border-top: 1px solid rgba(var(--c-text-rgb),0.075); }

@media (max-width: 767px) {
	.cont-scroll.pmlist form { min-width: 50rem; padding: 1.25rem; padding-top: 0; }
}
@media (max-width: 500px) {
	.pm-box { padding: 1rem; }
	.pm_status { margin-top: 1rem; }
	.pm-menu { font-size: .75rem; margin: -1rem; margin-bottom: 0; border-bottom: 1px solid rgba(var(--c-text-rgb),0.075); }
	.pm-menu > a { border-width: 0; }
}

.pm-view-buttons { display: flex; margin: .75rem -.5rem -.25rem -.5rem; font-size: .875rem; text-transform: uppercase; }
.pm-view-buttons a { padding: .25rem .5rem; text-decoration: none !important; }
.pm-view-buttons a:hover { opacity: .8; }

.pm td.pm_list, .pm td.pm_head { border-bottom: 1px solid rgba(var(--c-text-rgb),0.075); padding: .75rem .125rem; }
table.pm { width: 100%; margin-bottom: 0; }
table.pm select { width: 150px; }
.userstop thead td, .pm td.pm_head { border-bottom: 1px solid rgba(var(--c-text-rgb),0.075); font-weight: bold; font-size: .75rem; text-transform: uppercase; padding-top: 0; }
table.pm .navigation { border-top-width: 0; margin: 0; }
table.pm img { width: 1.125rem; vertical-align: middle; margin-right: .5rem; }

td.pm_subj { width: 56%; }

/*--- Цитаты, Спойлеры, Код  ---*/
.scriptcode, .title_quote,
.title_spoiler, .text_spoiler { display: none !important; }
.quote, blockquote {
	padding: 1.25rem 1.5rem; padding-left: 4.5rem; margin: 1.5rem 0; border: 1px dashed var(--c-primary); background-color: rgba(var(--c-primary-rgb),0.05); border-radius: .25rem;
	font-family: inherit !important; font-style: normal !important; font-size: 1rem !important; position: relative; overflow: hidden;
	box-shadow: 0 .25rem 1.5rem -.125rem rgba(var(--c-primary-rgb),0.2); word-wrap: break-word;
}
.quote::after, blockquote::after {
	content: ""; position: absolute; left: 0; top: 0; background-color: rgba(var(--c-primary-rgb),0.07);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' viewBox='0 0 24 24' width='24'%3E%3Cpath fill='%23F06513' d='M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zm-.52 15.86v-4.14H8.82c-.37 0-.62-.4-.44-.73l3.68-7.17c.23-.47.94-.3.94.23v4.19h2.54c.37 0 .61.39.45.72l-3.56 7.12c-.24.48-.95.31-.95-.22z'/%3E%3C/svg%3E");
	background-size: 1.5rem auto; background-position: 50% 1.25rem; background-repeat: no-repeat;
}
@media (min-width: 768px) {
	.quote, blockquote { font-size: 1.125rem !important; }
}
@media (min-width: 992px) {
	.quote, blockquote { font-size: 1.25rem !important; }
}
@media (min-width: 576px) {
	.quote, blockquote { padding: 1.25rem 1.5rem; padding-left: 4.5rem; }
	.quote::after, blockquote::after { bottom: 0; width: 3rem; }
}
@media (max-width: 575px) {
	.quote, blockquote { padding: 1rem; padding-top: 3.5rem; }
	.quote::after, blockquote::after { width: 100%; height: 2.5rem; background-position: 50% 50%; }
}
.quote *, blockquote * {
	font-size: inherit !important; font-family: inherit !important;
	font-style: normal !important; text-align: left !important;
	font-weight: normal !important;
}
.quote b, blockquote b { font-weight: bold !important; }
.story-cont .quote:last-child, .story-cont blockquote:last-child { margin-bottom: 0; }

.quote a {
	clear: both; display: grid; margin: auto 0;
	width: 100%; text-align: center; align-items: center; justify-content: center;
}

/* --- Поля форм --- */
.form-group, .form-submit, .loginform-foot, .form-check, .form-combo { margin-top: 1rem; }
.form-group:first-child, .form-check:first-child, .form-combo:first-child { margin-top: 0; }
@media (min-width: 576px) {
	.form-group, .form-submit, .loginform-foot, .form-check, .form-combo { margin-top: 1.5rem; }
	.form-combo { display: flex; margin-left: -.75rem; margin-right: -.75rem; }
	.form-combo .form-group { width: 100%; flex: 0 0 50%; max-width: 50%; padding: 0 .75rem; margin: 0; }
}
@media (min-width: 576px) and (max-width: 767px) {
	.form-combo { margin-left: -.5rem; margin-right: -.5rem; }
	.form-combo .form-group { padding: 0 .5rem; }
}
.form-group > label { font-size: .875rem; line-height: 1.2; text-transform: uppercase; opacity: .8; }
.form-sep { border-top: 1px solid rgba(var(--c-text-rgb),0.075); }

.loginform-foot { display: flex; }
.loginform-foot > a:first-child { margin-right: auto; }

select, textarea, input[type="text"], input[type="password"], input[type="file"],
input[type="datetime"], input[type="datetime-local"], input[type="date"],
input[type="month"], input[type="time"], input[type="week"], input[type="number"],
input[type="email"], input[type="url"], input[type="search"], input[type="tel"],
input[type="color"] {
	display: inline-block; width: 100%; height: 2.5rem; line-height: 1.5rem; font-size: 1rem;
	padding: calc(.5rem - 1px) .75rem; border-radius: .25rem; background: var(--input-bg); border: 1px solid rgba(var(--c-text-rgb),0.1);
	transition: border .2s linear 0s, box-shadow .2s linear 0s; background-clip: padding-box;
	box-shadow: 0 .125rem .5rem 0 rgba(0,0,0,0.06);
	outline: none !important;
}
select:focus, textarea:focus, input:focus { border-color: rgba(var(--c-text-rgb),0.2); box-shadow: 0 .25rem .75rem 0 rgba(0,0,0,0.06); }
textarea { margin: 0; overflow: auto; vertical-align: top; resize: vertical; }
input[type="radio"], input[type="checkbox"] { line-height: normal; margin: -2px 6px 0 0; vertical-align: middle; }
input[type="file"], input[type="image"],
input[type="submit"], input[type="reset"],
input[type="button"], input[type="radio"],
input[type="checkbox"] { width: auto; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
select[multiple], select { -webkit-appearance: none; appearance: none; }
select[multiple], select[size], textarea { height: auto; }
::-moz-placeholder, :-moz-placeholder, ::-webkit-input-placeholder { opacity: 0.6; }
select:not([multiple]) {
	padding-right: 2rem;
	background-position: calc(100% - .375rem) 50%; background-size: 1.5rem 1.5rem; background-repeat: no-repeat;
	background-image: var(--select-arrow);
}

input:focus { outline: none; }
input[type="file"], input[type="image"] { padding: 0; border-width: 0; background: none; box-shadow: none; }

/* Checkbox */
.custom-check { display: flex; }
.admin-checkboxs, .custom-check { font-size: 1rem; }
.admin-checkboxs .checkbox, .custom-check { margin-top: .5rem; }
.custom-check > label { margin: 0; }
.custom-check > input { margin-top: .25rem; }
.admin-checkboxs .checkbox label { margin: 0; display: flex; align-items: center; position: relative; }
.admin-checkboxs .checkbox label > input, .custom-check > input { box-shadow: none !important; -webkit-appearance: none; appearance: none; cursor: pointer; }
.admin-checkboxs .checkbox label > input::before, .custom-check > input::before {
	content: ""; order: -1; display: block;
	border-radius: .25rem; background: var(--input-bg); border: 1px solid rgba(var(--c-text-rgb),0.1);
	transition: border .2s ease, box-shadow .2s linear 0s;
	box-shadow: 0 .125rem .5rem 0 rgba(0,0,0,0.06); width: 1.125rem; height: 1.125rem; margin-top: -1px; margin-right: .5rem;
}
.admin-checkboxs .checkbox label > input:checked::before, .custom-check > input:checked::before { border: 6px solid var(--c-primary); }

/* c-capcha */
@media (min-width: 576px) {
	.c-capcha { max-width: 20rem; }
}
.c-capcha { border: 1px solid rgba(var(--c-text-rgb),0.1); border-radius: .5rem; padding: .5rem; display: flex; }
.c-capcha input { height: 4rem; font-size: 1.5rem; line-height: 2rem; padding: 1rem; text-align: center; }
.c-capcha a { margin-right: .5rem; }
.c-capcha a img { display: block; height: 4rem; width: auto; max-width: none; border-radius: .25rem; }

.input-check { position: relative; }
.input-check > input { padding-right: 5rem; }
.input-check > button {
	position: absolute; right: 0; top: 0;
	height: 1.5rem; line-height: 1.3rem; padding: .1rem .5rem; font-size: .75rem; font-weight: bold; border-radius: .75rem; text-transform: uppercase;
	background: none; border: 1px solid rgba(var(--c-text-rgb),0.1); margin: .5rem; transition: color .2s linear;
}
.input-check > button:hover { color: var(--c-primary); }

#result-registration { font-size: 1rem; margin-top: .25rem; }

.wide, .bb-editor textarea,
.ui-dialog textarea, select#category,
.timezoneselect, .quick-edit-text {
	width: 100% !important;
}
table.xfields input { width: 100%; }
.parsed_full_story img {
	margin-bottom: 15px;
}


