:root {
	--fon:        #ffffff;
	--fon-tih:    #f4f5f7;
	--fon-tjomn:  #1c2530;
	--tekst:      #1a1f26;
	--tekst-tih:  #545c66;
	--akcent:     #b8442c;
	--granica:    #dfe2e7;
	--granica-tm: #33404f;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--tekst);
	background: var(--fon);
	-webkit-text-size-adjust: 100%;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding-inline: 24px;
}

a { color: var(--akcent); }

.header {
	background: var(--fon-tjomn);
	color: #fff;
}

.header__row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-block: 22px;
	flex-wrap: wrap;
}

.header__mark {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	text-decoration: none;
	background: var(--akcent);
}

.header__mark:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.header__name { flex: 1 1 auto; min-width: 0; }

.header__title {
	margin: 0 0 4px;
	font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.65rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.header__title span { font-weight: 400; color: #9aa4b0; }

.header__title a { color: inherit; text-decoration: none; }
.header__title a:hover { color: var(--akcent); }

.header__trade {
	margin: 0;
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	color: #9aa4b0;
}

.header__city {
	margin: 0;
	margin-left: auto;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #9aa4b0;
}

.menu {
	background: var(--fon-tjomn);
	border-top: 1px solid var(--granica-tm);
}

.menu__row { display: flex; flex-wrap: wrap; gap: 0 30px; }

.menu__row a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 4px 0;
	font-size: 0.97rem;
	font-weight: 600;
	color: #c6ccd4;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}

.menu__row a:hover { color: #fff; border-bottom-color: var(--granica-tm); }
.menu__row a[aria-current="page"] { color: #fff; border-bottom-color: var(--akcent); }
.menu__row a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.intro {
	background: var(--fon-tih);
	border-bottom: 1px solid var(--granica);
}

.intro__row {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-block: 52px;
}

.intro__main {
	margin: 0 0 18px;
	font-size: clamp(1.2rem, 1.02rem + 0.85vw, 1.5rem);
	line-height: 1.42;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.intro__text p:last-child { margin: 0; color: var(--tekst-tih); }

.intro__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--akcent);
}

.intro__list li {
	padding: 13px 0 13px 2px;
	border-bottom: 1px solid var(--granica);
	font-weight: 600;
	font-size: 1.02rem;
}

.band { padding-block: 46px; }
.band--dark { background: var(--fon-tih); }

.heading {
	margin: 0 0 20px;
	font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.38rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--akcent);
}

.band p { margin: 0 0 14px; }
.wide { max-width: 68ch; }

.columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 0 40px;
}

.columns p { margin: 0 0 14px; }

.projects {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 780px;
	border-top: 1px solid var(--granica);
}

.projects li {
	display: grid;
	grid-template-columns: minmax(0, 28ch) 1fr;
	gap: 4px 28px;
	align-items: baseline;
	padding: 13px 0;
	border-bottom: 1px solid var(--granica);
	font-size: 0.97rem;
	line-height: 1.5;
}

.projects strong { font-weight: 600; }
.projects li > br { display: none; }

.projects li { color: var(--tekst-tih); }
.projects strong { color: var(--tekst); }

main.wrap { padding-block: 42px 16px; }

.block { margin-bottom: 42px; max-width: 70ch; }

.block h1 {
	margin: 0 0 20px;
	font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	padding-bottom: 11px;
	border-bottom: 2px solid var(--akcent);
}

.block h2 {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 700;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--granica);
}

.block p { margin: 0 0 15px; }

.lead {
	font-size: 1.1rem;
	line-height: 1.55;
	font-weight: 600;
}

.services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 32px;
	max-width: none;
}

.services li {
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid var(--granica);
	position: relative;
	font-weight: 600;
}

.services li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 1.28em;
	width: 9px;
	height: 2px;
	background: var(--akcent);
}

.block:has(.services), .block:has(.project-list),
.block:has(.photo), .block:has(.photos) { max-width: none; }

.project-list {
	max-width: 780px;
	border-top: 1px solid var(--granica);
}

.project {
	display: grid;
	grid-template-columns: minmax(0, 28ch) 1fr;
	gap: 4px 28px;
	align-items: baseline;
	padding: 15px 0;
	border-bottom: 1px solid var(--granica);
}

.project h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	padding: 0;
	border: 0;
}

.project p { margin: 0; font-size: 0.95rem; color: var(--tekst-tih); line-height: 1.5; }

.more { margin: 0; padding-top: 26px; font-size: 0.95rem; }

.more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 28px;
	font-weight: 600;
	color: var(--akcent);
	text-decoration: none;
	border-bottom: 1px solid var(--granica);
	padding-bottom: 3px;
}

.more a::after { content: "\203A"; font-size: 1.2em; line-height: 1; }
.more a:hover, .more a:focus-visible { border-bottom-color: var(--akcent); }

.footer {
	margin-top: 10px;
	padding-block: 30px 34px;
	background: var(--fon-tjomn);
	color: #9aa4b0;
	font-size: 0.92rem;
}

.footer__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.footer p { margin: 0; line-height: 1.6; }
.footer strong { color: #fff; font-weight: 600; }
.footer a { color: #c6ccd4; }
.footer a:hover { color: #fff; }

.photo {
	margin: 0 0 26px;
}

.photo img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--fon-tih);
}

.photo figcaption {
	margin-top: 10px;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--tekst-tih);
}

.photos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 30px;
}

.photos .photo { margin: 0; }

.photos--one { grid-template-columns: repeat(auto-fit, minmax(280px, 520px)); }

.photo:last-child { margin-bottom: 0; }

.project-list + .photo,
.photos + .photo { margin-top: 30px; }

.address {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px 40px;
	align-items: start;
}

.address address {
	font-style: normal;
	line-height: 1.7;
}

