/* ==========================================================================
   SMI59 — современная тема для DataLife Engine
   Основные стили. Подключение: после engine.css и библиотек.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
	font-family: "Site Sans";
	src: url("../fonts/RobotoRegular/RobotoRegular.woff") format("woff"),
		url("../fonts/RobotoRegular/RobotoRegular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Site Sans";
	src: url("../fonts/RobotoMedium/RobotoMedium.woff") format("woff"),
		url("../fonts/RobotoMedium/RobotoMedium.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Site Sans";
	src: url("../fonts/RobotoBold/RobotoBold.woff") format("woff"),
		url("../fonts/RobotoBold/RobotoBold.ttf") format("truetype");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: "Site Serif";
	src: url("../fonts/PTSerifRegular/PTSerifRegular.woff") format("woff"),
		url("../fonts/PTSerifRegular/PTSerifRegular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

/* ---------- Переменные ---------- */
:root {
	--font-sans: "Site Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--font-serif: "Site Serif", Georgia, "Times New Roman", serif;

	--ink: #111827;
	--ink-soft: #374151;
	--muted: #667085;
	--muted-light: #98a2b3;
	--line: #e4e8ee;
	--line-soft: #eef1f5;
	--line-strong: #cfd6df;
	--surface: #ffffff;
	--surface-2: #f6f8fa;
	--bg: #f2f4f7;

	--accent: #f4600c;
	--accent-strong: #c2410c;
	--accent-strong-hover: #9a3412;
	--accent-soft: #fff1e8;
	--accent-line: #ffd7bf;

	--nav: #111827;
	--nav-soft: #1f2937;

	--radius: 18px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
	--shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);

	--container: 1320px;
	--gap: 28px;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 68px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--accent-strong);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

a:hover {
	color: var(--accent-strong-hover);
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-sans);
	font-weight: 700;
	color: var(--ink);
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

::selection {
	background: var(--accent);
	color: #fff;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hidden {
	display: none !important;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 999;
	padding: 12px 18px;
	border-radius: 0 0 10px 10px;
	background: var(--nav);
	color: #fff;
	font-weight: 700;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	z-index: 80;
	background: var(--surface);
	box-shadow: 0 1px 0 var(--line);
}

.header-main {
	background: var(--surface);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 86px;
}

.site-logo {
	flex: none;
	display: inline-flex;
	align-items: center;
}

.site-logo img {
	display: block;
	width: auto;
	height: 46px;
}

.header-info {
	display: grid;
	gap: 3px;
	padding-left: 22px;
	border-left: 1px solid var(--line);
	min-width: 0;
}

.header-brand {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
}

.header-address {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--muted);
}

