/* 4X5FC Theme — radio-tech dark baseline */

:root {
	--x5fc-bg: #0b0f14;
	--x5fc-surface: #121a28;
	--x5fc-surface2: #141c2a;
	--x5fc-border: rgba(255, 255, 255, 0.08);
	--x5fc-text: #e8ecf4;
	--x5fc-muted: #9db0c8;
	--x5fc-accent: #7ec8ea;
	--x5fc-accent-hi: #c5ebff;
	--x5fc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body.x5fc-theme {
	margin: 0;
	min-height: 100vh;
	font-family: var(--x5fc-font);
	background: var(--x5fc-bg);
	color: var(--x5fc-text);
	line-height: 1.55;
}

.x5fc-skip-link {
	position: absolute;
	left: -9999px;
	z-index: 99999;
	padding: 0.5rem 1rem;
	background: var(--x5fc-accent);
	color: #0b0f14;
}

.x5fc-skip-link:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* Header */
.x5fc-site-header {
	border-bottom: 1px solid var(--x5fc-border);
	background: linear-gradient(180deg, #0f1520 0%, #0b0f14 100%);
}

.x5fc-site-header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.x5fc-brand__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.x5fc-brand__call {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #f4f7fc;
}

.x5fc-brand__tag {
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8fa3b8;
	font-weight: 600;
}

.x5fc-nav-primary .x5fc-menu,
.x5fc-nav-footer .x5fc-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
}

.x5fc-nav-primary .x5fc-menu a,
.x5fc-nav-footer .x5fc-menu a {
	color: var(--x5fc-accent);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(126, 200, 234, 0.35);
}

.x5fc-nav-primary .x5fc-menu a:hover,
.x5fc-nav-footer .x5fc-menu a:hover {
	color: var(--x5fc-accent-hi);
	border-bottom-color: var(--x5fc-accent-hi);
}

.x5fc-menu--footer a {
	font-size: 12px;
}

/* Main shell */
.x5fc-site-main {
	min-height: 40vh;
}

.x5fc-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 16px 48px;
}

/* Prose (страницы / посты) */
.x5fc-prose .x5fc-page-title {
	margin: 0 0 12px;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
	color: #f4f7fc;
}

.x5fc-prose .x5fc-meta {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--x5fc-muted);
}

.x5fc-prose .x5fc-entry-content,
.x5fc-prose .x5fc-entry-content .x5fc-article {
	font-size: 15px;
	color: #c5d0e0;
}

.x5fc-prose .x5fc-entry-content a {
	color: var(--x5fc-accent);
}

.x5fc-prose .x5fc-entry-content a:hover {
	color: var(--x5fc-accent-hi);
}

.x5fc-prose .x5fc-entry-content h2,
.x5fc-prose .x5fc-entry-content h3 {
	color: #dbe6f2;
	margin-top: 1.4em;
}

.x5fc-archive-desc {
	font-size: 14px;
	color: var(--x5fc-muted);
	margin-top: 8px;
}

/* Excerpts */
.x5fc-excerpt {
	padding: 16px 0;
	border-bottom: 1px solid var(--x5fc-border);
}

.x5fc-excerpt__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.x5fc-excerpt__title a {
	color: #f4f7fc;
	text-decoration: none;
}

.x5fc-excerpt__title a:hover {
	color: var(--x5fc-accent);
}

.x5fc-excerpt__meta {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--x5fc-muted);
}

.x5fc-excerpt__summary {
	font-size: 14px;
	color: #a9b8ca;
}

.x5fc-excerpt__more {
	margin: 10px 0 0;
	font-size: 13px;
}

.x5fc-excerpt__more a {
	color: var(--x5fc-accent);
}

.x5fc-none {
	padding: 24px 0;
	color: var(--x5fc-muted);
}

