/* Страница /l2/{slug} — decision-first layout */

.page-status {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--muted);
}

.page-status--error {
	color: var(--danger-red);
}

:root {
	--date-soon: #5DC99C;
	--date-soon-bg: rgba(93, 201, 156, 0.15);
	--date-soon-border: rgba(93, 201, 156, 0.45);
	--date-recent: #E5B84A;
	--date-recent-bg: rgba(229, 184, 74, 0.15);
	--date-recent-border: rgba(229, 184, 74, 0.45);
	--date-eternal: #9B8FD9;
	--date-eternal-bg: rgba(155, 143, 217, 0.15);
	--date-eternal-border: rgba(155, 143, 217, 0.45);
	--date-other: #7E8D9F;
	--date-other-bg: rgba(126, 141, 159, 0.12);
	--date-other-border: rgba(126, 141, 159, 0.35);
}

.l2-proto-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0A0F14;
	background: var(--warning-yellow);
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

/* —— 1. HERO —— */
.l2-hero-panel {
	margin-bottom: 1rem;
}

.l2-hero-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: 1rem;
	align-items: stretch;
}

.l2-hero-row--solo {
	grid-template-columns: 1fr;
}

.l2-decision-pair--solo {
	grid-template-columns: 1fr;
}

.l2-hero-col {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.l2-hero-col--main {
	min-width: 0;
}

.l2-hero-col--decision {
	min-width: 0;
}

.l2-hero-col--decision .panel-title {
	flex-shrink: 0;
}

.server-detail-title {
	font-size: 1.375rem;
	font-weight: 600;
	letter-spacing: -0.25px;
	line-height: 1.3;
	margin: 0 0 0.35rem;
}

.l2-hero-panel .page-hero-desc {
	margin: 0 0 0.65rem;
}

.l2-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 0.65rem;
}

.l2-status-badge {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	white-space: nowrap;
}

.l2-status-badge--fresh {
	color: var(--date-soon);
	background: var(--date-soon-bg);
	border: 1px solid var(--date-soon-border);
}

.l2-status-badge--active {
	color: #5DC99C;
	background: rgba(93, 201, 156, 0.12);
	border: 1px solid rgba(93, 201, 156, 0.45);
}

.l2-status-badge--soon {
	color: var(--accent);
	background: rgba(74, 143, 229, 0.15);
	border: 1px solid rgba(74, 143, 229, 0.45);
}

.l2-open-date {
	font-size: 12px;
	font-weight: 700;
	color: var(--text);
}

.l2-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.22rem 0.35rem;
	margin-bottom: 0.75rem;
}

.l2-hero-badges .badge {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	background: linear-gradient(135deg, #1A2535 0%, #131923 100%);
	border: 1px solid rgba(74, 143, 229, 0.5);
	color: #B8D0FF;
}

.l2-hero-badges .badge-chronicle {
	border-color: rgba(74, 143, 229, 0.7);
	color: #4A8FE5;
}

.l2-hero-badges .badge-rate {
	border-color: rgba(229, 184, 74, 0.6);
	color: #E5B84A;
}

.l2-hero-badges .badge-type {
	border-color: rgba(126, 141, 159, 0.55);
	color: var(--muted);
	background: linear-gradient(135deg, rgba(30, 38, 50, 0.9) 0%, rgba(19, 25, 35, 0.95) 100%);
}

.l2-brief {
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 0.85rem;
	max-width: 56ch;
}

.l2-hero-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}

.l2-hero-footer__links {
	flex: 1;
	min-width: min(100%, 220px);
}

.l2-hero-footer__title {
	margin-bottom: 0.45rem;
}

.l2-hero-footer__actions {
	flex-shrink: 0;
}

.detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.detail-actions .quick-btn--primary {
	padding: 0.6rem 1.4rem;
	font-size: 12px;
}

/* —— Экономика (правая колонка hero) —— */

.l2-economy-block {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.9rem 1rem;
	height: 100%;
	box-sizing: border-box;
}

.l2-economy-block__title {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.55px;
	color: var(--accent);
	margin-bottom: 0.55rem;
}

.l2-economy-type {
	margin: 0 0 0.25rem;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.35;
}

.l2-economy-meta {
	margin: 0 0 0.75rem;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.35;
}

