:root {
	--brand-ink: #0d2b4f;
	--brand-cream: #f6f8fb;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	color: var(--brand-ink);
	background: linear-gradient(180deg, #ffffff 0%, var(--brand-cream) 100%);
}

.page {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 16px 40px;
}

.hero {
	background: #fff;
	border: 1px solid #e4ebf3;
	border-radius: 0;
	padding: 24px 20px;
	box-shadow: 0 4px 14px rgba(13, 43, 79, 0.06);
}

.hero h1 {
	margin: 0;
	font-size: clamp(1.3rem, 3.5vw, 2rem);
}

.hero p {
	margin: 10px 0 0;
	color: #4a6484;
	font-size: 0.98rem;
}

.search-wrap {
	margin-top: 16px;
}

.search-wrap input {
	width: 100%;
	border-radius: 0;
	border: 1px solid #c9d8e8;
	background: #fff;
	color: var(--brand-ink);
	padding: 10px 14px;
	font-size: 0.95rem;
}

.search-wrap input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 111, 171, 0.18);
	border-color: #8ab2d9;
}

.filters-wrap {
	margin-top: 14px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 10px;
	align-items: end;
}

.filters-wrap--no-instrument {
	grid-template-columns: 1fr 1fr auto;
}

.filter-block label {
	display: block;
	font-size: 0.76rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 5px;
}

.filter-block select,
#clearFilters {
	width: 100%;
	border-radius: 0;
	border: 1px solid #c9d8e8;
	background: #fff;
	color: var(--brand-ink);
	padding: 10px 12px;
	font-size: 0.9rem;
}

.filter-block select option {
	color: var(--brand-ink);
}

.filter-block select:focus,
#clearFilters:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 111, 171, 0.18);
	border-color: #8ab2d9;
}

#clearFilters {
	border: 1px solid #b8cde3;
	background: #f5f9ff;
	transition: background-color 0.2s ease;
}

#clearFilters:hover {
	background: #e4f0fb;
}

.section-wrap {
	margin-top: 18px;
	background: #fff;
	border-radius: 0;
	border: 1px solid #e4ebf3;
	box-shadow: 0 6px 22px rgba(13, 43, 79, 0.06);
	overflow: hidden;
}

.section-head {
	padding: 16px 18px;
	border-bottom: 1px solid #ecf1f7;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.section-head h2 {
	margin: 0;
	font-size: 1.05rem;
}

.section-count {
	font-size: 0.82rem;
	color: #5c728f;
}

.project-head {
	display: flex;
	width: 100%;
	gap: 10px;
	justify-content: space-between;
	align-items: flex-start;
}

.project-title {
	font-weight: 700;
	margin: 0;
}

.project-sub {
	margin: 2px 0 0;
	color: #5c728f;
	font-size: 0.9rem;
}

.status-badge {
	border-radius: 0;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.status-running {
	background: #e7f6ef;
	color: #106443;
	border: 1px solid #b8e4d0;
}

.status-upcoming {
	background: #e9f3ff;
	color: #154d7a;
	border: 1px solid #c4ddfb;
}

.status-finished {
	background: #f2f4f8;
	color: #4d5f76;
	border: 1px solid #d4dce7;
}

.project-grid {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 16px;
}

.project-image {
	width: 100%;
	height: 108px;
	object-fit: cover;
	border-radius: 0;
	border: 1px solid #d9e4ef;
	background: #f2f7fc;
}

.image-placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 108px;
	border-radius: 0;
	border: 1px dashed #c5d3e3;
	color: #6d8099;
	font-size: 0.82rem;
	background: #f7fbff;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.meta-pill {
	border-radius: 0;
	border: 1px solid #dce7f2;
	background: #f8fbff;
	padding: 4px 10px;
	font-size: 0.78rem;
}

.desc {
	margin: 0 0 12px;
	color: #335274;
}

.label {
	display: block;
	font-size: 0.76rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5c728f;
	margin-bottom: 6px;
}

.tag-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.tag {
	display: inline-flex;
	align-items: center;
	border-radius: 0;
	padding: 4px 9px;
	border: 1px solid #cfe0f2;
	background: #f4f9ff;
	color: #154b77;
	font-size: 0.8rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.tag:hover {
	background: #deefff;
}

.empty-box {
	margin-top: 18px;
	background: #fff;
	border: 1px dashed #c6d5e6;
	border-radius: 0;
	padding: 22px;
	text-align: center;
	color: #4d6887;
}

#errorBox {
	display: none;
}

.pagination-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 18px;
	border-top: 1px solid #ecf1f7;
	flex-wrap: wrap;
}

.page-btn {
	border: 1px solid #c9d8e8;
	background: #fff;
	color: var(--brand-ink);
	border-radius: 0;
	padding: 6px 12px;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
	background: #eaf2fb;
}

.page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.page-btn.active {
	background: var(--brand-ink);
	color: #fff;
	border-color: var(--brand-ink);
}

.page-status {
	font-size: 0.82rem;
	color: #5c728f;
	margin: 0 6px;
}

.quick-filter-wrap {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
}

.quick-filter-btn {
	border-radius: 0;
	border: 1px solid #8ab2d9;
	background: #eaf2fb;
	color: var(--brand-ink);
	padding: 8px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.quick-filter-btn:hover {
	background: #d7e8fa;
}

.quick-filter-btn.active {
	background: var(--brand-ink);
	color: #fff;
	border-color: var(--brand-ink);
}

@media (max-width: 768px) {
	.filters-wrap {
		grid-template-columns: 1fr;
	}

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