/* Шрифт Onest: кириллица и латиница, переменный вес */
@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-math-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+2190, U+2192, U+2194-21AE, U+2212, U+2216-22FF;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/onest-symbols-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+2300-243F, U+25A0-27BF;
}

/*
	Дизайн-система ОЛАЙСИС.
	Идея: знак компании (три вложенных уголка) становится мотивом всего сайта:
	обрезанная фигура на первом экране, срез угла у фотографий и кнопок,
	маркер в списках, собранный из блоков знак в подвале.
*/
:root {
	--bg: #e8eef9;
	--surface: #d7e2f5;
	--paper: #f4f7fd;
	--ink: #0a1030;
	--muted: #38456a;
	--accent: #0007dc;
	--accent-ink: #ffffff;
	--cyan: #00b9f5;
	--blue: #0086f5;
	--field: #0a1030;
	--field-ink: #e8eef9;

	--font: "Onest", "Segoe UI", Arial, sans-serif;

	--step-small: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
	--step-body: 1rem;
	--step-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--step-head: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
	--step-display: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);

	--margin: clamp(16px, 2vw, 24px);
	--gutter: clamp(16px, 1.5vw, 20px);
	--section-pad: clamp(36px, 4vw, 56px);
	--strip-height: 40px;
	--bar-height: 80px;
	--notch: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--bar-height) + 24px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--step-body);
	line-height: 1.55;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address {
	margin: 0;
}

ul, ol {
	padding: 0;
}

address {
	font-style: normal;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button, input {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--cyan);
	outline-offset: 3px;
}

::selection {
	background: var(--accent);
	color: var(--accent-ink);
}

[hidden] {
	display: none !important;
}

.page_dialog-open {
	overflow: hidden;
}

.container {
	width: min(calc(100% - var(--margin) * 2), 1200px);
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: -100px;
	left: var(--margin);
	z-index: 40;
	padding: 14px 20px;
	background: var(--ink);
	color: var(--bg);
}

.skip-link:focus {
	top: 8px;
}

/* Знак: три уголка логотипа */
.mark__part_dark {
	fill: var(--accent);
}

.mark__part_cyan {
	fill: var(--cyan);
}

.mark__part_blue {
	fill: var(--blue);
}

/* Кнопки и ссылки: общий срез угла */
.button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 18px 30px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 500;
	line-height: 1.2;
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% 100%, 0 100%);
	transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.button:hover {
	background: var(--ink);
}

.button:active {
	transform: translateY(2px);
}

.button_light {
	background: var(--bg);
	color: var(--accent);
}

.button_light:hover {
	background: var(--ink);
	color: var(--bg);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--accent);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
	transition: color .2s var(--ease), gap .2s var(--ease);
}

.text-link:hover {
	color: var(--ink);
	gap: 16px;
}

.status-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.status-dot_light {
	background: var(--cyan);
}

/* Заголовки секций */
.section {
	position: relative;
	padding-block: var(--section-pad);
}

.section-heading {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: end;
	margin-bottom: clamp(40px, 3.5vw, 56px);
}

.section-heading > div {
	grid-column: 1 / 8;
}

.section-heading__description {
	grid-column: 9 / 13;
	max-width: 44ch;
}

.section-title {
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.article-title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-wrap: balance;
}

/* Маркер списков: уголок знака */
.prose {
	max-width: 60ch;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.prose h3 {
	margin-top: 1.8em;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.prose ul, .prose ol {
	display: grid;
	gap: 12px;
	list-style: none;
}

.prose ul > li {
	position: relative;
	padding-left: 32px;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	top: .42em;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.prose ol {
	counter-reset: step;
}

.prose ol > li {
	position: relative;
	padding-left: 40px;
	counter-increment: step;
}

.prose ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	font-weight: 500;
	color: var(--accent);
}

.prose a, .company__point-copy a, .page-intro a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.prose a:hover, .company__point-copy a:hover, .page-intro a:hover {
	color: var(--ink);
}

/* Шапка: полоса контактов и обычная панель без стекла */
.header {
	position: sticky;
	top: calc(var(--strip-height) * -1);
	z-index: 30;
	background: var(--bg);
	transition: transform .4s var(--ease);
}

.header_hidden {
	transform: translateY(-100%);
}

.header__top {
	height: var(--strip-height);
	background: var(--field);
	color: var(--field-ink);
}

.header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 24px;
	font-size: var(--step-small);
}

.header__contacts {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.7vw, 24px);
}

.header__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: color .2s var(--ease);
}

.header__contact-link:hover {
	color: var(--cyan);
}

.header__contact-icon {
	width: 16px;
	height: 16px;
	color: var(--cyan);
	flex-shrink: 0;
}

.header__contact-label {
	opacity: .72;
}

.header__top-caption {
	opacity: .72;
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--bar-height);
	gap: 24px;
}

.header__brand {
	display: flex;
	align-items: center;
	gap: 24px;
}

.logo {
	display: block;
	flex-shrink: 0;
}

.logo__image {
	width: 155px;
	height: auto;
}

.header__description {
	display: grid;
	font-size: var(--step-small);
	white-space: nowrap;
	font-weight: 500;
	line-height: 1.3;
}

.header__description span {
	color: var(--muted);
	font-weight: 400;
}

.navigation {
	display: flex;
	align-items: center;
	gap: 4px;
}

.navigation__link {
	display: block;
	padding: 11px 16px;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.navigation__link:hover, .navigation__link_active {
	background: var(--accent);
	color: var(--accent-ink);
	clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% 100%, 0 100%);
}