/* Pagination */
.navigation.pagination {
	margin-top: 24px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.navigation.pagination a,
.navigation.pagination span {
	padding: 6px 12px;
	border: 1px solid var(--x5fc-border);
	border-radius: 6px;
	color: var(--x5fc-accent);
	text-decoration: none;
	font-size: 13px;
}

.navigation.pagination span.current {
	background: var(--x5fc-surface);
	color: #f4f7fc;
}

/* Footer */
.x5fc-site-footer {
	border-top: 1px solid var(--x5fc-border);
	background: #080b10;
	margin-top: auto;
}

.x5fc-site-footer__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: var(--x5fc-muted);
}

.x5fc-site-footer__copy strong {
	color: #f4f7fc;
}

.x5fc-site-footer__year {
	margin-left: 8px;
	opacity: 0.85;
}

/* --- Front page (.x5fc-v2) --- */
.x5fc-v2 {
	--x5fc-hero-img: linear-gradient(#0a0e16, #0a0e16);
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 14px 40px;
	font-family: var(--x5fc-font);
	color: #e8ecf4;
	line-height: 1.55;
	background: transparent;
}

.x5fc-v2 a {
	color: var(--x5fc-accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(126, 200, 234, 0.35);
}

.x5fc-v2 a:hover {
	color: var(--x5fc-accent-hi);
	border-bottom-color: var(--x5fc-accent-hi);
}

.x5fc-v2 .x5fc-en {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8fa3b8;
	font-weight: 700;
}

.x5fc-v2 .x5fc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 0;
	min-height: 280px;
	max-height: 400px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 18px;
	background: #0f1520;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.x5fc-v2 .x5fc-hero-text {
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: linear-gradient(105deg, #121a28f2 0%, #121a28d9 55%, #121a2880 100%);
}

.x5fc-v2 .x5fc-hero-kicker {
	margin: 0 0 10px;
	color: #9db0c8;
	font-size: 12px;
}

.x5fc-v2 .x5fc-hero h1 {
	margin: 0;
	font-size: clamp(30px, 4.2vw, 44px);
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #f4f7fc;
}

.x5fc-v2 .x5fc-hero-lead {
	margin: 12px 0 0;
	font-size: 15px;
	color: #c5d0e0;
	max-width: 34rem;
}

.x5fc-v2 .x5fc-hero-side {
	background-color: #0a0e16;
	background-image: linear-gradient(
			115deg,
			rgba(10, 14, 22, 0.25) 0%,
			rgba(10, 14, 22, 0.75) 35%,
			rgba(10, 14, 22, 0.92) 100%
		),
		var(--x5fc-hero-img);
	background-size: cover;
	background-position: 65% center;
	min-height: 220px;
}

.x5fc-v2 .x5fc-qa {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.x5fc-v2 .x5fc-qa a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 12px;
	border-radius: 8px;
	border: 1px solid rgba(126, 200, 234, 0.28);
	background: linear-gradient(180deg, #182233 0%, #141c2a 100%);
	color: #d8ecfb;
	text-decoration: none;
	border-bottom: none;
	min-height: 92px;
}

.x5fc-v2 .x5fc-qa a:hover {
	border-color: #9bdfff;
	background: linear-gradient(180deg, #1c2a3d 0%, #172033 100%);
	color: #fff;
}

.x5fc-v2 .x5fc-qa .t {
	font-size: 11px;
	color: #8faec4;
}

.x5fc-v2 .x5fc-qa .b {
	font-size: 15px;
	font-weight: 700;
}

.x5fc-v2 .x5fc-qa .s {
	font-size: 12px;
	color: #a9b8ca;
}

.x5fc-v2 .x5fc-st-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 6px 0 10px;
}

.x5fc-v2 .x5fc-st-head h2 {
	margin: 0;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: #dbe6f2;
}

.x5fc-v2 .x5fc-st-clock {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 13px;
	color: #9db0c8;
}

.x5fc-v2 .x5fc-st-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.x5fc-v2 .x5fc-st {
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: #141c2a;
}

.x5fc-v2 .x5fc-st h3 {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: #9db0c8;
}

.x5fc-v2 .x5fc-st .st {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
}

.x5fc-v2 .x5fc-st .st.y {
	color: #e0c36a;
}

.x5fc-v2 .x5fc-st .st.g {
	color: #6fe0a6;
}

.x5fc-v2 .x5fc-st .st.b {
	color: #7ec8ea;
}

.x5fc-v2 .x5fc-st .st.m {
	color: #aabccf;
}

.x5fc-v2 .x5fc-st p {
	margin: 8px 0 0;
	font-size: 12px;
	color: #9aa8bc;
	line-height: 1.45;
}

.x5fc-v2 .x5fc-bar {
	height: 5px;
	border-radius: 4px;
	background: #1e2838;
	margin-top: 10px;
	overflow: hidden;
}

.x5fc-v2 .x5fc-bar > i {
	display: block;
	height: 100%;
	width: 38%;
	background: linear-gradient(90deg, #4a7a9a, #7ec8ea);
}

.x5fc-v2 .x5fc-pr-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 16px 0 10px;
}

.x5fc-v2 .x5fc-pr-head h2 {
	margin: 0;
	font-size: 15px;
	letter-spacing: 0.08em;
	color: #dbe6f2;
}

.x5fc-v2 .x5fc-pr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.x5fc-v2 .x5fc-pr {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	min-height: 170px;
	background: #121a28;
}

.x5fc-v2 .x5fc-pr .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: saturate(0.9) brightness(0.55);
}

.x5fc-v2 .x5fc-pr .ov {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 11, 18, 0.1) 0%, rgba(8, 11, 18, 0.88) 100%);
}

