/**
 * Бронелетопись v2 — «Светокопия»
 * Холодный чертёжный архив. Не cream/forest/brass.
 */

:root {
	--bl-ink: #0b1522;
	--bl-sheet: #d9e2ec;
	--bl-sheet-2: #c5d0dc;
	--bl-surface: #f3f6f9;
	--bl-navy: #0f2744;
	--bl-cyan: #0a7a86;
	--bl-cyan-deep: #065a63;
	--bl-signal: #d4890f;
	--bl-line: #8fa3b5;
	--bl-line-soft: #b7c5d2;
	--bl-danger: #a33b32;
	--bl-muted: #4a5c6c;
	--bl-white: #f8fafc;

	--font-heading: "Onest", "Manrope", "Segoe UI", system-ui, sans-serif;
	--font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

	--radius: 3px;
	--radius-sm: 2px;

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;

	--container: 1180px;
	--content: 760px;
	--header-h: 4rem;
	--focus-ring: 0 0 0 3px rgb(10 122 134 / 35%);

	--text-base: 1rem;
	--lh: 1.6;
	--grid-line: rgb(15 39 68 / 8%);
}

@media (min-width: 768px) {
	:root {
		--text-base: 1.0625rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--lh);
	color: var(--bl-ink);
	background-color: var(--bl-sheet);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--bl-cyan);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--bl-cyan-deep);
}

:focus-visible {
	outline: 2px solid var(--bl-cyan);
	outline-offset: 2px;
	box-shadow: var(--focus-ring);
}

.skip-link {
	position: absolute;
	left: var(--space-sm);
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--bl-navy);
	color: var(--bl-white);
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	top: var(--space-sm);
}

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2rem, var(--content));
}

/* ——— Type ——— */

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 650;
	line-height: 1.15;
	color: var(--bl-ink);
	margin: 0 0 0.55em;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem);
}

h2 {
	font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.85rem);
}

h3 {
	font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
}

.lead {
	font-size: 1.05em;
	color: var(--bl-muted);
	max-width: 38rem;
}

.mono,
.kpi-panel__value,
.hero-stats,
.compare-chip__count,
.plate-card__kpi,
.spec-table td {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.section-head {
	margin-bottom: var(--space-md);
}

.section-head p {
	margin: 0;
	color: var(--bl-muted);
	max-width: 36rem;
}

.section-label {
	display: inline-block;
	margin-bottom: 0.65rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bl-cyan-deep);
}

/* ——— Buttons ——— */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.6rem 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
	background: var(--bl-cyan);
	color: #fff;
}

.btn--primary:hover {
	background: var(--bl-cyan-deep);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	border-color: var(--bl-navy);
	color: var(--bl-navy);
}

.btn--ghost:hover {
	background: var(--bl-navy);
	color: var(--bl-white);
}

.btn--on-dark {
	background: transparent;
	border-color: rgb(255 255 255 / 45%);
	color: #fff;
}

.btn--on-dark:hover {
	background: #fff;
	border-color: #fff;
	color: var(--bl-navy);
}

.btn--signal {
	background: var(--bl-signal);
	color: #1a1200;
}

.btn--signal:hover {
	filter: brightness(0.95);
	color: #1a1200;
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ——— Header ——— */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bl-navy);
	border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	min-height: var(--header-h);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--bl-white);
	text-decoration: none;
	min-width: 0;
}

.site-brand:hover {
	color: var(--bl-white);
}

.site-brand__mark {
	flex-shrink: 0;
	color: var(--bl-cyan);
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-brand__name {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.15;
}

.site-brand__tagline {
	font-size: 0.7rem;
	color: rgb(243 246 249 / 62%);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 16rem;
}

@media (max-width: 767px) {
	.site-brand__tagline {
		display: none;
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--bl-white);
	cursor: pointer;
}

@media (min-width: 1024px) {
	.nav-toggle {
		display: none;
	}
}

.nav-primary {
	display: none;
}

.nav-primary.is-open {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--bl-navy);
	border-bottom: 1px solid rgb(255 255 255 / 12%);
	padding: var(--space-sm) 1rem var(--space-md);
}

