:root {
	--base: #3c5e72;
	--baseDeep: #21343f;
	--ink: #19272f;
	--inkMuted: #4f6370;
	--rule: #c3d5df;
	--ruleStrong: #8fb0c3;
	--paper: #f5f8fa;
	--panel: #ffffff;
	--tint: #e8eff3;
	--accent: #2c6d64;
	--accentBright: #72cabe;
	--accentSoft: #e1efed;
	--onDeep: #eef4f7;
	--onDeepMuted: #bcd0dc;
	--fontHead: "Source Serif 4", Georgia, "Times New Roman", serif;
	--fontBody: "Lexend", "Segoe UI", system-ui, sans-serif;
	--gap: clamp(16px, 3vw, 28px);
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper) url(../rules.svg) repeat;
	color: var(--ink);
	font-family: var(--fontBody);
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.65;
}

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

h1,
h2,
h3 {
	font-family: var(--fontHead);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.6em;
}

h1 {
	font-size: clamp(2rem, 5.4vw, 3.3rem);
	letter-spacing: -0.01em;
}

h2 {
	font-size: clamp(1.45rem, 3.2vw, 1.95rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1em;
}

strong {
	font-weight: 500;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--base);
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.pageFrame {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--gap);
}

.siteHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
	border-bottom: 1px solid var(--ruleStrong);
}

.brandLink {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
	min-width: 0;
}

.brandLink:hover {
	color: var(--ink);
}

.logoMark {
	width: 44px;
	height: 44px;
	flex: none;
}

.logoMark .logoBox {
	fill: var(--base);
}

.logoMark .logoLetters {
	fill: none;
	stroke: #ffffff;
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.logoMark .logoRule {
	stroke: var(--accentBright);
	stroke-width: 2;
	stroke-linecap: round;
}

.brandName {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-family: var(--fontHead);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.brandName small {
	font-family: var(--fontBody);
	font-weight: 300;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--inkMuted);
}

.langSwitch {
	display: flex;
	align-items: center;
	flex: none;
	border: 1px solid var(--ruleStrong);
	border-radius: 999px;
	background: var(--panel);
	padding: 3px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
}

.langSwitch a {
	display: block;
	padding: 4px 10px;
	border-radius: 999px;
	color: var(--inkMuted);
	text-decoration: none;
}

.langSwitch a:hover {
	color: var(--accent);
}

.langSwitch a[aria-current] {
	background: var(--base);
	color: #ffffff;
}

.langDot {
	color: var(--ruleStrong);
	padding: 0 1px;
}

.siteFooter {
	margin-top: 48px;
	border-top: 1px solid var(--ruleStrong);
	padding: 28px 0 32px;
	font-size: 0.88rem;
	color: var(--inkMuted);
}

.footerGrid {
	display: grid;
	grid-template-columns: 1.2fr 2fr;
	gap: 24px;
}

.footerName {
	font-family: var(--fontHead);
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
	margin: 0 0 4px;
}

.footerAddress {
	font-style: normal;
	margin: 0;
}

.footerLinks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 6px 20px;
}

.footerLinks a {
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

.footerLinks a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.footerLinks a[aria-current] {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

.footerLegal {
	margin: 24px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	font-size: 0.8rem;
}

@media (max-width: 720px) {
	.footerGrid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.brandName {
		font-size: 0.9rem;
	}

	.brandName small {
		display: none;
	}

	.logoMark {
		width: 38px;
		height: 38px;
	}

	.langSwitch a {
		padding: 4px 8px;
	}
}
