/* ==========================================================================
   vTagile template — single stylesheet
   ========================================================================== */

/* --- Variables -------------------------------------------------------- */
:root {
	--c-text:        #1c1c1c;
	--c-text-muted:  #707479;
	--c-link:        #1976ff;
	--c-link-hover:  #0e54c5;
	--c-bg:          #ffffff;
	--c-bg-soft:     #f6f7f8;
	--c-bg-block:    #f0f4f8;
	--c-border:      #e3e6ea;
	--c-border-soft: #ececec;
	--c-accent:      #1976ff;
	--c-quote:       #4f5560;
	--c-ad:          #b8b8b8;

	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Arial, sans-serif;
	--font-head: var(--font-base);

	--container: 1230px;
	--gap: 24px;
	--radius: 4px;

	--header-h: 70px;
}

/* --- Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }
body {
	margin: 0;
	font: 16px/1.5 var(--font-base);
	color: var(--c-text);
	background: var(--c-bg-soft);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	max-width: 100vw;
	min-width: 0;
}
img, video, iframe { max-width: 100%; height: auto; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-link); text-decoration: underline; }
a:hover { color: var(--c-link-hover); }
/* Без подчёркивания: кнопки/иконки/UI-элементы — по умолчанию ссылки в верстке шаблона */
.site-logo,
.site-menu a,
.site-social a,
.vt-soc-link,
.vt-item-image,
.vt-item-more,
.vt-item-title a,
.vt-comments,
.vt-comments-count,
.vt-comments-link,
.vt-comments-add,
.vt-pagination a,
.vt-pagination span,
.vt-breadcrumb a,
.site-aside .nspHeader a,
.site-aside .nspImageWrapper,
.site-search-toggle,
.site-search__close,
.site-search__submit,
.site-footer__copy a,
.vt-to-top,
.vt-special-list a { text-decoration: none; }
.site-menu a:hover { text-decoration: none; }
.vt-item-title a:hover { text-decoration: none; }
ul, ol { padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 28px; font-weight: 600; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2em 0; }

.vt-container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* --- Header (синхронизировано с vtagile_temp/css/header.css) ----------- */
.site-header {
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
	display: flex; align-items: center; align-content: center; gap: var(--gap);
	min-height: var(--header-h);
}
.site-logo {
	flex: 0 0 auto;
	display: inline-flex; align-items: center;
	line-height: 0;
	text-decoration: none !important;
	border: 0;
}
.site-logo img,
.site-logo svg {
	display: block; height: 44px; width: auto;
	max-width: 320px; object-fit: contain; object-position: left center;
	border: 0; outline: none; vertical-align: middle;
}

.site-menu { flex: 1 1 auto; min-width: 0; align-self: stretch; }
.site-menu__wrap { display: contents; } /* на десктопе обёртка не участвует в layout */
.site-menu ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: nowrap;
	/* gap пропорционально ширине окна: от 10px на узких до 36px на широких */
	gap: clamp(10px, 1.8vw, 36px);
	height: 100%; align-items: stretch;
}
.site-menu li { position: relative; display: flex; align-items: center; margin: 0; }
.site-menu li.active a,
.site-menu li.current a { color: var(--c-link); }
.site-menu a {
	display: inline-flex; align-items: center;
	color: var(--c-text); font-weight: 500;
	font-size: clamp(13px, 0.6vw + 8px, 15px);
	/* Фиксированный line-height (px), не зависящий от font-size: иначе при
	   плавном уменьшении шрифта (clamp) высота пункта «плывёт» и центрирование
	   прыгает на 1-2px при изменении ширины окна. */
	line-height: 30px;
	transition: color 0.15s;
	white-space: nowrap;
	text-decoration: none;
}
.site-menu a:hover { color: var(--c-link); text-decoration: none; }
.site-menu .current > a,
.site-menu .active > a,
.site-menu li.current > a,
.site-menu li.active > a { color: var(--c-link); }
/* Подчёркивание активного пункта прилипает к нижней границе шапки */
.site-menu li.current::after,
.site-menu li.active::after,
.site-menu .current::after,
.site-menu .active::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 3px;
	background: var(--c-link);
	border-radius: 2px 2px 0 0;
}

.site-header__aside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; line-height: 0; }
.site-social { display: none; gap: 8px; align-items: center; line-height: 0; font-size: 0; }
.site-social .moduletable,
.site-social .module,
.site-social .custom,
.site-social > div {
	background: transparent; border: 0; padding: 0; margin: 0;
	display: contents;
}
.site-social a, .vt-soc-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	transition: transform 0.15s, opacity 0.15s;
	opacity: 0.95;
}
.site-social a:hover, .vt-soc-link:hover { text-decoration: none; transform: translateY(-1px); opacity: 1; }
.site-social img, .vt-soc-link img { display: block; width: 31px; height: 31px; border-radius: 50%; vertical-align: middle; }

/* MAX: используем заранее обрезанный квадратный max-icon.png */
.vt-soc-max { flex-shrink: 0; overflow: hidden; }
.vt-soc-max img { border-radius: 50%; }

.site-search-toggle, .site-menu-toggle {
	background: none; border: 0; padding: 8px; color: var(--c-text);
	border-radius: 50%;
}
.site-search-toggle:hover { background: var(--c-bg-soft); }