@media (min-width: 1024px) {
	.nav-primary {
		display: block;
		position: static;
		padding: 0;
		border: 0;
		background: transparent;
	}
}

.nav-primary__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

@media (min-width: 1024px) {
	.nav-primary__list {
		flex-direction: row;
		align-items: center;
		gap: 0.1rem;
	}
}

.nav-primary__list a {
	display: block;
	padding: 0.6rem 0.8rem;
	color: rgb(243 246 249 / 88%);
	text-decoration: none;
	font-weight: 550;
	border-bottom: 2px solid transparent;
}

.nav-primary__list a:hover,
.nav-primary__list .current-menu-item > a {
	color: #fff;
	border-bottom-color: var(--bl-cyan);
}

.compare-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.35rem 0.8rem;
	border-radius: var(--radius);
	border: 1px solid var(--bl-cyan);
	background: transparent;
	color: #fff;
	text-decoration: none;
	font-weight: 650;
	font-size: 0.9rem;
}

.compare-chip:hover {
	background: var(--bl-cyan);
	color: #fff;
}

.compare-chip__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.25rem;
	border-radius: var(--radius-sm);
	background: var(--bl-signal);
	color: #1a1200;
	font-size: 0.75rem;
	font-weight: 600;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(255 255 255 / 22%);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--bl-white);
	text-decoration: none;
}

.icon-btn:hover {
	border-color: var(--bl-cyan);
	color: #fff;
}

/* ——— Main ——— */

.site-main {
	min-height: 50vh;
	padding-block: var(--space-lg);
}

.bl-front .site-main {
	padding-top: 0;
}

/* ——— Hero: Светокопия ——— */

.hero {
	position: relative;
	isolation: isolate;
	padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: var(--bl-navy);
	color: var(--bl-white);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgb(10 122 134 / 12%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(10 122 134 / 12%) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

.hero::after {
	content: "";
	position: absolute;
	right: -8%;
	top: 10%;
	width: min(48vw, 520px);
	aspect-ratio: 3 / 2;
	border: 1px solid rgb(10 122 134 / 35%);
	transform: rotate(-6deg);
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(135deg, transparent 48%, rgb(10 122 134 / 18%) 48%, rgb(10 122 134 / 18%) 52%, transparent 52%),
		linear-gradient(45deg, transparent 48%, rgb(212 137 15 / 12%) 48%, rgb(212 137 15 / 12%) 52%, transparent 52%);
}

.hero__inner {
	display: grid;
	gap: var(--space-md);
	max-width: 48rem;
}

.hero__brand {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(2.4rem, 1.2rem + 5vw, 4.5rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 0.95;
	color: #fff;
}

.hero__title {
	margin: 0;
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
	font-weight: 550;
	letter-spacing: -0.01em;
	color: rgb(243 246 249 / 88%);
	max-width: 28rem;
}

.hero__lead {
	margin: 0;
	color: rgb(243 246 249 / 68%);
	max-width: 32rem;
}

.hero-search {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	margin-top: 0.25rem;
	max-width: 34rem;
	border: 1px solid rgb(255 255 255 / 28%);
	border-radius: var(--radius);
	background: rgb(11 21 34 / 35%);
	overflow: hidden;
}

.hero-search__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 0.85rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--bl-cyan);
	border-right: 1px solid rgb(255 255 255 / 18%);
	white-space: nowrap;
}

.hero-search__input {
	flex: 1 1 12rem;
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 0;
	background: transparent;
	font: inherit;
	color: #fff;
}

.hero-search__input::placeholder {
	color: rgb(243 246 249 / 45%);
}

.hero-search .btn {
	border-radius: 0;
	min-height: 48px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: rgb(243 246 249 / 70%);
}

.hero-stats strong {
	color: #fff;
	font-weight: 600;
	margin-right: 0.35rem;
}

.hero__content > * {
	animation: bl-rise 0.55s ease-out both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.02s; }
.hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.hero__content > *:nth-child(3) { animation-delay: 0.14s; }
.hero__content > *:nth-child(4) { animation-delay: 0.2s; }
.hero__content > *:nth-child(5) { animation-delay: 0.26s; }
.hero__content > *:nth-child(6) { animation-delay: 0.32s; }

@keyframes bl-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__content > * {
		animation: none;
	}
}

