/* ==========================================================================
   PedChat.kz — каталог каналов для педагогов
   Светлая тема, акцент WhatsApp. Мобильный приоритет. Без внешних ресурсов.
   ========================================================================== */

:root {
	--bg:            #f4f7f5;
	--surface:       #ffffff;
	--surface-alt:   #fafcfb;
	--text:          #14201a;
	--text-soft:     #3d4f46;
	--muted:         #68786f;
	--line:          #e2eae5;
	--line-strong:   #cfdbd4;

	--accent:        #1fa855;
	--accent-hover:  #17853f;
	--accent-soft:   #e9f7ef;
	--accent-ring:   rgba(31, 168, 85, .25);

	--up:            #1fa855;
	--down:          #d64545;
	--warn:          #b7791f;

	--radius:        14px;
	--radius-sm:     10px;
	--radius-pill:   999px;

	--shadow:        0 1px 2px rgba(16, 40, 28, .05), 0 10px 24px -14px rgba(16, 40, 28, .18);
	--shadow-hover:  0 2px 6px rgba(16, 40, 28, .07), 0 18px 36px -18px rgba(16, 40, 28, .28);

	--wrap:          1200px;
	--gap:           16px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Цвета соцсетей — используются бейджами карточек */
:root {
	--net-whatsapp:  #25d366;
	--net-telegram:  #2aabee;
	--net-instagram: #d62976;
	--net-youtube:   #ff0033;
	--net-vk:        #0077ff;
	--net-tiktok:    #111111;
	--net-web:       #64748b;
}

/* --- Сброс ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.55 var(--font);
	overflow-wrap: break-word;
}

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

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

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

/* --- Каркас -------------------------------------------------------------- */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 16px;
}

.page { padding: 20px 0 48px; }

.sect { margin-bottom: 36px; }

.sect__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.sect__head h2 { margin: 0; }

.sect__more { font-size: .9rem; white-space: nowrap; }

/* --- Шапка --------------------------------------------------------------- */

.header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.header__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 62px;
}

.logo {
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -.02em;
	color: var(--text);
	white-space: nowrap;
}

.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.search {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 520px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	overflow: hidden;
}

.search:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: none;
	padding: 10px 16px;
}

.search input:focus { outline: none; }

.search button {
	flex: none;
	border: 0;
	margin: 4px;
	padding: 6px 18px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
}

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

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* --- Навигация ----------------------------------------------------------- */

.nav {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list li { white-space: nowrap; }

.nav__list a {
	display: block;
	padding: 11px 14px;
	color: var(--text-soft);
	font-size: .94rem;
	font-weight: 500;
	border-bottom: 2px solid transparent;
}

.nav__list a:hover {
	color: var(--accent-hover);
	border-bottom-color: var(--accent);
	text-decoration: none;
}

/* --- Кнопки -------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease, transform .1s ease;
}

.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--text-soft);
}

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

.btn--block { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 1.02rem; }
.btn--sm { padding: 7px 14px; font-size: .86rem; }

/* --- Главная: интро ------------------------------------------------------ */

.hero {
	background: linear-gradient(160deg, #ecfaf1 0%, #f7fbf8 60%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
	padding: 40px 0 36px;
	text-align: center;
}

.hero h1 {
	font-size: clamp(1.6rem, 4.4vw, 2.4rem);
	max-width: 34ch;
	margin: 0 auto .5rem;
}

.hero__lead {
	color: var(--text-soft);
	max-width: 60ch;
	margin: 0 auto 22px;
	font-size: 1.03rem;
}

.hero__search { max-width: 560px; margin: 0 auto 16px; }
.hero__search .search { max-width: none; background: var(--surface); }

.hero__stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 22px;
	color: var(--muted);
	font-size: .9rem;
}

.hero__stats b { color: var(--text); font-size: 1.05rem; }

/* --- Сетка направлений --------------------------------------------------- */

.dirs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}

.dir {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dir:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
	text-decoration: none;
}