.site-menu-toggle {
	display: none;
	position: relative;
	width: 42px; height: 42px;
	padding: 0;
	background: none; border: 0;
	cursor: pointer;
}
.site-menu-toggle span {
	display: block;
	position: absolute;
	left: 10px; right: 10px;
	height: 2px;
	background: var(--c-text);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}
.site-menu-toggle span:nth-child(1) { top: 14px; }
.site-menu-toggle span:nth-child(2) { top: 20px; }
.site-menu-toggle span:nth-child(3) { top: 26px; }
/* При активном меню — превращается в крестик */
.site-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Выезжающая панель поиска */
.site-search {
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border-soft);
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.22s ease, opacity 0.22s ease;
	z-index: 60;
}
.site-search[hidden] { display: block; }
.site-search.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

.site-search__inner {
	position: relative;
	max-width: var(--container);
	margin: 0 auto;
	padding: 20px 56px 20px 16px;
}

/* Крестик-закрыть в верхнем правом углу панели */
.site-search__close {
	position: absolute;
	top: 50%; right: 14px;
	transform: translateY(-50%);
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--c-text-muted);
	font-size: 24px; line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.site-search__close:hover { background: var(--c-bg-soft); color: var(--c-text); }

/* Форма поиска — крупный input, кнопка-лупа справа */
.site-search__form {
	display: flex; align-items: center; gap: 12px;
	padding: 4px 0;
}
.site-search__input {
	flex: 1 1 auto; min-width: 0;
	border: 0; background: transparent;
	padding: 12px 4px;
	font-size: 20px; font-weight: 400;
	color: var(--c-text);
	outline: none;
}
.site-search__input::placeholder { color: var(--c-text-muted); font-weight: 300; }
/* убираем нативный «крестик» от type=search в Chrome/Safari */
.site-search__input::-webkit-search-cancel-button,
.site-search__input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.site-search__input::-ms-clear { display: none; }

.site-search__submit {
	flex: 0 0 auto;
	border: 0; padding: 0;
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--c-link); color: #fff;
	cursor: pointer;
	transition: background 0.18s, transform 0.18s;
}
.site-search__submit:hover { background: var(--c-link-hover); transform: scale(1.05); }
.site-search__submit svg { display: block; }

/* Полупрозрачная подложка под выезжающей панелью */
.site-search-overlay {
	position: fixed; inset: 0;
	background: rgba(15, 23, 42, 0.25);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
	z-index: 49;
}
.site-search-overlay[hidden] { display: block; }
.site-search-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Когда открыт поиск — иконка-триггер выглядит активной */
.site-header.is-search-open .site-search-toggle { background: var(--c-bg-soft); color: var(--c-link); }

/* Широкие экраны (≥1150px): показываем уменьшенные соц-иконки справа,
   между меню и поиском. На 970–1150px они скрыты (мало места). */
@media (min-width: 1150px) {
	.site-social { display: flex; }
	.site-social a, .vt-soc-link { width: 28px; height: 28px; }
	.site-social img, .vt-soc-link img { width: 24px; height: 24px; }
}

/* --- Layout ----------------------------------------------------------- */
.site-main {
	display: grid;
	grid-template-columns: 1fr 250px;
	gap: 40px;
	padding: 12px 16px 16px;
	background: var(--c-bg);
	border-radius: var(--radius);
	margin-top: 16px;
	margin-bottom: 24px;
}
/* первый рекламный слот не должен добавлять отступ к padding контейнера */
.site-content > .vt-ad:first-child { margin-top: 0; }
.vt-page.vt-no-sidebar .site-main { grid-template-columns: 1fr; }
.site-content { min-width: 0; }
.site-aside { min-width: 0; align-self: start; }
@media (max-width: 1024px) {
	.site-aside { align-self: stretch; }
}