/* ——— Sections ——— */

.section {
	padding: var(--space-xl) 0;
	border-top: 1px solid var(--bl-line-soft);
	background: rgb(243 246 249 / 55%);
}

.section--flush {
	border-top: 0;
	padding-top: var(--space-lg);
	background: transparent;
}

.section--sheet {
	background: transparent;
}

/* ——— Era timeline ——— */

.era-timeline {
	position: relative;
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 1.25rem 0 0.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.era-timeline::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 2.15rem;
	height: 2px;
	background: var(--bl-navy);
	opacity: 0.35;
}

.era-timeline__item {
	position: relative;
	flex: 1 0 9.5rem;
	scroll-snap-align: start;
	padding: 0 0.5rem;
}

.era-timeline__link {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
	min-height: 7rem;
}

.era-timeline__node {
	width: 14px;
	height: 14px;
	border-radius: 1px;
	background: var(--bl-surface);
	border: 2px solid var(--bl-navy);
	position: relative;
	z-index: 1;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.era-timeline__link:hover .era-timeline__node,
.era-timeline__link:focus-visible .era-timeline__node {
	background: var(--bl-cyan);
	border-color: var(--bl-cyan);
	box-shadow: 0 0 0 4px rgb(10 122 134 / 25%);
}

@media (prefers-reduced-motion: no-preference) {
	.era-timeline__item:nth-child(3) .era-timeline__node {
		animation: bl-node-pulse 2.4s ease-in-out infinite;
	}
}

@keyframes bl-node-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgb(10 122 134 / 0%);
	}
	50% {
		box-shadow: 0 0 0 6px rgb(10 122 134 / 22%);
	}
}

.era-timeline__year {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bl-cyan-deep);
	letter-spacing: 0.04em;
}

.era-timeline__name {
	font-family: var(--font-heading);
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.era-scroll-hint {
	margin: 0.5rem 0 0;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--bl-muted);
}

@media (min-width: 1024px) {
	.era-scroll-hint {
		display: none;
	}
}

/* ——— Passport plates (vehicle cards) ——— */

.card-grid,
.type-grid {
	display: grid;
	gap: var(--space-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.card-grid {
	grid-template-columns: 1fr;
}

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

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

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

.vehicle-card::before,
.plate-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--bl-navy);
}

.vehicle-card:hover,
.plate-card:hover {
	border-color: var(--bl-cyan);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.vehicle-card:hover,
	.plate-card:hover {
		transform: none;
	}
}

.vehicle-card__media {
	aspect-ratio: 3 / 2;
	background:
		linear-gradient(135deg, var(--bl-sheet-2), var(--bl-sheet)),
		repeating-linear-gradient(
			-18deg,
			transparent,
			transparent 10px,
			rgb(15 39 68 / 4%) 10px,
			rgb(15 39 68 / 4%) 11px
		);
	overflow: hidden;
	border-bottom: 1px solid var(--bl-line-soft);
}

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

.vehicle-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.95rem 1rem 1.05rem 1.15rem;
	flex: 1;
}

.vehicle-card__title {
	margin: 0;
	font-size: 1.12rem;
}

.vehicle-card__title a {
	color: inherit;
	text-decoration: none;
}

.vehicle-card__title a:hover {
	color: var(--bl-cyan-deep);
}

.vehicle-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	color: var(--bl-muted);
	font-family: var(--font-mono);
}

.vehicle-card__footer {
	margin-top: auto;
	padding-top: 0.55rem;
}

.type-grid {
	grid-template-columns: repeat(2, 1fr);
}

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

.type-link {
	display: block;
	padding: 1rem 0.85rem;
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: inherit;
	font-family: var(--font-heading);
	font-weight: 650;
	text-align: left;
	position: relative;
	padding-left: 1.15rem;
}