.navigation__services {
	position: static;
}

.navigation__services-head {
	display: flex;
	align-items: center;
}

.navigation__toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--accent);
}

.navigation__toggle svg {
	width: 16px;
	height: 16px;
	transition: transform .2s var(--ease);
}

.navigation__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.menu-toggle {
	display: none;
}

/* Меню услуг */
.header__inner {
	position: relative;
}

.mega-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 40;
	width: min(900px, 100%);
	background: var(--paper);
	box-shadow: 0 24px 48px rgb(10 16 48 / 24%); /* taste-skill-ignore: меню и диалог — настоящие оверлеи */
}

.mega-menu__inner {
	position: relative;
	min-height: min(560px, calc(100dvh - var(--bar-height) - 80px));
}

.mega-menu__groups {
	width: 320px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
}

.mega-menu__category {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
}

.mega-menu__category > a {
	flex: 1;
	padding: 14px 20px;
	font-size: var(--step-small);
	font-weight: 500;
	line-height: 1.3;
	transition: color .2s var(--ease);
}

.mega-menu__category > a:hover {
	color: var(--accent);
}

.mega-menu__group_active > .mega-menu__category {
	background: var(--surface);
}

.mega-menu__group_active > .mega-menu__category > a {
	color: var(--accent);
}

.mega-menu__expand {
	width: 44px;
	border: 0;
	background: transparent;
	color: var(--accent);
	font-size: var(--step-lead);
	line-height: 1;
}

.mega-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 320px;
	padding: 24px 28px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.mega-menu__heading {
	margin-bottom: 14px;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.mega-menu__panel ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-menu__panel li a {
	display: block;
	padding: 8px 0;
	font-size: var(--step-small);
	line-height: 1.35;
	transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.mega-menu__panel li a:hover {
	padding-left: 8px;
	color: var(--accent);
}

.mega-menu__all {
	display: flex;
	justify-content: space-between;
	padding: 16px 20px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: var(--step-small);
	font-weight: 500;
	transition: background-color .2s var(--ease);
}

.mega-menu__all:hover {
	background: var(--ink);
}

/* Главная: первый экран */
.company__hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 0;
	padding-block: clamp(28px, 3vw, 44px);
	overflow: hidden;
}

.company__hero-inner {
	position: relative;
	z-index: 1;
}

.company__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: min(60vw, 720px);
}

.company__title {
	font-size: var(--step-display);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -.03em;
}

.company__lead {
	max-width: 52ch;
}

.company__mark {
	position: absolute;
	top: 50%;
	right: max(var(--margin), calc((100vw - 1200px) / 2));
	width: min(24vw, 240px);
	height: auto;
	transform: translateY(-50%);
	animation: shutter 1.1s var(--ease) both;
}

@keyframes shutter {
	from {
		clip-path: inset(0 0 0 100%);
		transform: translateY(-50%) scale(1.12);
	}
	to {
		clip-path: inset(0 0 0 0);
		transform: translateY(-50%) scale(1);
	}
}

.company__points {
	display: grid;
	gap: clamp(44px, 4.2vw, 64px);
	padding-block: var(--section-pad);
}

.company__point {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.company__point-heading {
	grid-column: 1 / 6;
}

.company__point-title {
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.company__point-copy {
	grid-column: 7 / 13;
	display: grid;
	gap: 1em;
	max-width: 62ch;
}

.company__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	object-position: 50% 30%;
	margin-top: 2em;
	clip-path: polygon(0 0, 62% 0, 62% 22%, 100% 22%, 100% 100%, 0 100%);
}

/* Услуги: синее поле, список без карточек */
.expertise {
	background: var(--accent);
	color: var(--accent-ink);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 2.4vw, 32px) var(--gutter);
}

.service {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
}

.service__image {
	width: 100%;
	height: auto;
	margin-bottom: 8px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	clip-path: polygon(0 0, 62% 0, 62% 9%, 100% 9%, 100% 100%, 0 100%);
	transition: transform .5s var(--ease);
}

.service:hover .service__image {
	transform: scale(1.03);
}

.service__title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}



.service__description {
	max-width: 46ch;
	opacity: .88;
}

.service__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cyan);
	font-weight: 500;
	transition: gap .2s var(--ease);
}

.service:hover .service__tag {
	gap: 14px;
}

/* Инженерная разработка: иллюстрация на поле, текст справа */
.development {
	background: var(--surface);
}

.development__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: center;
}

.development__figure {
	grid-column: 1 / 7;
	background: var(--cyan);
	padding: clamp(20px, 2.8vw, 40px);
	clip-path: polygon(0 0, 62% 0, 62% 14%, 100% 14%, 100% 100%, 0 100%);
}

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

.development__text {
	grid-column: 8 / 13;
	display: grid;
	gap: clamp(32px, 3.5vw, 44px);
}

.section-title_size_display {
	font-size: var(--step-display);
	line-height: 1.06;
}

.development__items {
	display: grid;
	gap: 40px;
}

.development__item {
	position: relative;
	display: grid;
	gap: 10px;
	padding-left: 40px;
}

.development__item::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 22px;
	height: 22px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.development__title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

/* Наши работы: ступенчатые плитки */
.projects__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.project:nth-child(2) {
	margin-top: clamp(24px, 3.5vw, 56px);
}

.project:nth-child(3) {
	margin-top: clamp(12px, 1.4vw, 20px);
}

.project:nth-child(4) {
	margin-top: clamp(40px, 4.9vw, 80px);
}

