:root {
	--paper: hsl(66, 68%, 97%);
	--mist: hsl(66, 68%, 92%);
	--pastelSoft: hsl(66, 68%, 85%);
	--pastel: hsl(66, 68%, 72%);
	--pastelDeep: hsl(66, 55%, 58%);
	--olive: hsl(66, 60%, 24%);
	--deep: hsl(66, 45%, 13%);
	--deepLine: hsl(66, 30%, 32%);
	--ink: hsl(66, 25%, 13%);
	--inkSoft: hsl(66, 14%, 30%);
	--rule: hsl(66, 32%, 78%);
	--railWidth: 17.5rem;
	--gutter: clamp(1.25rem, 5vw, 4.5rem);
}

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

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

body {
	margin: 0;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}

h1,
h2,
h3 {
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--deep);
	margin: 0 0 0.75rem;
}

p {
	margin: 0 0 1rem;
}

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

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

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

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

.skipLink {
	position: absolute;
	left: -999px;
	top: 0.75rem;
	z-index: 10;
	padding: 0.6rem 1rem;
	background: var(--deep);
	color: var(--paper);
}

.skipLink:focus {
	left: 0.75rem;
}

.frame {
	display: grid;
	grid-template-columns: var(--railWidth) minmax(0, 1fr);
	min-height: 100vh;
}

.sideRail {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem 1.5rem 1.5rem;
	background: var(--mist);
	color: var(--ink);
	border-right: 6px solid var(--pastel);
}

.railTop {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.brandMark {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--deep);
	text-decoration: none;
}

.brandMark:hover {
	color: var(--deep);
}

.brandLogo {
	width: 3.25rem;
	height: 3.25rem;
	flex: none;
}

.logoShape {
	fill: var(--pastel);
	stroke: var(--deep);
	stroke-width: 2;
}

.logoInner {
	fill: none;
	stroke: var(--deep);
	stroke-width: 1.2;
}

.logoGlyph {
	fill: none;
	stroke: var(--deep);
	stroke-width: 4;
	stroke-linejoin: miter;
}

.brandName {
	display: flex;
	flex-direction: column;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	line-height: 1.15;
}

.brandName small {
	font-weight: 400;
	font-size: 0.72rem;
	letter-spacing: 0.22em;
	color: var(--olive);
}

.langSwitch {
	display: inline-flex;
	align-items: center;
	margin: 0;
	border: 1px solid var(--deep);
	background: var(--paper);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1;
}

.langSwitch a {
	padding: 0.4rem 0.6rem;
	color: var(--deep);
	text-decoration: none;
}

.langSwitch a:hover {
	background: var(--pastelSoft);
}

.langSwitch .langActive,
.langSwitch .langActive:hover {
	background: var(--deep);
	color: var(--paper);
}

.langSep {
	padding: 0 0.15rem;
	color: var(--olive);
}

.railNav ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: navItem;
}

.railNav li {
	counter-increment: navItem;
}

.railNav a {
	display: grid;
	grid-template-columns: 2rem 1fr;
	align-items: center;
	padding: 0.7rem 0.75rem;
	border-left: 3px solid transparent;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.railNav a::before {
	content: counter(navItem, decimal-leading-zero);
	font-size: 0.75rem;
	color: var(--olive);
}

.railNav a:hover {
	background: var(--pastelSoft);
	color: var(--deep);
}

.railNav a[aria-current=page] {
	background: var(--pastel);
	border-left-color: var(--deep);
	color: var(--deep);
}

.railContact {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font-style: normal;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--inkSoft);
}

.railContact strong {
	display: block;
	color: var(--deep);
}

.railContact a {
	color: var(--olive);
	overflow-wrap: anywhere;
}

.pageBody {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pageBody main {
	flex: 1;
}

.kicker {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--olive);
}

.kicker::before {
	content: "";
	width: 0.65rem;
	height: 0.65rem;
	background: var(--pastelDeep);
	flex: none;
}

.heroBlock {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 2.5rem;
	align-items: center;
	padding: 4.5rem var(--gutter);
	background: var(--paper) url(pattern.svg);
	border-bottom: 1px solid var(--rule);
}

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

.heroLead {
	max-width: 38rem;
	font-size: 1.12rem;
	color: var(--inkSoft);
}

.heroActions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 1.25rem;
}

.heroAddress {
	margin: 0;
	font-size: 0.9rem;
	color: var(--inkSoft);
}

.heroFigure {
	margin: 0;
	padding: 1.25rem;
	background: var(--mist);
	border: 1px solid var(--deep);
	box-shadow: 10px 10px 0 var(--pastel);
}

.heroArt {
	width: 100%;
	height: auto;
}