.type-link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--bl-cyan);
}

.type-link:hover {
	border-color: var(--bl-navy);
	color: var(--bl-navy);
}

/* ——— Promo band ——— */

.promo-band {
	display: grid;
	gap: var(--space-md);
	padding: var(--space-md);
	background: var(--bl-navy);
	color: var(--bl-white);
	border-radius: var(--radius-sm);
	border: 1px solid var(--bl-navy);
	position: relative;
	overflow: hidden;
}

.promo-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgb(10 122 134 / 10%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(10 122 134 / 10%) 1px, transparent 1px);
	background-size: 20px 20px;
	pointer-events: none;
}

.promo-band > * {
	position: relative;
	z-index: 1;
}

.promo-band h2 {
	color: #fff;
	margin-bottom: 0.35em;
}

.promo-band p {
	margin: 0 0 1rem;
	color: rgb(243 246 249 / 72%);
	max-width: 36rem;
}

/* ——— KPI ——— */

.kpi-panel {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--bl-line);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin: var(--space-md) 0;
}

@media (min-width: 768px) {
	.kpi-panel {
		grid-template-columns: repeat(5, 1fr);
	}
}

.kpi-panel__item {
	background: var(--bl-surface);
	padding: 0.9rem 1rem;
}

.kpi-panel__label {
	display: block;
	font-size: 0.72rem;
	font-family: var(--font-mono);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bl-muted);
	margin-bottom: 0.3rem;
}

.kpi-panel__value {
	font-weight: 600;
	font-size: 1.05rem;
}

/* ——— Tables ——— */

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-surface);
	-webkit-overflow-scrolling: touch;
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
}

.spec-table th,
.spec-table td {
	padding: 0.7rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--bl-line-soft);
	vertical-align: top;
}

.spec-table th {
	width: 40%;
	font-weight: 650;
	font-family: var(--font-heading);
	background: var(--bl-sheet);
	font-size: 0.95rem;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: 0;
}

/* ——— Badges ——— */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.18rem 0.5rem;
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	font-weight: 650;
	font-family: var(--font-mono);
	letter-spacing: 0.03em;
	background: rgb(10 122 134 / 12%);
	color: var(--bl-cyan-deep);
	border: 1px solid rgb(10 122 134 / 25%);
}

.badge--signal {
	background: rgb(212 137 15 / 14%);
	color: #7a4e08;
	border-color: rgb(212 137 15 / 35%);
}

.badge--danger {
	background: rgb(163 59 50 / 12%);
	color: var(--bl-danger);
	border-color: rgb(163 59 50 / 28%);
}

.data-disclaimer {
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--bl-signal);
	background: rgb(212 137 15 / 10%);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 0.95rem;
	color: var(--bl-muted);
}

/* ——— Breadcrumbs ——— */

.breadcrumbs {
	margin-bottom: var(--space-md);
	font-size: 0.85rem;
	font-family: var(--font-mono);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--bl-muted);
}

.breadcrumbs__list li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	opacity: 0.55;
}

/* ——— Page ——— */

.page-header {
	margin-bottom: var(--space-lg);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.prose {
	max-width: var(--content);
}

.prose p {
	margin: 0 0 1.1em;
}

/* ——— Catalog ——— */

.catalog-layout {
	display: grid;
	gap: var(--space-lg);
}

@media (min-width: 1024px) {
	.catalog-layout {
		grid-template-columns: 300px 1fr;
		align-items: start;
	}
}

.catalog-filters {
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	padding: 1.15rem 1.15rem 1.15rem 1.25rem;
	position: relative;
}

.catalog-filters::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--bl-navy);
}

@media (min-width: 1024px) {
	.catalog-filters {
		position: sticky;
		top: calc(var(--header-h) + 1rem);
	}
}

.catalog-filters__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
}

.filter-group {
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--bl-line-soft);
}

.filter-group:last-of-type {
	border-bottom: 0;
}

