/* =========================================================================
   High-Tech Single Post — dark style matched with the "Robotics" pages
   Enqueue this from functions.php. No inline styles in the template.
   ========================================================================= */

:root {
	--ht-primary: #00d4ff;
	--ht-primary-dark: #0099cc;
	--ht-secondary: #7c3aed;
	--ht-accent: #00ff88;
	--ht-bg-dark: #0a0e17;
	--ht-bg-card: #111827;
	--ht-bg-card-hover: #1a2234;
	--ht-text-primary: #f0f4f8;
	--ht-text-secondary: #94a3b8;
	--ht-border: #1e293b;
	--ht-glow: rgba(0, 212, 255, 0.3);
	--ht-radius: 16px;
}

/* ------------------------------ Base shell ------------------------------ */
.ht-single {
	position: relative;
	font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
	background: var(--ht-bg-dark);
	color: var(--ht-text-primary);
	line-height: 1.7;
	padding: 16px 0 48px;
}

.ht-single * {
	box-sizing: border-box;
}

/* Animated background: glow + grid */
.ht-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 12% 18%, rgba(0, 212, 255, 0.08) 0%, transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(124, 58, 237, 0.08) 0%, transparent 42%);
}

.ht-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
}

.ht-article {
	position: relative;
	z-index: 1;
}

.ht-shell {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ------------------------------ Breadcrumbs ----------------------------- */
.ht-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--ht-text-secondary);
	padding: 16px 0 12px;
}

.ht-breadcrumbs a {
	color: var(--ht-text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ht-breadcrumbs a:hover {
	color: var(--ht-primary);
}

.ht-breadcrumbs .ht-sep {
	color: var(--ht-border);
}

.ht-breadcrumbs .ht-current {
	color: var(--ht-text-primary);
	opacity: 0.8;
}

/* ------------------------------ Toolbar / lang -------------------------- */
.ht-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 18px;
}

.ht-lang {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--ht-border);
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.6);
	backdrop-filter: blur(6px);
}

.ht-lang-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ht-text-secondary);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.ht-lang-btn:hover {
	color: var(--ht-text-primary);
}

.ht-lang-btn.is-active {
	color: var(--ht-bg-dark);
	background: var(--ht-primary);
}

.ht-lang-divider {
	width: 1px;
	height: 14px;
	background: var(--ht-border);
}

/* --------------------------------- Hero --------------------------------- */
.ht-hero {
	position: relative;
	background: rgba(17, 24, 39, 0.7);
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	padding: 28px 20px 24px;
	overflow: hidden;
	backdrop-filter: blur(8px);
}

.ht-hero-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ht-primary), var(--ht-secondary), var(--ht-accent));
	background-size: 200% 100%;
	animation: htFlow 6s linear infinite;
}

@keyframes htFlow {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

.ht-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ht-primary);
	text-decoration: none;
	padding: 6px 12px;
	border: 1px solid rgba(0, 212, 255, 0.3);
	border-radius: 999px;
	background: rgba(0, 212, 255, 0.06);
	margin-bottom: 16px;
}

.ht-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ht-accent);
	box-shadow: 0 0 8px var(--ht-accent);
	animation: htPulse 1.6s ease-in-out infinite;
}

@keyframes htPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.7); }
}

