* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.top {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 20px;
	background-color: #173f35;
	color: #f8f5ed;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.85rem;
	text-align: center;
	padding: 10px 20px;
}

.top-message {
	margin-right: auto;
	padding-left: 30px;
	padding-right: 20px;
}

.top > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 6px 12px;
	border: 1px solid rgba(225, 222, 217, 0.7);
	color: #fffffe;
	font-size: 0.90rem;
	padding-right: 20px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top > a:hover,
.top > a:focus-visible {
	background-color: #efd08e;
	color: #173f35;
}

.top > a:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.top > a:active {
	transform: translateY(1px);
}

header {
	position: absolute;
	top: 36px;
	left: 0;
	width: 100%;
	z-index: 30;
	height: 100px;
	padding: 12px 5%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	background-color: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.logo {
	flex: 0 0 auto;
}

.logo a {
	display: block;
}

.logo img {
	display: block;
	width: 250px;
	height: 60px;
	object-fit: contain;
}

.links ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.links a {
	position: relative;
	display: block;
	padding: 10px 0;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.9rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.links a::after {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 2px;
	background-color: #c7953d;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.links a:hover,
.links a:focus-visible {
	color: #efd08e;
}

.links a:hover::after,
.links a:focus-visible::after {
	transform: scaleX(1);
}

.links li:last-child a {
	padding: 11px 16px;
	border: 1px solid #bf1e2e;
	background-color: #bf1e2e;
	color: #ffffff;
}

.links li:last-child a::after {
	display: none;
}

.links li:last-child a:hover,
.links li:last-child a:focus-visible {
	background-color: #951522;
	border-color: #951522;
	color: #ffffff;
}

.menu-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.hamburger {
	display: none;
	width: 42px;
	height: 42px;
	padding: 10px 8px;
	cursor: pointer;
}

.hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background-color: #ffffff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 980px) {
	.top {
		gap: 8px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.top > a {
		padding: 6px 8px;
		font-size: 0.72rem;
	}

	.top-message {
		margin-right: 0;
	}

	.top {
		gap: 12px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.top-nav {
		gap: 8px;
	}

	.top-nav a {
		padding: 6px 8px;
		font-size: 0.72rem;
	}

	header {
		top: 44px;
		height: 80px;
		padding-right: 4%;
		padding-left: 4%;
	}

	.links ul {
		gap: 16px;
	}

	.links a {
		font-size: 0.78rem;
	}
}

@media (max-width: 760px) {
	.top {
		flex-wrap: wrap;
		justify-content: center;
		gap: 7px;
		padding: 9px 20px;
		font-size: 0.75rem;
	}

	.top-message {
		flex-basis: 100%;
	}

	.top-nav {
		width: 100%;
		justify-content: center;
		gap: 8px;
	}

	.top-nav a {
		padding: 5px 7px;
		font-size: 0.7rem;
	}

	.top-nav a:has(img) {
		padding: 2px 4px;
	}

	.top-nav a img {
		height: 24px;
	}

	.top > a {
		padding: 5px 8px;
		font-size: 0.7rem;
	}

	header {
		top: 67px;
		height: 72px;
		padding: 8px 6%;
	}

	.logo img {
		width: 125px;
		height: 54px;
	}

	.hamburger {
		display: block;
	}

	.links {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 10;
		display: none;
		padding: 12px 6% 20px;
		background-color: rgba(3, 43, 3, 0.644);
		border-bottom: 1px solid #dce5df;
		box-shadow: 0 8px 14px rgba(23, 63, 53, 0.1);
	}

	.links ul {
		display: grid;
		gap: 2px;
	}

	.links a {
		padding: 13px 8px;
		font-size: 0.9rem;
	}

	.links li:last-child a {
		margin-top: 8px;
		padding: 12px 16px;
		text-align: center;
	}

	.menu-toggle:checked ~ .links {
		display: block;
	}

	.menu-toggle:checked + .hamburger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle:checked + .hamburger span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle:checked + .hamburger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}