.header-address i {
	color: var(--accent-strong);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	flex: none;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.header-phone i {
	color: var(--accent-strong);
}

.header-phone:hover {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	font-size: 17px;
	line-height: 1;
}

.icon-btn:hover {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.search-link {
	display: none;
}

/* ---------- Меню ---------- */
.main-nav {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--nav);
	color: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 54px;
}

.menu-list {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-list > li {
	position: relative;
	flex: none;
}

.menu-list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 16px 13px;
	border-bottom: 3px solid transparent;
	color: #dbe3ee;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.menu-list > li > a:hover,
.menu-list > li.is-active > a,
.menu-list > li.is-open > a {
	border-bottom-color: var(--accent);
	background: rgba(255, 255, 255, 0.055);
	color: #fff;
}

.menu-item-accent > a {
	color: #ffd8c2;
}

.menu-item-accent > a b {
	padding: 2px 5px;
	border-radius: 4px;
	background: var(--accent-strong);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.menu-list > li > a i {
	font-size: 12px;
	transition: transform 0.18s ease;
}

.menu-list > li.is-open > a i,
.menu-list > li:hover > a i {
	transform: rotate(180deg);
}

.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	width: 278px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 0 0 14px 14px;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.menu-list > li:hover > .submenu,
.menu-list > li:focus-within > .submenu,
.menu-list > li.is-open > .submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.submenu a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
}

.submenu a:hover {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.nav-search {
	position: relative;
	display: flex;
	flex: 0 0 216px;
	align-items: center;
}

.nav-search input[type="search"] {
	width: 100%;
	height: 36px;
	padding: 0 40px 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 13px;
	-webkit-appearance: none;
	appearance: none;
}

.nav-search input[type="search"]::placeholder {
	color: #9aa6b8;
	opacity: 1;
}

.nav-search input[type="search"]:focus {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.12);
	outline: none;
}

.nav-search button {
	position: absolute;
	top: 50%;
	right: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 13px;
	transform: translateY(-50%);
}

.nav-search button:hover {
	background: var(--accent-strong);
}

.menu_button {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.menu_button:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ---------- Сетка страницы ---------- */
.site-body {
	padding-top: var(--gap);
}

.page-grid {
	display: grid;
	grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 300px);
	gap: var(--gap);
	align-items: start;
	padding-bottom: 48px;
}

.content {
	min-width: 0;
}

.sidebar {
	min-width: 0;
}

.sidebar > .widget,
.sidebar > .ad-slot {
	min-width: 0;
}

/* ---------- Карточки и заголовки секций ---------- */
.widget {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding-left: 12px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.widget-title::before {
	content: "";
	position: absolute;
	top: 1px;
	bottom: 1px;
	left: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--accent);
}

.widget-title a {
	color: inherit;
}

.widget-title a:hover {
	color: var(--accent-strong);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 26px 0 16px;
}

.section-head h2 {
	position: relative;
	margin: 0;
	padding-left: 14px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.section-head h2::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 4px;
	border-radius: 4px;
	background: var(--accent);
}

.section-head h2 a {
	color: inherit;
}

.section-head h2 a:hover {
	color: var(--accent-strong);
}

.section-head--tight {
	margin-top: 32px;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.section-link:hover {
	color: var(--accent-strong);
}

/* ---------- Рекламные блоки ---------- */
.ad-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 22px 0;
	text-align: center;
}

.ad-slot img {
	display: inline-block;
	max-width: 100%;
	height: auto;
}

/* Пока в слоте нет реального объявления, он не занимает место. */
.ad-slot:not(:has(iframe, img, ins, video, embed, object, canvas)) {
	margin-top: 0;
	margin-bottom: 0;
}

.ad-slot--sidebar:not(:has(iframe, img, ins, video, embed, object, canvas)) {
	margin: 0;
}

.ad-slot--top {
	margin-top: 0;
}

.ad-slot--sidebar {
	margin: 0 0 18px;
}

.ad-slot--sidebar:empty {
	display: none;
}

/* Слот без загруженной рекламы: убираем из потока, сохраняя контейнер
   для возможного позднего рендера RTB. */
.ad-slot.is-ad-empty {
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
}

.content > .ad-slot:first-child:empty {
	display: none;
}

/* ---------- Табы в сайдбаре ---------- */
.tabs-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 13px;
	padding: 4px;
	border-radius: 12px;
	background: var(--surface-2);
}

.tab {
	padding: 8px 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.tab:hover {
	color: var(--ink);
}

.tab.is-active {
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 1px 4px rgba(16, 24, 40, 0.1);
}

.tab-panel[hidden] {
	display: none;
}

/* ---------- Лента новостей (lenta.tpl) ---------- */
.timeline {
	display: grid;
}

.timeline-item {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line-soft);
}

.timeline-item:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.timeline-time {
	display: flex;
	flex-direction: column;
	gap: 1px;
	color: var(--accent-strong);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
}

.timeline-time span {
	color: var(--muted);
	font-size: 10.5px;
	font-weight: 500;
}

.timeline-title {
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
}

.timeline-title a {
	color: var(--ink);
	font-weight: 500;
}

.timeline-title a:hover {
	color: var(--accent-strong);
}

.widget-more {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line-soft);
	color: var(--accent-strong);
	font-size: 12.5px;
	font-weight: 700;
}

.widget-more:hover {
	color: var(--accent-strong-hover);
}

/* ---------- Соцсети ---------- */
.social-links {
	display: grid;
	gap: 9px;
}

.social-link {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 11px;
	border-radius: 11px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
}

.social-link i {
	font-size: 19px;
	line-height: 1;
}