.ht-title {
	font-family: "Orbitron", "JetBrains Mono", sans-serif;
	font-weight: 800;
	font-size: clamp(1.6rem, 5vw, 2.6rem);
	line-height: 1.2;
	letter-spacing: 0.01em;
	margin: 0 0 18px;
	text-wrap: balance;
	background: linear-gradient(120deg, #fff 0%, var(--ht-primary) 60%, var(--ht-secondary) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.ht-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--ht-text-secondary);
	margin-bottom: 20px;
}

.ht-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ht-meta-item svg {
	color: var(--ht-primary);
	opacity: 0.8;
}

.ht-meta-item a {
	color: var(--ht-text-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ht-meta-item a:hover {
	color: var(--ht-primary);
}

/* ---------------------------- Listen (subtle) --------------------------- */
.ht-tts {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--ht-text-secondary);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--ht-border);
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ht-tts:hover {
	color: var(--ht-primary);
	border-color: rgba(0, 212, 255, 0.4);
	background: rgba(0, 212, 255, 0.05);
}

.ht-tts-icon {
	display: inline-flex;
}

/* Equalizer shown only while playing */
.ht-tts-eq {
	display: none;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
}

.ht-tts-eq i {
	display: block;
	width: 2px;
	height: 100%;
	background: var(--ht-primary);
	border-radius: 1px;
	transform-origin: bottom;
	animation: htEq 0.9s ease-in-out infinite;
}

.ht-tts-eq i:nth-child(2) { animation-delay: 0.15s; }
.ht-tts-eq i:nth-child(3) { animation-delay: 0.3s; }
.ht-tts-eq i:nth-child(4) { animation-delay: 0.45s; }

@keyframes htEq {
	0%, 100% { transform: scaleY(0.3); }
	50% { transform: scaleY(1); }
}

.ht-tts.is-playing {
	color: var(--ht-primary);
	border-color: rgba(0, 212, 255, 0.4);
}

.ht-tts.is-playing .ht-tts-icon {
	display: none;
}

.ht-tts.is-playing .ht-tts-eq {
	display: inline-flex;
}

/* ------------------------------- Figure --------------------------------- */
.ht-figure {
	position: relative;
	margin: 20px 0 0;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	overflow: hidden;
	background: var(--ht-bg-card-hover);
}

.ht-figure-img,
.ht-figure img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.ht-figcaption {
	font-size: 12px;
	color: var(--ht-text-secondary);
	padding: 10px 14px;
	border-top: 1px solid var(--ht-border);
	background: rgba(10, 14, 23, 0.6);
}

/* ------------------------------- Layout --------------------------------- */
.ht-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	margin-top: 28px;
}

/* ------------------------------ Content --------------------------------- */
.ht-content {
	font-size: 16px;
	color: #d7dee8;
	min-width: 0;
}

.ht-content > * + * {
	margin-top: 1.1em;
}

.ht-content h2,
.ht-content h3,
.ht-content h4 {
	font-family: "Orbitron", "JetBrains Mono", sans-serif;
	color: var(--ht-text-primary);
	line-height: 1.3;
	margin-top: 1.8em;
}

.ht-content h2 { font-size: 1.5rem; }
.ht-content h3 { font-size: 1.25rem; }

.ht-content h2::before {
	content: "//";
	color: var(--ht-primary);
	margin-right: 10px;
	opacity: 0.7;
}

.ht-content a {
	color: var(--ht-primary);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 212, 255, 0.3);
	transition: border-color 0.2s ease;
}

.ht-content a:hover {
	border-color: var(--ht-primary);
}

.ht-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--ht-radius);
	border: 1px solid var(--ht-border);
}

.ht-content blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	border-left: 3px solid var(--ht-primary);
	background: rgba(0, 212, 255, 0.05);
	border-radius: 0 var(--ht-radius) var(--ht-radius) 0;
	color: var(--ht-text-primary);
	font-style: italic;
}

.ht-content ul,
.ht-content ol {
	padding-left: 1.4em;
}

.ht-content li + li {
	margin-top: 0.5em;
}

.ht-content code {
	font-family: inherit;
	background: rgba(0, 212, 255, 0.08);
	border: 1px solid var(--ht-border);
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 0.9em;
	color: var(--ht-accent);
}

.ht-content pre {
	background: var(--ht-bg-card);
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	padding: 16px;
	overflow-x: auto;
}

.ht-content pre code {
	border: 0;
	background: transparent;
	padding: 0;
}

.ht-pagelinks {
	margin-top: 1.6em;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--ht-text-secondary);
}

.ht-pagelinks a {
	color: var(--ht-primary);
	border: 1px solid var(--ht-border);
	border-radius: 8px;
	padding: 4px 10px;
	text-decoration: none;
}

