/*
Theme Name: ИНДЕКСЛАБА
Description: Мониторинг товаров Ozon и Wildberries. Визуал «радар» в духе indexlaba.ru.
Author: IndexLaba
Version: 2.1.0
Text Domain: toplaba
*/

:root {
	--bg-base: #020617;
	--bg-card: rgba(15, 23, 42, 0.85);
	--bg-input: rgba(2, 6, 23, 0.55);
	--border-color: #1e293b;
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--sky-400: #38bdf8;
	--sky-500: #0ea5e9;
	--sky-600: #0284c7;
	--rose-400: #fb7185;
	--emerald-400: #34d399;
	--ozon: #005bff;
	--wb: #cb11ab;
	/* уже, чем 112rem: карточки поуже — картинка в contain смотрится крупнее */
	--tl-layout-max: 100rem;
}

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

html {
	scroll-behavior: smooth;
	scrollbar-color: var(--sky-500) #0f172a;
	scrollbar-width: thin;
}

body.toplaba-theme {
	margin: 0;
	min-height: 100vh;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	background-color: var(--bg-base);
	color: var(--text-main);
	line-height: 1.5;
	position: relative;
}

.tl-bg-grid {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(79, 79, 79, 0.12) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(79, 79, 79, 0.12) 1px, transparent 1px);
	background-size: 14px 24px;
	mask-image: radial-gradient(ellipse 70% 55% at 50% -10%, #000 55%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% -10%, #000 55%, transparent 100%);
}

/* main/footer — слой контента; шапку не трогаем: у .tl-header свой z-index, иначе мегаменю «Каталог» окажется под main */
body.toplaba-theme > main,
body.toplaba-theme > footer {
	position: relative;
	z-index: 1;
}

/* ——— Radar (как на главной IndexLaba) ——— */
.tl-radar {
	position: relative;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-radar--lg {
	width: 5rem;
	height: 5rem;
	margin: 0 auto 1.25rem;
}

.tl-radar__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(56, 189, 248, 0.35);
	animation: tl-ping 5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tl-radar__ring:nth-child(2) {
	animation-delay: 2.5s;
}

.tl-radar__icon {
	position: relative;
	z-index: 2;
	width: 1rem;
	height: 1rem;
	color: var(--sky-400);
}

.tl-radar--lg .tl-radar__icon {
	width: 1.125rem;
	height: 1.125rem;
}

@keyframes tl-ping {
	75%,
	100% {
		/* было scale(2); амплитуда «удара» в 2 раза меньше → +50% к размеру вместо +100% */
		transform: scale(1.35);
		opacity: 0;
	}
}

/* ——— Шапка ——— */
.tl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	overflow: visible;
	background: rgba(2, 6, 23, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
}

.tl-header-inner {
	overflow: visible;
	max-width: var(--tl-layout-max);
	margin: 0 auto;
	padding: 0 1rem;
	min-height: 4.25rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
}

.tl-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--text-main);
	font-weight: 800;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}

.tl-logo:hover {
	color: var(--sky-400);
}

.tl-nav-desktop {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.tl-nav-desktop {
		display: flex;
	}
}

.tl-nav-link {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	transition: color 0.2s;
}

.tl-nav-link:hover {
	color: var(--sky-400);
}

/* Каталог: мегаменю */
.tl-has-mega {
	position: relative;
	padding: 1.35rem 0;
}

.tl-mega-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: none;
	border: none;
	color: var(--text-main);
	font: inherit;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	padding: 0;
}

.tl-mega-trigger:hover,
.tl-has-mega:hover .tl-mega-trigger {
	color: var(--sky-400);
}

.tl-mega {
	display: none;
	position: absolute;
	left: 50%;
	top: 100%;
	z-index: 110;
	transform: translateX(-50%);
	width: min(920px, 96vw);
	padding-top: 0.5rem;
}

.tl-has-mega:hover .tl-mega {
	display: block;
}

.tl-mega-inner {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	padding: 1.25rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(12px);
}

.tl-mega-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-color);
}

.tl-mega-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-main);
	margin: 0;
}

.tl-mega-badge {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sky-400);
	border: 1px solid rgba(56, 189, 248, 0.45);
	padding: 0.25rem 0.5rem;
	border-radius: 0.35rem;
	font-family: ui-monospace, monospace;
}