.filter-group legend {
	font-weight: 650;
	font-family: var(--font-heading);
	padding: 0;
	margin-bottom: 0.5rem;
}

.filter-group label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 36px;
	cursor: pointer;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.55rem;
	border-radius: var(--radius-sm);
	background: rgb(10 122 134 / 12%);
	border: 1px solid rgb(10 122 134 / 25%);
	font-size: 0.82rem;
	font-family: var(--font-mono);
}

.chip button {
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	padding: 0;
	color: var(--bl-muted);
}

.catalog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: var(--space-md);
}

.catalog-count {
	font-variant-numeric: tabular-nums;
	font-family: var(--font-mono);
	color: var(--bl-muted);
	font-size: 0.9rem;
}

.empty-state {
	padding: var(--space-lg);
	text-align: left;
	background: var(--bl-surface);
	border: 1px dashed var(--bl-line);
	border-radius: var(--radius-sm);
	position: relative;
}

.empty-state::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--bl-line);
}

/* ——— Pagination ——— */

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: var(--space-lg);
	list-style: none;
	padding: 0;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-surface);
	text-decoration: none;
	color: var(--bl-ink);
	font-family: var(--font-mono);
}

.pagination .current {
	background: var(--bl-navy);
	border-color: var(--bl-navy);
	color: #fff;
}

/* ——— Footer ——— */

.site-footer {
	border-top: 1px solid rgb(255 255 255 / 10%);
	background: var(--bl-navy);
	color: rgb(243 246 249 / 82%);
	padding: var(--space-xl) 0 var(--space-lg);
	margin-top: var(--space-xl);
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--bl-cyan);
}

.footer-grid {
	display: grid;
	gap: var(--space-lg);
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.footer-brand__name {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 0.5rem;
}

.footer-brand__desc {
	margin: 0;
	max-width: 28rem;
	color: rgb(243 246 249 / 62%);
}

.footer-nav__title {
	margin: 0 0 0.75rem;
	font-size: 0.72rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgb(243 246 249 / 48%);
}

.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.footer-bottom {
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid rgb(255 255 255 / 12%);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-sm);
	font-size: 0.88rem;
	font-family: var(--font-mono);
	color: rgb(243 246 249 / 48%);
}

.heroes-credit {
	margin: 0;
}

.heroes-credit a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ——— Utility ——— */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.is-hidden {
	display: none !important;
}

.stack > * + * {
	margin-top: var(--space-sm);
}

/* ——— Compare builder ——— */

.compare-slots {
	display: grid;
	gap: var(--space-sm);
	margin: var(--space-md) 0;
}

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

.compare-slot {
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	padding: 1rem;
	position: relative;
	min-height: 7.5rem;
}

.compare-slot::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--bl-cyan);
}

.compare-slot__title {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-weight: 650;
}

.compare-slot__empty {
	margin: 0 0 0.65rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--bl-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.compare-suggest {
	margin-top: 0.5rem;
	border: 1px solid var(--bl-line);
	background: var(--bl-white);
	max-height: 220px;
	overflow: auto;
}

.compare-suggest__item {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--bl-line-soft);
	background: transparent;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.compare-suggest__item:hover,
.compare-suggest__item:focus-visible {
	background: rgb(10 122 134 / 10%);
}

.compare-suggest__item span {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--bl-muted);
}

.compare-suggest__empty {
	margin: 0;
	padding: 0.75rem;
	color: var(--bl-muted);
	font-size: 0.9rem;
}

.spec-table--compare tr.is-diff td {
	background: rgb(10 122 134 / 8%);
}

.spec-table--compare thead th {
	position: sticky;
	top: calc(var(--header-h) + 0.25rem);
	z-index: 2;
	background: var(--bl-sheet);
}

/* ——— Vehicle single ——— */

.vehicle-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.vehicle-single__id {
	margin: -0.35rem 0 0.75rem;
	color: var(--bl-muted);
	font-size: 0.85rem;
}

.vehicle-single__layout {
	display: grid;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
}