.project__preview {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: var(--surface);
	overflow: hidden;
	clip-path: polygon(0 0, 62% 0, 62% 18%, 100% 18%, 100% 100%, 0 100%);
}

.project__image {
	width: 100%;
	height: auto;
	aspect-ratio: 370 / 250;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.project__preview:hover .project__image {
	transform: scale(1.05);
}

.project__zoom {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: var(--accent);
	color: var(--accent-ink);
	transition: background-color .2s var(--ease);
}

.project__preview:hover .project__zoom {
	background: var(--ink);
}

.project__meta {
	display: block;
	margin-top: 16px;
	color: var(--muted);
	font-size: var(--step-small);
}

.project__title {
	margin-top: 6px;
	font-size: var(--step-body);
	font-weight: 500;
	line-height: 1.3;
}

/* Системы и отрасли: тёмное поле, меню в две колонки */
.systems {
	background: var(--field);
	color: var(--field-ink);
}

.systems__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 2.4vw, 36px) clamp(24px, 4.2vw, 68px);
}

.system {
	position: relative;
	padding-left: 44px;
}

.system::before {
	content: "";
	position: absolute;
	top: .25em;
	left: 0;
	width: 24px;
	height: 24px;
	background: var(--cyan);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.system:nth-child(even)::before {
	background: var(--blue);
}

.system__title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.system__description {
	max-width: 42ch;
	margin-top: 8px;
	opacity: .82;
}

.support {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: clamp(16px, 2.1vw, 28px);
	align-items: center;
	margin-top: clamp(44px, 4.2vw, 64px);
	padding: clamp(24px, 2.4vw, 36px);
	background: var(--accent);
	color: var(--accent-ink);
	clip-path: polygon(0 0, 62% 0, 62% 24px, 100% 24px, 100% 100%, 0 100%);
}

.support__symbol {
	width: 56px;
	height: 56px;
	background: var(--cyan);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.support__title {
	margin-bottom: 8px;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.support .text-link {
	color: var(--accent-ink);
}

.support .text-link:hover {
	color: var(--cyan);
}

/* Оборудование */
.equipment__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 var(--gutter);
	align-items: center;
}

.equipment__intro {
	grid-column: 1 / 7;
	grid-row: 1;
	display: grid;
	gap: 32px;
}

.equipment__list {
	grid-column: 1 / 7;
	grid-row: 2;
	display: grid;
	gap: 32px;
	margin-top: clamp(20px, 2.1vw, 28px);
}

.equipment__description {
	max-width: 50ch;
}

.equipment__subtitle {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.equipment__brands {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 24px;
	font-size: var(--step-body);
	font-weight: 500;
	line-height: 1.2;
}

.equipment__more summary {
	display: inline-flex;
	gap: 10px;
	color: var(--accent);
	font-weight: 500;
	cursor: pointer;
}

.equipment__more p {
	margin-top: 12px;
}

.equipment__note {
	max-width: 54ch;
	color: var(--muted);
}

.equipment__figure {
	grid-column: 8 / 13;
	grid-row: 1 / 3;
	background: var(--accent);
	padding: clamp(20px, 2.4vw, 36px);
	clip-path: polygon(0 0, 62% 0, 62% 14%, 100% 14%, 100% 100%, 0 100%);
}

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

/* Призыв: вся полоса — ссылка */
.footer__intro {
	position: relative;
	background: var(--accent);
	color: var(--accent-ink);
	clip-path: polygon(0 0, 62% 0, 62% 32px, 100% 32px, 100% 100%, 0 100%);
	transition: background-color .15s, color .15s;
}

.footer__intro-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(24px, 2.8vw, 36px);
	padding-block: clamp(40px, 3.5vw, 48px);
}

.footer__headline {
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.footer__cta {
	display: flex;
	align-items: baseline;
	gap: .2em;
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
	font-weight: 600;
	line-height: .95;
	letter-spacing: -.045em;
	white-space: nowrap;
}

.footer__intro:has(.footer__cta:is(:hover, :focus-visible)) {
	background: var(--bg);
	color: var(--accent);
}

/* Подвал: знак, собранный из блоков, и ссылки */
.footer__body {
	background: var(--surface);
	padding-block: clamp(56px, 5.6vw, 92px) clamp(20px, 1.8vw, 24px);
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(24px, 2.8vw, 40px) var(--gutter);
	align-items: start;
}

.footer__mark {
	grid-column: 1 / 5;
	grid-row: 1 / 3;
	align-self: end;
	width: 100%;
	max-width: 160px;
	height: auto;
}

.footer__company {
	grid-column: 5 / 9;
	display: grid;
	gap: 20px;
	justify-items: start;
}

.footer__description {
	max-width: 36ch;
}

.footer__accreditation {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.footer__column {
	grid-column: span 2;
	display: grid;
	gap: 10px;
	align-content: start;
}

.footer__column_contacts {
	grid-column: 5 / 13;
	grid-row: 2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--gutter);
	row-gap: 12px;
}

.footer__heading {
	grid-column: 1 / -1;
	font-size: var(--step-body);
	font-weight: 500;
	color: var(--muted);
}

.footer__link {
	width: fit-content;
	font-weight: 500;
	transition: color .2s var(--ease);
}

.footer__link:hover, .footer__email:hover {
	color: var(--accent);
}

.footer__phone {
	font-size: var(--step-lead);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.12;
}

.footer__email {
	font-size: var(--step-lead);
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.12;
	transition: color .2s var(--ease);
}

.footer__address {
	grid-column: 1 / 2;
}

.footer__contact-note {
	grid-column: 2 / 3;
	color: var(--muted);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: clamp(40px, 4.2vw, 60px);
	font-size: var(--step-small);
}

.footer__signature {
	color: var(--muted);
}

.footer__back {
	display: inline-flex;
	gap: 8px;
	padding: 10px 18px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 500;
	transition: background-color .2s var(--ease);
}

.footer__back:hover {
	background: var(--ink);
}

/* Окно с фотографией проекта */
.project-dialog {
	width: min(760px, calc(100% - var(--margin) * 2));
	max-height: calc(100dvh - var(--margin) * 2);
	padding: clamp(16px, 2.1vw, 24px);
	border: 0;
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 32px 64px rgb(10 16 48 / 40%); /* taste-skill-ignore: меню и диалог — настоящие оверлеи */
}

.project-dialog::backdrop {
	background: rgb(10 16 48 / 72%);
}

.project-dialog__head {
	display: flex;
	justify-content: flex-end;
}

.project-dialog__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: var(--step-lead);
	line-height: 1;
	transition: background-color .2s var(--ease);
}

.project-dialog__close:hover {
	background: var(--ink);
}

.project-dialog__title {
	margin: 16px 0 20px;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.02em;
}

.project-dialog__image {
	width: 100%;
	height: auto;
	aspect-ratio: 370 / 250;
	object-fit: cover;
	background: var(--surface);
}

.project-dialog__note {
	margin-top: 16px;
	color: var(--muted);
	font-size: var(--step-small);
}

/* Внутренние страницы: заголовок и хлебные крошки */
.inner-page {
	position: relative;
	padding-bottom: var(--section-pad);
}

.page-heading {
	position: relative;
	display: grid;
	gap: 28px;
	padding-block: clamp(32px, 2.8vw, 40px) clamp(40px, 3.5vw, 56px);
}

.page-heading::after {
	content: "";
	position: absolute;
	top: 0;
	right: calc(var(--margin) * -1);
	width: clamp(40px, 4vw, 60px);
	aspect-ratio: 320 / 440;
	background: var(--cyan);
	clip-path: polygon(65.3% 0, 100% 0, 100% 100%, 0 100%, 0 77.3%, 65.3% 77.3%);
	pointer-events: none;
}

.page-heading_detail {
	padding-bottom: clamp(20px, 2.1vw, 24px);
}

.page-heading_detail::after {
	display: none;
}

.page-heading__title {
	max-width: 60%;
	font-size: var(--step-display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	color: var(--muted);
	font-size: var(--step-small);
}

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

.breadcrumbs__separator {
	opacity: .5;
}

.page-intro {
	max-width: 46ch;
	font-size: var(--step-lead);
	line-height: 1.4;
	letter-spacing: -.01em;
}

/* Полосы на всю ширину окна: сам блок выходит за контейнер, содержимое остаётся в нём */
.about__section,
.catalog-card,
.delivery,
.contact-requisites {
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(50vw - 50%);
	background: var(--surface);
}

/* О компании */
.about {
	position: relative;
	isolation: isolate;
	display: grid;
}

.about__cover {
	margin-bottom: 0;
}

.about__image {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 1;
	object-fit: cover;
	object-position: 50% 28%;
	clip-path: polygon(0 0, 62% 0, 62% 14%, 100% 14%, 100% 100%, 0 100%);
}

.about__section {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	padding-block: var(--section-pad);
}

.about__section:nth-of-type(odd) {
	background: var(--bg);
}

.about__section:last-of-type {
	background: var(--accent);
	color: var(--accent-ink);
}

.about__section-label {
	grid-column: 1 / 6;
}

.about__section .prose,
.about__section .benefit-list {
	grid-column: 7 / 13;
}

.benefit-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 32px;
	list-style: none;
}

.benefit-list__item {
	position: relative;
	padding-left: 32px;
	font-weight: 500;
}

.benefit-list__item::before {
	content: "";
	position: absolute;
	top: .4em;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.about__section:last-of-type .prose a:not(.button) {
	color: var(--accent-ink);
}

.about__section:last-of-type .prose ul > li::before {
	background: var(--cyan);
}

/* Контакты */
.contacts-page {
	display: grid;
	gap: var(--section-pad);
}

.contacts-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: stretch;
}

.contact-panel {
	grid-column: 1 / 7;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 24px;
}

.contact-panel__phone {
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
	transition: color .2s var(--ease);
}

.contact-panel__phone:hover, .contact-panel__email:hover {
	color: var(--accent);
}

.contact-panel__email {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.02em;
	transition: color .2s var(--ease);
}

.contact-hours {
	grid-column: 7 / 13;
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 24px;
	padding: clamp(20px, 2.1vw, 28px);
	background: var(--surface);
	clip-path: polygon(0 0, 62% 0, 62% 24px, 100% 24px, 100% 100%, 0 100%);
}

.hours-list {
	display: grid;
	gap: 12px;
	width: 100%;
}

.hours-list > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.hours-list dd {
	font-weight: 500;
}

.office-map {
	position: relative;
}

.office-map__frame {
	display: block;
	width: 100%;
	height: clamp(240px, 26vw, 360px);
	border: 0;
	background: var(--surface);
}

.office-map__link {
	display: inline-flex;
	gap: 8px;
	margin-top: 16px;
	color: var(--accent);
	font-weight: 500;
}

.contact-requisites {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
	padding-block: var(--section-pad);
	background: var(--field);
	color: var(--field-ink);
}

.contact-requisites > div {
	grid-column: 1 / 6;
}

.contact-requisites .details-list {
	grid-column: 7 / 13;
}

.contact-requisites .text-link {
	grid-column: 7 / 13;
	color: var(--cyan);
}

.details-list {
	display: grid;
	gap: 16px;
}

.details-list__row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--gutter);
}