.social-link:hover {
	color: #fff;
	opacity: 0.9;
}

.social-link-vk {
	background: #0077ff;
}

.social-link-ok {
	background: #ee8208;
}

/* ---------- Погода ---------- */
.weather-widget .gsInformer {
	width: 100% !important;
	height: auto !important;
	min-height: 105px;
}

.weather-widget .gsIContent {
	width: 100% !important;
}

.weather-widget #cityLink a {
	color: var(--accent-strong);
	font-weight: 700;
}

.weather-widget .gsLinks table {
	width: 100%;
}

.weather-widget .gsLinks td {
	padding-top: 8px;
	font-size: 12px;
}

/* ---------- Фоторепортажи и афиша ---------- */
.photo-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.photo-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.photo-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #eef1f5, #dde3ea);
}

.photo-card__img {
	position: absolute;
	inset: 0;
	display: block;
	background-position: center;
	background-size: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.photo-card:hover .photo-card__img {
	transform: scale(1.035);
}

.photo-card__body {
	padding: 11px 12px 12px;
}

.photo-card__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color 0.25s ease;
}

.photo-card:hover .photo-card__title {
	color: var(--accent-strong);
}

.photo-card__date {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 11px;
}

.side-banners {
	display: grid;
	gap: 11px;
}

.side-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fafbfc;
}

.side-banner img {
	display: block;
	max-width: 100%;
	height: auto;
}

.external-link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.external-link i {
	margin-top: 2px;
	color: #0077ff;
	font-size: 18px;
}

.external-link:hover {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

/* ---------- Hero ---------- */
.hero-carousel {
	overflow: hidden;
	margin: 0 0 4px;
	border-radius: 20px;
	background: var(--nav);
	box-shadow: var(--shadow-md);
}

.hero-carousel .owl-wrapper-outer,
.hero-carousel .owl-wrapper,
.hero-carousel .owl-item {
	border-radius: 20px;
}

.hero-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 9;
	min-height: 340px;
	overflow: hidden;
	background: #1f2937;
	color: #fff;
}

.hero-card__media {
	position: absolute;
	inset: 0;
	display: block;
}

.hero-card__img {
	position: absolute;
	inset: 0;
	display: block;
	background-position: center;
	background-size: cover;
	transition: transform 0.7s ease;
}

.hero-card:hover .hero-card__img {
	transform: scale(1.035);
}

.hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(9, 13, 22, 0.55) 0%, rgba(9, 13, 22, 0.22) 52%, rgba(9, 13, 22, 0) 100%),
		linear-gradient(180deg, rgba(9, 13, 22, 0.04) 0%, rgba(9, 13, 22, 0.2) 36%, rgba(9, 13, 22, 0.92) 100%);
}

.hero-card__body {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 26px 30px 30px;
}

.hero-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 9px;
	color: #dbe3ee;
	font-size: 12px;
}

.hero-card__meta time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hero-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--accent-strong);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(22px, 3.2vw, 33px);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hero-card__title a {
	color: #fff;
}

.hero-card__title a:hover {
	color: #ffd8c2;
}