.dir__title { font-weight: 650; }
.dir__count { color: var(--muted); font-size: .85rem; }

.dir__sub {
	margin-top: 6px;
	color: var(--muted);
	font-size: .82rem;
	line-height: 1.4;
}

/* --- Сетка каналов ------------------------------------------------------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: var(--gap);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

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

/* Платное продвижение: закреплённые каналы */
.card--promo {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent-ring), var(--shadow);
}

.card__promo {
	position: absolute;
	top: -1px;
	right: -1px;
	z-index: 2;
	border-top-left-radius: 0;
	border-bottom-right-radius: 0;
	padding: 3px 10px;
	background: var(--accent);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: var(--radius-pill);
}

/* Аватар канала: фиксированный квадрат, чтобы карточки в ряду были
   одной высоты независимо от наличия и пропорций картинки. */
.card__top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 16px 12px;
}

.card__ava {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface-alt);
	border: 1px solid var(--line);
}

.card__ava img { width: 100%; height: 100%; object-fit: cover; }

.card__ava--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--accent-soft), var(--surface-alt));
}

.card__ava--empty::before,
.channel__photo--empty::before {
	content: "💬";
	font-size: 1.4rem;
	line-height: 1;
	opacity: .45;
}

.card__head { flex: 1 1 auto; min-width: 0; }

.card__title {
	margin: 0 0 3px;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.3;
}

.card__title a { color: var(--text); }
.card__title a:hover { color: var(--accent-hover); text-decoration: none; }

.card__cat { font-size: .82rem; color: var(--muted); }
.card__cat a { color: var(--muted); }

.card__foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 16px 16px;
}

/* --- Бейдж соцсети ------------------------------------------------------- */

.badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: var(--radius-pill);
	background: var(--bg);
	border: 1px solid var(--line);
	color: var(--text-soft);
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
}

.badge--net::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--net-web);
}

/* Классы навешивает шаблон через [if xfield_set="..."] */
.net-wa::before { background: var(--net-whatsapp); }
.net-tg::before { background: var(--net-telegram); }
.net-ig::before { background: var(--net-instagram); }
.net-yt::before { background: var(--net-youtube); }
.net-vk::before { background: var(--net-vk); }
.net-tt::before { background: var(--net-tiktok); }

/* Ссылка внутри бейджа наследует цвет — бейдж выглядит цельным */
.badge a { color: inherit; }
.badge a:hover { text-decoration: none; }

.badge--private { background: #fff7ed; border-color: #fed7aa; color: var(--warn); }
.badge--promo { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Метрики ------------------------------------------------------------- */

.metrics {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: .85rem;
	color: var(--muted);
}

.metric { display: inline-flex; align-items: baseline; gap: 5px; }
.metric b { color: var(--text); font-size: .95rem; font-weight: 650; }

.delta { font-weight: 650; font-size: .85rem; }
.delta--up   { color: var(--up); }
.delta--down { color: var(--down); }
.delta--flat { color: var(--muted); }

/* --- Фильтры ------------------------------------------------------------- */

.filters {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

.filters__label {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	min-width: 92px;
}

.chip {
	display: inline-block;
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--bg);
	color: var(--text-soft);
	font-size: .86rem;
	font-weight: 500;
}

.chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); text-decoration: none; }
.chip--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip--active:hover { background: var(--accent-hover); color: #fff; }

/* --- Хлебные крошки ------------------------------------------------------ */

.speedbar {
	font-size: .85rem;
	color: var(--muted);
	margin-bottom: 16px;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.speedbar::-webkit-scrollbar { display: none; }
.speedbar a { color: var(--muted); }

/* --- Страница канала ----------------------------------------------------- */

.channel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
}

.channel__top { display: flex; gap: 20px; padding: 20px; flex-wrap: wrap; }

.channel__photo {
	flex: none;
	width: 160px;
	height: 160px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-alt);
	border: 1px solid var(--line);
}

.channel__photo img { width: 100%; height: 100%; object-fit: cover; }

.channel__photo--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--accent-soft), var(--surface-alt));
}