.details-list dt {
	opacity: .72;
}

.details-list dd {
	font-weight: 500;
}

.details-list a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Оплата и доставка */
.payment {
	display: grid;
	gap: var(--section-pad);
}

.payment__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.info-panel {
	display: grid;
	gap: 32px;
	justify-items: start;
	padding: clamp(20px, 2.1vw, 28px);
	clip-path: polygon(0 0, 62% 0, 62% 24px, 100% 24px, 100% 100%, 0 100%);
	background: var(--paper);
}

.info-panel_tinted {
	background: var(--surface);
}

.info-panel .details-list {
	width: 100%;
}

.delivery {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gutter);
	padding-block: var(--section-pad);
	background: var(--field);
	color: var(--field-ink);
}

.delivery__item {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 20px;
}

.delivery__item .text-link {
	color: var(--cyan);
}

.delivery__schedule {
	color: var(--cyan);
	font-weight: 500;
}

/* Услуги: список направлений */
.catalog {
	display: grid;
	gap: var(--section-pad);
}

.catalog-intro {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: end;
}

.catalog-intro .page-intro {
	grid-column: 1 / 8;
}

.catalog-intro__count {
	grid-column: 9 / 13;
	display: grid;
	font-size: var(--step-head);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.03em;
}

.catalog-intro__count span {
	font-size: var(--step-body);
	font-weight: 400;
	letter-spacing: 0;
}

