:root {
	--bg: #f7f7f7;
	--surface: #ffffff;
	--surface-alt: #efefef;
	--text: #222222;
	--muted: #555555;
	--primary: #3366cc;
	--primary-dark: #264d99;
	--border: #d4d4d4;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

img,
audio {
	max-width: 100%;
	display: block;
}

.container {
	width: 92%;
	max-width: 1100px;
	margin: 0 auto;
}

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	z-index: 100;
}

.header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.brand {
	text-decoration: none;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
}

.nav-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
}

.nav-link {
	text-decoration: none;
	color: var(--text);
	padding: 0.6rem 0.9rem;
	border-radius: 4px;
	font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
	background: var(--surface-alt);
	color: var(--primary-dark);
}

.nav-link.active {
	background: var(--primary);
	color: #ffffff;
}

.hero {
	padding: 3rem 0;
	background: #e9eef9;
}

.hero-small {
	padding: 2.25rem 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 1.5rem;
	align-items: center;
}

.hero h1 {
	font-size: 2rem;
	margin-top: 0;
}

.hero p {
	color: var(--muted);
}

.hero-image {
	border-radius: 6px;
	border: 1px solid var(--border);
}

.button {
	display: inline-block;
	border: 0;
	background: var(--primary);
	color: #ffffff;
	text-decoration: none;
	padding: 0.7rem 1rem;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
}

.button:hover,
.button:focus {
	background: var(--primary-dark);
}

.button-secondary {
	background: #666666;
}

.button-secondary:hover,
.button-secondary:focus {
	background: #4f4f4f;
}

.section {
	padding: 2.5rem 0;
}

.alt-bg {
	background: var(--surface-alt);
}

.columns-3 {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 1.2rem;
}

.gallery-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid img {
	border-radius: 4px;
	border: 1px solid var(--border);
	height: 100%;
	object-fit: cover;
}

.table-wrapper {
	overflow-x: auto;
	background: var(--surface);
	border-radius: 4px;
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 680px;
}

caption {
	text-align: left;
	font-weight: 700;
	padding: 1rem;
}

th,
td {
	border: 1px solid var(--border);
	padding: 0.7rem;
	text-align: left;
}

thead th {
	background: #e9eef9;
}

figure {
	margin: 0;
}

figcaption {
	margin-top: 0.5rem;
	color: var(--muted);
}

form {
	display: grid;
	gap: 0.9rem;
}

.form-row {
	display: grid;
	gap: 0.35rem;
}

label {
	font-weight: 600;
}

input,
select,
textarea {
	width: 100%;
	padding: 0.6rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	font: inherit;
	background: #ffffff;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.site-footer {
	background: #333333;
	color: #ffffff;
	padding: 1rem 0;
	text-align: center;
}

@media (max-width: 980px) {
	.hero-grid,
	.columns-3,
	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.two-column {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.header-wrap {
		flex-direction: column;
		align-items: flex-start;
		padding: 0.6rem 0;
	}

	.nav-list {
		width: 100%;
	}

	.nav-link {
		display: inline-block;
	}

	.hero-grid,
	.columns-3,
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 2rem 0;
	}
}