.l2-economy-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
	min-height: calc(0.3rem * 2 + 11px * 1.2);
}

.l2-economy-tags--spacer {
	visibility: hidden;
	pointer-events: none;
}

.l2-economy-tag {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.3rem 0.65rem;
	border-radius: 6px;
	border: 1px solid transparent;
	letter-spacing: 0.02em;
}

.l2-economy-tag--donate {
	color: #F5B041;
	background: rgba(245, 176, 65, 0.12);
	border-color: rgba(245, 176, 65, 0.45);
}

.l2-economy-tag--p2w.p2w-none {
	color: #5DC99C;
	background: rgba(93, 201, 156, 0.12);
	border-color: rgba(93, 201, 156, 0.45);
}

.l2-economy-tag--p2w.p2w-low {
	color: #5DC99C;
	background: rgba(93, 201, 156, 0.12);
	border-color: rgba(93, 201, 156, 0.45);
}

.l2-economy-tag--p2w.p2w-medium {
	color: #E5B84A;
	background: rgba(229, 184, 74, 0.12);
	border-color: rgba(229, 184, 74, 0.45);
}

.l2-economy-tag--p2w.p2w-high {
	color: #E67E7E;
	background: rgba(230, 126, 126, 0.12);
	border-color: rgba(230, 126, 126, 0.45);
}

.l2-decision-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	height: 100%;
}

.l2-pvp-block .l2-economy-block__title {
	color: #E67E7E;
}

.l2-rates-section__title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #5A7A9F;
	margin-bottom: 0.45rem;
}

.l2-rates-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.45;
}

.l2-rates-table th,
.l2-rates-table td {
	padding: 0.45rem 0.55rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.l2-rates-table th {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #5A7A9F;
	background: rgba(255, 255, 255, 0.02);
}

.l2-rates-table td:first-child {
	color: var(--muted);
	font-weight: 500;
}

.l2-rates-table td:last-child {
	color: var(--text);
	font-weight: 600;
}

.l2-rates-table tbody tr:last-child td {
	border-bottom: none;
}

.p2w-low { color: #5DC99C; }
.p2w-medium { color: #E5B84A; }
.p2w-high { color: #E67E7E; }
.p2w-none { color: #5DC99C; }

.l2-section {
	margin-bottom: 1rem;
}

/* —— О проекте —— */
.l2-about-section {
	margin-bottom: 0.75rem;
}

.l2-about-text {
	font-size: 13px;
	line-height: 1.6;
	color: var(--muted);
	max-width: 72ch;
	margin: 0;
}

/* —— Спойлер параметров —— */
.l2-spoiler {
	margin-bottom: 0.75rem;
	padding: 0;
	overflow: hidden;
}

.l2-spoiler.lvltop-panel {
	padding: 0;
}

.l2-spoiler__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.1rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background 0.15s ease;
}

.l2-spoiler__trigger::-webkit-details-marker {
	display: none;
}

.l2-spoiler__trigger::marker {
	content: '';
}

.l2-spoiler__trigger:hover {
	background: rgba(74, 143, 229, 0.06);
}

.l2-spoiler[open] .l2-spoiler__trigger {
	border-bottom: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.02);
}

.l2-spoiler__main {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.l2-spoiler__title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.55px;
	color: var(--text);
}

.l2-spoiler__hint {
	font-size: 11px;
	color: var(--muted);
	font-weight: 500;
}

.l2-spoiler__chevron {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 5px;
	border: 1px solid rgba(74, 143, 229, 0.4);
	background: rgba(74, 143, 229, 0.08);
	position: relative;
	transition: transform 0.2s ease, border-color 0.15s ease, background 0.15s ease;
}

.l2-spoiler__chevron::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 42%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #B8D0FF;
	border-bottom: 1.5px solid #B8D0FF;
	transform: translate(-50%, -50%) rotate(45deg);
	transition: transform 0.2s ease;
}

.l2-spoiler[open] .l2-spoiler__chevron::before {
	top: 50%;
	transform: translate(-50%, -25%) rotate(-135deg);
}

.l2-spoiler[open] .l2-spoiler__chevron {
	border-color: var(--accent);
	background: rgba(74, 143, 229, 0.15);
}

.l2-spoiler__body {
	padding: 1rem 1.1rem 1.1rem;
	animation: l2-spoiler-in 0.2s ease;
}

@keyframes l2-spoiler-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* —— Три блока внутри спойлера —— */
.l2-card-blocks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.l2-card-block {
	min-width: 0;
}

.l2-card-block__title {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.55px;
	margin: 0 0 0.6rem;
	padding-left: 0.55rem;
	border-left: 3px solid var(--accent);
	color: #5A7A9F;
}

.l2-card-block--economy .l2-card-block__title {
	border-left-color: #4A8FE5;
}

.l2-card-block--gameplay .l2-card-block__title {
	border-left-color: #E5B84A;
}

.l2-card-block--pvp .l2-card-block__title {
	border-left-color: #E67E7E;
}

.l2-card-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.l2-card-block__list li {
	position: relative;
	padding-left: 0.75rem;
	font-size: 12px;
	line-height: 1.45;
	color: var(--text);
}

.l2-card-block__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--muted);
	opacity: 0.65;
}