/* --- Banner / Breadcrumb / Messages --------------------------------- */
.vt-banner-top { padding: 16px; }
.vt-breadcrumb { font-size: 13px; color: var(--c-text-muted); margin-bottom: 16px; }
.vt-breadcrumb a { color: var(--c-text-muted); }
.vt-breadcrumb .divider { padding: 0 6px; }
.vt-messages { background: #fff8d5; border-left: 4px solid #d6c266; padding: 10px 14px; margin: 0 0 16px; border-radius: var(--radius); }
.vt-ad { margin: 12px 0; min-height: 60px; }
/* топовый баннер на странице материала (R-A-330489-14/15): резерв высоты против CLS.
   Значения как в старом шаблоне (.adsense-top): 200px десктоп / 300px моб. */
.vt-ad-top { min-height: 200px; }
/* feed-блок Яндекса под материалом (после комментариев / под статьёй) */
.vt-ad-feed { margin: 28px 0 0; }
/* рекламные блоки внутри ленты материалов */
.vt-itemlist .vt-ad-inlist {
	margin: 0; padding: 16px 0;
	border-bottom: 1px solid var(--c-border-soft);
	text-align: center; overflow: hidden;
}
/* резерв высоты под крупный in-feed баннер (cat1 = R-A-330489-21/22), как в старом
   шаблоне (.rekl_mid_cat:has(#yandex_cat1)): 400px десктоп / 300px ≤900px — против CLS.
   Слоты cat2 и R-A-330489-36 в старом шаблоне высотой не резервировались. */
.vt-ad-inlist:has(#yandex_cat1) { min-height: 400px; }
@media (max-width: 900px) { .vt-ad-inlist:has(#yandex_cat1) { min-height: 300px; } }

/* --- K2 itemlist (главная) ------------------------------------------ */
.vt-itemlist { display: flex; flex-direction: column; }
.vt-item {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--c-border-soft);
	align-items: stretch;
}
.vt-item:last-child { border-bottom: 0; }
/* первый материал — небольшой верхний отступ 5px */
.vt-itemlist .vt-item:first-child { padding-top: 5px; }
/* .vt-item.vt-item--no-image — двойной класс, чтобы перебить media-правило .vt-item
   (220px/180px 1fr) и не дать телу схлопнуться в узкую колонку без картинки */
.vt-item.vt-item--no-image { grid-template-columns: 1fr; }
/* без превью высоту тела не фиксируем — иначе margin-top:auto отбрасывает
   кнопку «Подробнее» в самый низ, создавая лишний отступ от описания */
.vt-item--no-image .vt-item-body { min-height: 0; }
.vt-item-image {
	display: block; overflow: hidden;
	border-radius: var(--radius);
	isolation: isolate; /* свой контекст наложения → скругления клипают scaled-img корректно */
	font-size: 0; line-height: 0;
}
.vt-item-image img {
	display: block; width: 100%; height: 165px;
	object-fit: cover; transition: transform 0.4s ease;
}
.vt-item-image:hover img { transform: scale(1.04); }

.vt-item-body {
	display: flex; flex-direction: column; gap: 4px; min-width: 0;
	min-height: 165px;
	padding: 0;
}
/* дата — мелкая вторичная метка в подвале карточки (рядом с «Подробнее») */
.vt-item-date { color: var(--c-text-muted); font-size: 13px; line-height: 1.3; white-space: nowrap; }
/* подвал карточки: «Подробнее» слева, дата справа */
.vt-item-meta {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; min-width: 0;
}
.vt-item-meta .vt-item-more { margin-top: 0; align-self: auto; }
.vt-item-title { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0; }
.vt-item-title a { color: var(--c-text); }
.vt-item-title a:hover { color: var(--c-link); text-decoration: none; }
.vt-item-intro { color: var(--c-text-muted); font-size: 15px; line-height: 1.4; margin: 0; }
.vt-item-intro p { margin: 0; }
/* гарантированный зазор перед кнопкой «Подробнее», когда контент высокий
   (margin-top:auto у кнопки в этом случае схлопывается, и текст «слипался»);
   на коротких карточках поглощается auto-отступом, выравнивание по низу превью сохраняется */
.vt-item-body > :nth-last-child(2) { margin-bottom: 12px; }
.vt-item-more {
	align-self: flex-start;
	margin-top: auto;
	padding: 7px 18px 7px 20px;
	background: #e8f1fd;
	color: var(--c-link);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background 0.15s, color 0.15s;
}
.vt-item-more::after {
	content: ''; width: 6px; height: 6px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.vt-item-more:hover { background: var(--c-link); color: #fff; text-decoration: none; }
.vt-item-more:hover::after { transform: rotate(45deg) translate(2px, -2px); }

.vt-comments {
	font: inherit;
	color: inherit;
	font-size: 0.85em;
	font-weight: inherit;
	margin-left: 8px;
	white-space: nowrap;
	text-decoration: none;
	opacity: 0.8;
	transition: opacity 0.15s, color 0.15s;
}
.vt-comments:hover { opacity: 1; color: var(--c-link); text-decoration: none; }
.vt-comments::before {
	content: '';
	display: inline-block;
	width: 1em; height: 1em;
	margin-right: 4px;
	vertical-align: -0.15em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.vt-ad-label {
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
	color: var(--c-ad);
	align-self: flex-start;
}

/* Спецпроекты под лентой (mod_articles_category override) */
.vt-special-list {
	list-style: none; margin: 28px 0 0; padding: 0;
	border-top: 1px solid var(--c-border-soft);
}
.vt-special-list li {
	padding: 12px 0;
	display: flex; gap: 18px; align-items: baseline;
	border-bottom: 1px solid var(--c-border-soft);
	font-size: 14px; line-height: 1.4;
}
.vt-special-list li:last-child { border-bottom: 0; }
.vt-special-list .vt-sp-date {
	color: var(--c-text-muted);
	flex: 0 0 88px;
	font-variant-numeric: tabular-nums;
}
.vt-special-list .vt-sp-link {
	color: var(--c-text); text-decoration: none;
	flex: 1 1 auto;
}
.vt-special-list .vt-sp-link:hover { color: var(--c-link); text-decoration: none; }
.vt-special-list .vt-sp-comments {
	color: var(--c-text-muted);
	display: inline-flex; align-items: baseline; gap: 4px;
	font-size: 13px;
	flex: 0 0 auto;
}
.vt-special-list .vt-sp-comments::before {
	content: ''; display: inline-block;
	width: 0.85em; height: 0.85em; vertical-align: -0.08em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 580px) {
	.vt-special-list li { flex-wrap: wrap; gap: 4px 12px; }
	.vt-special-list .vt-sp-date { flex: 1 1 100%; font-size: 12px; }
}

/* --- Pagination ------------------------------------------------------ */
.vt-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 24px 0 0; font-size: 14px; }
.vt-pagination .pagination-list, .vt-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.vt-pagination a, .vt-pagination span {
	padding: 6px 10px; border-radius: var(--radius);
	color: var(--c-link); text-decoration: none;
}
.vt-pagination a:hover { background: var(--c-bg-soft); text-decoration: none; }
.vt-pagination .pagenav,
.vt-pagination ul li.current span,
.vt-pagination ul li.active span,
.vt-pagination strong span { color: var(--c-text); font-weight: 600; }
.vt-pagination ul li.disabled span { color: var(--c-text-muted); cursor: default; }
.vt-pagecount { margin-left: auto; color: var(--c-text-muted); }

/* --- K2 item view (страница материала) ------------------------------ */
.vt-article { background: #fff; }
.vt-article header { margin-bottom: 16px; }
.vt-article h1 { font-size: 30px; line-height: 1.2; }
/* мета-строка под заголовком статьи: дата · комментарии · автор */
.vt-article-meta {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 6px 18px;
	margin: 12px 0 0;
	font-size: 14px; color: var(--c-text-muted);
}
.vt-article-meta .vt-itemDateCreated { display: inline; margin: 0; font-size: 14px; }

/* счётчик комментариев — ссылка-переход к блоку комментариев */
.vt-comments-count {
	display: inline-flex; align-items: center; gap: 5px;
	color: var(--c-text-muted); text-decoration: none;
	font-size: 14px; white-space: nowrap;
	transition: color 0.15s;
}
.vt-comments-count:hover { color: var(--c-link); text-decoration: none; }
.vt-comments-count::before {
	content: ''; display: inline-block;
	width: 1em; height: 1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* фото + авторство справа: пока кредит помещается справа от фото — он стоит сразу
   за ним; когда места не хватает, кредит переносится под фото и прижимается к его
   правому краю. container-query даёт figure определённую ширину (без схлопывания,
   как было бы с fit-content + min(100%,...)). */
.vt-figure {
	container-type: inline-size;
	margin: 0 0 14px;
	display: flex; flex-wrap: wrap; align-items: flex-end;
	column-gap: 14px; row-gap: 4px;
}
.vt-figure__main { flex: 0 0 min(100%, 600px); min-width: 0; }
.vt-figure__main img { display: block; width: 100%; border-radius: var(--radius); cursor: zoom-in; }
.vt-figure__main figcaption { color: var(--c-text-muted); font-size: 13px; padding: 8px 4px 0; text-align: center; }
/* авторство фото из доп. поля — мелкий приглушённый кредит */
.vt-figure .vt-figure__credit {
	flex: 0 0 auto; align-self: flex-end;
	color: var(--c-text-muted); font-size: 12px; font-style: italic;
	padding: 0; white-space: nowrap;
}
/* фото на всю ширину контейнера (≈ кредит уже не помещается справа) → кредит под
   фото, прижат к правому краю фото */
@container (max-width: 768px) {
	.vt-figure .vt-figure__credit { margin-left: auto; }
}

.vt-article-body, .vt-article-body * { word-wrap: break-word; }
.vt-article-body { font-size: 17px; line-height: 1.45; color: var(--c-text); }
.vt-article-body p { margin: 0 0 0.65em; }
/* абзац, состоящий из картинки: убираем «лишнюю строку» под изображением
   (line-height inline-блока), чтобы отступы сверху и снизу были одинаковыми */
.vt-article-body p:has(img) { line-height: 0; }
/* картинки из редактора в теле: на десктопе не шире 700px, дальше ужимаются по экрану */
.vt-article-body img { max-width: min(100%, 700px); height: auto; border-radius: var(--radius); cursor: zoom-in; }
/* видео-плееры (iframe) в теле статьи: задаём пропорции 16:9 — иначе глобальный
   height:auto схлопывает высоту (у iframe нет встроенного aspect-ratio из width/height) */
.vt-article-body iframe {
	display: block;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	margin: 1.4em 0;
}
.vt-article-body a { color: var(--c-link); }
.vt-article-body blockquote {
	margin: 0.8em 0; /* чуть больше межабзацного — цитата явно отделена */
	padding: 9px 18px;
	background: var(--c-bg-block);
	border-left: 3px solid var(--c-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--c-quote);
	font-size: 16px;
	line-height: 1.45; /* как у основного текста */
}
.vt-article-body blockquote p:last-child { margin-bottom: 0; }
.vt-article-body h2, .vt-article-body h3 { margin-top: 1.5em; }

/* Сноска/примечание (.prim) — врезка с инфо-иконкой, БЕЗ текстовой подписи.
   Визуально отличается от цитаты: нет вертикальной планки, серый фон + иконка ℹ слева,
   текст чуть приглушён. Работает в K2 и com_content. */
.vt-article-body .prim {
	position: relative;
	margin: 1.2em 0;
	padding: 16px 20px 16px 52px;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
	font-size: 15px; line-height: 1.6; color: var(--c-text-muted);
}
.vt-article-body .prim::before {
	content: '';
	position: absolute; left: 18px; top: 16px;
	width: 22px; height: 22px;
	background-color: var(--c-link);
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.vt-article-body .prim p { margin: 0 0 0.6em; }
.vt-article-body .prim > :last-child { margin-bottom: 0; }

/* --- com_content статья (.item-page): таблицы, списки, подзаголовки,
       цитаты, флоат-картинки. Узко scoped, чтобы не влиять на K2-статьи. --- */
.item-page .vt-article-body { font-size: 16px; line-height: 1.6; }
.item-page .vt-article-body::after { content: ''; display: block; clear: both; } /* clearfix под флоат-картинки */
.item-page .vt-article-body > :first-child { margin-top: 0; }

/* подзаголовки */
.item-page .vt-article-body h2 { font-size: 23px; font-weight: 600; line-height: 1.25; margin: 1.6em 0 0.5em; }
.item-page .vt-article-body h3 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 1.4em 0 0.4em; }
.item-page .vt-article-body h4 { font-size: 17px; font-weight: 600; margin: 1.2em 0 0.4em; }

/* списки */
.item-page .vt-article-body ul,
.item-page .vt-article-body ol { margin: 0 0 1em; padding-left: 1.6em; }
.item-page .vt-article-body ul { list-style: disc; }
.item-page .vt-article-body ol { list-style: decimal; }
.item-page .vt-article-body li { margin: 0.4em 0; }
.item-page .vt-article-body li > ul,
.item-page .vt-article-body li > ol { margin: 0.3em 0; }

/* таблицы */
.item-page .vt-article-body table {
	width: 100%; border-collapse: collapse;
	margin: 1.4em 0; font-size: 15px;
}
.item-page .vt-article-body th,
.item-page .vt-article-body td {
	border: 1px solid var(--c-border);
	padding: 9px 12px; text-align: left; vertical-align: top;
}
.item-page .vt-article-body th { background: var(--c-bg-soft); font-weight: 600; }
.item-page .vt-article-body tbody tr:nth-child(even) td { background: var(--c-bg-soft); }

/* картинки из редактора в теле: в потоке, не шире 700px, дальше ужимаются по экрану */
.item-page .vt-article-body img {
	display: block;
	max-width: min(100%, 700px); height: auto;
	margin: 14px 0;
	border-radius: var(--radius);
	cursor: default; /* в com_content зум не нужен */
}
/* редактор может явно пустить картинку флоатом — уважаем, но в разумном размере */
.item-page .vt-article-body img[style*="float:right"],
.item-page .vt-article-body img[style*="float: right"],
.item-page .vt-article-body img.pull-right {
	float: right; max-width: 340px; margin: 4px 0 12px 22px;
}
.item-page .vt-article-body img[style*="float:left"],
.item-page .vt-article-body img[style*="float: left"],
.item-page .vt-article-body img.pull-left {
	float: left; max-width: 340px; margin: 4px 22px 12px 0;
}
.item-page .vt-article-body figure img { float: none; margin: 12px auto; }
/* «Изображение полного текста материала» — слева, текст обтекает (250px) */
.item-page .vt-article-body img.vt-fulltext-img {
	float: left; clear: left;
	width: 250px; max-width: 42%;
	margin: 4px 22px 10px 0;
}

/* ссылки / hr */
.item-page .vt-article-body a { color: var(--c-link); text-decoration: underline; }
.item-page .vt-article-body a:hover { color: var(--c-link-hover); }
.item-page .vt-article-body hr { border: 0; border-top: 1px solid var(--c-border); margin: 1.6em 0; }

@media (max-width: 600px) {
	.item-page .vt-article-body { font-size: 15px; }
	/* иерархия заголовков: на мобиле H1 (.vt-article h1) = 20px, держим подзаголовки ниже */
	.item-page .vt-article-body h2 { font-size: 18px; margin-top: 1.3em; }
	.item-page .vt-article-body h3 { font-size: 16px; }
	.item-page .vt-article-body h4 { font-size: 15px; }
	.item-page .vt-article-body img { float: none !important; max-width: 100%; margin: 12px 0; display: block; }
	/* изображение полного текста на мобиле — во всю ширину сверху, без обтекания */
	.item-page .vt-article-body img.vt-fulltext-img { width: 100%; max-width: 100%; margin: 0 0 14px; }
	.item-page .vt-article-body table { display: block; overflow-x: auto; }
}

.vt-itemDateCreated { color: var(--c-text-muted); font-size: 14px; display: block; margin-bottom: 8px; }

/* Метки в самом низу статьи: без заголовка, без буллитов, ссылки подчёркнуты */
.vt-article-tags {
	margin-top: 28px; padding-top: 16px;
	border-top: 1px solid var(--c-border-soft);
	display: flex; flex-wrap: wrap; gap: 16px;
	font-size: 14px;
}
.vt-article-tags a { color: var(--c-link); text-decoration: underline; }
.vt-article-tags a:hover { color: var(--c-link-hover); }
@media (max-width: 580px) { .vt-article-tags { display: none; } }

.vt-article-footer { margin-top: 18px; }
/* Панель входа в комментарии: счётчик слева + CTA «Добавить» справа */
.comments-triggers {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; flex-wrap: wrap;
	padding: 14px 18px;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
}
.vt-comments-link {
	color: var(--c-text); font-weight: 600; font-size: 16px;
	display: inline-flex; align-items: center; gap: 9px;
	text-decoration: none;
}
.vt-comments-link::before {
	content: ''; width: 20px; height: 20px; flex: 0 0 20px;
	background-color: var(--c-link);
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* шеврон-стрелка: подсказка, что счётчик раскрывает список комментариев */
.vt-comments-link::after {
	content: ''; width: 15px; height: 15px; flex: 0 0 15px;
	margin-left: -3px;
	background-color: var(--c-text-muted);
	-webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: transform 0.15s, background-color 0.15s;
}
.vt-comments-link:hover { color: var(--c-link); }
.vt-comments-link:hover::after { background-color: var(--c-link); transform: translateY(1px); }
/* мобильная версия: панель в одну строку. Скрываем длинное слово:
   «11 комментариев» → «11», «Добавить комментарий» → «Добавить» */
@media (max-width: 480px) {
	.comments-triggers { flex-wrap: nowrap; padding: 10px 12px; gap: 10px; }
	.vt-comments-link { font-size: 15px; gap: 6px; min-width: 0; white-space: nowrap; }
	.vt-comments-link::before { width: 18px; height: 18px; flex-basis: 18px; }
	.vt-comments-add { padding: 8px 14px; flex: 0 0 auto; white-space: nowrap; }
	/* счётчик оставляем полным («11 комментариев»), сокращаем только кнопку → «+ Добавить» */
	.vt-comments-add .vt-cc-label { display: none; }
}

/* --- Sidebar --------------------------------------------------------- */
.site-aside > div + div { margin-top: 24px; }
.site-aside .moduletable, .site-aside .module {
	background: var(--c-bg);
	border: 1px solid var(--c-border-soft);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 16px;
}
.site-aside .moduletable h3,
.site-aside .module h3 {
	font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
	margin: 0 0 12px; padding-bottom: 8px;
	border-bottom: 2px solid var(--c-link);
}

/* --- Боковые списки mod_k2_content («Важное» / «Новое») --------------- */
.site-aside .vt-aside-list { display: flex; flex-direction: column; }

/* порядок карточки (как в новостных порталах): фото → заголовок → превью → дата */
.site-aside .vt-aside-card {
	display: flex; flex-direction: column; gap: 6px;
}
.site-aside .vt-aside-card + .vt-aside-card {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--c-border-soft);
}

/* превью — во всю ширину, мягкое увеличение по наведению */
.site-aside .vt-aside-card__img {
	display: block; overflow: hidden; border-radius: var(--radius);
	background: var(--c-bg-soft);
	aspect-ratio: 16 / 9;
	margin-bottom: 2px;
}
.site-aside .vt-aside-card__img img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.35s ease;
}
.site-aside .vt-aside-card:hover .vt-aside-card__img img { transform: scale(1.04); }

/* заголовок — главный элемент, показываем полностью */
.site-aside .vt-aside-card__title {
	font-size: 14px; line-height: 1.28; font-weight: 600;
	color: var(--c-text); text-decoration: none;
	overflow-wrap: break-word;
}
.site-aside .vt-aside-card:hover .vt-aside-card__title { color: var(--c-link); }
.site-aside .vt-aside-card__title:hover { text-decoration: none; }

/* дек: дата тихим inline-лидом + вводный текст (показываем полностью) */
.site-aside .vt-aside-card__dek {
	margin: 0;
	font-size: 13px; line-height: 1.35; color: var(--c-text-muted);
	overflow-wrap: break-word;
}
/* дата — второстепенная метка: светлее, тоньше и мельче описания */
.site-aside .vt-aside-card__date {
	font-weight: 400; font-size: 12px; color: var(--c-ad);
	white-space: nowrap;
}
.site-aside .vt-aside-card__date + .vt-aside-card__lead::before {
	content: "·"; margin: 0 6px; color: var(--c-ad); font-weight: 400;
}

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--c-bg); border-top: 1px solid var(--c-border); margin-top: 20px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; padding: 24px 16px; }
.site-footer__modules { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; flex: 0 1 auto; }
.site-footer__copy { margin: 0; color: var(--c-text-muted); font-size: 14px; flex: 1 1 auto; }
.site-footer .module, .site-footer .moduletable { background: transparent; border: 0; padding: 0; margin: 0; }
/* Меню в футере без маркеров и подчёркиваний */
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer ul li { padding: 0; }
.site-footer ul li::marker { content: ''; }
.site-footer__modules a { color: var(--c-text); text-decoration: none; font-size: 14px; }
.site-footer__modules a:hover { color: var(--c-link); }

.site-footer__legal {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 13px; color: var(--c-text-muted);
	flex: 0 1 auto;
}
.site-footer__legal a { color: var(--c-text-muted); text-decoration: none; }
.site-footer__legal a:hover { color: var(--c-link); text-decoration: underline; }
.site-footer__legal span { color: var(--c-border); }

.site-footer__counters {
	display: flex; align-items: center; gap: 8px;
	flex: 0 0 auto;
}
.site-footer__counters img { display: block; }
.site-footer__counters a { display: inline-flex; }

/* --- To-top button --------------------------------------------------- */
.vt-to-top {
	position: fixed; right: 20px; bottom: 20px;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--c-link); color: #fff; border: 0;
	display: none; align-items: center; justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.18);
	z-index: 60;
}
.vt-to-top:hover { background: var(--c-link-hover); }
.vt-to-top.is-visible { display: inline-flex; }

/* --- Cookie banner --------------------------------------------------- */
#vt-cookie-banner {
	position: fixed; left: 24px; bottom: 24px;
	z-index: 9999;
	max-width: 360px;
	background: #fffbe6; color: #1c1c1c;
	border: 1px solid #e0c97f;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.14);
	padding: 14px 32px 14px 16px;
	font-size: 14px; line-height: 1.5;
}
#vt-cookie-banner[hidden] { display: none; }
#vt-cookie-banner button { background: #e0c97f; color: #333; border: 0; border-radius: 4px; padding: 6px 14px; margin-left: 8px; font-size: 14px; }
#vt-cookie-banner button:hover { background: #ffe08a; }
#vt-cookie-close { position: absolute; top: 6px; right: 10px; font-size: 22px; line-height: 1; color: #999; background: none; padding: 0; margin: 0; }
#vt-cookie-close:hover { color: #333; background: none; }

/* --- Lightbox -------------------------------------------------------- */
.vt-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,0.72);
	display: flex; align-items: center; justify-content: center;
	z-index: 9998; padding: 24px;
	opacity: 0;
	transition: opacity 0.22s ease;
	will-change: opacity;
}
.vt-lightbox.is-open { opacity: 1; }
.vt-lightbox img {
	max-width: 100%; max-height: 100%; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
	transform: scale(0.96);
	transition: transform 0.22s ease;
}
.vt-lightbox.is-open img { transform: scale(1); }
.vt-lightbox__close {
	position: absolute; top: 16px; right: 20px;
	width: 40px; height: 40px; padding: 0;
	background: rgba(0,0,0,0.75);
	border: 0; border-radius: 50%; cursor: pointer;
	font-size: 0; /* прячем текстовый × — крестик рисуем линиями (точный центр) */
	transition: background 0.15s ease;
}
/* крестик из двух перекрещенных линий — центрируется математически, без зависимости от метрик шрифта */
.vt-lightbox__close::before,
.vt-lightbox__close::after {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 17px; height: 2px; background: #fff; border-radius: 1px;
}
.vt-lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.vt-lightbox__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.vt-lightbox__close:hover { background: rgba(0,0,0,0.92); }