.channel__head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.channel__head h1 { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.8rem); }

.channel__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.channel__note { font-size: .82rem; color: var(--muted); }

/* Характеристики */
.specs { border-top: 1px solid var(--line); }

.specs__row {
	display: flex;
	gap: 16px;
	padding: 11px 20px;
	border-bottom: 1px solid var(--line);
	font-size: .92rem;
}

.specs__row:last-child { border-bottom: 0; }
.specs__key { flex: 0 0 190px; color: var(--muted); }
.specs__val { flex: 1 1 auto; min-width: 0; font-weight: 500; }

@media (max-width: 560px) {
	.specs__row { flex-direction: column; gap: 2px; }
	.specs__key { flex: none; font-size: .82rem; }
}

/* --- Блок статистики ----------------------------------------------------- */

.stats-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 24px;
}

.stats-box h2 { font-size: 1.15rem; }

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.stat {
	background: var(--surface-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
}

.stat__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.stat__value { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-top: 4px; }

.spark { width: 100%; height: 84px; display: block; }
.spark-empty { color: var(--muted); font-size: .88rem; padding: 10px 0; }

.stats-box__caption { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }

/* --- Форма заявки -------------------------------------------------------- */

.form-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
}

.field { margin-bottom: 16px; }

.field > label {
	display: block;
	margin-bottom: 6px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--text-soft);
}

.field .req { color: var(--down); }

.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
	width: 100%;
	padding: 10px 13px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.field__hint { margin-top: 5px; font-size: .8rem; color: var(--muted); }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

/* Ловушка для спам-ботов: человек поля не видит, бот его заполняет */
.field--trap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; flex: none; }

.form-msg {
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	margin-bottom: 16px;
	font-size: .92rem;
}

.form-msg--ok   { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-hover); }
.form-msg--err  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* --- Уведомления и типовые блоки DLE ------------------------------------- */

.box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 20px;
}

.empty {
	text-align: center;
	padding: 44px 24px;
	color: var(--muted);
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	margin-bottom: 24px;
}

.empty__icon { font-size: 2.4rem; opacity: .4; line-height: 1; }

.empty__title {
	margin: 12px 0 6px;
	font-size: 1.2rem;
	color: var(--text);
}

.empty__text {
	max-width: 52ch;
	margin: 0 auto 18px;
	font-size: .95rem;
}

.empty__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
}

.seo { color: var(--text-soft); font-size: .95rem; }
.seo h2 { font-size: 1.15rem; margin-top: 1.4em; }

/* --- Пагинация ----------------------------------------------------------- */

.pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 28px 0 8px;
}

.pages a, .pages span {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text-soft);
	font-size: .92rem;
}

.pages a:hover { border-color: var(--accent); color: var(--accent-hover); text-decoration: none; }
.pages span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* --- Подвал -------------------------------------------------------------- */

.footer {
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding: 28px 0;
	margin-top: 40px;
	color: var(--muted);
	font-size: .9rem;
}

.footer__row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--text-soft); }

/* --- Мелкое -------------------------------------------------------------- */

.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

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

/* --- Адаптив ------------------------------------------------------------- */