.artLine {
	fill: none;
	stroke: var(--deep);
	stroke-width: 3;
	stroke-linejoin: miter;
}

.artAccent {
	fill: none;
	stroke: var(--pastelDeep);
	stroke-width: 3;
}

.actionLink {
	display: inline-flex;
	align-items: center;
	padding: 0.8rem 1.3rem;
	border: 2px solid var(--deep);
	background: var(--deep);
	color: var(--paper);
	font-weight: 500;
	text-decoration: none;
}

.actionLink:hover {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--paper);
}

.actionLink.quietAction {
	background: transparent;
	color: var(--deep);
}

.actionLink.quietAction:hover {
	background: var(--pastel);
	border-color: var(--deep);
	color: var(--deep);
}

.duoBack {
	fill: var(--pastel);
}

.duoSoft {
	fill: var(--pastelSoft);
}

.duoLine {
	fill: none;
	stroke: var(--deep);
	stroke-width: 2.5;
	stroke-linejoin: miter;
	stroke-linecap: square;
}

.homeBlock {
	padding: 4.5rem var(--gutter);
	border-bottom: 1px solid var(--rule);
}

.homeBlock.tinted {
	background: var(--mist);
	color: var(--ink);
}

.blockHead {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.blockHead h2 {
	margin: 0;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.blockIndex {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	flex: none;
	background: var(--pastel);
	border: 2px solid var(--deep);
	color: var(--deep);
	font-size: 0.9rem;
	font-weight: 700;
}

.blockIntro {
	max-width: 44rem;
	margin-bottom: 2.25rem;
	color: var(--inkSoft);
}

.qualityGrid,
.serviceGrid,
.sectorList,
.eraList,
.figureGrid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qualityGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 2rem;
}

.qualityItem {
	padding-left: 1.25rem;
	border-left: 4px solid var(--pastel);
}

.qualityIcon,
.serviceIcon {
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1rem;
}

.qualityItem h3,
.serviceCard h3 {
	font-size: 1.15rem;
}

.qualityItem p,
.serviceCard p {
	margin: 0;
	color: var(--inkSoft);
}

.historyGrid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.historyGrid p {
	color: var(--inkSoft);
}

.eraList {
	border-left: 2px solid var(--deep);
}

.eraList li {
	position: relative;
	padding: 0 0 1.5rem 1.75rem;
}

.eraList li:last-child {
	padding-bottom: 0;
}

.eraList li::before {
	content: "";
	position: absolute;
	left: -0.5rem;
	top: 0.3rem;
	width: 0.85rem;
	height: 0.85rem;
	background: var(--pastel);
	border: 2px solid var(--deep);
	transform: rotate(45deg);
}

.eraList strong {
	display: block;
	color: var(--deep);
}

.eraList span {
	font-size: 0.95rem;
	color: var(--inkSoft);
}

.serviceGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
	gap: 1.5rem;
}

.serviceCard {
	padding: 1.6rem 1.5rem;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--deep);
	border-top: 5px solid var(--pastelDeep);
	box-shadow: 6px 6px 0 var(--pastelSoft);
}

.sectorList {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sectorList li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 1rem 0.5rem 0.6rem;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--deep);
	font-weight: 500;
}

.sectorIcon {
	width: 1.9rem;
	height: 1.9rem;
	flex: none;
}

.figureBlock {
	padding: 4.5rem var(--gutter);
	background: var(--deep);
	color: var(--mist);
}

.figureBlock .blockHead h2 {
	color: var(--paper);
}

.figureBlock .blockIndex {
	background: var(--pastel);
	border-color: var(--pastel);
	color: var(--deep);
}

.figureBlock .blockIntro {
	color: var(--mist);
}

.figureGrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1rem;
}

.figureCell {
	padding: 1.5rem;
	border: 1px solid var(--deepLine);
	border-top: 4px solid var(--pastel);
}

.figureValue {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--pastel);
}

.figureNote {
	margin: 0;
	font-size: 0.95rem;
	color: var(--mist);
}

.contactGrid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 3rem;
	align-items: start;
}

.contactGrid > div > p {
	color: var(--inkSoft);
}

.contactList {
	margin: 1.5rem 0 0;
}

.contactList div {
	padding: 0.85rem 0;
	border-top: 1px solid var(--rule);
}

.contactList dt {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--olive);
}

.contactList dd {
	margin: 0.2rem 0 0;
	font-weight: 500;
	color: var(--deep);
	overflow-wrap: anywhere;
}

.mapFrame {
	margin: 0;
	background: var(--mist);
	border: 1px solid var(--deep);
	box-shadow: 10px 10px 0 var(--pastel);
}

.mapFrame img {
	width: 100%;
	height: auto;
}