.hero-card__excerpt {
	display: -webkit-box;
	max-width: 720px;
	overflow: hidden;
	margin: 0 0 14px;
	color: #d6dde8;
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.read-more:hover {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
	color: #fff;
}

.hero-carousel .owl-controls {
	position: absolute;
	right: 20px;
	bottom: 18px;
	z-index: 6;
	margin: 0;
}

.hero-carousel .owl-pagination {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.hero-carousel .owl-page {
	display: inline-block;
	line-height: 0;
}

.hero-carousel .owl-controls .owl-page span {
	display: block;
	width: 8px;
	height: 8px;
	margin: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

.hero-carousel .owl-controls .owl-page.active span,
.hero-carousel .owl-controls.clickable .owl-page:hover span {
	background: #fff;
	transform: scale(1.2);
}

/* ---------- Сетка новостей ---------- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin-bottom: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-grid > .news-card {
	margin-bottom: 0;
}

.news-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.news-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef1f5, #dde3ea);
}

.news-card__img {
	position: absolute;
	inset: 0;
	display: block;
	background-position: center;
	background-size: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-card:hover .news-card__img {
	transform: scale(1.035);
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
	padding: 14px 15px 16px;
}

.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	color: var(--muted);
	font-size: 11.5px;
}

.news-card__meta time {
	font-weight: 500;
}

.news-card__meta i {
	color: var(--muted-light);
}

.news-card__meta .dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--muted-light);
}

.news-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.005em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.news-card__title a {
	color: var(--ink);
	transition: color 0.25s ease;
}

.news-card__title a:hover {
	color: var(--accent-strong);
}

.news-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.all-news-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin: 18px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
}

.all-news-button:hover {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

/* ---------- Слайдеры ---------- */
.slider_container {
	position: relative;
	margin-bottom: 4px;
}

.prev_button,
.next_button,
.prev_button_7,
.next_button_7 {
	position: absolute;
	top: 50%;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--surface);
	color: var(--ink);
	font-size: 18px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	transform: translateY(-50%);
}

.prev_button:hover,
.next_button:hover,
.prev_button_7:hover,
.next_button_7:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.prev_button,
.prev_button_7 {
	left: -20px;
}

.next_button,
.next_button_7 {
	right: -20px;
}

.popular-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		border-color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.popular-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.popular-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef1f5, #dde3ea);
}

.popular-card__img {
	position: absolute;
	inset: 0;
	display: block;
	background-position: center;
	background-size: cover;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.popular-card:hover .popular-card__img {
	transform: scale(1.035);
}

.popular-card__body {
	padding: 12px 14px 14px;
}

.popular-card__title {
	display: -webkit-box;
	min-height: calc(3 * 1.4em);
	overflow: hidden;
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color 0.25s ease;
}

.popular-card:hover .popular-card__title {
	color: var(--accent-strong);
}

.popular-card__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 7px;
	color: var(--muted);
	font-size: 11px;
}

/* ---------- Статьи и страницы ---------- */
.article,
.box {
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.article {
	padding: 28px 32px 30px;
}

.box {
	margin-bottom: 18px;
}

.box_in {
	padding: 24px 28px;
}

.title {
	margin: 0 0 10px;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.h1,
.title.h1 {
	font-size: clamp(26px, 3vw, 36px);
}

.heading {
	margin: 26px 0 14px;
	color: var(--ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.grey {
	color: var(--muted);
}

.hnum {
	margin-left: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.article__title {
	margin: 0 0 14px;
	font-size: clamp(27px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.article__meta time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.article__meta i {
	color: var(--muted-light);
}

.article__category a {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 12px;
	font-weight: 700;
}

.article__category a:hover {
	background: var(--accent-line);
	color: var(--accent-strong-hover);
}

.article__body {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.75;
	color: #1f2937;
	overflow-wrap: break-word;
}

.text {
	font-family: var(--font-serif);
	font-size: 18px;
	line-height: 1.75;
	color: #1f2937;
	overflow-wrap: break-word;
}

.text p {
	margin: 0 0 1.15em;
}

.text a {
	color: var(--accent-strong);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.text a:hover {
	color: var(--accent-strong-hover);
}

.text h2,
.text h3,
.text h4,
.text h5 {
	margin: 1.6em 0 0.65em;
	font-family: var(--font-sans);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.text h2 {
	font-size: 27px;
}

.text h3 {
	font-size: 22px;
}

.text h4 {
	font-size: 19px;
}

.text img {
	max-width: 100%;
	height: auto;
	margin: 20px auto;
	border-radius: 12px;
}

.text figure {
	margin: 22px 0;
}

.text figcaption {
	margin-top: 7px;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
	line-height: 1.45;
	text-align: center;
}

.text blockquote,
.text .quote {
	margin: 24px 0;
	padding: 16px 22px;
	border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0;
	background: var(--surface-2);
	color: var(--ink-soft);
	font-style: italic;
}

.text ul,
.text ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.text li {
	margin-bottom: 0.45em;
}

.text table {
	width: 100%;
	margin: 22px 0;
	border-collapse: collapse;
	font-family: var(--font-sans);
	font-size: 14.5px;
	line-height: 1.5;
}

.text td,
.text th {
	padding: 10px 12px;
	border: 1px solid var(--line);
	vertical-align: top;
}

.text th {
	background: var(--surface-2);
	font-weight: 700;
}

.text iframe {
	max-width: 100%;
	border: 0;
}

.text iframe[Attributes Style] {
	width: 100% !important;
}

.text .scriptcode,
.text .title_quote,
.text .title_spoiler,
.text .text_spoiler {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface-2);
	font-family: var(--font-sans);
	font-size: 14px;
}

.text .title_quote,
.text .title_spoiler {
	margin-top: 2px;
	font-weight: 700;
}

.text .hide {
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--ink-soft);
}

.article__source {
	margin: 18px 0 0;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.5;
}

.article__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 18px 0;
}

.article__gallery img {
	width: 100%;
	height: 120px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
}

.article-tip {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 24px 0;
	padding: 14px 16px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
	line-height: 1.5;
}

.article-tip i {
	margin-top: 2px;
	color: var(--accent-strong);
}

.article-tip b {
	color: var(--ink-soft);
}

.article__footer {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.editdate {
	margin: 12px 0 0;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.5;
}

.fixed_label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fef2f2;
	color: #b91c1c;
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------- Поделиться ---------- */
.share {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 26px 0 18px;
	padding: 13px 15px;
	border-radius: 14px;
	background: var(--surface-2);
}

.share-label {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.social-likes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.social-likes .social-likes__widget {
	border: 0;
	border-radius: 9px;
	font-family: var(--font-sans);
	font-size: 12px;
}

.social-likes .social-likes__button {
	padding: 8px 12px 8px 34px;
	border-radius: 9px;
}

/* ---------- Похожие материалы ---------- */
.related {
	margin: 22px 0;
}

.related .slider_container {
	margin: 0;
}

.related-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.related-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef1f5, #dde3ea);
}

.related-card__img {
	position: absolute;
	inset: 0;
	display: block;
	background-position: center;
	background-size: cover;
}

.related-card__body {
	padding: 10px 12px 12px;
}

.related-card__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.related-card__title a {
	color: var(--ink);
}

.related-card__title a:hover {
	color: var(--accent-strong);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 22px;
}

.comments > .box {
	padding: 18px 20px;
}

.com_list {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.comment {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.comment .com_info {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.comment .avatar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 15px;
}

.comment .avatar::before {
	content: "\f007";
	font-family: "FontAwesome";
	font-size: 15px;
	line-height: 1;
}

.comment .avatar .cover {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	color: transparent;
	font-size: 0;
}

.com_user {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.com_user .name {
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
}

.comment .left {
	display: flex;
	gap: 8px;
	margin: 0 0 0 auto;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 12px;
}

.comment .left li {
	display: inline-flex;
	align-items: center;
}

.comment .left a {
	color: var(--muted);
}

.comment .left a:hover {
	color: #b91c1c;
}

.comment .com_content {
	color: var(--ink-soft);
}

.comment .com_content .title {
	margin: 0 0 8px;
	font-size: 16px;
}

.comment .text {
	font-family: var(--font-sans);
	font-size: 14.5px;
	line-height: 1.6;
}

.comment .signature {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed var(--line);
	color: var(--muted);
	font-size: 12px;
}

.comment-form {
	margin-top: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.comment-form .widget-title {
	margin-bottom: 16px;
}

.comment-form .grid_3_4 {
	max-width: 100%;
}

/* ---------- Формы ---------- */
.ui-form {
	display: grid;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.form-group {
	display: block;
	margin: 0;
}

.ui-form label,
.form-group > label {
	display: block;
	margin-bottom: 6px;
	color: var(--ink-soft);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.wide,
.ui-form input[type="text"],
.ui-form input[type="email"],
.ui-form input[type="password"],
.ui-form input[type="url"],
.ui-form input[type="search"],
.ui-form input[type="number"],
.ui-form textarea,
.ui-form select,
input.wide,
textarea.wide,
select.wide {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 11px 13px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea.wide,
.ui-form textarea {
	min-height: 120px;
	resize: vertical;
}

.wide:focus,
.ui-form input:focus,
.ui-form textarea:focus,
.ui-form select:focus {
	border-color: var(--accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(244, 96, 12, 0.13);
	outline: none;
}

input[type="file"] {
	padding: 9px 0;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 13px;
}

.combo {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.combo_field {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--ink-soft);
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.45;
}

.checkbox input {
	flex: none;
	margin-top: 2px;
}

.checkbox label {
	margin: 0;
	font-weight: 400;
}

.form_submit {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.btn,
.btn-border,
.search_button,
.bbcodes {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid var(--accent-strong);
	border-radius: 10px;
	background: var(--accent-strong);
	color: #fff;
	font-family: var(--font-sans);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	box-shadow: none;
}

.btn:hover,
.btn:focus,
.btn-border:hover,
.btn-border:focus,
.search_button:hover,
.search_button:focus,
.bbcodes:hover,
.bbcodes:focus {
	border-color: var(--accent-strong-hover);
	background: var(--accent-strong-hover);
	color: #fff;
}

.btn-border {
	border-color: var(--line-strong);
	background: var(--surface);
	color: var(--ink);
}

.btn-border:hover,
.btn-border:focus {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.btn-big {
	min-height: 46px;
	padding: 12px 22px;
	font-size: 14.5px;
}

.btn b,
.btn-border b {
	font-weight: 700;
}

.c-captcha {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 10px 0;
}

.c-captcha img {
	border-radius: 8px;
}

.login_check {
	display: flex;
	align-items: center;
	gap: 8px;
}

.login_check .wide {
	flex: 1;
}

.page_form__inner,
.addform {
	padding: 28px 32px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.page_form__form {
	margin-top: 18px;
}

.pop_form {
	width: 340px;
	max-width: calc(100vw - 32px);
	padding: 24px;
	background: var(--surface);
}

.login-form__title {
	margin: 0 0 16px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.login-form .ui-form {
	margin: 0;
}

.login-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.login-form__lost {
	color: var(--muted);
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.login-form__lost:hover {
	color: var(--accent-strong);
}

.regtext {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.regtext a {
	color: var(--accent-strong);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- Опросы ---------- */
.block_grey,
#votes {
	margin-bottom: 18px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.block_grey > .title,
#votes > .title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.vote_more {
	margin-bottom: 10px;
	font-size: 12px;
}

.vote_list {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}

.vote_list label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--ink-soft);
	font-size: 13.5px;
	line-height: 1.45;
	cursor: pointer;
}

.vote_votes {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 12px;
}

#votes .btn,
#votes .btn-border,
.block_grey .btn,
.block_grey .btn-border {
	margin-right: 6px;
	margin-top: 4px;
}

/* ---------- Пользователь, статистика, ЛС ---------- */
.userinfo_top {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.userinfo_top .avatar {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--accent-soft);
}

.userinfo_top .avatar::before {
	content: "\f007";
	font-family: "FontAwesome";
	font-size: 34px;
	line-height: 1;
	color: var(--accent-strong);
	opacity: 0.5;
}

.userinfo_top .avatar .cover {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
}

/* Всплывающая карточка пользователя */
.userinfo-popup {
	display: flex;
	gap: 14px;
	width: 300px;
	max-width: calc(100vw - 32px);
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.userinfo-popup__avatar {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--surface-2);
	background-position: center;
	background-size: cover;
}

.userinfo-popup__body {
	min-width: 0;
}

.userinfo-popup__name {
	display: block;
	margin-bottom: 3px;
	color: var(--ink);
	font-size: 15px;
	overflow-wrap: anywhere;
}

.userinfo-popup__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 12px;
}

.is-online {
	color: #15803d;
	font-weight: 700;
}

.is-offline {
	color: var(--muted);
}

.userinfo-popup__list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.45;
}

.userinfo-popup__list b {
	color: var(--ink-soft);
}

.user_tab {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
}

.user_tab li {
	display: inline-flex;
}

.user_tab li a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 9px;
	background: var(--surface-2);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 700;
}

.user_tab li a i {
	margin-right: 7px;
}

.user_tab li.active a,
.user_tab li a:hover {
	background: var(--accent-strong);
	color: #fff;
}

.tab-content > .tab-pane {
	display: none;
}

.tab-content > .tab-pane.active {
	display: block;
}

.usinf {
	display: grid;
	gap: 9px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.usinf li {
	display: flex;
	gap: 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
}

.ui-c1 {
	flex: 0 0 180px;
	color: var(--muted);
}

.ui-c2 {
	color: var(--ink-soft);
}

.statistics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.stat-title {
	margin: 0 0 8px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.stat_group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.stat_group li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 13.5px;
}

.stat_group .right {
	flex: none;
	font-weight: 700;
	color: var(--ink);
}

.stats_head ul {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.stats_head li {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--surface-2);
	font-size: 13.5px;
}

.stats_head li b {
	display: inline-block;
	min-width: 100px;
	color: var(--ink);
}

.table_top_users {
	overflow-x: auto;
}

.userstop {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.userstop td,
.userstop th {
	padding: 9px 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.pm-box {
	margin-bottom: 18px;
}

#pm-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

#pm-menu span,
#pm-menu a {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 9px;
	background: var(--surface-2);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 700;
}

.pm_status {
	color: var(--muted);
	font-size: 12px;
}

.pmlist {
	margin: 16px 0;
}

/* ---------- Навигация и хлебные крошки ---------- */
.speedbar-wrap {
	margin-bottom: 14px;
}

.speedbar {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
	line-height: 1.5;
}

.speedbar a {
	color: var(--accent-strong);
}

.speedbar a:hover {
	color: var(--accent-strong-hover);
}

.navigation {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 26px 0;
}

.page_next-prev {
	display: flex;
	gap: 8px;
	order: 2;
}

.page_prev,
.page_next {
	display: inline-flex;
}

.page_prev a,
.page_next a,
.page_prev > span,
.page_next > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink-soft);
}

.page_prev a:hover,
.page_next a:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.pages {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 6px;
	order: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pages a,
.pages > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 13.5px;
	font-weight: 600;
}

.pages a:hover {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.pages > span,
.pages .page_current {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
	color: #fff;
}

.splitnewsnavigation {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.splitnewsnavigation a,
.splitnewsnavigation > span {
	display: inline-flex;
	margin: 0 4px 4px 0;
	padding: 5px 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

/* ---------- Теги ---------- */
.tag_list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag_list a {
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-soft);
	font-family: var(--font-sans);
	font-size: 12.5px;
	font-weight: 500;
}

.tag_list a:hover {
	border-color: var(--accent-line);
	background: var(--accent-soft);
	color: var(--accent-strong);
}

/* ---------- Поиск ---------- */
.searchtable {
	width: 100%;
	font-size: 14px;
}

.searchtable td {
	padding: 7px 8px;
	border-bottom: 1px solid var(--line-soft);
}

.searchtable input[type="text"],
.searchtable select {
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: var(--surface);
}

.search_result_num {
	margin: 12px 0;
	color: var(--muted);
	font-size: 13px;
}

/* ---------- Подвал ---------- */
.site-footer {
	margin-top: 24px;
	background: var(--nav);
	color: #cbd5e1;
}

.footer-afisha {
	padding: 32px 0 34px;
	border-top: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
}

.footer-afisha .section-head {
	margin-top: 0;
}

.footer-afisha .slider_container {
	padding: 0 4px;
}

.footer-afisha .owl-carousel {
	padding-bottom: 2px;
}

.footer-main {
	padding: 42px 0 36px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 32px;
}

.footer-logo {
	display: inline-flex;
	padding: 9px 13px;
	border-radius: 12px;
	background: #fff;
}

.footer-logo img {
	display: block;
	width: auto;
	height: 40px;
}

.footer-brand p {
	max-width: 320px;
	margin: 15px 0 16px;
	color: #94a3b8;
	font-size: 13px;
	line-height: 1.6;
}

.footer-social {
	display: flex;
	gap: 9px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #e2e8f0;
	font-size: 17px;
}

.footer-social a:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.footer-title {
	margin: 2px 0 14px;
	color: #94a3b8;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.footer-links {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: #d7dee8;
	font-size: 13.5px;
	line-height: 1.4;
}

.footer-links a:hover {
	color: #fff;
}

.footer-contacts address {
	display: grid;
	gap: 11px;
	font-style: normal;
}

.footer-contacts address span,
.footer-contacts address a {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #d7dee8;
	font-size: 13.5px;
	line-height: 1.45;
}

.footer-contacts address a:hover {
	color: #fff;
}

.footer-contacts i {
	flex: none;
	width: 15px;
	margin-top: 3px;
	color: #fb923c;
	font-size: 13px;
}

.footer-bottom {
	padding: 18px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.footer-copyright {
	max-width: 780px;
	margin: 0;
	color: #94a3b8;
	font-size: 11.5px;
	line-height: 1.65;
}

.footer-counters {
	flex: none;
}

.footer-counters img {
	display: block;
	border-radius: 4px;
}

/* ---------- Наверх ---------- */
.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--accent-strong);
	color: #fff;
	font-size: 17px;
	box-shadow: 0 10px 24px rgba(194, 65, 12, 0.3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.to-top:hover {
	background: var(--accent-strong-hover);
}

/* ---------- Служебные и устаревшие элементы DLE ---------- */
#loading-layer {
	padding: 18px 22px;
	border-radius: 10px;
	background: var(--nav);
	color: #fff;
}

.attachment {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--surface-2);
	font-size: 13px;
}

.main-image-global img,
.main-image-moneu img,
.main-image-nw img {
	max-width: 100%;
	height: auto;
}

.story_info {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 6px;
	background: rgba(17, 24, 39, 0.7);
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
}

.prsm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Owl: общие правки */
.owl-carousel .owl-item img {
	display: block;
	width: 100%;
	height: auto;
}

.photo-carousel .owl-controls,
.slider_container--afisha .owl-controls,
.carousel .owl-controls {
	display: none;
}

/* Отступы между слайдами: компенсируем внешние поля у контейнера. */
.carousel,
.slider_container--afisha .owl-carousel {
	margin-right: -8px;
	margin-left: -8px;
}

.carousel .owl-item,
.slider_container--afisha .owl-item {
	padding: 0 8px 2px;
}

.photo-carousel .owl-item {
	padding-bottom: 2px;
}

.slider_container--afisha .photo-card__title {
	min-height: calc(3 * 1.35em);
}

/* ---------- Дополнительные элементы ---------- */
.alert {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink-soft);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.55;
}

.alert b {
	display: block;
	margin-bottom: 4px;
	color: var(--ink);
}

.alert-error {
	border-color: #fecaca;
	background: #fff7f7;
}

.alert-info {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.static-page > .article__footer {
	margin-top: 0;
	padding: 0 28px 26px;
}

.story_icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
}

.story_icons a {
	color: var(--accent-strong);
}

.search-result__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding: 0 28px 22px;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
}

.search-result__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.search-result__meta a {
	color: var(--accent-strong);
	font-weight: 600;
}

.com_online {
	padding: 2px 6px;
	border-radius: 999px;
	background: #ecfdf3;
	color: #067647;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.vip-form {
	display: grid;
	gap: 16px;
	max-width: 520px;
}

.vip-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--surface-2);
	font-size: 14px;
}

.vip-form input[type="range"] {
	width: 100%;
	accent-color: var(--accent-strong);
}

.category-menu,
.category-menu__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-menu__item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 11px;
	border-radius: 9px;
	color: var(--ink-soft);
	font-size: 14px;
}

.category-menu__item > a:hover {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

.category-menu__count {
	flex: none;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.category-menu__sub {
	margin-left: 14px;
	padding-left: 10px;
	border-left: 1px solid var(--line);
}

#comment-editor {
	width: 100%;
}

#comment-editor .bb-editor,
#comment-editor textarea {
	width: 100% !important;
}

.comments .box .heading {
	margin-top: 0;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.table td,
.table th {
	padding: 9px 11px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

/* ---------- Печать ---------- */
@media print {

	.site-header,
	.main-nav,
	.sidebar,
	.site-footer,
	.to-top,
	.ad-slot,
	.share,
	.comments,
	.navigation {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.page-grid {
		display: block;
		padding: 0;
	}

	.article {
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.article__body,
	.text {
		font-size: 12pt;
		line-height: 1.5;
	}
}