@media (max-width: 720px) {
	.nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.nav::-webkit-scrollbar { display: none; }
	.nav__list { flex-wrap: nowrap; }

	/* Боковые отступы приходят из .wrap — задаём только вертикальные,
	   иначе краткая запись padding обнулит их и шапка прилипнет к краям */
	.header__row {
		min-height: 56px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	/* Поиск в шапке занимал на телефоне целую строку в липкой шапке и съедал
	   первый экран. Поле поиска на главной (в интро) не трогаем. */
	.header .search { display: none; }
	.hero { padding: 28px 0 24px; }
	.cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
	.card__top { padding: 12px 12px 10px; gap: 10px; }
	.card__foot { padding: 0 12px 12px; gap: 8px; }
	.card__ava { width: 46px; height: 46px; }
	.card__title { font-size: .93rem; }
	.channel__photo { width: 96px; height: 96px; }
	.filters__label { min-width: 100%; }
	.dirs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Число каналов в чипе фильтра */
.chip__n {
	display: inline-block;
	margin-left: 3px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: rgba(20, 32, 26, .07);
	font-size: .78em;
	font-weight: 600;
}

.chip--active .chip__n { background: rgba(255, 255, 255, .25); }

/* --- Модальное окно (вход и кабинет) ------------------------------------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.modal[hidden] { display: none; }

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 26, 19, .55);
}

.modal__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px -20px rgba(12, 26, 19, .45);
	animation: modal-in .16s ease-out;
}

@keyframes modal-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

.modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}

.modal__title { font-weight: 700; font-size: 1.05rem; }

.modal__close {
	flex: none;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--muted);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.modal__close:hover { background: var(--accent-soft); color: var(--accent-hover); }

.modal__body { padding: 20px; }

.modal__foot {
	margin: 14px 0 0;
	text-align: center;
	font-size: .9rem;
	color: var(--muted);
}

/* Меню кабинета */
.usermenu { list-style: none; margin: 0; padding: 0; }

.usermenu li + li { border-top: 1px solid var(--line); }

.usermenu a {
	display: block;
	padding: 11px 4px;
	color: var(--text-soft);
	font-size: .95rem;
}

.usermenu a:hover { color: var(--accent-hover); text-decoration: none; }
.usermenu__exit { color: var(--down) !important; }

body.is-modal-open { overflow: hidden; }

@media (max-width: 720px) {
	.modal__box { max-width: none; }
	/* На узком экране кнопка «Добавить канал» ломает шапку переносом —
	   ссылка остаётся в подвале */
	.header__add { display: none; }
}

/* Подпись панели фильтров: счётчики относятся ко всему каталогу */
.filters__caption {
	font-size: .82rem;
	color: var(--muted);
	padding-bottom: 4px;
	margin-bottom: 2px;
	border-bottom: 1px solid var(--line);
}

/* --- Совместимость: страницы тарифов и оплаты Kaspi ----------------------
   Пришли из старой темы вместе с готовым содержимым. Вёрстку не переписываем,
   а подставляем современные соответствия под их классы. */

.attent {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.content-block,
.d-grid,
.d1-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--gap);
	align-items: start;
}

.colsa, .col-main { display: block; width: 100%; }

.banner {
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.uf-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* Поле с номером карты на странице оплаты */
#myInput {
	padding: 8px 12px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-family: monospace;
}

#myInput + br + button,
#container button {
	padding: 8px 16px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
}

/* --- Формы DLE ------------------------------------------------------------
   Штатные шаблоны (регистрация, восстановление пароля, личные сообщения,
   комментарии) приходят со своей разметкой. Вместо переверстки каждого
   задаём базовый вид полей и поддерживаем классы form__*. */

.page input[type="text"],
.page input[type="password"],
.page input[type="email"],
.page input[type="tel"],
.page input[type="url"],
.page input[type="number"],
.page input[type="search"],
.page select,
.page textarea,
.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"],
.modal select,
.modal textarea {
	width: 100%;
	max-width: 460px;
	padding: 10px 13px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
}

.page textarea,
.modal textarea { max-width: none; min-height: 120px; resize: vertical; }

.page input:focus,
.page select:focus,
.page textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.page input[type="checkbox"],
.page input[type="radio"],
.modal input[type="checkbox"],
.modal input[type="radio"] { width: auto; max-width: none; }

.page input[type="file"] { max-width: 460px; }

/* Классы штатных форм DLE */

.form { max-width: 560px; }

.form__title { margin-top: 0; }

.form__row { margin-bottom: 16px; }

.form__label {
	display: block;
	margin-bottom: 6px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--text-soft);
}

.form__label--important::after {
	content: " *";
	color: var(--down);
}

.form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}

.form__btn:hover { background: var(--accent-hover); }