/* -------------------------------- Tags ---------------------------------- */
.ht-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--ht-border);
}

.ht-tag {
	font-size: 12px;
	color: var(--ht-text-secondary);
	text-decoration: none;
	padding: 5px 12px;
	border: 1px solid var(--ht-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ht-tag:hover {
	color: var(--ht-primary);
	border-color: rgba(0, 212, 255, 0.4);
}

/* ------------------------------- Sidebar -------------------------------- */
.ht-sidebar {
	min-width: 0;
}

.ht-sidebar .widget {
	background: rgba(17, 24, 39, 0.7);
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	padding: 18px;
	margin-bottom: 20px;
}

.ht-sidebar .widget-title {
	font-family: "Orbitron", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ht-text-primary);
	margin-bottom: 12px;
}

.ht-sidebar a {
	color: var(--ht-text-secondary);
	text-decoration: none;
}

.ht-sidebar a:hover {
	color: var(--ht-primary);
}

/* ------------------------------- Prev/Next ------------------------------ */
.ht-adjacent {
	max-width: 1180px;
	margin: 40px auto 0;
	padding: 0 16px;
}

.ht-adjacent-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.ht-adjacent-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background: rgba(17, 24, 39, 0.7);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ht-adjacent-link.is-empty {
	display: none;
}

.ht-adjacent-link:hover {
	border-color: rgba(0, 212, 255, 0.4);
	transform: translateY(-2px);
}

.ht-adjacent-dir {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ht-primary);
}

.ht-next {
	text-align: right;
}

.ht-adjacent-title {
	font-size: 14px;
	color: var(--ht-text-primary);
	line-height: 1.4;
}

/* ------------------------------- Related -------------------------------- */
.ht-related,
.ht-comments {
	position: relative;
	z-index: 1;
	margin-top: 48px;
}

.ht-section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: "Orbitron", sans-serif;
	font-size: clamp(1.2rem, 4vw, 1.6rem);
	font-weight: 700;
	color: var(--ht-text-primary);
	margin-bottom: 24px;
}

.ht-section-line {
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--ht-primary), var(--ht-secondary));
}

.ht-related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.ht-related-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	overflow: hidden;
	background: rgba(17, 24, 39, 0.7);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ht-related-card:hover {
	border-color: rgba(0, 212, 255, 0.4);
	transform: translateY(-4px);
}

.ht-related-thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--ht-bg-card-hover);
	overflow: hidden;
}

.ht-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ht-related-card:hover .ht-related-thumb img {
	transform: scale(1.06);
}

.ht-related-noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ht-border);
}

.ht-related-body {
	padding: 14px 16px 18px;
}

.ht-related-cat {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ht-primary);
}

.ht-related-name {
	font-family: "Orbitron", sans-serif;
	font-size: 15px;
	line-height: 1.35;
	color: var(--ht-text-primary);
	margin: 8px 0 10px;
}

.ht-related-date {
	font-size: 12px;
	color: var(--ht-text-secondary);
}

/* ------------------------------- Comments ------------------------------- */
.ht-comments .comments-title,
.ht-comments .comment-reply-title {
	font-family: "Orbitron", sans-serif;
	font-size: 1.3rem;
	color: var(--ht-text-primary);
	margin-bottom: 20px;
}

.ht-comments .comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.ht-comments .comment-list li {
	padding: 16px 18px;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background: rgba(17, 24, 39, 0.7);
	margin-bottom: 14px;
}

.ht-comments .comment-author {
	font-size: 14px;
	color: var(--ht-text-primary);
}

.ht-comments .comment-metadata,
.ht-comments .comment-metadata a {
	font-size: 12px;
	color: var(--ht-text-secondary);
	text-decoration: none;
}

.ht-comments .comment-content {
	font-size: 14px;
	color: #d7dee8;
	margin-top: 8px;
}

