/* Доп. стили — Modsgames (светлая тема) */

/* --- Постер полной новости / Highslide --- */
.fullstory-poster {
	display: block;
	margin: 0 0 32px;
	padding-bottom: 4px;
}
.fullstory-poster__img {
	width: 65%;
	max-width: 100%;
	margin-bottom: 0 !important;
	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(255, 255, 255, 0.92);
	border: 1px solid #e7e8ef;
	color: #6b6e84;
	font-size: 0.95rem;
	opacity: 0;
	transform: scale(0.92);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.fullstory-poster__link:hover::after {
	opacity: 1;
	transform: scale(1);
}
.fullstory-poster__link:hover .fullstory-poster__img {
	box-shadow: 0 0 0 2px rgba(107, 117, 203, 0.25), 0 12px 28px rgba(0, 0, 0, 0.1);
}
.fullstory-poster__link:focus { outline: none !important; }
.fullstory-poster__link:focus::after { opacity: 0; }
.fullstory-poster__img { transition: box-shadow .2s ease; }

/* --- Авторизация (светлая) --- */
.auth-modal-dialog { max-width: 860px; width: calc(100% - 30px); }
.auth-modal-frame {
	position: relative;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px #e7e8ef, 0 24px 60px rgba(0, 0, 0, 0.12);
}
.auth-modal-frame__glow {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	padding: 2px;
	background: linear-gradient(135deg, #e7e8ef, #d5d8e6, #eef0f7, #d5d8e6);
	-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: #fff; }
.auth-modal-close {
	position: absolute;
	right: 14px;
	top: 10px;
	z-index: 5;
	font-size: 1.75rem;
	font-weight: 300;
	color: #9a9eb0;
	opacity: 1;
}
.auth-modal-close:hover { color: #2d3142; }
.auth-panel { display: flex; flex-wrap: wrap; min-height: 480px; background: #fff; }
.auth-panel__brand {
	flex: 1 1 320px;
	background: linear-gradient(145deg, #f8f9fb 0%, #eef0f7 55%, #e8ebf7 100%);
	color: #2d3142;
	padding: 40px 32px;
	border-right: 1px solid #ebedf2;
}
.auth-panel__brand-inner { max-width: 320px; }
.auth-panel__logo {
	font-family: Rubik, sans-serif;
	font-size: 1.75rem;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 24px;
	color: #2d3142;
}
.auth-panel__logo span { color: #6b75cb; }
.auth-panel__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #2d3142; }
.auth-panel__subtitle { font-size: 0.95rem; line-height: 1.55; color: #6b6e84; 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: #fff;
	color: #4a4f63;
	font-size: 0.9rem;
	border: 1px solid #e7e8ef;
	transition: background .2s, border-color .2s, transform .2s;
}
.auth-social__btn:hover {
	background: #f5f6fa;
	border-color: #d5d8e6;
	color: #2d3142;
	text-decoration: none;
	transform: translateY(-1px);
}
.auth-social__btn i { width: 18px; text-align: center; color: #6b75cb; }
.auth-panel__register { margin: 0; font-size: 0.9rem; color: #6b6e84; }
.auth-panel__register a { color: #6b75cb; font-weight: 600; }
.auth-panel__form { flex: 1 1 300px; padding: 40px 36px; background: #fff; }
.auth-form__title { font-size: 1.35rem; font-weight: 700; color: #2d3142; margin-bottom: 6px; }
.auth-form__hint { font-size: 0.9rem; margin-bottom: 24px; color: #6b6e84 !important; }
.auth-form__group { margin-bottom: 18px; }
.auth-form__label { display: block; font-size: 0.85rem; font-weight: 600; color: #6b6e84; margin-bottom: 6px; }
.auth-form__input-wrap { position: relative; }
.auth-form__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9a9eb0; z-index: 2; pointer-events: none; }
.auth-form__input,
.auth-panel .form-control.auth-form__input {
	padding-left: 40px;
	height: 46px;
	border: 1px solid #e7e8ef !important;
	border-radius: 10px;
	background: #fff !important;
	color: #2d3142 !important;
}
.auth-form__input:focus,
.auth-panel .form-control.auth-form__input:focus {
	border-color: #6b75cb !important;
	box-shadow: 0 0 0 3px rgba(107, 117, 203, 0.12) !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: #6b6e84; font-size: 0.9rem; }
.auth-panel .custom-control-input:checked ~ .custom-control-label::before { background-color: #6b75cb; border-color: #6b75cb; }
.auth-form__forgot { font-size: 0.85rem; color: #6b75cb; }
.auth-form__submit,
.auth-panel .auth-form__submit.btn-primary {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: #6b75cb !important;
	color: #fff !important;
	font-weight: 600;
}
.auth-form__submit:hover,
.auth-panel .auth-form__submit.btn-primary:hover {
	background: #5a62b8 !important;
	color: #fff !important;
}
.auth-form__footer { margin-top: 20px; text-align: center; font-size: 0.9rem; color: #6b6e84; }
.auth-form__footer a { color: #6b75cb; font-weight: 600; }

.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 #e7e8ef !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	color: #2d3142 !important;
}
.user-nav-chip:hover,
.show > .user-nav-chip {
	border-color: #d5d8e6 !important;
	box-shadow: 0 0 0 3px rgba(107, 117, 203, 0.1);
	color: #2d3142 !important;
	text-decoration: none;
}
.user-nav-chip__avatar {
	display: inline-flex;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #d5d8e6;
}
.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; }
.nav-auth-chip {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 8px 16px !important;
	border: 1px solid #e7e8ef !important;
	border-radius: 999px !important;
	background: #fff !important;
	font-weight: 600 !important;
}
.nav-auth-chip:hover {
	border-color: #6b75cb !important;
	color: #6b75cb !important;
	text-decoration: none;
}
.nav-auth-chip__icon { font-size: 1.15rem; color: #6b75cb; }
.user-nav-menu.dropdown-menu {
	min-width: 300px;
	padding: 0;
	border: 1px solid #e7e8ef;
	border-radius: 12px;
	overflow: hidden;
	background: #fff !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.user-nav-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #f8f9fb;
	border-bottom: 1px solid #ebedf2;
}
.user-nav-header-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #d5d8e6; }
.user-nav-header-info .user-nav-subtitle { color: #9a9eb0; }
.user-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.user-nav-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px;
	border-radius: 10px;
	background: #f8f9fb;
	border: 1px solid #ebedf2;
	color: #4a4f63;
}
.user-nav-item:hover { background: #eef0f7; border-color: #d5d8e6; color: #2d3142; text-decoration: none; }
.user-nav-item i { font-size: 1.1rem; color: #6b75cb; margin-bottom: 6px; }
.user-nav-item span { font-weight: 600; font-size: 0.9rem; }
.user-nav-item small { color: #9a9eb0; font-size: 0.75rem; }
.user-nav-pm-meta--0 .user-nav-pm-new { display: none; }
.user-nav-pm-new strong { color: #d9534f; }
.user-nav-item--wide { grid-column: 1 / -1; }
.user-nav-footer { padding: 10px 12px 12px; border-top: 1px solid #ebedf2; }
.user-nav-logout { display: block; text-align: center; padding: 10px; border-radius: 8px; color: #6b6e84; }
.user-nav-logout:hover { background: rgba(217, 83, 79, 0.08); color: #d9534f; text-decoration: none; }

/* --- Спойлеры --- */
.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;
	box-sizing: border-box !important;
	background: linear-gradient(135deg, #f8f9fb, #fff) !important;
	border: 1px solid #e7e8ef !important;
	border-left: 3px solid #6b75cb !important;
	border-radius: 10px !important;
	color: #2d3142 !important;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.spoiler-block.is-open .title_spoiler {
	border-radius: 10px 10px 0 0 !important;
	border-bottom-color: #ebedf2 !important;
}
.spoiler-block .title_spoiler:hover {
	background: #eef0f7 !important;
	border-color: #d5d8e6 !important;
}
.spoiler-block .title_spoiler a {
	color: #2d3142 !important;
	text-decoration: none;
	font-weight: 600;
}
.spoiler-block .title_spoiler a:hover { color: #6b75cb !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;
}
.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;
	background: linear-gradient(135deg, #f8f9fb, #fff) !important;
	border: 1px solid #e7e8ef !important;
	border-left: 3px solid #6b75cb !important;
	border-radius: 10px !important;
	color: #2d3142 !important;
}
.text_spoiler {
	margin: 0 0 16px !important;
	padding: 16px 18px !important;
	background: #fff !important;
	border: 1px solid #e7e8ef !important;
	border-top: 0 !important;
	border-radius: 0 0 10px 10px !important;
	color: #4a4f63 !important;
	line-height: 1.65;
	text-align: left !important;
}

/* --- Похожие материалы --- */
.related-news {
	margin: 28px 0 24px;
	padding: 16px 18px;
	border: 1px solid #e7e8ef;
	border-radius: 14px;
	background: #fff;
}
.related-news__title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #2d3142;
}
.related-news__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.related-card { margin: 0; }
.related-card__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e7e8ef;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	text-decoration: none !important;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.related-card__link:hover {
	border-color: #d5d8e6;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}
.related-card__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f2f8;
	color: #6b75cb;
	font-size: 1rem;
}
.related-card__link:hover .related-card__icon {
	background: #e8ebf7;
	color: #5a62b8;
}
.related-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.related-card__title {
	display: block;
	color: #2d3142;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.related-card__link:hover .related-card__title { color: #6b75cb; }
.related-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.related-card__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f5f6fa;
	color: #6b6e84;
	font-size: 0.72rem;
}
.related-card__chip i { font-size: 0.68rem; color: #9a9eb0; }
.related-card__arrow {
	flex-shrink: 0;
	color: #c5c8d6;
	font-size: 1.1rem;
	transition: color .2s ease, transform .2s ease;
}
.related-card__link:hover .related-card__arrow {
	color: #6b75cb;
	transform: translateX(2px);
}

/* --- Гостевой блок (info.tpl) --- */
.comments-compose--locked {
	margin-bottom: 20px;
	border: 1px solid #e7e8ef;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}
.comments-compose__head {
	padding: 14px 16px;
	border-bottom: 1px solid #ebedf2;
	background: #f8f9fb;
}
.comments-compose__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2d3142;
}
.comments-compose__title i { margin-right: 8px; color: #6b75cb; }
.comments-compose__body { padding: 16px; }
.comments-guest-notice,
.comments-guest-notice--inline {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px solid #e7e8ef;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8f9fb, #fff);
}
.comments-guest-notice__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f7;
	color: #6b75cb;
	font-size: 1.1rem;
}
.comments-guest-notice__content p {
	margin: 0 0 10px;
	color: #6b6e84;
	font-size: 0.9rem;
	line-height: 1.5;
}
.comments-guest-notice__btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	background: #6b75cb;
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
}
.comments-guest-notice__btn:hover {
	background: #5a62b8;
	color: #fff !important;
}

/* --- AJAX-загрузчик --- */
#loading-layer {
	position: fixed !important;
	top: auto !important;
	left: auto !important;
	right: 24px !important;
	bottom: 24px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	z-index: 10600 !important;
	font-size: 0 !important;
	pointer-events: none !important;
}
#loading-layer.ws-loading.is-active {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
}
#loading-layer::before,
#loading-layer::after { content: none !important; display: none !important; }
.ws-loading__inner {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	background: #fff;
	border: 1px solid #e7e8ef;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
}
.ws-loading__spinner {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #e7e8ef;
	border-top-color: #6b75cb;
	animation: ws-loading-spin 0.75s linear infinite;
}
.ws-loading__text {
	color: #2d3142;
	font-weight: 600;
}
@keyframes ws-loading-spin { to { transform: rotate(360deg); } }

/* --- Каталог / главная --- */
.catalog-page { margin-bottom: 24px; }
.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: #2d3142;
	line-height: 1.25;
}
.catalog-page__home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f5f6fa;
	border: 1px solid #e7e8ef;
	color: #6b6e84 !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: #d5d8e6;
	background: #eef0f7;
	color: #6b75cb !important;
}
.catalog-page__title-text { color: #2d3142; }
.catalog-page__desc {
	margin: 0;
	color: #6b6e84;
	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 #e7e8ef;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff, #f8f9fb);
}
.catalog-toolbar--bottom {
	margin-top: 22px;
	margin-bottom: 0;
	justify-content: flex-end;
}
.catalog-toolbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	color: #6b6e84;
	font-size: 0.88rem;
}
.catalog-toolbar__item strong { color: #2d3142; }
.catalog-toolbar__nav { flex: 0 0 auto; min-width: 0; }

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.news-grid > .catalog-pagination,
.news-grid > nav.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 > .mod-card { width: 100% !important; }

/* --- Карточки каталога --- */
.mod-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e7e8ef;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.mod-card--fixed { border-color: #d5d8e6; }
.mod-card:hover {
	transform: translateY(-4px);
	border-color: #d5d8e6;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
.mod-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f0f2f8;
	aspect-ratio: 16 / 9;
}
.mod-card__preloader {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(100deg, #f0f2f8 0%, #f8f9fb 20%, #eef0f7 38%, #f8f9fb 58%, #f0f2f8 78%);
	background-size: 220% 100%;
	animation: mod-card-shimmer 1.5s ease-in-out infinite;
}
.mod-card__preloader::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 2px solid #e7e8ef;
	border-top-color: #6b75cb;
	border-radius: 50%;
	animation: mod-card-spin 0.85s linear infinite;
}
.mod-card__media:has(.mod-card__img:not(.lazy-hidden)) .mod-card__preloader {
	opacity: 0;
	visibility: hidden;
}
.mod-card__img.lazy-hidden { opacity: 0; }
.mod-card__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	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(255,255,255,0) 35%, rgba(45,49,66,0.35) 100%);
	opacity: 0.35;
	transition: opacity .25s ease;
	pointer-events: none;
}
.mod-card:hover .mod-card__media-overlay { opacity: 0.65; }
.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(255, 255, 255, 0.92);
	color: #6b6e84;
	font-size: 0.95rem;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s ease, transform .25s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.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;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.mod-card__badge--updated { left: 10px; bottom: 10px; background: rgba(255,255,255,0.95); color: #2d3142; }
.mod-card__badge--top { left: 10px; top: 10px; background: #6b75cb; color: #fff; }
.mod-card__badge--accent { left: 10px; top: 10px; background: #5cb85c; color: #fff; }
.mod-card__badge--warn { right: 10px; top: 10px; background: #f0ad4e; color: #fff; }
.mod-card__badge--info { right: 10px; top: 10px; background: #5bc0de; color: #fff; }
.mod-card__badge--danger { right: 10px; top: 10px; background: #d9534f; color: #fff; }
.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: #2d3142;
	text-decoration: none;
	transition: color .2s ease;
}
.mod-card__title a:hover { color: #6b75cb; }
.mod-card__poll { margin-right: 6px; color: #6b6e84; }
.mod-card__meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: #6b6e84;
	font-size: 0.8rem;
}
.mod-card__meta-item--cat a {
	color: #6b75cb;
	text-decoration: none;
}
.mod-card__meta-item--cat a:hover { color: #5a62b8; }
.mod-card__meta-item i {
	width: 14px;
	margin-right: 6px;
	color: #9a9eb0;
}
.mod-card__excerpt {
	margin: 2px 0 0;
	flex: 1;
	color: #6b6e84;
	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: #6b75cb;
	font-size: 0.78rem;
	cursor: pointer;
}
.mod-card__edit-note {
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f5f6fa;
	color: #6b6e84;
	font-size: 0.82rem;
}
.mod-card__footer {
	padding: 12px 18px 14px;
	border-top: 1px solid #ebedf2;
	background: #f8f9fb;
}
.mod-card__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	color: #6b6e84;
}
.mod-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #ebedf2;
}
.mod-card__stat i { color: #9a9eb0; font-size: 0.82rem; }
.mod-card__stat--author { max-width: 130px; overflow: hidden; }

/* --- Пагинация --- */
.catalog-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px 8px;
}
.catalog-pagination__pages a,
.catalog-pagination__pages span,
.catalog-pagination__pages b,
.catalog-pagination__arrow a,
.catalog-pagination__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 28px !important;
	height: 28px !important;
	padding: 0 6px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	color: #6b6e84 !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}
.catalog-pagination__pages a:hover,
.catalog-pagination__arrow a:hover,
.catalog-pagination__btn:hover {
	color: #6b75cb !important;
	background: #f0f2f8 !important;
}
.catalog-pagination__pages > span,
.catalog-pagination .navigation_current {
	color: #2d3142 !important;
	font-weight: 700 !important;
	background: #eef0f7 !important;
	border-radius: 6px !important;
}

/* --- 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 #e7e8ef;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(8px);
}
.cookie-notice[hidden] {
	display: none !important;
}
.cookie-notice__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef0f7;
	color: #6b75cb;
	font-size: 1.15rem;
}
.cookie-notice__text {
	margin: 0;
	color: #6b6e84;
	font-size: 0.9rem;
	line-height: 1.55;
}
.cookie-notice__text a {
	color: #6b75cb;
	font-weight: 600;
	text-decoration: underline;
}
.cookie-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.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;
	text-decoration: none;
	cursor: pointer;
}
.cookie-notice__btn--accept {
	border: 1px solid #6b75cb;
	background: #6b75cb;
	color: #fff;
}
.cookie-notice__btn--accept:hover {
	background: #5a62b8;
	border-color: #5a62b8;
}
.cookie-notice__btn--link {
	border: 1px solid #e7e8ef;
	background: #fff;
	color: #6b6e84;
}
.cookie-notice__btn--link:hover {
	background: #f5f6fa;
	color: #2d3142;
}

/* --- Статические страницы --- */
.static-page .card {
	border: 1px solid #e7e8ef;
	border-radius: 14px;
	background: #fff;
}
.static-page .card-title { color: #2d3142; }
.static-page .card-text { color: #6b6e84; line-height: 1.65; }
.static-page .card-text h2 {
	margin: 1.4em 0 0.6em;
	color: #2d3142;
	font-size: 1.1rem;
}
.static-page .card-text a {
	color: #6b75cb;
	font-weight: 600;
}
.static-page hr { border-color: #e7e8ef; }

/* --- Рейтинг и футер полной новости --- */
.story-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 18px !important;
	background: #f8f9fb !important;
	border-top: 1px solid #ebedf2 !important;
}
.story-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
}
.story-footer__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 5px 12px;
	border: 1px solid #e7e8ef;
	border-radius: 10px;
	background: #fff;
	color: #6b6e84;
	font-size: 0.84rem;
	font-weight: 500;
	white-space: nowrap;
}
.story-footer__item a {
	color: #6b75cb !important;
	text-decoration: none !important;
}
.story-footer__item a:hover { color: #5a62b8 !important; }
.story-footer__item i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #eef0f7;
	color: #6b75cb;
	font-size: 0.82rem;
}
.story-rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid #e7e8ef;
	border-radius: 10px;
	background: #fff;
}
.story-rating__btn,
.story-rating a,
.story-rating span.story-rating__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	padding: 0 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #6b6e84 !important;
	cursor: pointer;
	text-decoration: none !important;
}
.story-rating__value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 30px;
	padding: 0 8px;
	border-radius: 7px;
	background: #eef0f7 !important;
	color: #2d3142 !important;
	font-weight: 700;
	font-size: 0.86rem;
}
.story-rating__btn:hover,
.story-rating a:hover,
.story-rating span.story-rating__btn:hover {
	background: #eef0f7 !important;
	color: #6b75cb !important;
}

/* --- Кнопки скачивания --- */
.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 #d5d8e6;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff 0%, #f8f9fb 100%);
	color: #2d3142 !important;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.download-btn:hover,
.download-btn:focus {
	color: #2d3142 !important;
	border-color: #6b75cb;
	box-shadow: 0 10px 24px rgba(107, 117, 203, 0.15);
	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, #6b75cb, #7d86d4);
	color: #fff;
	font-size: 1.15rem;
}
.download-btn__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.download-btn__label {
	font-size: 0.96rem;
	font-weight: 700;
	color: #2d3142;
}
.download-btn__meta {
	font-size: 0.82rem;
	color: #6b6e84;
}
.ya-share2--fullstory { float: right; padding: 10px 0; clear: both; }

/* --- Комментарии --- */
.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 !important;
	flex-shrink: 0;
	margin: 0 !important;
	box-shadow: none !important;
}
.comments-section .comment-card__content,
.comments-section .cd-timeline-content {
	margin: 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 #ebedf2;
}
.comments-section-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #2d3142;
}
.comments-section-title i { margin-right: 8px; color: #6b75cb; }
.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: #eef0f7;
	color: #2d3142;
	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 #e7e8ef;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8f9fb, #fff);
}
.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: #eef0f7;
	color: #6b75cb;
	font-size: 1.1rem;
}
.comments-rules-notice strong,
.comments-guest-notice strong {
	display: block;
	color: #2d3142;
	margin-bottom: 4px;
}
.comments-rules-notice p,
.comments-guest-notice p {
	margin: 0;
	color: #6b6e84;
	font-size: 0.9rem;
	line-height: 1.5;
}
.comments-rules-notice a,
.comments-guest-notice a { color: #6b75cb; font-weight: 600; }
.comments-compose {
	margin-top: 10px;
	border: 1px solid #e7e8ef;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.comments-compose__head {
	padding: 14px 18px;
	border-bottom: 1px solid #ebedf2;
	background: #f8f9fb;
}
.comments-compose__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2d3142;
}
.comments-compose__title i { margin-right: 8px; color: #6b75cb; }
.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 {
	border: 1px solid #e7e8ef !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #2d3142 !important;
}
.comments-compose__input:focus,
.comments-compose .form-control:focus {
	border-color: #6b75cb !important;
	box-shadow: 0 0 0 3px rgba(107, 117, 203, 0.12) !important;
}
.comments-compose__label {
	display: block;
	margin-bottom: 6px;
	color: #6b6e84;
	font-size: 0.85rem;
}
.comments-compose__editor { margin-bottom: 14px; }
.comments-compose__actions { display: flex; justify-content: flex-end; }
.comments-compose__submit {
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: #6b75cb;
	color: #fff;
	font-weight: 600;
}
.comments-compose__submit:hover {
	background: #5a62b8;
	color: #fff;
}
.comment-card__content {
	background: #fff !important;
	border: 1px solid #e7e8ef !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: #2d3142 !important;
}
.comment-card__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef0f7;
	color: #6b6e84;
	font-size: 0.72rem;
	font-weight: 600;
}
.comment-card__handle { color: #9a9eb0; font-size: 0.82rem; }
.comment-card__meta { color: #9a9eb0; font-size: 0.8rem; white-space: nowrap; }
.comment-card__text {
	color: #4a4f63;
	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 #e7e8ef;
	border-radius: 999px;
	background: #f8f9fb;
	color: #6b6e84;
	font-size: 0.85rem;
	text-decoration: none !important;
}
.comment-rating__btn:hover,
.comment-rating a:hover {
	background: #eef0f7;
	border-color: #6b75cb;
	color: #6b75cb !important;
}
.comment-card__menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #e7e8ef;
	border-radius: 8px;
	background: #fff;
	color: #6b6e84;
	padding: 0;
}
.comment-card__dropdown {
	background: #fff !important;
	border: 1px solid #e7e8ef !important;
}
.comment-card__dropdown .dropdown-item { color: #4a4f63; }
.comment-card__dropdown .dropdown-item:hover { background: #f5f6fa; color: #2d3142; }
.comment-card__complaint { color: #d9534f !important; }
.comment-card__reply { color: #6b6e84; margin-left: auto; cursor: pointer; }

@media (max-width: 1199.98px) {
	.news-grid,
	.news-grid #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.related-news__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
	.catalog-toolbar { flex-direction: column; align-items: stretch; }
	.catalog-toolbar__nav { width: 100%; }
	.news-grid,
	.news-grid #dle-content { grid-template-columns: 1fr !important; gap: 16px !important; }
	.auth-panel__brand, .auth-panel__form { padding: 28px 24px; }
	.auth-panel__register { display: none; }
	.user-nav-menu { min-width: 260px; }
	.story-footer { flex-direction: column; align-items: stretch; }
	.download-btn { width: 100%; }
	.cookie-notice { left: 10px; right: 10px; bottom: 10px; }
	.cookie-notice__actions { width: 100%; }
	.cookie-notice__btn { flex: 1 1 auto; }
	.fullstory-poster__img { width: 100%; }
}