.catalog__grid {
	display: grid;
	isolation: isolate;
}

.catalog-card {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: center;
	padding-block: clamp(24px, 2.1vw, 28px);
}

.catalog-card:nth-child(even) {
	background: var(--surface);
}

.catalog-card:nth-child(odd) {
	background: var(--bg);
}

.catalog-card__image {
	grid-column: 1 / 4;
	grid-row: 1 / 3;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	clip-path: polygon(0 0, 62% 0, 62% 10%, 100% 10%, 100% 100%, 0 100%);
}

.catalog-card__title {
	grid-column: 4 / 13;
	grid-row: 1;
	align-self: end;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.02em;
	transition: color .2s var(--ease);
}

.catalog-card__title a::before {
	content: "";
	display: inline-block;
	width: .7em;
	height: .7em;
	margin-right: .5em;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.catalog-card:hover .catalog-card__title {
	color: var(--accent);
}

.catalog-card__description {
	grid-column: 4 / 9;
	grid-row: 2;
	align-self: start;
}

.catalog-card__link {
	grid-column: 9 / 13;
	grid-row: 2;
	align-self: start;
	justify-self: end;
	color: var(--accent);
	font-weight: 500;
	white-space: nowrap;
}

.catalog-card_help,
.catalog-card_help:nth-child(odd),
.catalog-card_help:nth-child(even) {
	background: var(--accent);
	color: var(--accent-ink);
}

.catalog-card_help .catalog-card__title {
	grid-column: 1 / 7;
	grid-row: auto;
	align-self: center;
}

.catalog-card_help .catalog-card__description {
	grid-column: 7 / 11;
	grid-row: auto;
	align-self: center;
}

.catalog-card_help .catalog-card__link {
	grid-column: 11 / 13;
	grid-row: auto;
	align-self: center;
	color: var(--accent-ink);
}

.service-request {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: center;
	padding: clamp(24px, 2.8vw, 40px);
	background: var(--surface);
	clip-path: polygon(0 0, 62% 0, 62% 24px, 100% 24px, 100% 100%, 0 100%);
}

.service-request > div {
	grid-column: 1 / 9;
	display: grid;
	gap: 16px;
}

.service-request .button {
	grid-column: 10 / 13;
	justify-self: end;
}

/* Раздел услуг и карточка услуги: боковое меню и содержимое */
.service-layout {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.service-sidebar {
	grid-column: 1 / 4;
	position: sticky;
	top: calc(var(--bar-height) + 24px);
	display: grid;
	gap: 24px;
	min-width: 0;
}

.service-sidebar__menu summary {
	display: none;
	padding: 14px 18px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.service-sidebar__nav {
	display: grid;
	gap: 2px;
}

.service-sidebar__heading {
	margin-bottom: 12px;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.service-sidebar__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	font-size: var(--step-small);
	font-weight: 500;
	line-height: 1.3;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.service-sidebar__link:hover {
	background: var(--surface);
	color: var(--accent);
}

.service-sidebar__link_active {
	background: var(--accent);
	color: var(--accent-ink);
	clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% 100%, 0 100%);
}

.service-sidebar__link_active:hover {
	background: var(--ink);
	color: var(--accent-ink);
}

.service-sidebar__contact {
	display: grid;
	gap: 8px;
	padding: 20px;
	background: var(--surface);
	font-size: var(--step-small);
}

.service-sidebar__contact p {
	font-size: var(--step-body);
	font-weight: 500;
	line-height: 1.25;
}

.service-sidebar__contact a {
	color: var(--accent);
	font-weight: 500;
}

.service-layout__content {
	grid-column: 4 / 13;
	display: grid;
	gap: var(--section-pad);
	min-width: 0;
}

.section-overview {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: center;
}

.section-overview > div {
	grid-column: 1 / 6;
	display: grid;
	gap: 24px;
	justify-items: start;
}

.section-overview > img {
	grid-column: 6 / 10;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	clip-path: polygon(0 0, 62% 0, 62% 14%, 100% 14%, 100% 100%, 0 100%);
}

.section-overview__description {
	max-width: 46ch;
}

.section-overview__lead {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -.03em;
}

.section-overview__count {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--accent);
	font-weight: 500;
}

.section-overview__count::before {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
}

.subservices {
	display: grid;
	gap: clamp(24px, 2.8vw, 36px);
}

.subservices__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 2.4vw, 36px) clamp(20px, 2.8vw, 44px);
}