.address address strong { display: block; margin-bottom: 4px; }

.address > div { max-width: 62ch; }

.photo--lead { max-width: 860px; }

@media (max-width: 820px) {
	.intro__row { grid-template-columns: 1fr; gap: 30px; padding-block: 34px; }
}

@media (max-width: 600px) {
	.header__row { gap: 14px; padding-block: 18px; }
	.header__mark { width: 52px; height: 52px; font-size: 1rem; }
	.header__city { margin-left: 0; width: 100%; }
	.menu__row { gap: 0 20px; }
	.band { padding-block: 32px; }
	.projects li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
	.photos { gap: 18px; }
	.address { gap: 22px; }
	.project { grid-template-columns: 1fr; gap: 2px; padding: 13px 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

.path {
	margin: 0 0 10px;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	color: var(--tekst-tih);
}

.path a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	color: var(--tekst-tih);
	text-decoration: none;
	border-bottom: 1px solid var(--granica);
}

.path a:hover, .path a:focus-visible { color: var(--akcent); border-bottom-color: var(--akcent); }

.article h1 { line-height: 1.3; text-wrap: balance; }
.article h2 { margin-top: 40px; line-height: 1.35; }
.article h1 + p, .article h1 + .lead { margin-top: 0; }

.article h3 {
	margin: 26px 0 8px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.4;
}

.article ul, .article ol { margin: 0 0 16px; padding-left: 1.25em; }
.article li { margin-bottom: 6px; padding-left: 2px; }
.article li::marker { color: var(--akcent); }

.table-wrap {
	margin: 8px 0 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
	line-height: 1.5;
}

.data-table caption {
	caption-side: top;
	text-align: left;
	padding-bottom: 8px;
	font-weight: 600;
	color: var(--tekst);
}

.data-table th, .data-table td {
	text-align: left;
	vertical-align: top;
	padding: 9px 14px 9px 0;
	border-bottom: 1px solid var(--granica);
}

.data-table thead th {
	font-weight: 700;
	border-bottom: 2px solid var(--akcent);
	white-space: nowrap;
}

.data-table td { font-variant-numeric: tabular-nums; }

.diagram { margin: 10px 0 28px; }

.diagram svg {
	display: block;
	width: 100%;
	height: auto;
	background: var(--fon-tih);
	border: 1px solid var(--granica);
}

.diagram--narrow svg { max-width: 440px; }
.diagram--medium svg { max-width: 560px; }

.diagram figcaption {
	margin-top: 10px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tekst-tih);
}

.diagram figcaption > p { margin: 0 0 6px; color: var(--tekst); font-weight: 600; }

.legend {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: poz;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px 24px;
}

.article .legend { padding-left: 0; }
.article .legend li { margin: 0; padding-left: 30px; position: relative; }

.legend li::before {
	counter-increment: poz;
	content: counter(poz);
	position: absolute;
	left: 0;
	top: 0.15em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--akcent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.faq h3 { margin-top: 22px; }
.faq h3:first-child { margin-top: 4px; }
.faq p { margin: 0 0 12px; }

.article .normen {
	list-style: none;
	padding: 0;
	font-size: 0.94rem;
	border-top: 1px solid var(--granica);
}

.article .normen li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid var(--granica);
}

.articles {
	list-style: none;
	margin: 6px 0 30px;
	padding: 0;
	border-top: 2px solid var(--akcent);
}

.article .articles { padding-left: 0; }

.articles li {
	margin: 0;
	padding: 15px 0;
	border-bottom: 1px solid var(--granica);
}

.articles__title {
	display: inline-block;
	padding-block: 6px 3px;
	font-weight: 700;
	font-size: 1.04rem;
	line-height: 1.4;
	color: var(--tekst);
	text-decoration: none;
	border-bottom: 1px solid var(--granica);
}

.articles__title::after { content: " \203A"; color: var(--akcent); }
.articles__title:hover, .articles__title:focus-visible { color: var(--akcent); border-bottom-color: var(--akcent); }

.articles p { margin: 6px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--tekst-tih); }

.services li:has(> a) { padding-top: 0; padding-bottom: 0; }
.intro__list li:has(> a) { padding-top: 0; padding-bottom: 0; }

.services li > a, .intro__list li > a {
	display: block;
	padding-block: 12px;
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--granica);
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
	transition: color .18s ease, text-decoration-color .18s ease;
}

.intro__list li > a { padding-block: 13px; }

.services li > a::after, .intro__list li > a::after { content: " \203A"; color: var(--akcent); }
.services li > a:hover, .intro__list li > a:hover,
.services li > a:focus-visible, .intro__list li > a:focus-visible { color: var(--akcent); text-decoration-color: var(--akcent); }

@media (max-width: 600px) {
	.article h2 { margin-top: 32px; }
	.data-table { font-size: 0.9rem; }
}

.article h1 + .byline { margin: -8px 0 22px; font-size: 0.88rem; color: var(--tekst-tih); }

.inhalt {
	margin: 0 0 34px;
	padding: 16px 20px 14px;
	background: var(--fon-tih);
	border-left: 3px solid var(--akcent);
}

.inhalt p { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tekst-tih); }
.article .inhalt ol { margin: 0; padding-left: 1.3em; columns: 2 260px; column-gap: 32px; }
.article .inhalt li { margin: 0; padding: 2px 0; break-inside: avoid; font-size: 0.95rem; line-height: 1.5; }
.inhalt a { color: var(--tekst); text-decoration: underline; text-decoration-color: var(--granica); text-underline-offset: 4px; line-height: 1.9; }
.inhalt a:hover, .inhalt a:focus-visible { color: var(--akcent); text-decoration-color: var(--akcent); }
.article h2[id] { scroll-margin-top: 16px; }