.ht-comments input[type="text"],
.ht-comments input[type="email"],
.ht-comments input[type="url"],
.ht-comments textarea {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	color: var(--ht-text-primary);
	background: var(--ht-bg-card);
	border: 1px solid var(--ht-border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 6px;
	transition: border-color 0.2s ease;
}

.ht-comments input:focus,
.ht-comments textarea:focus {
	outline: none;
	border-color: var(--ht-primary);
}

.ht-comments .comment-form > p {
	margin-bottom: 14px;
}

.ht-comments .form-submit input[type="submit"],
.ht-comments .submit {
	font-family: "Orbitron", sans-serif;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ht-bg-dark);
	background: var(--ht-primary);
	border: 0;
	border-radius: 999px;
	padding: 12px 26px;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ht-comments .form-submit input[type="submit"]:hover,
.ht-comments .submit:hover {
	background: var(--ht-primary-dark);
	box-shadow: 0 0 20px var(--ht-glow);
}

/* ------------------------------ Responsive ------------------------------ */
@media (min-width: 768px) {
	.ht-single {
		padding-top: 24px;
	}

	.ht-hero {
		padding: 40px 36px 32px;
	}

	.ht-adjacent-inner {
		grid-template-columns: 1fr 1fr;
	}

	.ht-related-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ht-layout.has-sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ht-hero-top,
	.ht-badge-dot,
	.ht-tts-eq i {
		animation: none;
	}

	.ht-related-card:hover,
	.ht-adjacent-link:hover {
		transform: none;
	}

	.ip-ticker__track {
		animation: none;
	}
}

/* =========================================================================
   ИдеиPRO — сайдбар (Telegram + рубрики + место под рекламу)
   ========================================================================= */
.ip-aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-self: start;
	position: sticky;
	top: 88px;
}

/* --- Telegram-блок --- */
.ip-tg {
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(0, 212, 255, 0.08), transparent 60%),
		rgba(17, 24, 39, 0.7);
	padding: 20px 18px;
	text-align: center;
}

.ip-tg__title {
	font-family: "Orbitron", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ht-text-primary);
	margin: 0 0 14px;
}

.ip-tg__qr {
	display: block;
	width: 190px;
	max-width: 80%;
	margin: 0 auto 14px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--ht-border);
	box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ip-tg__qr:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 32px rgba(0, 212, 255, 0.3);
}

.ip-tg__qr img {
	display: block;
	width: 100%;
	height: auto;
}

.ip-tg__handle {
	display: inline-block;
	font-family: "JetBrains Mono", monospace;
	font-size: 17px;
	font-weight: 700;
	color: var(--ht-primary);
	text-decoration: none;
	margin-bottom: 8px;
}

.ip-tg__handle:hover {
	text-shadow: 0 0 12px var(--ht-glow);
}

.ip-tg__note {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ht-text-secondary);
}

/* --- Рубрики с количеством постов --- */
.ip-cats {
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background: rgba(17, 24, 39, 0.7);
	padding: 18px;
}

.ip-cats__title {
	font-family: "Orbitron", sans-serif;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ht-text-primary);
	margin: 0 0 12px;
}

.ip-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ip-cats__item + .ip-cats__item {
	margin-top: 4px;
}

.ip-cats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--ht-text-secondary);
	border: 1px solid transparent;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ip-cats__link:hover {
	background: rgba(0, 212, 255, 0.06);
	border-color: rgba(0, 212, 255, 0.3);
	color: var(--ht-text-primary);
}

.ip-cats__name {
	font-size: 14px;
}

.ip-cats__count {
	flex: 0 0 auto;
	min-width: 28px;
	text-align: center;
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	font-weight: 700;
	color: var(--ht-primary);
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.25);
	border-radius: 999px;
	padding: 2px 8px;
}

/* --- Место под рекламу --- */
.ip-adslot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	border: 1px dashed var(--ht-border);
	border-radius: var(--ht-radius);
	background: rgba(17, 24, 39, 0.4);
}

.ip-adslot__label {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(148, 163, 184, 0.5);
}

/* =========================================================================
   Бегущая строка с анонсами
   ========================================================================= */