.mapFrame figcaption {
	padding: 0.7rem 1rem;
	font-size: 0.85rem;
	color: var(--inkSoft);
	border-top: 1px solid var(--deep);
}

.pageIntro {
	padding: 4rem var(--gutter) 3.25rem;
	background: var(--mist) url(pattern.svg);
	color: var(--ink);
	border-bottom: 1px solid var(--rule);
}

.pageIntro h1 {
	max-width: 48rem;
	font-size: clamp(1.9rem, 4vw, 3rem);
}

.introLead {
	max-width: 44rem;
	margin: 0;
	font-size: 1.12rem;
	color: var(--inkSoft);
}

.proseBlock {
	max-width: 54rem;
	padding: 3rem var(--gutter) 4rem;
}

.proseSection {
	margin-bottom: 2.5rem;
}

.proseSection h2 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.4rem;
}

.proseSection h2::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	flex: none;
	background: var(--pastelDeep);
}

.proseSection ul {
	padding-left: 1.25rem;
	list-style: square;
}

.proseSection li {
	margin-bottom: 0.4rem;
}

.proseSection li::marker {
	color: var(--olive);
}

.legalText {
	counter-reset: legalItem;
}

.legalText .proseSection h2::before {
	counter-increment: legalItem;
	content: counter(legalItem, decimal-leading-zero);
	width: auto;
	height: auto;
	padding: 0.2rem 0.4rem;
	background: var(--pastel);
	color: var(--deep);
	font-size: 0.85rem;
}

.updatedNote {
	display: inline-block;
	margin-bottom: 2rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--deep);
	font-size: 0.9rem;
	color: var(--deep);
}

.noteBox {
	padding: 1.25rem 1.5rem;
	background: var(--mist);
	color: var(--ink);
	border-left: 5px solid var(--pastelDeep);
}

.noteBox p {
	margin: 0;
}

.stepList {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: stepItem;
}

.stepList li {
	counter-increment: stepItem;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.stepList li::before {
	content: counter(stepItem);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--pastel);
	border: 2px solid var(--deep);
	color: var(--deep);
	font-weight: 700;
}

.stepList strong {
	display: block;
	color: var(--deep);
}

.stepList span {
	color: var(--inkSoft);
}

.factPanel {
	margin: 0;
	padding: 1.75rem;
	background: var(--deep);
	color: var(--mist);
	box-shadow: 10px 10px 0 var(--pastel);
}

.factPanel div {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--deepLine);
}

.factPanel div:last-child {
	border-bottom: 0;
}

.factPanel dt {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pastel);
}

.factPanel dd {
	margin: 0.15rem 0 0;
	color: var(--paper);
	overflow-wrap: anywhere;
}

.factPanel a {
	color: var(--pastel);
}

.factPanel a:hover {
	color: var(--paper);
}

.widePanel {
	padding: 0 var(--gutter) 4rem;
}

.pageFoot {
	padding: 1.1rem var(--gutter);
	background: var(--mist);
	color: var(--ink);
	border-top: 1px solid var(--rule);
	font-size: 0.88rem;
}

.pageFoot p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
}

.pageFoot a {
	color: var(--olive);
}

@media (max-width: 1100px) {
	.heroBlock,
	.historyGrid,
	.contactGrid {
		grid-template-columns: minmax(0, 1fr);
	}

	.heroFigure {
		max-width: 30rem;
	}
}

@media (max-width: 860px) {
	.frame {
		grid-template-columns: minmax(0, 1fr);
	}

	.sideRail {
		position: relative;
		height: auto;
		overflow: visible;
		gap: 0.9rem;
		padding: 1rem 1.25rem;
		border-right: 0;
		border-bottom: 6px solid var(--pastel);
	}

	.railTop {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.brandLogo {
		width: 2.6rem;
		height: 2.6rem;
	}

	.brandName {
		font-size: 0.92rem;
	}

	.railNav ol {
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem;
	}

	.railNav a {
		grid-template-columns: auto auto;
		gap: 0.35rem;
		padding: 0.4rem 0.55rem;
		border-left: 0;
		border-bottom: 3px solid transparent;
		font-size: 0.9rem;
	}

	.railNav a[aria-current=page] {
		border-bottom-color: var(--deep);
	}

	.railContact {
		margin-top: 0;
		padding-top: 0.7rem;
		font-size: 0.8rem;
	}

	.heroBlock,
	.homeBlock,
	.figureBlock {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.heroFigure {
		box-shadow: 6px 6px 0 var(--pastel);
	}
}

@media (max-width: 420px) {
	.brandName small {
		letter-spacing: 0.12em;
	}

	.actionLink {
		width: 100%;
		justify-content: center;
	}

	.mapFrame,
	.factPanel {
		box-shadow: 5px 5px 0 var(--pastel);
	}
}