.x5fc-v2 .x5fc-pr .tx {
	position: relative;
	padding: 14px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.x5fc-v2 .x5fc-pr h4 {
	margin: 0 0 6px;
	font-size: 16px;
	color: #f2f6fc;
}

.x5fc-v2 .x5fc-pr p {
	margin: 0;
	font-size: 13px;
	color: #c5d3e6;
}

.x5fc-v2 .x5fc-pr .more {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #7ec8ea;
}

.x5fc-v2 .x5fc-pr--link {
	text-decoration: none;
	border-bottom: none;
	color: inherit;
	display: block;
}

.x5fc-v2 .x5fc-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.x5fc-v2 .x5fc-col {
	padding: 14px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: #121a28;
}

.x5fc-v2 .x5fc-col h3 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #dbe6f2;
}

.x5fc-v2 .x5fc-art a {
	display: block;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #e8ecf4;
	text-decoration: none;
}

.x5fc-v2 .x5fc-art a:last-child {
	border-bottom: none;
}

.x5fc-v2 .x5fc-art .d {
	font-size: 11px;
	color: #8fa3b8;
	margin-top: 4px;
}

.x5fc-v2 .x5fc-fut ul {
	margin: 0;
	padding-left: 18px;
	color: #a9b8ca;
	font-size: 13px;
}

.x5fc-v2 .x5fc-fut li {
	margin: 6px 0;
}

.x5fc-v2 .x5fc-note {
	margin-top: 14px;
	font-size: 11px;
	color: #6d7a8c;
}

@media (max-width: 900px) {
	.x5fc-v2 .x5fc-hero {
		grid-template-columns: 1fr;
		max-height: none;
	}

	.x5fc-v2 .x5fc-hero-side {
		min-height: 160px;
	}

	.x5fc-v2 .x5fc-qa {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.x5fc-v2 .x5fc-st-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.x5fc-v2 .x5fc-pr-grid {
		grid-template-columns: 1fr;
	}

	.x5fc-v2 .x5fc-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.x5fc-v2 .x5fc-qa {
		grid-template-columns: 1fr;
	}

	.x5fc-v2 .x5fc-st-grid {
		grid-template-columns: 1fr;
	}
}