.tl-mega-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.65rem;
}

@media (max-width: 900px) {
	.tl-mega-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tl-mega-link {
	display: block;
	padding: 0.55rem 0.65rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
	color: var(--text-main);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tl-mega-link:hover {
	border-color: var(--sky-500);
	background: rgba(14, 165, 233, 0.12);
	color: var(--sky-400);
}

.tl-search {
	display: none;
	position: relative;
	justify-self: end;
}

@media (min-width: 1280px) {
	.tl-search {
		display: block;
	}
}

.tl-search input {
	width: 13rem;
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
	border-radius: 0.5rem;
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	font-size: 0.8125rem;
	outline: none;
	transition: border-color 0.2s;
}

.tl-search input:focus {
	border-color: var(--sky-500);
	box-shadow: 0 0 0 1px var(--sky-500);
}

.tl-search input::placeholder {
	color: var(--text-muted);
}

.tl-search button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 0.65rem;
	border: none;
	background: none;
	color: var(--text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
}

.tl-search button:hover {
	color: var(--sky-400);
}

.tl-search button svg {
	width: 1rem;
	height: 1rem;
}

.tl-menu-btn {
	display: flex;
	justify-self: end;
	background: none;
	border: none;
	color: var(--text-main);
	cursor: pointer;
	padding: 0.25rem;
}

.tl-menu-btn:hover {
	color: var(--sky-400);
}

@media (min-width: 1024px) {
	.tl-menu-btn {
		display: none;
	}
}

.tl-menu-btn svg {
	width: 1.75rem;
	height: 1.75rem;
}

.tl-mobile-panel {
	max-height: calc(100vh - 4.25rem);
	overflow-y: auto;
	border-bottom: 1px solid var(--border-color);
	background: rgba(2, 6, 23, 0.98);
	padding: 1rem;
}

.tl-mobile-panel.is-hidden {
	display: none;
}

@media (min-width: 1024px) {
	.tl-mobile-panel {
		display: none !important;
	}
}

.tl-mobile-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

@media (min-width: 480px) {
	.tl-mobile-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.tl-mobile-grid a {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
	color: var(--text-main);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
}

.tl-mobile-grid a:hover {
	border-color: var(--sky-500);
	color: var(--sky-400);
}

.tl-mobile-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.tl-mobile-actions a {
	text-align: center;
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--sky-500);
	color: var(--sky-400);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tl-mobile-actions a:hover {
	background: rgba(14, 165, 233, 0.15);
}

.tl-mobile-search input {
	width: 100%;
	padding: 0.65rem 2.25rem 0.65rem 0.75rem;
	border-radius: 0.5rem;
	background: var(--bg-input);
	border: 1px solid var(--border-color);
	color: var(--text-main);
	font-size: 0.875rem;
	outline: none;
}

.tl-mobile-search {
	position: relative;
}

.tl-mobile-search button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 0.75rem;
	border: none;
	background: none;
	color: var(--text-muted);
	cursor: pointer;
}

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

/* ——— Main / hero ——— */
.tl-main {
	max-width: var(--tl-layout-max);
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

.tl-main--narrow {
	max-width: 56rem;
}

.tl-hero {
	text-align: center;
	margin-bottom: 2.5rem;
	padding: 1.5rem 1rem 2rem;
	border-radius: 1.5rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	backdrop-filter: blur(12px);
}

.tl-hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	line-height: 1.15;
}

.tl-hero h1 span {
	color: var(--sky-500);
}

.tl-hero p {
	margin: 0 auto;
	max-width: 40rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.tl-hero-note {
	margin-top: 1rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	opacity: 0.9;
}

/* ——— Сетка карточек товаров ——— */
.tl-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.tl-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.tl-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1280px) {
	.tl-product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 1536px) {
	.tl-product-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

.tl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	backdrop-filter: blur(8px);
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tl-card:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, 0.45);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
}

.tl-card-media {
	position: relative;
	height: 16rem;
	overflow: hidden;
	box-sizing: border-box;
	padding: 0.45rem;
	background: #020617;
	border-bottom: 1px solid var(--border-color);
	/* внутренняя «рамка» вокруг фото — без светлых полос по бокам */
	box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.22);
	border-radius: 0.85rem 0.85rem 0 0;
}

@media (min-width: 640px) {
	.tl-card-media {
		height: 21rem;
	}
}