.form__sec-code {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.form__sec-code input { max-width: 220px; }
.form__sec-code img { border-radius: var(--radius-sm); }

.form__row--submit { margin-top: 22px; }

/* Информационные врезки штатных шаблонов */
.message-info,
.form .text {
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	margin-bottom: 18px;
	font-size: .94rem;
}

/* --- Утилиты штатных шаблонов DLE -----------------------------------------
   Классы-помощники, на которых держится разметка стандартных шаблонов.
   Без них комментарии, поиск и профиль разъезжаются. */

.d-flex { display: flex; }
.d-none { display: none; }
.d-grid { display: grid; }
.flex-grow-1 { flex-grow: 1; }
.stretch-free-width { flex: 1 1 auto; min-width: 0; }
.ai-center { align-items: center; }
.jc-center { justify-content: center; }
.jc-space-between { justify-content: space-between; }
.jc-flex-start { justify-content: flex-start; }
.ws-nowrap { white-space: nowrap; }
.clearfix::after { content: ""; display: table; clear: both; }
.img-fit-cover { object-fit: cover; }
.table-responsive { overflow-x: auto; }
.ignore-select { user-select: none; }

.checkbox { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.checkbox input { flex: none; }

.full-text { line-height: 1.6; }
.full-text img { border-radius: var(--radius-sm); margin: 10px 0; }

.btn--secondary {
	background: transparent;
	border: 1px solid var(--line-strong);
	color: var(--text-soft);
}

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

.form__textarea { width: 100%; }
.form__textarea--height { min-height: 160px; }
.form__row--wide, .form__row--textarea { max-width: none; }
.form__row--textarea textarea { max-width: none; }
.form__table { width: 100%; }
.form__caption { font-weight: 600; margin-bottom: 6px; }
.form__header { margin-bottom: 14px; }

/* --- Комментарии ---------------------------------------------------------- */

.comment-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin-bottom: 14px;
}

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

.comment-item__img {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--surface-alt);
}

.comment-item__img img { width: 100%; height: 100%; object-fit: cover; }

.comment-item__author { font-weight: 650; }
.comment-item__date { font-size: .82rem; color: var(--muted); }
.comment-item__rating { margin-left: auto; font-size: .88rem; color: var(--muted); }
.comment-item__main { line-height: 1.6; }

.comment-item__footer {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	font-size: .86rem;
}

.comment-item__reply, .comment-item__controls { color: var(--muted); }

/* Форма добавления комментария */
.ac-form { margin-bottom: 24px; }
.ac-form__editor { margin-bottom: 12px; }
.ac-form__input { width: 100%; max-width: 460px; }
.ac-form__bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ac-form__btn {
	padding: 11px 24px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ac-form__btn:hover { background: var(--accent-hover); }

/* --- Страница поиска ------------------------------------------------------ */

.search-page__title { margin-top: 0; }
.searchtable { width: 100%; }
.searchtable td { padding: 6px 0; vertical-align: top; }

.message-info--yellow {
	background: #fff7ed;
	border-color: #fed7aa;
	color: var(--warn);
}

/* --- Профиль и личные сообщения ------------------------------------------ */

.usp__columns { display: flex; gap: 20px; flex-wrap: wrap; }
.usp__left { flex: none; }

.usp__img {
	width: 120px;
	height: 120px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-alt);
}

.usp__img img { width: 100%; height: 100%; object-fit: cover; }
.usp__middle { flex: 1 1 240px; min-width: 0; }
.usp__name { font-size: 1.3rem; font-weight: 700; }
.usp__group { color: var(--muted); font-size: .9rem; }
.usp__list, .usp__meta { list-style: none; margin: 12px 0 0; padding: 0; font-size: .92rem; }
.usp__list li, .usp__meta li { padding: 5px 0; border-bottom: 1px solid var(--line); }

.usp__status { font-size: .84rem; font-weight: 600; }
.usp__status--online { color: var(--up); }
.usp__status--offline { color: var(--muted); }
.usp__btn { margin-top: 12px; }

.usp-popup {
	display: flex;
	gap: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow);
}