/* --- Forms / inputs (Joomla defaults) -------------------------------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
	font-family: inherit; font-weight: inherit; line-height: inherit;
	font-size: 16px; /* >=16px чтобы iOS Safari не зумил при фокусе */
	padding: 8px 10px;
	border: 1px solid var(--c-border); border-radius: var(--radius);
	background: #fff; color: var(--c-text);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, textarea:focus {
	outline: none; border-color: var(--c-link);
}
/* Тач-устройства: гарантированно блокируем авто-зум iOS на любых полях */
@media (hover: none) and (pointer: coarse) {
	input[type="text"], input[type="email"], input[type="password"],
	input[type="search"], input[type="tel"], input[type="url"],
	input[type="number"], textarea, select {
		font-size: 16px !important;
	}
}

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
	.site-main { grid-template-columns: 1fr; gap: 24px; }
	.vt-item { grid-template-columns: 180px 1fr; gap: 16px; }
	.vt-item-image img { height: 135px; }
	.site-menu ul { gap: 18px; }

	/* Сайдбар ушёл под контент на всю ширину — раскладываем карточки «Важное»/«Новое»
	   адаптивной сеткой (а не одной растянутой колонкой). */
	.site-aside .vt-aside-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 22px 20px;
	}
	/* в сетке вертикальные разделители между карточками не нужны */
	.site-aside .vt-aside-card + .vt-aside-card {
		margin-top: 0; padding-top: 0; border-top: 0;
	}
}