.l2-links-panel .panel-title {
	margin-bottom: 0.5rem;
}

.l2-links-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.l2-links-row .quick-btn {
	min-width: 0;
}

.similar-section .server-grid {
	margin-top: 0.25rem;
}

.similar-status {
	grid-column: 1 / -1;
	margin: 0.5rem 0 0;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

/* Карточки как в списке /l2, сетка как на Rust (site.css: 12 колонок, span 3) */
.similar-section .server-grid .server-card {
	--action-size: 26px;
	min-height: 0;
	padding: 0.45rem 0.65rem 0.48rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	align-items: stretch;
}

.similar-section .server-grid .card-header {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.similar-section .server-grid .card-name {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
	margin-bottom: 0;
	padding-right: 0;
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.similar-section .server-grid .server-link {
	width: var(--action-size);
	height: var(--action-size);
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1.5px solid #5A7A9F;
	border-radius: 5px;
	color: #5A7A9F;
	flex-shrink: 0;
	text-decoration: none;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
}

.similar-section .server-grid .server-link:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: rgba(74, 143, 229, 0.1);
}

.similar-section .server-grid .link-icon {
	display: block;
	width: 13px;
	height: 13px;
}

.similar-section .server-grid .card-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
	margin-top: 0;
	min-height: 0;
}

.similar-section .server-card--navigable .card-badges {
	position: relative;
	z-index: 0;
}

.banner-placeholder {
	min-height: 200px;
	aspect-ratio: 6 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	margin-bottom: 1rem;
}

.banner-placeholder img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.banner-placeholder--filled {
	padding: 0;
	border: none;
}

.banner-placeholder--empty {
	border: 2px dashed rgba(90, 122, 159, 0.5);
	background:
		linear-gradient(180deg, rgba(18, 28, 42, 0.75) 0%, rgba(10, 15, 20, 0.9) 100%);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.banner-placeholder--empty:hover {
	border-color: rgba(245, 176, 65, 0.65);
	box-shadow: 0 0 0 1px rgba(245, 176, 65, 0.15);
}

.banner-placeholder-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	padding: 1rem;
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	color: inherit;
}

.banner-placeholder-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
}

.banner-placeholder-title {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.45em;
	color: #7A9ABF;
}

.banner-placeholder-size {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #F5B041;
}

.banner-placeholder-cta {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #4A8FE5;
	transition: color 0.2s ease;
}

.banner-placeholder--empty:hover .banner-placeholder-cta {
	color: #F5B041;
}

@media (max-width: 900px) {
	.l2-hero-row {
		grid-template-columns: 1fr;
	}

	.l2-card-blocks {
		grid-template-columns: 1fr;
		gap: 1.15rem;
	}

	.l2-spoiler__trigger {
		padding: 0.75rem 0.9rem;
	}

	.l2-hero-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.l2-hero-footer__actions {
		width: 100%;
	}
}

@media (max-width: 700px) {
	.l2-decision-pair {
		grid-template-columns: 1fr;
	}

	.detail-actions .quick-btn,
	.l2-spoiler__trigger {
		min-height: 44px;
		-webkit-tap-highlight-color: transparent;
	}

	.server-detail-title {
		font-size: 1.2rem;
	}
}