@media (min-width: 960px) {
	.vehicle-single__layout {
		grid-template-columns: 1.05fr 0.95fr;
		align-items: start;
	}
}

.vehicle-single__figure {
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-sheet-2);
}

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

.vehicle-single__figure--empty {
	background:
		linear-gradient(135deg, var(--bl-sheet-2), var(--bl-sheet)),
		repeating-linear-gradient(-18deg, transparent, transparent 10px, rgb(15 39 68 / 4%) 10px, rgb(15 39 68 / 4%) 11px);
}

.vehicle-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 1rem 0;
}

.vehicle-single__block {
	margin-bottom: var(--space-lg);
}

.kpi-panel__value--text {
	font-size: 1rem;
	font-weight: 600;
	font-family: var(--font-body);
}

.sources-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.sources-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	background: var(--bl-surface);
	border: 1px solid var(--bl-line-soft);
}

.catalog-results[aria-busy="true"],
[data-catalog-results][aria-busy="true"] {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* ——— Museums ——— */

.museums-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0;
}

.museums-toolbar__label {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.museums-toolbar__select {
	min-height: 44px;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-surface);
	font: inherit;
}

.museums-layout {
	display: grid;
	gap: var(--space-md);
}

@media (min-width: 1024px) {
	.museums-layout {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: start;
	}

	.museums-map {
		order: 1;
	}

	.museums-list {
		order: 2;
	}

	.museums-consent {
		order: 1;
		grid-column: 1;
	}
}

.museums-map {
	min-height: 360px;
	height: 55vh;
	max-height: 560px;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-sheet-2);
	z-index: 1;
}

.museums-consent {
	padding: 1.25rem;
	background: var(--bl-surface);
	border: 1px dashed var(--bl-line);
	border-radius: var(--radius-sm);
}

.museums-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	max-height: 70vh;
	overflow: auto;
}

.museum-card {
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	padding: 1rem 1rem 1rem 1.15rem;
	position: relative;
}

.museum-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--bl-navy);
}

.museum-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
}

.museum-card__meta {
	margin: 0 0 0.5rem;
	color: var(--bl-muted);
	font-size: 0.85rem;
}

.museum-card__scope {
	margin: 0 0 0.65rem;
	color: var(--bl-muted);
	font-size: 0.95rem;
}

/* ——— Quiz ——— */

.quiz-panel {
	padding: 1.25rem;
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
}

.quiz-progress {
	margin: 0 0 1rem;
	color: var(--bl-muted);
	font-size: 0.85rem;
}

.quiz-question {
	border: 0;
	margin: 0;
	padding: 0;
}

.quiz-question__prompt {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 650;
	margin-bottom: 1rem;
	padding: 0;
}

.quiz-options {
	display: grid;
	gap: 0.65rem;
}

.quiz-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--bl-line);
	border-radius: var(--radius-sm);
	background: var(--bl-white);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus-visible {
	border-color: var(--bl-cyan);
	background: rgb(10 122 134 / 8%);
}

.quiz-option:disabled {
	opacity: 0.85;
	cursor: default;
}

.quiz-option__key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--bl-line);
	background: var(--bl-sheet);
	font-size: 0.8rem;
	font-weight: 600;
	flex-shrink: 0;
}

.quiz-feedback {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--bl-line);
	background: var(--bl-sheet);
}

.quiz-feedback--ok {
	border-left-color: var(--bl-cyan);
	background: rgb(10 122 134 / 10%);
}

.quiz-feedback--bad {
	border-left-color: var(--bl-danger);
	background: rgb(163 59 50 / 8%);
}

.quiz-score {
	font-size: 1.35rem;
	font-weight: 600;
}

/* Legacy class aliases from v1 templates */
.era-grid {
	display: none;
}

.era-card {
	display: none;
}

.badge--brass {
	background: rgb(212 137 15 / 14%);
	color: #7a4e08;
	border: 1px solid rgb(212 137 15 / 35%);
}

.hero__grid {
	display: block;
}

.hero__eyebrow {
	display: none;
}

.hero__visual {
	display: none;
}