.ip-ticker {
	position: relative;
	display: flex;
	align-items: stretch;
	max-width: 1180px;
	margin: 40px auto 0;
	border-top: 1px solid var(--ht-border);
	border-bottom: 1px solid var(--ht-border);
	background: rgba(10, 14, 23, 0.6);
	overflow: hidden;
}

.ip-ticker__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0 18px;
	font-family: "Orbitron", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #04222a;
	background: linear-gradient(135deg, var(--ht-primary), var(--ht-accent));
	z-index: 2;
}

.ip-ticker__viewport {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
}

.ip-ticker__viewport::before,
.ip-ticker__viewport::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 48px;
	z-index: 1;
	pointer-events: none;
}

.ip-ticker__viewport::before {
	left: 0;
	background: linear-gradient(90deg, rgba(10, 14, 23, 0.95), transparent);
}

.ip-ticker__viewport::after {
	right: 0;
	background: linear-gradient(270deg, rgba(10, 14, 23, 0.95), transparent);
}

.ip-ticker__track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 12px 0;
	animation: ip-ticker-scroll 48s linear infinite;
	will-change: transform;
}

.ip-ticker:hover .ip-ticker__track {
	animation-play-state: paused;
}

.ip-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 22px;
	text-decoration: none;
	border-right: 1px solid var(--ht-border);
}

.ip-ticker__cat {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ht-primary);
}

.ip-ticker__text {
	font-size: 14px;
	color: var(--ht-text-secondary);
	transition: color 0.18s ease;
}

.ip-ticker__item:hover .ip-ticker__text {
	color: var(--ht-text-primary);
}

@keyframes ip-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* =========================================================================
   Блок подписки на рассылку
   ========================================================================= */
.ip-news {
	max-width: 860px;
	margin: 48px auto 0;
	padding: 0 16px;
}

.ip-news__inner {
	position: relative;
	text-align: center;
	padding: 36px 24px;
	border: 1px solid var(--ht-border);
	border-radius: var(--ht-radius);
	background:
		radial-gradient(130% 100% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 60%),
		rgba(17, 24, 39, 0.7);
	overflow: hidden;
}

.ip-news__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 14px;
	color: var(--ht-primary);
	background: rgba(0, 212, 255, 0.08);
	border: 1px solid rgba(0, 212, 255, 0.25);
}

.ip-news__title {
	font-family: "Orbitron", sans-serif;
	font-size: 22px;
	color: var(--ht-text-primary);
	margin: 0 0 8px;
}

.ip-news__lead {
	max-width: 480px;
	margin: 0 auto 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ht-text-secondary);
}

.ip-news__msg {
	max-width: 480px;
	margin: 0 auto 16px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.ip-news__msg--ok {
	color: #062;
	background: rgba(0, 255, 136, 0.14);
	border: 1px solid rgba(0, 255, 136, 0.4);
	color: var(--ht-accent);
}

.ip-news__msg--err {
	color: #fca5a5;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.4);
}

.ip-news__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 480px;
	margin: 0 auto;
}

.ip-news__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.ip-news__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 13px 16px;
	font-family: "JetBrains Mono", monospace;
	font-size: 15px;
	color: var(--ht-text-primary);
	background: rgba(10, 14, 23, 0.8);
	border: 1px solid var(--ht-border);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ip-news__input:focus {
	border-color: var(--ht-primary);
	box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.ip-news__input::placeholder {
	color: rgba(148, 163, 184, 0.6);
}

.ip-news__btn {
	flex: 0 0 auto;
	padding: 13px 24px;
	font-family: "Orbitron", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #04222a;
	background: linear-gradient(135deg, var(--ht-primary), var(--ht-accent));
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ip-news__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.ip-news__fine {
	margin: 16px 0 0;
	font-size: 12px;
	color: rgba(148, 163, 184, 0.6);
}

@media (max-width: 600px) {
	.ip-ticker__badge { padding: 0 12px; font-size: 11px; }
	.ip-news__inner { padding: 28px 18px; }
	.ip-news__title { font-size: 19px; }
	.ip-news__btn { flex: 1 1 100%; }
}