.usp-popup__img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.usp-popup__img img { width: 100%; height: 100%; object-fit: cover; }
.usp-popup__list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; }

.pm-item {
	display: flex;
	gap: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 12px;
}

.pm-item__img { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.pm-item__img img { width: 100%; height: 100%; object-fit: cover; }
.pm-item__meta { font-size: .82rem; color: var(--muted); }
.pm__links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pm__status { font-size: .86rem; color: var(--muted); }

/* --- Страница тарифов (перенесена из старой темы) ------------------------- */

.grid-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 20px;
}

.accordion { margin-bottom: 16px; }
.tab1 { margin-bottom: 12px; }

.tab-title1 {
	display: block;
	padding: 12px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
}

.tab-content1 { padding: 14px 16px; }

.billing-panel {
	background: var(--accent-soft);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	padding: 16px 18px;
}

.story, .box_in { display: block; }

/* --- Прочее --------------------------------------------------------------- */

.tags-page a, .cloud-tags a { display: inline-block; margin: 0 6px 6px 0; }
.sub-title { font-weight: 600; margin: 16px 0 8px; }
.dle-table { width: 100%; border-collapse: collapse; }
.dle-table td, .dle-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }

/* --- Остатки классов штатных шаблонов ------------------------------------- */

.form__input { width: 100%; max-width: 460px; }
.form__content { margin-top: 10px; }
.form__row--protect { display: flex; flex-direction: column; gap: 6px; }
.form__row--check-group,
.form__row--check-group-wide { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.no-label { margin-left: 0; }
.f_textarea { width: 100%; min-height: 140px; }

.search-page, .pm-page, .usp, .article { display: block; }

.comment-item__title { font-weight: 600; margin-bottom: 8px; }
.comment-item__meta { min-width: 0; }

.usp__right { flex: 1 1 200px; }
.usp__activity { font-size: .88rem; color: var(--muted); }

.pm-item__description { flex: 1 1 auto; min-width: 0; }
.pm-item__text { font-size: .92rem; }

.nav__list a.is-active {
	color: var(--accent-hover);
	border-bottom-color: var(--accent);
}

/* Обтекание картинок из визуального редактора DLE */
.fr-fil { float: left; margin: 4px 16px 10px 0; }
.fr-dii { display: inline-block; }

/* --- Иконки без FontAwesome ----------------------------------------------
   Новая тема не подключает шрифт иконок, а штатные шаблоны на него
   рассчитывают. Кнопки оценки и ответа иначе стали бы невидимыми,
   поэтому подставляем текстовые символы. */

.fal, .far, .fas, .fab,
[class*="fa-"] { font-style: normal; }

.fa-plus-circle::before  { content: "+"; font-weight: 700; }
.fa-minus-circle::before { content: "−"; font-weight: 700; }
.fa-angle-down::before   { content: " ›"; }
.fa-redo-alt::before     { content: "❞ "; }
.fa-times::before        { content: "×"; }
.fa-search::before       { content: "⌕"; }
.fa-envelope::before     { content: "✉"; }
.fa-user::before         { content: "☺"; }
.fa-lock::before         { content: "•"; }

/* --- Продвижение канала --------------------------------------------------- */

/* Ссылка на витрину под кнопками страницы канала.
   Отдельного блока покупки больше нет: кнопка продвижения переехала
   в основной ряд рядом с «Перейти в канал». */
.channel__promo-link {
	display: inline-block;
	font-size: .86rem;
	color: var(--muted);
	border-bottom: 1px dashed currentColor;
}

.channel__promo-link:hover { color: var(--accent-hover); text-decoration: none; }

/* Окно покупки. Выводится через jQuery UI dialog из billing/js/fixednews.js,
   поэтому внешнюю рамку рисует он, а мы оформляем только содержимое. */
.promo-buy { font-size: .95rem; }

.promo-buy__channel { font-weight: 700; font-size: 1.05rem; }

.promo-buy__cat {
	color: var(--muted);
	font-size: .85rem;
	margin-bottom: 10px;
}

.promo-buy__lead {
	color: var(--text-soft);
	font-size: .9rem;
	margin-bottom: 16px;
}

.promo-buy__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	margin-bottom: 14px;
	background: var(--accent-soft);
	border-radius: var(--radius-sm);
}