.tl-card-media img {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
	width: calc(100% - 0.9rem);
	height: calc(100% - 0.9rem);
	object-fit: cover;
	object-position: center;
	border-radius: 0.35rem;
	transition: transform 0.45s ease;
}

.tl-card:hover .tl-card-media img {
	transform: scale(1.04);
}

.tl-card-placeholder {
	position: absolute;
	top: 0.45rem;
	left: 0.45rem;
	width: calc(100% - 0.9rem);
	height: calc(100% - 0.9rem);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 800;
	color: var(--sky-400);
	background: #0f172a;
	border-radius: 0.35rem;
}

.tl-badge {
	position: absolute;
	right: 0.65rem;
	top: 0.65rem;
	z-index: 3;
	padding: 0.2rem 0.45rem;
	border-radius: 0.25rem;
	font-size: 0.625rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.tl-badge--ozon {
	background: var(--ozon);
}

.tl-badge--wb {
	background: var(--wb);
}

.tl-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1rem 1.1rem 1.15rem;
}

.tl-card-body h2,
.tl-card-body h3 {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 0.75rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.tl-card-body h2 a,
.tl-card-body h3 a {
	color: var(--text-main);
	text-decoration: none;
}

.tl-card-body h2 a:hover,
.tl-card-body h3 a:hover {
	color: var(--sky-400);
}

.tl-card-meta {
	margin-top: auto;
}

.tl-price-box {
	margin-bottom: 0.65rem;
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
}

.tl-price-box strong {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text-main);
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.tl-price-dot {
	color: var(--emerald-400);
	font-size: 0.65rem;
}

.tl-price-dot--hot {
	color: var(--rose-400);
	animation: tl-pulse-dot 1.2s ease-in-out infinite;
}

@keyframes tl-pulse-dot {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

.tl-checked {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-bottom: 0.65rem;
}

.tl-checked svg {
	width: 0.75rem;
	height: 0.75rem;
	flex-shrink: 0;
}

.tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.65rem 1rem;
	border-radius: 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.tl-btn--primary {
	background: var(--sky-600);
	color: #fff;
}

.tl-btn--primary:hover {
	background: var(--sky-500);
	transform: translateY(-1px);
}

.tl-btn--block {
	width: 100%;
}

.tl-btn--inline {
	width: auto;
	min-width: 10rem;
}

.tl-btn--lg {
	padding: 0.85rem 1.5rem;
	font-size: 0.9rem;
	border-radius: 0.75rem;
}

/* Пагинация */
.tl-pagination {
	margin-top: 3rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 768px) {
	.tl-pagination {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.tl-pagination:has(> :only-child) {
	justify-content: center;
}

.tl-pager-slot {
	flex: 1;
	min-width: 0;
}

.tl-pager-slot a {
	display: block;
	width: 100%;
	text-align: center;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
	color: var(--text-main);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.tl-pager-slot a:hover {
	border-color: var(--sky-500);
	background: rgba(14, 165, 233, 0.12);
	color: var(--sky-400);
}

/* Архив / заголовки разделов */
.tl-archive-head {
	margin-bottom: 2rem;
	padding-left: 1rem;
	border-left: 3px solid var(--sky-500);
}

.tl-archive-head h1 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tl-archive-desc {
	margin-top: 0.5rem;
	color: var(--text-muted);
	font-size: 1rem;
	max-width: 48rem;
}

.tl-empty {
	border-radius: 1rem;
	border: 1px dashed var(--border-color);
	background: var(--bg-input);
	padding: 2rem 1.5rem;
	text-align: center;
}

.tl-empty h2 {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
}

.tl-empty p {
	margin: 0;
	color: var(--text-muted);
}

.tl-form-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 36rem;
	margin: 1.5rem auto 0;
}

@media (min-width: 640px) {
	.tl-form-row {
		flex-direction: row;
		align-items: stretch;
	}
}

.tl-form-row input[type="search"] {
	flex: 1;
	min-height: 3rem;
	padding: 0.65rem 1rem;
	border-radius: 0.65rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
	color: var(--text-main);
	font-size: 1rem;
	outline: none;
}

.tl-form-row input[type="search"]:focus {
	border-color: var(--sky-500);
	box-shadow: 0 0 0 1px var(--sky-500);
}

.tl-form-row button[type="submit"] {
	min-height: 3rem;
	padding: 0 1.25rem;
	border-radius: 0.65rem;
	border: none;
	background: var(--sky-600);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	white-space: nowrap;
}

.tl-form-row button[type="submit"]:hover {
	background: var(--sky-500);
}

/* Поиск: заголовок */
.tl-search-title {
	margin: 0 0 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 800;
}

.tl-search-title em,
.tl-search-title span {
	font-style: normal;
	color: var(--sky-400);
}

/* Single */
.tl-single-grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.tl-single-grid {
		grid-template-columns: 5fr 7fr;
		align-items: start;
	}
}

.tl-panel {
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 0.75rem;
}

.tl-panel--tight {
	padding: 1rem;
}

.tl-product-figure {
	position: relative;
	border-radius: 0.65rem;
	overflow: hidden;
	border: 1px solid var(--border-color);
	background: #0f172a;
}

.tl-product-figure .tl-badge {
	position: absolute;
}

.tl-product-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.tl-dossier {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
}

.tl-dossier h3 {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-main);
}

.tl-dossier h3 svg {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--sky-400);
}

.tl-dossier p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.tl-tags {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.tl-tags span {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.tl-tags-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tl-tags-inner a {
	font-size: 0.7rem;
	padding: 0.25rem 0.45rem;
	border-radius: 0.35rem;
	border: 1px solid var(--border-color);
	background: var(--bg-base);
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
}

.tl-tags-inner a:hover {
	border-color: var(--sky-500);
	color: var(--sky-400);
}

.tl-cat-pills {
	margin-bottom: 1rem;
}

.tl-cat-pills a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.25rem 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 0.35rem;
	border: 1px solid var(--border-color);
	color: var(--text-muted);
	text-decoration: none;
}

.tl-cat-pills a:hover {
	border-color: var(--sky-500);
	color: var(--text-main);
}

.tl-single-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.tl-buy-box {
	border-radius: 1rem;
	border: 1px solid rgba(56, 189, 248, 0.35);
	background: var(--bg-card);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.tl-buy-row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
	.tl-buy-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.tl-buy-price {
	font-size: 2rem;
	font-weight: 800;
	color: var(--text-main);
}

.tl-info-blocks {
	display: grid;
	gap: 1rem;
}

.tl-info-block {
	border-radius: 0.65rem;
	border: 1px solid var(--border-color);
	background: var(--bg-input);
	padding: 1rem;
	border-left: 3px solid var(--sky-500);
}

.tl-info-block--accent {
	border-left-color: var(--rose-400);
}

.tl-info-block label,
.tl-info-block .tl-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sky-400);
	margin-bottom: 0.35rem;
}

.tl-info-block--accent .tl-label {
	color: var(--rose-400);
}

.tl-section-title {
	margin: 3rem 0 1.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Footer */
.tl-footer {
	border-top: 1px solid var(--border-color);
	background: rgba(2, 6, 23, 0.95);
	padding: 2.5rem 1rem 2rem;
	margin-top: 2rem;
}

.tl-footer-inner {
	max-width: var(--tl-layout-max);
	margin: 0 auto;
	display: grid;
	gap: 2rem;
}

@media (min-width: 768px) {
	.tl-footer-inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tl-footer-brand {
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.tl-footer p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
}

.tl-footer h2 {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
}

.tl-footer a.tl-social {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.45rem 0.85rem;
	border-radius: 0.5rem;
	background: var(--sky-600);
	color: #fff;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
}

.tl-footer a.tl-social:hover {
	background: var(--sky-500);
}

.tl-footer-legal {
	font-size: 0.75rem;
	color: var(--text-muted);
	line-height: 1.55;
}

.tl-footer-legal a {
	color: var(--text-muted);
	text-decoration: none;
}

.tl-footer-legal a:hover {
	color: var(--sky-400);
	text-decoration: underline;
}

.tl-footer-copy {
	max-width: var(--tl-layout-max);
	margin: 2rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

/* Статьи / страницы контента */
.tl-article-shell {
	max-width: 56rem;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

.tl-article-title {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-color);
}

.tl-article-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

.tl-prose {
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
	.tl-prose {
		padding: 2rem 2.25rem;
	}
}

.tl-prose h2 {
	color: var(--text-main);
	font-size: 1.35rem;
	font-weight: 800;
	margin: 2.25rem 0 1rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--border-color);
}

.tl-prose h2:first-child {
	margin-top: 0;
}

.tl-prose p {
	color: var(--text-muted);
	line-height: 1.75;
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
}

.tl-prose b,
.tl-prose strong {
	color: var(--text-main);
	font-weight: 700;
}

/* Контент товара (single) */
.toplaba-content p {
	margin-bottom: 1.25rem;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.toplaba-content h2,
.toplaba-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: var(--text-main);
	font-weight: 800;
	font-size: 1.15rem;
}

.toplaba-content ul,
.toplaba-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.35rem;
	color: var(--text-muted);
}

.toplaba-content a {
	color: var(--sky-400);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.toplaba-content a:hover {
	border-bottom-color: var(--sky-400);
}

/* Страница page.php content-area */
.content-area h2 {
	color: var(--text-main);
	font-size: 1.25rem;
	font-weight: 800;
	margin: 2rem 0 1rem;
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--border-color);
}

.content-area h2:first-child {
	margin-top: 0;
}

.content-area p {
	color: var(--text-muted);
	line-height: 1.75;
	margin-bottom: 1.1rem;
	font-size: 1.05rem;
}

.content-area ul {
	list-style-type: square;
	color: var(--sky-400);
	margin-left: 1.25rem;
	margin-bottom: 1.25rem;
}

.content-area li {
	color: var(--text-muted);
	margin-bottom: 0.35rem;
	font-size: 1.05rem;
	line-height: 1.55;
}

.content-area strong,
.content-area b {
	color: var(--text-main);
	font-weight: 700;
}

.content-area a {
	color: var(--sky-400);
	text-decoration: none;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.content-area a:hover {
	color: var(--text-main);
	border-bottom-color: var(--text-main);
}

/* Шорткоды: affiliate_card, radar_item */
.tl-sc-card {
	margin: 1.35rem 0;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	backdrop-filter: blur(8px);
	overflow: hidden;
}

.tl-sc-card-inner {
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	.tl-sc-card-inner {
		flex-direction: row;
		align-items: stretch;
	}
}

.tl-sc-img-wrap {
	width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	background: #fff;
	padding: 0.85rem;
	border-bottom: 1px solid var(--border-color);
	min-height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.tl-sc-img-wrap {
		width: 220px;
		border-bottom: none;
		border-right: 1px solid var(--border-color);
	}
}

.tl-sc-img-wrap img {
	max-width: 100%;
	max-height: 220px;
	object-fit: contain;
}

.tl-sc-body {
	flex: 1;
	padding: 1rem 1.15rem;
	min-width: 0;
}

.tl-sc-badge {
	display: inline-block;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	color: #fff;
}

.tl-sc-badge--ozon {
	background: var(--ozon);
}

.tl-sc-badge--wb {
	background: var(--wb);
}

.tl-sc-title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--text-main);
}

.tl-sc-row {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
	.tl-sc-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.tl-sc-price {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--text-main);
}

.tl-sc-price-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.tl-sc-foot {
	display: grid;
	gap: 0.5rem;
	padding: 1rem;
	border-top: 1px solid var(--border-color);
	background: var(--bg-input);
}

.tl-radar-item {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border-radius: 1rem;
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	transition: border-color 0.2s;
}

@media (min-width: 768px) {
	.tl-radar-item {
		flex-direction: row;
		align-items: flex-start;
	}
}

.tl-radar-item:hover {
	border-color: rgba(56, 189, 248, 0.4);
}

.tl-radar-item-img {
	flex-shrink: 0;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	background: #fff;
	padding: 1rem;
	border-radius: 0.65rem;
	border: 1px solid var(--border-color);
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-radar-item-img img {
	max-width: 100%;
	max-height: 240px;
	object-fit: contain;
}

.tl-radar-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tl-radar-item-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--text-main);
	text-decoration: none;
	border: none !important;
	padding: 0 !important;
}

.tl-radar-item-title:hover {
	color: var(--sky-400);
}

.tl-radar-item-review {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.65;
	border-left: 2px solid var(--rose-400);
	padding-left: 0.75rem;
}

.tl-radar-item-bar {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tl-radar-item-legal {
	font-size: 0.6rem;
	color: var(--text-muted);
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.35;
	max-width: 16rem;
	text-align: right;
}