.subservice {
	position: relative;
	display: grid;
	align-content: start;
	gap: 10px;
	padding-left: 40px;
}

.subservice::before {
	content: "";
	position: absolute;
	top: .3em;
	left: 0;
	width: 22px;
	height: 22px;
	background: var(--cyan);
	clip-path: polygon(0 0, 100% 0, 100% 38%, 38% 38%, 38% 100%, 0 100%);
	transition: transform .3s var(--ease), background-color .2s var(--ease);
}

.subservice:nth-child(4n + 1)::before, .subservice:nth-child(4n)::before {
	background: var(--accent);
}

.subservice:hover::before {
	transform: translate(4px, 4px);
}

.subservice__title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

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

.subservice__link {
	display: inline-flex;
	gap: 8px;
	width: fit-content;
	color: var(--accent);
	font-weight: 500;
	transition: gap .2s var(--ease);
}

.subservice:hover .subservice__link {
	gap: 14px;
}

/* Карточка услуги */
.detail-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.detail-template__article {
	grid-column: 1 / 9;
	display: grid;
	gap: clamp(24px, 2.8vw, 36px);
	min-width: 0;
}

.detail-template__title {
	font-size: var(--step-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.service-cover {
	display: grid;
	gap: 12px;
}

.service-cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	clip-path: polygon(0 0, 62% 0, 62% 12%, 100% 12%, 100% 100%, 0 100%);
}

.service-cover figcaption {
	color: var(--muted);
	font-size: var(--step-small);
}

.service-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.service-tabs__tab {
	padding: 14px 24px;
	border: 0;
	background: var(--surface);
	font-weight: 500;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.service-tabs__tab:hover {
	background: var(--paper);
}

.service-tabs__tab_active {
	background: var(--accent);
	color: var(--accent-ink);
}

.service-tabs__tab_active:hover {
	background: var(--accent);
}

.service-tabs__panel {
	display: grid;
	gap: 32px;
	justify-items: start;
}

.service-text__meta {
	max-width: none;
	color: var(--muted);
	font-size: var(--step-small);
}

.document-list {
	display: grid;
	gap: 8px;
	width: 100%;
}

.document-card {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	background: var(--surface);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.document-card:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.document-card__title {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.document-card__action {
	display: inline-flex;
	gap: 8px;
	font-size: var(--step-small);
	font-weight: 500;
	white-space: nowrap;
}

.service-back {
	width: fit-content;
	color: var(--accent);
	font-weight: 500;
}

.service-sidebar_detail {
	grid-column: 9 / 13;
	max-height: calc(100dvh - var(--bar-height) - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.service-tree {
	display: grid;
	gap: 4px;
}

.service-tree__group {
	display: grid;
}

.service-tree__row {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	background: var(--surface);
}

.service-tree__row > a {
	flex: 1;
	padding: 14px 16px;
	font-size: var(--step-small);
	font-weight: 500;
	line-height: 1.3;
	transition: color .2s var(--ease);
}

.service-tree__row > a:hover {
	color: var(--accent);
}

.service-tree__row_active {
	background: var(--accent);
	color: var(--accent-ink);
}

.service-tree__row_active > a:hover {
	color: var(--accent-ink);
}

.service-tree__toggle {
	width: 44px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: var(--step-lead);
	line-height: 1;
}

.service-tree__children {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 8px 0 8px 16px;
	list-style: none;
}

.service-tree__children a {
	display: block;
	padding: 8px 12px;
	font-size: var(--step-small);
	line-height: 1.35;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}

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

.service-tree__current {
	background: var(--paper);
	color: var(--accent);
	font-weight: 500;
}

.detail-contact {
	display: grid;
	gap: 8px;
	margin-top: 24px;
	padding: 20px;
	background: var(--surface);
	font-size: var(--step-small);
}

.detail-contact p {
	font-size: var(--step-body);
	font-weight: 500;
	line-height: 1.25;
}

.detail-contact a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--accent);
	font-weight: 500;
}

.detail-contact svg {
	width: 22px;
	height: 18px;
}

/* Наши работы */
.works-page {
	display: grid;
	gap: var(--section-pad);
}

.work-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
}

.work-gallery__item:nth-child(2) {
	margin-top: clamp(24px, 3.5vw, 56px);
}

.work-gallery__item:nth-child(3) {
	margin-top: clamp(12px, 1.4vw, 20px);
}

.work-gallery__item:nth-child(4) {
	margin-top: clamp(40px, 4.9vw, 80px);
}

.work-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--surface);
	clip-path: polygon(0 0, 62% 0, 62% 18%, 100% 18%, 100% 100%, 0 100%);
}

.work-gallery__link img {
	width: 100%;
	height: auto;
	aspect-ratio: 370 / 250;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.work-gallery__link:hover img {
	transform: scale(1.05);
}

.work-gallery__link span {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: var(--accent);
	color: var(--accent-ink);
}

.work-gallery__item figcaption {
	margin-top: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.work-archive {
	display: grid;
	gap: 0;
}

.archive-tools {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: end;
	margin-bottom: 24px;
}

.archive-tools__years {
	grid-column: 1 / 8;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.year-button {
	min-width: 64px;
	padding: 12px 18px;
	border: 0;
	background: var(--surface);
	font-weight: 500;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}

.year-button:hover {
	background: var(--paper);
}

.year-button_active, .year-button_active:hover {
	background: var(--accent);
	color: var(--accent-ink);
}

.archive-search {
	grid-column: 9 / 13;
	display: grid;
	gap: 8px;
	font-size: var(--step-small);
	font-weight: 500;
}

.archive-search input {
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	border: 0;
	background: var(--surface);
	color: var(--ink);
}

.archive-search input::placeholder {
	color: var(--muted);
}

.archive-search input:focus-visible {
	outline-offset: 0;
}

.archive-result {
	margin-bottom: 24px;
	color: var(--muted);
	font-size: var(--step-small);
}

.work-archive__records {
	display: grid;
	gap: 8px;
}

.work-record {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gutter);
	align-items: start;
	margin-inline: calc(50% - 50vw);
	padding: clamp(16px, 1.8vw, 20px) calc(50vw - 50%);
	background: var(--surface);
	transition: background-color .2s var(--ease);
}

.work-record:hover {
	background: var(--paper);
}

.work-record__name {
	grid-column: 1 / 7;
	display: grid;
	gap: 8px;
}

.work-record__index {
	color: var(--muted);
	font-size: var(--step-small);
	font-weight: 500;
}

.work-record__title {
	max-width: 56ch;
	font-size: var(--step-body);
	font-weight: 500;
	line-height: 1.3;
}

.work-record__scope {
	grid-column: 7 / 11;
	display: grid;
	gap: 8px;
}

.work-record__technology {
	grid-column: 11 / 13;
	display: grid;
	gap: 4px;
	align-content: start;
	justify-items: end;
	text-align: right;
}

.work-record h4 {
	margin-bottom: 4px;
	color: var(--muted);
	font-size: var(--step-small);
	font-weight: 500;
}

.work-record__scope ul {
	display: grid;
	gap: 4px;
	list-style: none;
}

.work-record__scope li, .work-record__technology span {
	font-size: var(--step-small);
	line-height: 1.4;
}

.archive-empty {
	padding: 32px 0;
}

/* Движение: появление частей секции по очереди */
.page_js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}

.page_js .reveal_in {
	opacity: 1;
	transform: none;
}

.development__image, .company__photo {
	will-change: transform;
}

/* Планшет */
@media (max-width: 1240px) {
	.header__description {
		display: none;
	}
}

@media (max-width: 1100px) {
	.header__top-caption, .header__description {
		display: none;
	}

	.company__intro {
		max-width: min(56vw, 640px);
	}

	.projects__grid, .work-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project:nth-child(n), .work-gallery__item:nth-child(n) {
		margin-top: 0;
	}

	.project:nth-child(even), .work-gallery__item:nth-child(even) {
		margin-top: clamp(24px, 4vw, 56px);
	}

	.equipment__brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.detail-template__article {
		grid-column: 1 / 8;
	}

	.service-sidebar_detail {
		grid-column: 8 / 13;
	}

	.work-record__name {
		grid-column: 1 / 13;
	}

	.work-record__scope {
		grid-column: 1 / 8;
	}

	.work-record__technology {
		grid-column: 8 / 13;
	}

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

	.catalog-card__image {
		grid-column: 1 / 5;
		grid-row: 1 / 4;
	}

	.catalog-card__title, .catalog-card__description, .catalog-card__link {
		grid-column: 5 / 13;
	}

	.catalog-card__link {
		grid-row: 3;
		justify-self: start;
	}

	.catalog-card_help .catalog-card__title {
		grid-column: 1 / 13;
	}

	.catalog-card_help .catalog-card__description {
		grid-column: 1 / 10;
	}

	.catalog-card_help .catalog-card__link {
		grid-column: 10 / 13;
		grid-row: auto;
		justify-self: end;
	}
}

@media (min-width: 901px) {
	.navigation__services-head .navigation__link {
		padding-right: 6px;
	}
}

/* Телефон и узкий планшет */
@media (max-width: 900px) {
	:root {
		--bar-height: 72px;
	}

	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.section-overview > img {
		aspect-ratio: 16 / 9;
	}

	.header__inner {
		min-height: var(--bar-height);
	}

	.logo__image {
		width: 128px;
	}

	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 7px;
		width: 48px;
		height: 48px;
		padding: 12px;
		border: 0;
		background: var(--accent);
	}

	.menu-toggle span {
		display: block;
		height: 3px;
		background: var(--accent-ink);
		transition: transform .25s var(--ease);
	}

	.menu-toggle[aria-expanded="true"] span:first-child {
		transform: translateY(5px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] span:last-child {
		transform: translateY(-5px) rotate(-45deg);
	}

	.navigation {
		position: absolute;
		top: 100%;
		right: calc(var(--margin) * -1);
		left: calc(var(--margin) * -1);
		display: none;
		max-height: calc(100dvh - var(--bar-height));
		padding: 16px var(--margin) 28px;
		overflow-y: auto;
		background: var(--bg);
	}

	.navigation_open {
		display: grid;
		gap: 0;
		align-items: stretch;
	}

	.navigation__link {
		padding: 16px 0;
		font-size: var(--step-lead);
		letter-spacing: -.02em;
	}

	.navigation__link:hover, .navigation__link_active {
		clip-path: none;
		padding-inline: 14px;
	}

	.navigation__services-head {
		justify-content: space-between;
	}

	.navigation__services-head > a {
		flex: 1;
	}

	.navigation__toggle {
		width: 48px;
		height: 48px;
		background: var(--surface);
	}

	.mega-menu {
		position: static;
		width: 100%;
		margin-bottom: 12px;
		box-shadow: none; /* taste-skill-ignore: меню и диалог — настоящие оверлеи */
		background: var(--paper);
	}

	.mega-menu__inner {
		min-height: 0;
	}

	.mega-menu__groups {
		width: 100%;
		padding: 0;
	}

	.mega-menu__expand[aria-expanded="true"] > span {
		display: inline-block;
		transform: rotate(90deg);
	}

	.mega-menu__panel {
		position: static;
		padding: 4px 20px 16px;
		background: var(--surface);
	}

	.mega-menu__heading {
		display: none;
	}

	.company__hero {
		display: block;
		min-height: 0;
		padding-bottom: 0;
	}

	.company__intro {
		max-width: none;
	}

	.company__mark {
		position: relative;
		top: auto;
		right: auto;
		width: min(48vw, 220px);
		max-width: none;
		margin: 32px 0 0 4vw;
		transform: none;
		animation-name: shutter-phone;
	}

	@keyframes shutter-phone {
		from {
			clip-path: inset(100% 0 0 0);
			transform: scale(1.12);
		}
		to {
			clip-path: inset(0 0 0 0);
			transform: scale(1);
		}
	}

	.section-heading > div, .section-heading__description {
		grid-column: 1 / -1;
	}

	.company__point-heading, .company__point-copy {
		grid-column: 1 / -1;
	}

	.systems__grid, .subservices__grid, .payment__grid, .delivery {
		grid-template-columns: minmax(0, 1fr);
	}

	.development__figure, .development__text, .equipment__intro, .equipment__list, .equipment__figure {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.equipment__figure {
		order: -1;
		margin-bottom: 32px;
	}

	.support {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}

	.footer__mark {
		grid-column: 1 / -1;
		grid-row: auto;
		max-width: 320px;
	}

	.footer__company, .footer__column_contacts {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.footer__column {
		grid-column: span 6;
	}

	.page-heading__title {
		max-width: none;
	}

	.about__section-label, .about__section .prose, .about__section .benefit-list {
		grid-column: 1 / -1;
	}

	.contact-panel, .contact-hours {
		grid-column: 1 / -1;
	}

	.contact-requisites > div, .contact-requisites .details-list, .contact-requisites .text-link {
		grid-column: 1 / -1;
	}

	.catalog-intro .page-intro, .catalog-intro__count {
		grid-column: 1 / -1;
	}

	.service-sidebar, .service-layout__content, .detail-template__article, .service-sidebar_detail {
		grid-column: 1 / -1;
	}

	.service-layout {
		row-gap: 56px;
	}

	.service-sidebar {
		position: static;
		order: -1;
	}

	.service-sidebar_detail {
		order: 1;
		max-height: none;
		overflow: visible;
	}

	.service-sidebar__heading {
		display: none;
	}

	.service-sidebar__menu summary {
		display: block;
	}

	.service-sidebar__nav, .service-tree {
		padding-top: 12px;
	}

	.section-overview {
		grid-template-columns: minmax(0, 1fr);
	}

	.section-overview > div, .section-overview > img {
		grid-column: 1 / -1;
	}

	.detail-contact {
		display: none;
	}

	.service-request > div, .service-request .button {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.archive-tools__years, .archive-search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.header__contacts {
		gap: 14px;
	}

	.header__contact-label {
		display: none;
	}

	.header__top-inner {
		justify-content: flex-start;
	}

	.projects__grid, .work-gallery {
		gap: 10px;
	}

	.equipment__brands {
		gap: 12px 16px;
	}

	.footer__column {
		grid-column: 1 / -1;
	}

	.footer__column_contacts {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer__address, .footer__contact-note {
		grid-column: 1;
	}

	.footer__cta {
		font-size: 6.4vw;
	}

	.about__image {
		aspect-ratio: 16 / 9;
	}

	.service__image {
		aspect-ratio: 16 / 9;
	}

	.footer__mark {
		max-width: 120px;
	}

	.benefit-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.catalog-card__image, .catalog-card__title, .catalog-card__description, .catalog-card__link,
	.catalog-card_help .catalog-card__title, .catalog-card_help .catalog-card__description, .catalog-card_help .catalog-card__link {
		grid-column: 1 / -1;
		grid-row: auto;
		justify-self: start;
	}

	.service-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.document-card {
		flex-direction: column;
		gap: 8px;
	}

	.work-record__scope, .work-record__technology {
		grid-column: 1 / -1;
	}

	.work-record__technology {
		justify-items: start;
		text-align: left;
	}

	.details-list__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.hours-list > div {
		flex-direction: column;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0ms !important;
	}

	.page_js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* Balanced company rows and compact documentation. */
.company__point-heading{grid-column:1/4}
.company__point-copy{grid-column:4/9}
.company__side-photo{grid-column:9/13;display:block;width:100%;height:230px;object-fit:cover;align-self:start}
.document-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.document-card{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:22px;min-width:0}
.document-card>svg{display:block;width:36px;height:42px;max-width:36px;flex:none}
.document-card__title{font-size:16px;line-height:1.4}
.document-card__action{font-size:12px;margin-top:auto}
@media(max-width:900px){.company__point-heading,.company__point-copy,.company__side-photo{grid-column:1/-1}.company__side-photo{height:auto;aspect-ratio:2/1}}
@media(max-width:600px){.document-list{grid-template-columns:1fr}.document-card{padding:20px}.company__side-photo{aspect-ratio:3/2}}