.promo-buy__total b { font-size: 1.2rem; color: var(--accent-hover); }

.promo-buy__note {
	margin: 12px 0 0;
	font-size: .82rem;
	color: var(--muted);
	text-align: center;
}


/* --- Витрина тарифов продвижения ------------------------------------------ */

.promo-lead { font-size: 1.05rem; color: var(--text-soft); margin: 0; }

.promo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--gap);
	margin-bottom: 20px;
}

.promo-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}

.promo-card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.promo-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.promo-card p { margin: 0; font-size: .92rem; color: var(--text-soft); }

/* Карточки тарифов */
.tariffs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.tariff {
	position: relative;
	background: var(--surface-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px 18px;
	text-align: center;
}

.tariff--best {
	background: var(--accent-soft);
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent-ring);
}

.tariff__badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	padding: 3px 12px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

.tariff__days { font-size: .9rem; color: var(--muted); }

.tariff__price {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.1;
	margin: 4px 0 8px;
}

.tariff__price span { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.tariff__note { font-size: .82rem; color: var(--text-soft); }

/* Шаги оплаты */
.steps { margin: 0 0 14px; padding-left: 22px; }
.steps li { margin-bottom: 12px; line-height: 1.55; }
.steps b { color: var(--text); }

/* --- Окна jQuery UI ------------------------------------------------------
   DLE подключает только скрипт jQuery UI, без его стилей. Виджет покупки
   продвижения открывается через .dialog(), поэтому оформление окна —
   на нашей стороне. Классы задаёт jQuery UI, менять их нельзя. */

.ui-widget-overlay {
	position: fixed;
	inset: 0;
	z-index: 299;
	background: rgba(12, 26, 19, .55);
}

.ui-dialog {
	position: absolute;
	z-index: 300;
	max-width: calc(100vw - 32px);
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 24px 60px -20px rgba(12, 26, 19, .45);
	overflow: hidden;
	outline: none;
}

.ui-dialog-titlebar {
	position: relative;
	display: flex;
	align-items: center;
	padding: 16px 52px 16px 20px;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
	font-size: 1.05rem;
}

.ui-dialog-title { flex: 1 1 auto; min-width: 0; }

.ui-dialog-titlebar-close {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--muted);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
}

.ui-dialog-titlebar-close:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* jQuery UI кладёт внутрь кнопки свой span с иконкой — он пустой без
   спрайтов темы, поэтому прячем и рисуем крестик сами */
.ui-dialog-titlebar-close .ui-icon,
.ui-dialog-titlebar-close .ui-button-icon-space { display: none; }
.ui-dialog-titlebar-close .ui-button-text { font-size: 0; }
.ui-dialog-titlebar-close::before { content: "×"; font-size: 1.4rem; }

.ui-dialog-content {
	padding: 20px;
	overflow: auto;
	max-height: calc(100vh - 180px);
}

.ui-dialog .ui-resizable-handle { display: none; }

@media (max-width: 480px) {
	.ui-dialog { width: calc(100vw - 24px) !important; left: 12px !important; }
}

/* Кнопки в штатных окнах DLE (подтверждения, DLEalert из виджета billing) */
.ui-dialog-buttonpane {
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	background: var(--surface-alt);
}

.ui-dialog-buttonset {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.ui-dialog-buttonset button {
	padding: 9px 20px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--text-soft);
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
}

.ui-dialog-buttonset button:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent-hover);
}