@media (max-width: 970px) {
	.site-menu-toggle { display: inline-flex; order: 3; }
	/* Меню — выпадающим оверлеем под шапкой */
	.site-menu {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: block;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.22s ease;
		background: var(--c-bg);
		z-index: 49;
	}
	.site-menu__wrap { display: block; padding: 2px 16px 2px; border-top: 1px solid var(--c-border); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
	.site-menu.is-open {
		max-height: calc(100vh - 60px);   /* почти весь экран минус шапка */
		overflow-y: auto;                  /* пункты прокручиваются если не влезают (landscape mobile) */
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	/* inline-block → ширина меню по самому длинному пункту,
	   поэтому border-bottom у всех пунктов одинаковой ширины */
	.site-menu ul {
		display: inline-block !important;
		gap: 0;
		margin: 0; padding: 0;
	}
	.site-menu li { display: block; }
	.site-menu li::after { display: none; }
	.site-menu li a {
		display: block;
		padding: 5px 0;
		border-bottom: 1px solid var(--c-border-soft);
	}
	.site-menu li:last-child a { border-bottom: 0; }
	.site-menu a:hover { border-bottom-color: var(--c-link); }
	.site-menu li:last-child a:hover { border-bottom-color: transparent; }
	.site-header__inner {
		flex-wrap: nowrap;
		align-items: center;
		height: 64px;
		min-height: 0;
		padding: 0;
	}
	.site-logo { flex: 1 1 auto; min-width: 0; align-self: center; }
	.site-header__aside { order: 2; align-self: center; flex: 0 0 auto; }
	.site-social { display: flex; align-items: center; flex: 0 0 auto; }
}

@media (max-width: 580px) {
	h1 { font-size: 22px; }
	.vt-article h1 { font-size: 20px; }
	h2 { font-size: 19px; }
	h3 { font-size: 16px; }

	/* Контейнер и main — минимум воздуха по краям */
	.vt-container { padding: 0 12px; }
	.site-main { padding: 12px 10px 24px; margin: 8px 0 12px; gap: 16px; border-radius: 0; }

	/* Карточка ленты: одна колонка, фото с разумной высотой */
	.vt-item { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
	.vt-item--no-image { grid-template-columns: 1fr; }
	.vt-item-body { min-height: auto; gap: 4px; }
	.vt-item-image img { height: auto; max-height: 260px; aspect-ratio: 16/10; }
	.vt-item-title { font-size: 17px; }
	.vt-item-intro { font-size: 14px; }
	.vt-item-more { padding: 6px 14px 6px 16px; font-size: 13px; }

	/* Шапка — компактнее, всё в одной строке, по центру по вертикали */
	.site-header__inner {
		height: 60px;
		min-height: 0;
		gap: 8px;
		padding: 0;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}
	.site-logo,
	.site-menu-toggle,
	.site-search-toggle,
	.site-header__aside,
	.site-social { align-self: center !important; }
	.site-logo img { height: 40px; }
	.site-social { gap: 8px; }
	.site-social a, .vt-soc-link { width: 30px; height: 30px; flex: 0 0 30px; }
	.site-social img, .vt-soc-link img { width: 27px; height: 27px; }

	/* Сайдбар идёт под лентой одной колонкой */
	.site-aside { width: 100%; max-width: 100%; }
	.site-aside .moduletable, .site-aside .module { padding: 12px; }

	/* Скрыть пустые рекламные блоки если они не успели подгрузиться */
	.vt-ad:empty, .vt-ad-top:empty { display: none; }
	.vt-ad-top { min-height: 300px; margin: 0 0 8px; }

	/* Пагинация: компактно */
	.vt-pagination { font-size: 13px; gap: 4px; }
	.vt-pagecount { flex: 1 1 100%; margin-top: 6px; margin-left: 0; }

	/* Спецпроекты */
	.vt-special-list li { padding: 10px 0; gap: 8px 12px; }

	/* Кнопка «наверх» */
	.vt-to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }

	/* Поиск-панель — компактнее на мобильном */
	.site-search__inner { padding: 14px 52px 14px 12px; }
	.site-search__close { right: 8px; width: 32px; height: 32px; font-size: 22px; }
	.site-search__input { font-size: 17px; padding: 10px 2px; }
	.site-search__submit { width: 40px; height: 40px; }

	/* Футер */
	.site-footer__inner { padding: 18px 12px; gap: 12px 20px; flex-direction: column; align-items: flex-start; }
	.site-footer__counters { flex-wrap: wrap; }
}

/* Особо узкие экраны (≤360px) */
@media (max-width: 360px) {
	.vt-container { padding: 0 8px; }
	.site-main { padding: 10px 8px 20px; }
	.site-logo img { height: 32px; }
	.site-social { gap: 6px; }
	.site-social a, .vt-soc-link { width: 26px; height: 26px; flex: 0 0 26px; }
	.site-social img, .vt-soc-link img { width: 26px; height: 26px; }
	.site-search-toggle { padding: 6px; }
	.vt-item-title { font-size: 16px; }
	.vt-item-image img { max-height: 220px; }
	.vt-figure { margin: 0 0 12px; }
	.vt-article-body { font-size: 15px; }
}

/* --- JComments: только показ/скрытие; стили компонента — в html/com_jcomments/default/style.css */
#jc {
	margin-top: 16px; padding-top: 12px;
	border-top: 1px solid var(--c-border-soft);
	display: none; /* свёрнут по умолчанию, раскрывает theme.js */
}
#jc.is-open { display: block; }

/* «Добавить комментарий» — CTA-кнопка в панели входа в комментарии */
.vt-comments-add {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 18px;
	background: #e8f1fd; color: var(--c-link);
	border-radius: 6px; font-weight: 500; font-size: 14px;
	text-decoration: none; white-space: nowrap;
	transition: background 0.15s, color 0.15s, transform 0.1s;
}
/* увеличиваем только «плюс», но не слово в .vt-cc-label (иначе «комментарий» крупнее «Добавить») */
.vt-comments-add span:not(.vt-cc-label) { font-size: 17px; line-height: 1; }
.vt-comments-add:hover { background: var(--c-link); color: #fff; text-decoration: none; }
.vt-comments-add:active { transform: translateY(1px); }

/* --- Utilities ------------------------------------------------------- */
.clr { clear: both; }
[hidden] { display: none !important; }
