﻿/* Исправления и доп. стили — World-Stalkers (тёмная тема, ровная палитра) */

/* --- Авторизация: тёмная зона --- */
.auth-modal-dialog { max-width: 860px; width: calc(100% - 30px); }
.auth-modal-frame {
	position: relative;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #10111b;
	box-shadow:
		0 0 0 1px #2e304a,
		0 0 0 4px rgba(79, 86, 112, 0.12),
		0 24px 60px rgba(0, 0, 0, 0.65);
}
.auth-modal-frame__glow {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	padding: 2px;
	background: linear-gradient(135deg, #2e304a, #363950, #3a3f52, #363950);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}
.auth-modal-content {
	border: 0;
	border-radius: 16px;
	overflow: hidden;
	background: #10111b;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.auth-panel--modal { border-radius: 0; }
.auth-modal-close {
	position: absolute;
	right: 14px;
	top: 10px;
	z-index: 5;
	font-size: 1.75rem;
	font-weight: 300;
	color: #898b96;
	opacity: 1;
	text-shadow: none;
}
.auth-modal-close:hover { color: #c8ccd8; }

.auth-panel {
	display: flex;
	flex-wrap: wrap;
	min-height: 480px;
	background: #10111b;
}

.auth-panel__brand {
	flex: 1 1 320px;
	background:
		linear-gradient(145deg, rgba(16, 17, 27, 0.92) 0%, rgba(24, 26, 38, 0.88) 55%, rgba(34, 36, 48, 0.95) 100%),
		url(../images/pat-back.svg);
	background-size: 25%, cover;
	background-position: center;
	color: #eaebed;
	padding: 40px 32px;
	border-right: 1px solid #222430;
	position: relative;
}
.auth-panel__brand::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(to right, #363950, #424760, #363950);
	opacity: 0.7;
}
.auth-panel__brand-inner { position: relative; z-index: 1; max-width: 320px; }
.auth-panel__logo {
	font-family: 'Roboto Black', Rubik, sans-serif;
	font-size: 1.75rem;
	text-transform: uppercase;
	margin-bottom: 24px;
	color: #eaebed;
	text-shadow: 0 0 20px rgba(154, 163, 184, 0.25);
}
.auth-panel__logo span { color: #9aa3b8; }
.auth-panel__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #eaebed; }
.auth-panel__subtitle { font-size: 0.95rem; line-height: 1.55; color: #898b96; margin-bottom: 24px; }

.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.auth-social__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #181a26;
	color: #d8d8d8;
	font-size: 0.9rem;
	border: 1px solid #2e304a;
	transition: background .2s, border-color .2s, transform .2s;
}
.auth-social__btn:hover {
	background: #222430;
	border-color: #4f5670;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.auth-social__btn i { width: 18px; text-align: center; color: #6b7389; }

.auth-panel__register { margin: 0; font-size: 0.9rem; color: #898b96; }
.auth-panel__register a { color: #9aa3b8; font-weight: 600; }
.auth-panel__register a:hover { color: #c8ccd8; }

.auth-panel__form {
	flex: 1 1 300px;
	padding: 40px 36px;
	background: #10111b;
}
.auth-form__title { font-size: 1.35rem; font-weight: 700; color: #eaebed; margin-bottom: 6px; }
.auth-form__hint { font-size: 0.9rem; margin-bottom: 24px; color: #6f7292 !important; }
.auth-form__group { margin-bottom: 18px; }
.auth-form__label { display: block; font-size: 0.85rem; font-weight: 600; color: #898b96; margin-bottom: 6px; }
.auth-form__input-wrap { position: relative; }
.auth-form__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #4f5670; z-index: 2; pointer-events: none; }
.auth-form__input,
.auth-panel .form-control.auth-form__input {
	padding-left: 40px;
	height: 46px;
	border: 1px solid #2e304a !important;
	border-radius: 10px;
	background: #181a26 !important;
	color: #eaebed !important;
}
.auth-form__input::placeholder { color: #6f7292; opacity: 1; }
.auth-form__input:focus,
.auth-panel .form-control.auth-form__input:focus {
	border-color: #9aa3b8 !important;
	box-shadow: 0 0 0 3px rgba(154, 163, 184, 0.15) !important;
	background: #181a26 !important;
	color: #fff !important;
}

.auth-form__options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.auth-panel .custom-control-label { color: #898b96; font-size: 0.9rem; }
.auth-panel .custom-control-input:checked ~ .custom-control-label::before { background-color: #4f5670; border-color: #4f5670; }
.auth-panel .custom-control-label::before { background-color: #181a26; border-color: #2e304a; }
.auth-form__forgot { font-size: 0.85rem; color: #6b7389; }
.auth-form__forgot:hover { color: #9aa3b8; text-decoration: none; }

.auth-form__submit,
.auth-panel .auth-form__submit.btn-primary {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #363950, #4f5670) !important;
	color: #fff !important;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(79, 86, 112, 0.25);
}
.auth-form__submit:hover,
.auth-panel .auth-form__submit.btn-primary:hover {
	background: linear-gradient(135deg, #4f5670, #6b7389) !important;
	color: #fff !important;
}

.auth-form__footer { margin-top: 20px; margin-bottom: 0; text-align: center; font-size: 0.9rem; color: #898b96; }
.auth-form__footer a { color: #9aa3b8; font-weight: 600; }
.auth-form__footer a:hover { color: #c8ccd8; }

/* --- Dropdown авторизованного: тёмный --- */
.user-nav-dropdown { margin-left: 8px; }
.user-nav-chip {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 4px 14px 4px 4px !important;
	border: 1px solid #2e304a !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #181a26, #222430) !important;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	color: #eaebed !important;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.user-nav-chip:hover,
.user-nav-chip:focus,
.show > .user-nav-chip {
	border-color: #4f5670 !important;
	box-shadow: 0 0 0 3px rgba(79, 86, 112, 0.18), 0 4px 18px rgba(0, 0, 0, 0.4);
	color: #fff !important;
	text-decoration: none;
}
.user-nav-chip__avatar {
	display: inline-flex;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #4f5670;
	flex-shrink: 0;
}
.user-nav-chip__avatar .user-nav-avatar,
.user-nav-chip__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
}
.user-nav-chip__label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.user-nav-chip__arrow { font-size: 0.85rem; opacity: 0.8; }

.nav-auth-chip {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 8px 16px !important;
	border: 1px solid #2e304a !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #181a26, #222430) !important;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	font-weight: 600 !important;
	transition: border-color .2s, box-shadow .2s, color .2s;
}
.nav-auth-chip:hover,
.nav-auth-chip:focus {
	border-color: #9aa3b8 !important;
	box-shadow: 0 0 0 3px rgba(154, 163, 184, 0.15), 0 4px 18px rgba(0, 0, 0, 0.4);
	color: #c8ccd8 !important;
	text-decoration: none;
}
.nav-auth-chip__icon { font-size: 1.15rem; color: #9aa3b8; }

.user-nav-dropdown .user-nav-toggle { display: flex; align-items: center; gap: 6px; color: #d8d8d8 !important; }
.user-nav-menu.dropdown-menu {
	min-width: 300px;
	padding: 0;
	border: 1px solid #222430;
	border-radius: 12px;
	overflow: hidden;
	background: #10111b !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.user-nav-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: linear-gradient(135deg, #10111b, #222430);
	color: #eaebed;
	border-bottom: 1px solid #2e304a;
}
.user-nav-header-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #4f5670; }
.user-nav-header-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-nav-header-info .user-nav-subtitle { color: #6f7292; }
.user-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: #10111b; }
.user-nav-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px;
	border-radius: 10px;
	background: #181a26;
	border: 1px solid #222430;
	color: #d8d8d8;
	transition: background .2s, border-color .2s;
}
.user-nav-item:hover { background: #222430; border-color: #4f5670; color: #fff; text-decoration: none; }
.user-nav-item i { font-size: 1.1rem; color: #9aa3b8; margin-bottom: 6px; }
.user-nav-item span { font-weight: 600; font-size: 0.9rem; }
.user-nav-item small { color: #6f7292; font-size: 0.75rem; margin-top: 2px; }
.user-nav-pm-meta--0 .user-nav-pm-new { display: none; }
.user-nav-pm-new strong { color: #e9573f; font-weight: 700; }
.user-nav-item--wide { grid-column: 1 / -1; }
.user-nav-footer { padding: 10px 12px 12px; border-top: 1px solid #222430; background: #10111b; }
.user-nav-logout { display: block; text-align: center; padding: 10px; border-radius: 8px; color: #898b96; }
.user-nav-logout:hover { background: rgba(233, 87, 63, 0.12); color: #e9573f; text-decoration: none; }
.nav-auth-link { font-weight: 600; color: #9aa3b8 !important; }
.nav-auth-link:hover { color: #c8ccd8 !important; }

/* --- Регистрация / восстановление: тёмные карточки --- */
.auth-page-card {
	border: 1px solid #222430;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	margin-bottom: 24px;
	background: #181a26;
	color: #d8d8d8;
}
.auth-page-card .card-body { padding: 28px 32px; }
.auth-page-card .card-title { font-size: 1.35rem; font-weight: 700; color: #eaebed; }
.auth-page-card .card-text,
.auth-page-card .text-muted { color: #898b96 !important; }
.auth-page-card .form-control {
	border-radius: 10px;
	border-color: #2e304a !important;
	background: #10111b !important;
	color: #eaebed !important;
	min-height: 44px;
}
.auth-page-card .form-control:focus {
	border-color: #9aa3b8 !important;
	box-shadow: 0 0 0 3px rgba(154, 163, 184, 0.12) !important;
	background: #10111b !important;
	color: #fff !important;
}
.auth-page-card label { color: #898b96; }
.auth-page-card hr { border-color: #222430; }
.auth-page-card .btn-success {
	border-radius: 10px;
	font-weight: 600;
	background: #4f5670;
	border-color: #4f5670;
}
.auth-page-card .btn-success:hover { background: #6b7389; border-color: #6b7389; }
.auth-page-card .btn-primary {
	border-radius: 10px;
	font-weight: 600;
	background: linear-gradient(135deg, #363950, #4f5670);
	border: 0;
}
.auth-page-card a { color: #9aa3b8; }
.auth-page-card a:hover { color: #c8ccd8; }

.shortstory-meta { font-size: 13px; opacity: 0.7; }
.shortstory-excerpt { color: #afafb1; font-size: 0.9rem; }
.story-meta-icon--author,
.story-meta-icon--date,
.story-meta-icon--views,
.story-meta-icon--comments {
	color: #6f7292;
	font-size: 0.9rem;
}
.fullstory-poster__img {
	width: 65%;
	max-width: 100%;
	opacity: 1 !important;
	visibility: visible !important;
}
.fullstory-poster__link:not(.highslide-active-anchor),
.fullstory-poster__link:not(.highslide-active-anchor) .fullstory-poster__img {
	visibility: visible !important;
	opacity: 1 !important;
}
.fullstory-poster__link {
	display: inline-block;
	position: relative;
	max-width: 100%;
	cursor: zoom-in;
	text-decoration: none !important;
	outline: none !important;
}
.fullstory-poster__link::after {
	content: "\f00e";
	font-family: FontAwesome;
	position: absolute;
	right: 12px;
	bottom: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(16, 17, 27, 0.72);
	border: 1px solid rgba(154, 163, 184, 0.45);
	color: #9aa3b8;
	font-size: 0.95rem;
	opacity: 0;
	transform: scale(0.92);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.fullstory-poster__link:hover::after {
	opacity: 1;
	transform: scale(1);
}
.fullstory-poster__link:hover .fullstory-poster__img {
	box-shadow: 0 0 0 2px rgba(154, 163, 184, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.fullstory-poster__link:focus {
	outline: none !important;
}
.fullstory-poster__link:focus::after {
	opacity: 0;
}
.fullstory-poster__img {
	transition: box-shadow .2s ease;
}
.ya-share2--fullstory { float: right; padding: 10px; }
.list-group-item--compact { padding: 10px; }
.sidebar-icon-sm, .sidebar-avatar-sm { width: 24px; height: 24px; object-fit: cover; margin: 0 5px 0 0; }
.sidebar-avatar-sm { border-radius: 50%; }
.media-body--compact { font-size: 84%; overflow: auto; }
.media-title-compact { font-family: arial, sans-serif; }
.slider-card-title { font-size: 1.1rem; font-weight: bold; }
.topnews-img { height: 200px; object-fit: cover; }

.comm-intro-title { font-weight: normal; }

@media (max-width: 767.98px) {
	.wrap { padding: 15px; }
	.navbar .navbar-nav.ml-auto { margin-left: 0 !important; border-top: 1px solid #222430; padding-top: 10px; margin-top: 5px; }
	#dwth { width: 100% !important; min-width: 0 !important; }
	.row-flex, .row-flex-wrap { display: block; }
	.row-flex > div[class*='col-'] { display: block; flex: none; width: 100%; max-width: 100%; }
	.shortstory-card .card-footer .list-inline-item.float-right { float: none !important; display: block; margin-top: 10px; }
	.shortstory-poster { margin-bottom: 15px; }
	.auth-panel__brand, .auth-panel__form { padding: 28px 24px; }
	.auth-panel__register { display: none; }
	.user-nav-menu { min-width: 260px; }
	.user-nav-chip { width: 100%; justify-content: flex-start; margin-top: 6px; }
	.nav-auth-chip { width: 100%; justify-content: center; margin-top: 6px; }
	.comments-compose__guest-fields { grid-template-columns: 1fr; }
	.story-footer { flex-direction: column; align-items: stretch; }
	.story-footer__meta { justify-content: flex-start; }
	.story-rating { align-self: flex-start; }
	.fullstory-poster__img { width: 100%; }
	.related-news__grid { grid-template-columns: 1fr; }
}

/* Галерея в полной новости — мгновенное открытие */
.mfp-no-anim .mfp-container,
.mfp-no-anim.mfp-bg,
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
	transition: none !important;
}
.mfp-no-anim.mfp-ready .mfp-container,
.mfp-no-anim.mfp-ready.mfp-bg,
.mfp-with-zoom.mfp-ready .mfp-container,
.mfp-with-zoom.mfp-ready.mfp-bg {
	opacity: 1 !important;
}
.mfp-bg { background: rgba(16, 17, 27, 0.92); }
.mfp-figure::after { background: transparent; }
.mfp-counter { color: #eaebed; }

/* --- Спойлеры в полной новости --- */
.spoiler-block {
	width: 100%;
	max-width: 100%;
	margin: 16px 0;
	clear: both;
	box-sizing: border-box;
}
.spoiler-block .title_spoiler {
	margin: 0 !important;
	padding: 12px 16px !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	background: linear-gradient(135deg, #181a26, #222430) !important;
	border: 1px solid #2e304a !important;
	border-left: 3px solid #9aa3b8 !important;
	border-radius: 10px !important;
	color: #eaebed !important;
	font-size: 0.95rem;
	line-height: 1.5;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.spoiler-block.is-open .title_spoiler {
	border-radius: 10px 10px 0 0 !important;
	border-bottom-color: #222430 !important;
}
.spoiler-block .title_spoiler:hover {
	background: #222430 !important;
	border-color: #4f5670 !important;
	border-left-color: #9aa3b8 !important;
}
.spoiler-block .title_spoiler img {
	margin-right: 8px !important;
	opacity: 0.85;
}
.spoiler-block .title_spoiler a {
	color: #c8ccd8 !important;
	text-decoration: none;
	font-weight: 600;
}
.spoiler-block .title_spoiler a:hover { color: #9aa3b8 !important; }
.spoiler-block:not(.is-open) .text_spoiler {
	max-height: 0 !important;
	opacity: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border-top: 0 !important;
	overflow: hidden;
}
.spoiler-block.is-open .text_spoiler {
	max-height: 12000px;
	opacity: 1;
	padding: 16px 18px !important;
}
.spoiler-block .text_spoiler ol,
.spoiler-block .text_spoiler ul {
	padding-left: 1.25rem;
	margin-bottom: 0;
}

/* Спойлеры без JS — нативное поведение DLE */
.title_spoiler + .text_spoiler[style*="display: none"],
.title_spoiler + .text_spoiler[style*="display:none"] {
	display: none !important;
}
.title_spoiler {
	margin: 16px 0 0 !important;
	padding: 12px 16px !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	background: linear-gradient(135deg, #181a26, #222430) !important;
	border: 1px solid #2e304a !important;
	border-left: 3px solid #9aa3b8 !important;
	border-radius: 10px !important;
	color: #eaebed !important;
}
.spoiler-block.is-open .title_spoiler,
.title_spoiler + .text_spoiler:not([style*="display: none"]):not([style*="display:none"]) {
	border-radius: 10px 10px 0 0 !important;
}
.text_spoiler {
	margin: 0 0 16px !important;
	padding: 16px 18px !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	background: #10111b !important;
	border: 1px solid #2e304a !important;
	border-top: 0 !important;
	border-radius: 0 0 10px 10px !important;
	color: #d8d8d8 !important;
	line-height: 1.65;
	text-align: left !important;
}

/* --- Рейтинг и мета в полной новости --- */
.story-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px !important;
	background: linear-gradient(180deg, #1a1c28 0%, #181a26 100%) !important;
	border-top: 1px solid #2e304a !important;
}
.story-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.story-footer__item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 36px;
	padding: 5px 12px 5px 6px;
	border: 1px solid rgba(46, 48, 74, 0.75);
	border-radius: 10px;
	background: rgba(16, 17, 27, 0.55);
	white-space: nowrap;
	color: #b8bcc8;
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.story-footer__item:hover {
	border-color: #4a5070;
	background: rgba(34, 36, 48, 0.85);
	color: #eaebed;
}
.story-footer__item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #222430;
	color: #8b90a8;
	font-size: 0.82rem;
	transition: background .2s ease, color .2s ease;
}
.story-footer__item:hover i {
	background: #2a2e3f;
	color: #c8ccd8;
}

.story-rating {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(46, 48, 74, 0.75);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(16, 17, 27, 0.55);
}
.story-rating__btn,
.story-rating a,
.story-rating span.story-rating__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #9aa3b8 !important;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease;
	cursor: pointer;
}
.story-rating__value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 32px;
	padding: 0 10px;
	font-weight: 600;
	font-size: 0.86rem;
	color: #c8ccd8 !important;
	background: #222430 !important;
	border: 0;
	border-radius: 7px;
}
.story-rating__btn:hover,
.story-rating a:hover,
.story-rating span.story-rating__btn:hover,
.story-rating__btn:focus,
.story-rating a:focus,
.story-rating span.story-rating__btn:focus {
	background: #2a2e3f !important;
	color: #eaebed !important;
	outline: none !important;
	box-shadow: none !important;
}
.story-rating__btn:hover i,
.story-rating a:hover i {
	transform: scale(1.08);
}
.story-rating__btn i,
.story-rating a i {
	transition: color .2s, transform .2s;
}

/* --- Похожие материалы --- */
.related-news {
	margin-bottom: 24px;
	padding: 16px 18px;
	border: 1px solid #2e304a;
	border-radius: 14px;
	background: linear-gradient(180deg, #1a1c28 0%, #181a26 100%);
}
.related-news__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #eaebed;
	letter-spacing: 0.01em;
}
.related-news__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.related-card {
	border-radius: 10px;
	transition: transform .2s ease;
}
.related-card:hover {
	transform: translateY(-1px);
}
.related-card__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid rgba(46, 48, 74, 0.75);
	border-radius: 10px;
	background: rgba(16, 17, 27, 0.55);
	color: inherit;
	text-decoration: none !important;
	transition: border-color .2s ease, background .2s ease;
}
.related-card__link:hover {
	border-color: #4a5070;
	background: rgba(34, 36, 48, 0.85);
}
.related-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #222430;
	color: #8b90a8;
	font-size: 0.88rem;
	transition: background .2s ease, color .2s ease;
}
.related-card__link:hover .related-card__icon {
	background: #2a2e3f;
	color: #c8ccd8;
}
.related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}
.related-card__title {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	color: #eaebed;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s ease;
}
.related-card__link:hover .related-card__title {
	color: #f0f1f5;
}
.related-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.related-card__chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(34, 36, 48, 0.65);
	color: #8b90a8;
	font-size: 0.74rem;
	font-weight: 500;
	line-height: 1.2;
}
.related-card__chip i {
	font-size: 0.72rem;
	color: #6f7292;
}
.related-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: #5a6178;
	font-size: 1rem;
	transition: color .2s ease, transform .2s ease;
}
.related-card__link:hover .related-card__arrow {
	color: #9aa3b8;
	transform: translateX(2px);
}

/* --- Кнопки скачивания --- */
.download-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 14px;
}
.attachment {
	display: inline-flex;
	max-width: 100%;
}
.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	max-width: 100%;
	padding: 12px 18px 12px 12px;
	border: 1px solid #3a3f5c;
	border-radius: 14px;
	background: linear-gradient(135deg, #181a26 0%, #222430 100%);
	color: #eaebed !important;
	text-decoration: none !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.download-btn:hover,
.download-btn:focus {
	color: #fff !important;
	text-decoration: none !important;
	border-color: #4f5670;
	background: linear-gradient(135deg, #222430 0%, #2a2e3f 100%);
	box-shadow: 0 12px 32px rgba(79, 86, 112, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
	outline: none;
}
.download-btn__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #4f5670, #6b7389);
	color: #fff;
	font-size: 1.15rem;
	box-shadow: 0 4px 14px rgba(79, 86, 112, 0.35);
}
.download-btn--external .download-btn__icon {
	background: #424760;
	box-shadow: 0 4px 14px rgba(79, 86, 112, 0.25);
}
.download-btn__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}
.download-btn__label {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.25;
	color: #c8ccd8;
}
.download-btn:hover .download-btn__label,
.download-btn:focus .download-btn__label {
	color: #ffe082;
}
.download-btn__meta {
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.2;
	color: #898b96;
}
.download-btn:hover .download-btn__meta,
.download-btn:focus .download-btn__meta {
	color: #b8bac8;
}

@media (max-width: 575.98px) {
	.download-btn {
		width: 100%;
	}
}

/* --- Секция комментариев --- */
.comments-section { background: transparent; border: 0; }
.comments-section .comments-list,
.comments-section #cd-timeline {
	position: static;
	margin: 0;
	padding: 0;
	border: 0;
}
.comments-section .comments-list::before,
.comments-section .comments-list::after,
.comments-section #cd-timeline::before,
.comments-section #cd-timeline::after {
	content: none !important;
	display: none !important;
}
.comments-section .comment-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.comments-section .comment-card__avatar,
.comments-section .cd-timeline-img {
	position: static;
	flex-shrink: 0;
}
.comments-section .comment-card__content,
.comments-section .cd-timeline-content {
	margin-left: 0 !important;
	flex: 1;
	min-width: 0;
}
.comments-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #2e304a;
}
.comments-section-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #c8ccd8;
}
.comments-section-title i { margin-right: 8px; color: #9aa3b8; }
.comments-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	margin-left: 8px;
	padding: 0 8px;
	border-radius: 999px;
	background: #222430;
	color: #eaebed;
	font-size: 0.85rem;
	font-weight: 700;
}

.comments-rules-notice,
.comments-guest-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 16px;
	margin-bottom: 18px;
	border: 1px solid #2e304a;
	border-radius: 12px;
	background: linear-gradient(135deg, #181a26, #1f2130);
}
.comments-rules-notice--muted { opacity: 0.85; }
.comments-rules-notice__icon,
.comments-guest-notice__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(200, 204, 216, 0.12);
	color: #c8ccd8;
	font-size: 1.1rem;
}
.comments-rules-notice strong,
.comments-guest-notice strong {
	display: block;
	color: #c8ccd8;
	margin-bottom: 4px;
}
.comments-rules-notice p,
.comments-guest-notice p {
	margin: 0;
	color: #898b96;
	font-size: 0.9rem;
	line-height: 1.5;
}
.comments-rules-notice a,
.comments-guest-notice a { color: #9aa3b8; font-weight: 600; }
.comments-rules-notice a:hover,
.comments-guest-notice a:hover { color: #c8ccd8; }

.comments-compose--locked {
	margin-top: 10px;
	margin-bottom: 20px;
}
.comments-compose--locked .comments-compose__body {
	padding: 16px 18px 18px;
}
.comments-section > .card-body {
	padding-bottom: 18px !important;
}
.comments-guest-notice--inline {
	margin-bottom: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(16, 17, 27, 0.55);
	padding: 12px 14px;
}
.comments-guest-notice__content p {
	margin: 0;
	color: #9aa3b8;
	font-size: 0.9rem;
	line-height: 1.55;
}
.comments-guest-notice__actions {
	margin-top: 12px;
}
.comments-guest-notice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border: 1px solid rgba(46, 48, 74, 0.75);
	border-radius: 10px;
	background: #222430;
	color: #eaebed !important;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.comments-guest-notice__btn:hover {
	border-color: #4a5070;
	background: #2a2e3f;
	color: #f0f1f5 !important;
}

/* Старый alert внутри комментариев — под новый стиль */
.comments-section .alert.alert-warning {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 16px;
	margin-top: 10px;
	margin-bottom: 0;
	border: 1px solid #2e304a;
	border-radius: 14px;
	background: #181a26;
	color: #9aa3b8;
}
.comments-section .alert.alert-warning h5 {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 700;
	color: #eaebed;
}
.comments-section .alert.alert-warning p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #9aa3b8;
}

/* --- Форма комментария --- */
.comments-compose {
	margin-top: 10px;
	border: 1px solid #2e304a;
	border-radius: 14px;
	overflow: hidden;
	background: #181a26;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.comments-compose__head {
	padding: 14px 18px;
	border-bottom: 1px solid #2e304a;
	background: linear-gradient(135deg, #10111b, #222430);
}
.comments-compose__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #c8ccd8;
}
.comments-compose__title i { margin-right: 8px; color: #9aa3b8; }
.comments-compose__body { padding: 18px; }
.comments-compose__guest-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
.comments-compose__input,
.comments-compose .form-control,
.comments-compose textarea,
.comments-compose iframe {
	width: 100%;
	border: 1px solid #2e304a !important;
	border-radius: 10px !important;
	background: #10111b !important;
	color: #eaebed !important;
	padding: 10px 14px;
}
.comments-compose__input:focus,
.comments-compose .form-control:focus,
.comments-compose textarea:focus {
	border-color: #9aa3b8 !important;
	box-shadow: 0 0 0 3px rgba(154, 163, 184, 0.12) !important;
	outline: 0;
}
.comments-compose__label {
	display: block;
	margin-bottom: 6px;
	color: #898b96;
	font-size: 0.85rem;
}
.comments-compose__editor { margin-bottom: 14px; }
.comments-compose__captcha,
.comments-compose__sec { margin-bottom: 14px; }
.comments-compose__actions { display: flex; justify-content: flex-end; }
.comments-compose__submit {
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #363950, #4f5670);
	color: #fff;
	font-weight: 600;
	transition: background .2s, transform .2s;
}
.comments-compose__submit:hover {
	background: linear-gradient(135deg, #4f5670, #6b7389);
	color: #fff;
	transform: translateY(-1px);
}

/* --- Карточка комментария --- */
.comment-card__content {
	background: #181a26 !important;
	border: 1px solid #2e304a !important;
	border-radius: 12px !important;
	padding: 14px 16px !important;
	box-shadow: none !important;
}
.comment-card__content::before,
.comment-card__content::after { display: none !important; }
.comment-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.comment-card__author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-card__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #c8ccd8 !important;
}
.comment-card__badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #222430;
	color: #898b96;
	font-size: 0.72rem;
	font-weight: 600;
}
.comment-card__handle { color: #6f7292; font-size: 0.82rem; }
.comment-card__meta { color: #6f7292; font-size: 0.8rem; white-space: nowrap; }
.comment-card__text {
	color: #d8d8d8;
	line-height: 1.6;
	margin-bottom: 12px;
}
.comment-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.comment-rating__btn,
.comment-rating a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #2e304a;
	border-radius: 999px;
	background: #10111b;
	color: #c8ccd8;
	font-size: 0.85rem;
	text-decoration: none !important;
	transition: background .2s, border-color .2s;
}
.comment-rating__btn:hover,
.comment-rating a:hover {
	background: rgba(200, 204, 216, 0.1);
	border-color: #c8ccd8;
	color: #c8ccd8 !important;
}
.comment-card__menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #2e304a;
	border-radius: 8px;
	background: #10111b;
	color: #898b96;
	padding: 0;
}
.comment-card__dropdown {
	background: #10111b !important;
	border: 1px solid #2e304a !important;
}
.comment-card__dropdown .dropdown-item { color: #d8d8d8; }
.comment-card__dropdown .dropdown-item:hover { background: #222430; color: #fff; }
.comment-card__complaint { color: #e9573f !important; }
.comment-card__reply { color: #6b7389; margin-left: auto; cursor: pointer; }

/* --- AJAX-загрузчик (закладки и др.) --- */
#loading-layer {
	position: fixed !important;
	top: auto !important;
	left: auto !important;
	right: 24px !important;
	bottom: 24px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	max-width: calc(100vw - 32px) !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #eaebed !important;
	text-indent: 0 !important;
	overflow: visible !important;
	white-space: normal !important;
	z-index: 10600 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	pointer-events: none !important;
}
#loading-layer.ws-loading.is-active {
	display: flex !important;
	align-items: flex-end !important;
	justify-content: flex-end !important;
	opacity: 1 !important;
	visibility: visible !important;
}
#loading-layer::before,
#loading-layer::after {
	content: none !important;
	display: none !important;
	animation: none !important;
	-webkit-animation: none !important;
}
.ws-loading__inner {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 11px 16px 11px 14px;
	background: linear-gradient(135deg, #181a26, #222430);
	border: 1px solid #2e304a;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(79, 86, 112, 0.12);
	font-size: 0.9rem;
	line-height: 1.2;
	white-space: nowrap;
}
.ws-loading__spinner {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #2e304a;
	border-top-color: #9aa3b8;
	animation: ws-loading-spin 0.75s linear infinite;
	-webkit-animation: ws-loading-spin 0.75s linear infinite;
}
.ws-loading__text {
	color: #c8ccd8;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
}
@keyframes ws-loading-spin {
	to { transform: rotate(360deg); }
}
@-webkit-keyframes ws-loading-spin {
	to { -webkit-transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
	#loading-layer.ws-loading.is-active {
		right: 16px !important;
		left: 16px !important;
		bottom: 16px !important;
		justify-content: center !important;
	}
	.ws-loading__inner {
		width: 100%;
		justify-content: center;
	}
}

/* --- DLE alert / confirm (закладки, рейтинг) --- */
.ui-widget-overlay {
	z-index: 10590 !important;
	background: rgba(0, 0, 0, 0.72) !important;
}
.ui-dialog {
	z-index: 10610 !important;
}
.ui-dialog-content,
.dle-alert,
.dle-confirm,
.dle-promt {
	color: #eaebed !important;
	background: #222430 !important;
}
.ui-dialog-titlebar {
	background: #181a26 !important;
	color: #c8ccd8 !important;
	border-bottom: 1px solid #2e304a !important;
}
.ui-dialog .ui-dialog-buttonpane {
	background: #181a26 !important;
	border-top: 1px solid #2e304a !important;
}


/* --- Каталог / главная (стиль Synthira) --- */
.catalog-page { margin-bottom: 24px; }
.catalog-breadcrumb { margin-bottom: 14px; }
.catalog-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #898b96;
	font-size: 0.88rem;
}
.catalog-breadcrumb__item i { margin-right: 8px; color: #6f7292; }
.catalog-breadcrumb a { color: #9aa3b8; text-decoration: none; }
.catalog-breadcrumb a:hover { color: #eaebed; }
.catalog-page__head { margin-bottom: 16px; }
.catalog-page__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 1.55rem;
	font-weight: 700;
	color: #eaebed;
	line-height: 1.25;
}
.catalog-page__home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #181a26;
	border: 1px solid #2e304a;
	color: #9aa3b8 !important;
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.catalog-page__home:hover {
	border-color: #4a5070;
	background: #222430;
	color: #eaebed !important;
}
.catalog-page__title-text {
	color: #eaebed;
}
.catalog-page__crumbs {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.88rem;
	font-weight: 500;
	color: #898b96;
}
.catalog-page__crumbs a {
	color: #9aa3b8;
	text-decoration: none;
}
.catalog-page__crumbs a:hover { color: #eaebed; }
.catalog-page__desc {
	margin: 0;
	color: #898b96;
	font-size: 0.92rem;
	line-height: 1.55;
}
.catalog-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid #2e304a;
	border-radius: 12px;
	background: linear-gradient(135deg, #181a26, #1f2130);
}
.catalog-toolbar--bottom {
	margin-top: 22px;
	margin-bottom: 0;
	justify-content: flex-end;
}
.catalog-toolbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: #898b96;
	font-size: 0.88rem;
}
.catalog-toolbar__item strong { color: #eaebed; }
.catalog-toolbar__nav { flex: 0 0 auto; min-width: 0; }
.catalog-toolbar__info .catalog-toolbar__item {
	color: #898b96;
	line-height: 1.4;
}
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.news-grid > .catalog-pagination,
.news-grid > nav.pagination,
.news-grid > .pagination,
.news-grid #dle-content > .catalog-pagination,
.news-grid #dle-content > nav.pagination {
	display: none !important;
}
.news-grid #dle-content {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 22px !important;
	width: 100% !important;
}
.news-grid #dle-content > .sxss-card,
.news-grid #dle-content > .mod-card {
	width: 100% !important;
}
.mod-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #2e304a;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(180deg, #1c1e2b 0%, #181a26 100%);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mod-card--fixed {
	border-color: #3a3f52;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.mod-card:hover {
	transform: translateY(-4px);
	border-color: #4a5070;
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}
.mod-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #141622;
	aspect-ratio: 16 / 9;
}
.mod-card__preloader {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		100deg,
		#141622 0%,
		#181a26 20%,
		#222430 38%,
		#181a26 58%,
		#141622 78%
	);
	background-size: 220% 100%;
	animation: mod-card-shimmer 1.5s ease-in-out infinite;
	transition: opacity .4s ease, visibility .4s ease;
}
.mod-card__preloader::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 2px solid rgba(46, 48, 74, 0.55);
	border-top-color: #7a8299;
	border-radius: 50%;
	animation: mod-card-spin 0.85s linear infinite;
}
.mod-card__preloader::after {
	content: "\f03e";
	font-family: FontAwesome;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 0.95rem;
	color: #4a5070;
	opacity: 0.65;
}
.mod-card__media:has(.mod-card__img:not(.lazy-hidden)) .mod-card__preloader {
	opacity: 0;
	visibility: hidden;
}
.mod-card__img.lazy-hidden {
	background: transparent !important;
	background-image: none !important;
	opacity: 0;
}
.mod-card__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1;
	transition: opacity .4s ease, transform .4s ease;
}
@keyframes mod-card-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}
@keyframes mod-card-spin {
	to { transform: rotate(360deg); }
}
.mod-card__media-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(16, 17, 27, 0) 35%, rgba(16, 17, 27, 0.75) 100%);
	opacity: 0.55;
	transition: opacity .25s ease;
	pointer-events: none;
}
.mod-card:hover .mod-card__media-overlay { opacity: 0.85; }
.mod-card:hover .mod-card__img { transform: scale(1.05); }
.mod-card__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(16, 17, 27, 0.72);
	color: #eaebed;
	font-size: 0.95rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.mod-card:hover .mod-card__zoom {
	opacity: 1;
	transform: translateY(0);
}
.mod-card__badge {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.mod-card__badge i { font-size: 0.68rem; }
.mod-card__badge--updated {
	left: 10px;
	bottom: 10px;
	background: rgba(58, 63, 82, 0.95);
	color: #eaebed;
}
.mod-card__badge--top {
	left: 10px;
	top: 10px;
	background: rgba(74, 80, 112, 0.95);
	color: #eaebed;
}
.mod-card__badge--accent { left: 10px; top: 10px; background: #4a5070; color: #eaebed; }
.mod-card__badge--warn { right: 10px; top: 10px; background: #5a6178; color: #eaebed; }
.mod-card__badge--info { right: 10px; top: 10px; background: #424760; color: #eaebed; }
.mod-card__badge--danger { right: 10px; top: 10px; background: #6b4f4f; color: #eaebed; }
.mod-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 14px;
}
.mod-card__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.38;
}
.mod-card__title a {
	color: #f0f1f5;
	text-decoration: none;
	transition: color .2s ease;
}
.mod-card__title a:hover { color: #eaebed; }
.mod-card__poll { margin-right: 6px; color: #9aa3b8; font-size: 0.9rem; }
.mod-card__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: #6f7292;
	font-size: 0.8rem;
	line-height: 1.4;
}
.mod-card__meta-item--cat a {
	color: #9aa3b8;
	text-decoration: none;
}
.mod-card__meta-item--cat a:hover { color: #eaebed; }
.mod-card__meta--edit { color: #9aa3b8; }
.mod-card__meta-item i {
	width: 14px;
	margin-right: 6px;
	color: #4f5670;
}
.mod-card__meta--edit .mod-card__meta-item i { color: #9aa3b8; }
.mod-card__excerpt {
	margin: 2px 0 0;
	flex: 1;
	color: #9a9cab;
	font-size: 0.87rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mod-card__edit-btn {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: #9aa3b8;
	font-size: 0.78rem;
	cursor: pointer;
}
.mod-card__edit-btn:hover { color: #eaebed; }
.mod-card__edit-note {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #222430;
	color: #898b96;
	font-size: 0.82rem;
	line-height: 1.45;
}
.mod-card__footer {
	display: flex;
	align-items: center;
	padding: 12px 18px 14px;
	border-top: 1px solid #2e304a;
	background: #10111b;
}
.mod-card__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: #9a9cab;
	font-size: 0.78rem;
}
.mod-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #181a26;
	color: #9a9cab;
	max-width: 100%;
}
.mod-card__stat i { color: #6f7292; font-size: 0.82rem; flex-shrink: 0; }
.mod-card__stat--author {
	max-width: 130px;
	overflow: hidden;
}
.mod-card__stat--author:has(img) > i,
.mod-card__stat--author:has(a img) > i {
	display: none;
}
.mod-card__stat--author img {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.mod-card__stat--author a {
	color: #9a9cab !important;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 90px;
	display: inline-block;
	vertical-align: middle;
}
.mod-card__stat--author a:hover { color: #eaebed !important; }
.catalog-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px 8px;
}
.catalog-pagination__arrow,
.catalog-pagination__pages {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.catalog-pagination__pages a,
.catalog-pagination__pages span,
.catalog-pagination__pages b,
.catalog-pagination__arrow a,
.catalog-pagination__arrow span,
.catalog-pagination__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #898b96 !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition: color .15s ease;
}
.catalog-pagination__pages a:hover,
.catalog-pagination__arrow a:hover,
.catalog-pagination__btn:hover {
	background: transparent !important;
	color: #eaebed !important;
}
.catalog-pagination__pages > span,
.catalog-pagination__pages .navigation_current {
	color: #eaebed !important;
	font-weight: 700 !important;
}
.catalog-pagination .page-item.disabled a,
.catalog-pagination .page-item.disabled span,
.catalog-pagination .disabled a,
.catalog-pagination .disabled span {
	opacity: 0.35 !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	color: #6f7292 !important;
	pointer-events: none;
}
.catalog-pagination .nav_ext,
.catalog-pagination .pages_ext {
	color: #6f7292 !important;
	padding: 0 2px !important;
}
.catalog-pagination .pagination,
.catalog-pagination ul {
	display: contents;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.catalog-pagination .page-item {
	display: contents;
}
	.catalog-pagination .page-link {
	border: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

@media (max-width: 1199.98px) {
	.news-grid,
	.news-grid #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767.98px) {
	.catalog-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.catalog-toolbar__nav { width: 100%; }
	.catalog-pagination__list { justify-content: center; }
	.news-grid,
	.news-grid #dle-content { grid-template-columns: 1fr !important; gap: 16px !important; }
	.mod-card__stat--author { max-width: 110px; }
}

/* --- Cookie notice --- */
.cookie-notice {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1060;
	max-width: 920px;
	margin: 0 auto;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.28s ease, transform 0.28s ease;
	pointer-events: none;
}
.cookie-notice--visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.cookie-notice__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	padding: 16px 18px;
	border: 1px solid #2e304a;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(16, 17, 27, 0.97), rgba(24, 26, 38, 0.98));
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
}
.cookie-notice__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(200, 204, 216, 0.12);
	color: #c8ccd8;
	font-size: 1.15rem;
}
.cookie-notice__content { flex: 1 1 280px; min-width: 0; }
.cookie-notice__text {
	margin: 0;
	color: #9aa3b8;
	font-size: 0.9rem;
	line-height: 1.55;
}
.cookie-notice__text a {
	color: #c8ccd8;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cookie-notice__text a:hover { color: #eaebed; }
.cookie-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}
.cookie-notice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 16px;
	border-radius: 10px;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cookie-notice__btn--accept {
	border: 1px solid #4f5670;
	background: #2a2d3f;
	color: #eaebed;
}
.cookie-notice__btn--accept:hover {
	background: #36394f;
	border-color: #6b7289;
	color: #fff;
}
.cookie-notice__btn--link {
	border: 1px solid #2e304a;
	background: transparent;
	color: #9aa3b8;
}
.cookie-notice__btn--link:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #c8ccd8;
}
@media (max-width: 575.98px) {
	.cookie-notice {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.cookie-notice__inner {
		padding: 14px;
	}
	.cookie-notice__actions {
		width: 100%;
	}
	.cookie-notice__btn {
		flex: 1 1 auto;
	}
}

/* --- Static pages (privacy etc.) --- */
.static-page .card {
	border: 1px solid #2e304a;
	border-radius: 14px;
	background: #181a26;
}
.static-page .card-title {
	color: #eaebed;
	font-size: 1.5rem;
}
.static-page .card-text {
	color: #9aa3b8;
	line-height: 1.65;
}
.static-page .card-text h2 {
	margin: 1.4em 0 0.6em;
	color: #c8ccd8;
	font-size: 1.1rem;
}
.static-page .card-text p,
.static-page .card-text li {
	color: #9aa3b8;
}
.static-page .card-text a {
	color: #c8ccd8;
	font-weight: 600;
}
.static-page .card-text a:hover { color: #eaebed; }
.static-page hr { border-color: #2e304a; }