/* Основное действие — первая кнопка в наборе */
.ui-dialog-buttonset button:first-child {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.ui-dialog-buttonset button:first-child:hover { background: var(--accent-hover); color: #fff; }

/* Результат применения купона на странице оплаты: пустой блок не занимает места */
.billing-coupon__result {
	margin-top: 10px;
	font-size: .92rem;
	color: var(--text-soft);
}

.billing-coupon__result:empty { display: none; }

/* --- Выбор срока продвижения ---------------------------------------------- */

.promo-buy__label {
	display: block;
	margin-bottom: 8px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--text-soft);
}

.tariff-picker { display: grid; gap: 8px; }

.tariff-opt { display: block; cursor: pointer; }

/* Сам переключатель не показываем, но оставляем доступным с клавиатуры */
.tariff-opt input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.tariff-opt__box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	transition: border-color .12s ease, background .12s ease;
}

.tariff-opt__box::before {
	content: "";
	flex: none;
	order: -1;
	width: 18px;
	height: 18px;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.tariff-opt__title { flex: 1 1 auto; font-weight: 600; }
.tariff-opt__price { flex: none; color: var(--muted); font-weight: 600; white-space: nowrap; }

.tariff-opt:hover .tariff-opt__box { border-color: var(--accent); }

.tariff-opt input:checked + .tariff-opt__box {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.tariff-opt input:checked + .tariff-opt__box::before {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 4px var(--accent);
}

.tariff-opt input:checked + .tariff-opt__box .tariff-opt__price { color: var(--accent-hover); }

/* Видимая рамка при переходе клавишей Tab */
.tariff-opt input:focus-visible + .tariff-opt__box {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Последний элемент окна не должен добавлять отступ: из-за него
   появлялась лишняя полоса прокрутки внутри диалога */
.promo-buy > *:last-child { margin-bottom: 0; }

/* --- Страница перехода в канал -------------------------------------------- */

.go {
	max-width: 520px;
	margin: 0 auto 24px;
	padding: 32px 24px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.go__ava {
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--surface-alt);
	border: 1px solid var(--line);
}

.go__ava img { width: 100%; height: 100%; object-fit: cover; }

.go__ava--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--accent-soft), var(--surface-alt));
}

.go__ava--empty::before { content: "💬"; font-size: 1.6rem; line-height: 1; opacity: .45; }

.go__title { font-size: 1.3rem; margin: 0 0 4px; }
.go__meta { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }

.go__status {
	display: inline-block;
	padding: 8px 16px;
	margin: 0 0 16px;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent-hover);
	font-size: .92rem;
}

.go__status b { font-variant-numeric: tabular-nums; }

.go__note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

/* Полоса ожидания: с десятисекундной паузой одна цифра выглядит как
   зависшая страница, а движущаяся полоса показывает, что процесс идёт */
.go__progress {
	height: 4px;
	border-radius: var(--radius-pill);
	background: var(--line);
	overflow: hidden;
}

.go__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
}

.go__fallback { margin: 16px 0 0; font-size: .92rem; }
.go__fallback[hidden] { display: none; }

/* Рекламное место. Содержимое берётся из engine/data/chatcat_ad_go.html,
   а когда рекламодателя нет — показываем собственный блок. */
.go-ad {
	max-width: 720px;
	margin: 0 auto 28px;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	overflow: hidden;
}

.go-ad img { margin: 0 auto; }

.go-ad--house { background: var(--surface-alt); border-style: dashed; }
.go-ad--house b { display: block; margin-bottom: 4px; }
.go-ad--house span { display: block; font-size: .9rem; color: var(--text-soft); }

.go-ad__links { margin-top: 10px !important; display: flex !important; gap: 16px; justify-content: center; }

/* Частная группа на странице перехода: вместо отсчёта — предложение войти */
.go__locked {
	display: inline-block;
	padding: 8px 18px;
	margin: 0 0 14px;
	border-radius: var(--radius-pill);
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: var(--warn);
	font-weight: 600;
	font-size: .92rem;
}

.go__note--wide { max-width: 42ch; margin: 0 auto 18px; font-size: .92rem; }

.go__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Рекламные места. Пустой слот не занимает места: DLE убирает тег {banner_…},
   если баннера с таким тегом нет или он выключен. */
.ad-slot { margin: 0 0 24px; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-slot img { margin: 0 auto; }
