/* ==========================================================================
   МСС Сервис — основные стили темы
   --------------------------------------------------------------------------
   1.  Шрифты (Kelson Sans, локально)
   2.  Токены (CSS custom properties)
   3.  База и сброс
   4.  Общие компоненты: контейнер, секции, скосы, заголовки, кнопки, иконки, доступность
   5.  Шапка и навигация
   6.  Первый экран (hero)
   7.  О компании
   8.  Преимущества
   9.  Услуги (карточки с раскрытием)
   10. Проекты
   11. Заявка и контакты, форма Contact Form 7
   12. Подвал
   13. Внутренние страницы: page-hero, хлебные крошки, .prose (в т. ч. таблицы документов)
   14. Анимации и prefers-reduced-motion
   15. Уведомление об использовании cookies

   Брейкпоинты (SPEC §5): <576 телефон · 576–767 · 768–991 планшет · 992–1199 · ≥1200.
   Медиазапросы стоят сразу за правилами своего блока. В основном — от мобильных к широким
   экранам (min-width); первый экран описан от десктопа (max-width), как в SPEC §3.2.
   ========================================================================== */


/* ==========================================================================
   1. Шрифты
   ========================================================================== */

@font-face {
	font-family: "Kelson Sans";
	src: url("../fonts/kelsonsanslightru.woff2") format("woff2"),
		url("../fonts/kelsonsanslightru.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Kelson Sans";
	src: url("../fonts/kelsonsansregularru.woff2") format("woff2"),
		url("../fonts/kelsonsansregularru.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Kelson Sans";
	src: url("../fonts/kelsonsansboldru.woff2") format("woff2"),
		url("../fonts/kelsonsansboldru.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}


/* ==========================================================================
   2. Токены
   ========================================================================== */

:root {
	--c-navy: #223440;
	--c-navy-900: #17242d;
	--c-navy-800: #1c2b35;
	--c-navy-700: #2a3e4b;
	--c-teal: #2ab8ca;
	--c-teal-hover: #4cc6d6;
	--c-teal-ink: #137684;
	--c-teal-soft: #e3f4f7;
	--c-steel: #a7bbc5;
	--c-ink: #223440;
	--c-text: #4f626c;
	--c-muted: #5a6d78;
	--c-line: #d6dfe4;
	--c-line-dark: rgba(167, 187, 197, .18);
	--c-bg: #ffffff;
	--c-bg-light: #eef1f3;
	--c-error: #e5484d;
	--c-error-on-dark: #ff9a9e;
	--font: "Kelson Sans", "Segoe UI", Arial, sans-serif;
	--container: 1180px;
	--gutter: 24px;
	--section-pad: clamp(64px, 8vw, 112px);
	--slant: clamp(28px, 4vw, 72px);
	--radius: 2px;
	--shadow-card: 0 18px 40px -24px rgba(23, 36, 45, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);

	/* Служебные (производные) значения */
	--title-size: clamp(28px, 1.6vw + 18px, 42px);
}

@media (max-width: 575.98px) {
	:root {
		--gutter: 20px;
	}
}


/* ==========================================================================
   3. База и сброс
   ========================================================================== */

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

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

body {
	margin: 0;
	min-width: 320px;
	font-family: var(--font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--c-text);
	background-color: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
	body {
		font-size: 16px;
	}
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

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

img {
	height: auto;
	border-style: none;
}

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

button,
input,
select,
textarea {
	margin: 0;
	font: inherit;
	color: inherit;
}

[hidden] {
	display: none !important;
}

::selection {
	color: var(--c-navy);
	background-color: var(--c-teal);
}

/* Фокус: на светлом — бирюзовый (тёмный оттенок для контраста), на тёмном — белый */
:focus-visible {
	outline: 2px solid var(--c-teal-ink);
	outline-offset: 3px;
}

.section--dark :focus-visible {
	outline-color: #fff;
}

/* Цели якорных ссылок и <main> получают фокус программно — без рамки */
[tabindex="-1"]:focus {
	outline: none;
}


/* ==========================================================================
   4. Общие компоненты
   ========================================================================== */

/* ---- Контейнер: рабочая ширина 1180px + поля ---- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Узкая колонка текста: тот же левый край, что у заголовка страницы */
.container--narrow > * {
	max-width: 860px;
}

/* Текст страницы — та же мера строки, что у .about__body */
.container--narrow > .prose {
	max-width: 680px;
}

/* ---- Секции ---- */
.section {
	padding-block: var(--section-pad);
	scroll-margin-top: 0;
}

.section--dark {
	color: #fff;
	background-color: var(--c-navy);
	background-image: url("../img/pattern-dark.svg");
	background-repeat: repeat;
	background-position: 50% 0;
}

.section--light {
	background-color: var(--c-bg-light);
}

/* ---- Скошенные края секций (диагональ: слева выше, справа ниже) ---- */
/* Верх области обрезки на 1px выше блока: если блок начинается с дробной координаты (например, под открытым
   мобильным меню с одним контактом), сглаженный прямой верхний край не даёт светлой полосы */
.has-slant-bottom {
	position: relative;
	z-index: 1;
	padding-bottom: calc(var(--section-pad) + var(--slant));
	clip-path: polygon(0 -1px, 100% -1px, 100% 100%, 0 calc(100% - var(--slant)));
}

/* Следующая секция подходит под скос */
.has-slant-bottom + * {
	margin-top: calc(var(--slant) * -1);
	padding-top: calc(var(--section-pad) + var(--slant));
}

.has-slant-top {
	padding-top: calc(var(--section-pad) + var(--slant));
	clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%);
}

.has-slant-top.has-slant-bottom {
	clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
}

/* Перед скосом — серая секция (например, «Услуги», когда проектов нет): тёмная секция заходит под неё,
   и в вырезе скоса виден серый фон, а не белая подложка страницы */
.section--light + .has-slant-top {
	margin-top: calc(var(--slant) * -1);
}

.section--light:has(+ .has-slant-top) {
	padding-bottom: calc(var(--section-pad) + var(--slant));
}

/* Две тёмные секции подряд (например, когда «О компании» не выводится): нижняя лежит под скосом верхней
   без своего скоса сверху — иначе на диагонали стыка просвечивает светлая подложка страницы.
   Тень на 2px вверх закрывает дробный пиксель у левого края, где скос верхней начинается вровень с нижней */
.section--dark.has-slant-bottom + .section--dark.has-slant-top {
	z-index: 0;
	clip-path: none;
	box-shadow: 0 -2px 0 var(--c-navy);
}

.section--dark.has-slant-bottom + .section--dark.has-slant-top.has-slant-bottom {
	clip-path: polygon(0 -1px, 100% -1px, 100% 100%, 0 calc(100% - var(--slant)));
}

/* ---- Заголовок секции (H2) ---- */
.section-title {
	margin: 0 0 40px;
	font-size: var(--title-size);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 20px;
	background-color: var(--c-teal);
}

.section-title--light {
	color: #fff;
}

@media (min-width: 768px) {
	.section-title {
		margin-bottom: 48px;
	}
}

/* ---- Кнопки ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 34px;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent; /* невидима; в режиме высокой контрастности очерчивает кнопку */
	border-radius: var(--radius);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s, color .2s, transform .2s;
}

.btn--primary {
	color: var(--c-navy-900);
	background-color: var(--c-teal);
}

.btn--primary:hover {
	color: var(--c-navy-900);
	background-color: var(--c-teal-hover);
}

.btn:active {
	transform: translateY(1px);
}

.btn:focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 3px;
}

.section--dark .btn:focus-visible {
	outline-color: #fff;
}

.btn:disabled,
.btn:disabled:hover {
	color: rgba(167, 187, 197, .75);
	background-color: var(--c-navy-700);
	cursor: not-allowed;
	transform: none;
}

/* ---- Иконки (inline SVG, цвет через currentColor) ---- */
.icon {
	display: block;
	flex-shrink: 0;
	overflow: visible;
}

/* ---- Доступность ---- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 14px 22px;
	overflow: visible;
	clip: auto;
	clip-path: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-navy);
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(23, 36, 45, .3);
	outline: 2px solid var(--c-teal);
	outline-offset: 2px;
}

.site-main:focus {
	outline: none;
}


/* ==========================================================================
   5. Шапка и навигация
   ========================================================================== */

/* Узор шапки привязан к нижнему краю, узор hero — к верхнему: рисунок непрерывен */
.site-header {
	position: relative;
	background-position: 50% 100%;
}

.site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.site-header__logo {
	display: inline-flex;
	flex-shrink: 0;
	border-radius: var(--radius);
}

.site-header__logo img {
	display: block;
	width: auto;
	height: 40px;
}

/* Режим высокой контрастности: белые буквы «МСС» остаются на своём тёмном фоне */
@media (forced-colors: active) {
	.site-header__logo img {
		forced-color-adjust: none;
		background-color: var(--c-navy);
	}
}

.site-header__contacts {
	display: none;
}

/* Область нажатия выше на 16px; отрицательные поля компенсируют отступы — раскладка не меняется */
.header-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-block: -8px;
	padding-block: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	color: #fff;
	white-space: nowrap;
	transition: color .2s;
}

.header-contact:hover {
	color: var(--c-teal);
}

.header-contact__icon {
	width: 18px;
	height: 18px;
	color: var(--c-teal);
}

/* ---- Кнопка меню (бургер → крестик) ---- */
.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	color: #fff;
	background: none;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background-color: currentColor;
	border-radius: 1px;
	transition: transform .2s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Навигация: мобильная панель (<992px) ---- */
.site-nav {
	border-top: 1px solid var(--c-line-dark);
}

.js .site-nav {
	display: none;
}

.js .site-header.is-nav-open .site-nav {
	display: block;
}

/* Открытое мобильное меню — поверх уведомления о cookies (полоса закреплена внизу экрана, z-index 90) */
.site-header.is-nav-open {
	z-index: 100;
}

.no-js .nav-toggle {
	display: none;
}

.site-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__item {
	border-bottom: 1px solid var(--c-line-dark);
}

.site-nav__link {
	display: block;
	padding: 16px 0;
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	transition: color .2s;
}

.site-nav__link:hover {
	color: var(--c-teal);
}

/* У пунктов нет боковых отступов: рамка фокуса снаружи, чтобы не перечёркивать первую букву */
.site-nav__link:focus-visible {
	outline-offset: 2px;
}

.site-nav__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 28px 0 32px;
}

.site-nav__contacts .header-contact {
	max-width: 100%;
	font-size: 16px;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* ---- Липкая шапка: телефоны и планшеты (<992px) ----
   Полоса с логотипом и кнопкой меню (72px) закреплена вверху экрана — только на экране (не в печати) и при
   работающем JS: без JS меню раскрыто целиком, и закреплять его нельзя. Тень — когда под шапкой прокручен сайт
   (main.js, .is-stuck).
   Отступ страницы сверху (scroll-padding-top) — высота полосы: раздел после перехода по якорю встаёт сразу под неё,
   а «Page Down» и пробел листают так, что текст не уходит под полосу. Элемент в фокусе встаёт ещё на 8px ниже —
   рамка фокуса видна целиком. Логотип и кнопка меню сами лежат в этой зоне: им отрицательный отступ, иначе фокус
   на них прокручивал бы страницу. */
@media screen and (max-width: 991.98px) {
	html.js {
		scroll-padding-top: calc(72px + var(--mss-admin-bar, 0px));
	}

	.js .site-header {
		position: sticky;
		top: var(--mss-admin-bar, 0px);
		z-index: 80;
		transition: box-shadow .2s var(--ease);
	}

	/* Открытое меню — по-прежнему поверх уведомления о cookies (z-index 90) */
	.js .site-header.is-nav-open {
		z-index: 100;
	}

	.js .site-header.is-stuck {
		box-shadow: 0 10px 24px -14px rgba(23, 36, 45, .6);
	}

	.js .site-main *,
	.js .site-footer * {
		scroll-margin-top: 8px;
	}

	.js .site-main .section {
		scroll-margin-top: 0;
	}

	.js .site-header__top-inner * {
		scroll-margin-top: -72px;
	}

	/* Открытое меню не выше экрана: если пункты не помещаются (телефон боком), они прокручиваются внутри панели.
	   Отступ сверху и scroll-padding — рамка фокуса пункта не обрезается краем панели */
	.js .site-header.is-nav-open .site-nav {
		max-height: calc(100vh - 72px - var(--mss-admin-bar, 0px));
		max-height: calc(100dvh - 72px - var(--mss-admin-bar, 0px));
		padding-top: 4px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scroll-padding-block: 8px;
	}

	/* Режим высокой контрастности: тень не видна — линия снизу (outline не меняет высоту шапки) */
	@media (forced-colors: active) {
		.js .site-header.is-stuck {
			outline: 1px solid CanvasText;
			outline-offset: -1px;
		}
	}
}

/* Панель WordPress у вошедшего администратора закреплена вверху при ширине больше 600px:
   шапка встаёт под неё, отступ страницы и высота открытого меню учитывают её высоту */
@media screen and (min-width: 601px) and (max-width: 782px) {
	html:has(> body.admin-bar) {
		--mss-admin-bar: 46px;
	}
}

@media screen and (min-width: 783px) and (max-width: 991.98px) {
	html:has(> body.admin-bar) {
		--mss-admin-bar: 32px;
	}
}

/* Режим высокой контрастности: полоски кнопки меню видны (фон элементов в нём принудительно сбрасывается) */
@media (forced-colors: active) {
	.nav-toggle__bar {
		forced-color-adjust: none;
		background-color: CanvasText;
	}
}

/* ---- Навигация: десктоп (≥992px) ---- */
@media (min-width: 992px) {
	.site-header__top-inner {
		min-height: 104px;
	}

	.site-header__logo img {
		height: 56px;
	}

	.site-header__contacts {
		display: flex;
		align-items: center;
		gap: 40px;
	}

	.nav-toggle {
		display: none;
	}

	.js .site-nav,
	.site-nav {
		display: block;
	}

	.site-nav__list {
		display: flex;
	}

	.site-nav__item {
		flex: 1 1 0;
		min-width: 0;
		text-align: center;
		border-bottom: 0;
	}

	.site-nav__item + .site-nav__item {
		border-left: 1px solid var(--c-line-dark);
	}

	.site-nav__link {
		position: relative;
		padding: 22px 8px;
		font-size: 14px;
		letter-spacing: .08em;
	}

	.site-nav__link:hover {
		color: #fff;
	}

	.site-nav__link:focus-visible {
		outline-offset: -2px;
	}

	/* Бирюзовая планка у верхнего края пункта — как «активный» пункт у МСС */
	.site-nav__link::before {
		content: "";
		position: absolute;
		top: -1px;
		left: 0;
		right: 0;
		height: 3px;
		background-color: var(--c-teal);
		opacity: 0;
		transform: scaleX(.5);
		transition: opacity .2s var(--ease), transform .2s var(--ease);
	}

	.site-nav__link:focus-visible::before {
		opacity: 1;
		transform: none;
	}

	/* Только при наведении мышью: после касания на сенсорном экране планка не «залипает» */
	@media (hover: hover) {
		.site-nav__link:hover::before {
			opacity: 1;
			transform: none;
		}
	}

	.site-nav__contacts {
		display: none;
	}
}


/* ==========================================================================
   6. Первый экран (hero)
   ========================================================================== */

.hero {
	position: relative;
	overflow: hidden;
	padding-top: 88px;
	padding-bottom: calc(120px + var(--slant));
	background-position: 50% 0;
}

.hero__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Центр шестерни — на ~84% ширины контейнера (1440px): внешнее кольцо разметки не задевает заголовок,
   умещается в видимой части первого экрана и не доходит до правого края; по вертикали — по центру видимой части */
.hero__gear {
	position: absolute;
	top: calc(50% - var(--slant) / 2);
	left: calc(50% + 400px);
	width: 560px;
	transform: translate(-50%, -50%);
}

/* Разметка (круги, деления, оси) задаёт размер блока и стоит на месте; шестерня лежит точно поверх неё
   и вращается по часовой стрелке — оборот за минуту. При prefers-reduced-motion не вращается (раздел 14) */
.hero__gear-marks,
.hero__gear-wheel {
	display: block;
	width: 100%;
	height: auto;
}

.hero__gear-wheel {
	position: absolute;
	top: 0;
	left: 0;
	animation: mss-gear-spin 60s linear infinite;
}

.hero__inner {
	position: relative;
}

/* Текстовая колонка: все строки выровнены по тексту заголовка, планка — слева */
.hero__inner > * {
	max-width: 620px;
}

.hero__label,
.hero__text,
.hero__actions {
	margin-left: 32px;
}

.hero__label {
	font-size: 18px;
	line-height: 1.4;
	letter-spacing: .02em;
	color: var(--c-steel);
}

/* Ширина заголовка зависит от кегля: на любом экране — по слову в строке
   «Комплексное / техническое / сопровождение / флота» (на телефонах — по ширине экрана) */
.hero__inner > .hero__title {
	max-width: calc(10em + 32px);
}

.hero__title {
	margin: 18px 0 28px;
	padding-left: 28px;
	border-left: 4px solid var(--c-teal);
	font-size: clamp(38px, 4.6vw + 6px, 68px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}

.hero__text {
	max-width: 520px;
	margin-top: 12px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-steel);
}

.hero__actions {
	margin-top: 40px;
}

/* 992–1199: шестерня меньше и правее, чтобы не заходить на текст */
@media (max-width: 1199.98px) {
	.hero__gear {
		left: auto;
		right: -190px;
		width: 620px;
		transform: translateY(-50%);
	}
}

/* <992: шестерня справа сверху, за текстом, приглушена */
@media (max-width: 991.98px) {
	.hero {
		padding-top: 64px;
		padding-bottom: calc(88px + var(--slant));
	}

	.hero__gear {
		top: -60px;
		right: -170px;
		width: 520px;
		opacity: .35;
		transform: none;
	}
}

@media (max-width: 575.98px) {
	.hero {
		padding-top: 48px;
		padding-bottom: calc(72px + var(--slant));
	}

	.hero__gear {
		top: -40px;
		right: -150px;
		width: 380px;
		opacity: .22;
	}

	.hero__label,
	.hero__text,
	.hero__actions {
		margin-left: 20px;
	}

	.hero__label {
		font-size: 16px;
	}

	/* «СОПРОВОЖДЕНИЕ» (≈8.5em) целиком помещается и на самых узких экранах (до 320px), а не разрывается
	   посередине; от ~390px — 38px, как в SPEC §2 */
	.hero__title {
		margin: 14px 0 22px;
		padding-left: 17px;
		border-left-width: 3px;
		font-size: clamp(30px, calc((100vw - var(--gutter) * 2 - 20px) / 8.7), 38px);
	}

	.hero__text {
		font-size: 16px;
	}

	.hero__actions {
		margin-top: 32px;
	}
}


/* ==========================================================================
   7. О компании
   ========================================================================== */

.about__grid {
	display: grid;
	gap: 32px;
}

.about__lead {
	max-width: 680px; /* мера строки как у .about__body, пока колонка одна (<992px) */
	padding-left: 24px;
	border-left: 3px solid var(--c-teal);
	font-size: 22px;
	line-height: 1.5;
	color: var(--c-ink);
}

.about__body {
	max-width: 680px;
}

.about__body p {
	margin: 0 0 1em;
	font-size: 17px;
}

@media (max-width: 575.98px) {
	.about__lead {
		padding-left: 20px;
		font-size: 19px;
	}

	.about__body p {
		font-size: 16px;
	}
}

@media (min-width: 992px) {
	.about__grid {
		grid-template-columns: 5fr 7fr;
		gap: 64px;
		align-items: start;
	}

	/* Текст справа начинается на уровне вводного абзаца (высота однострочного заголовка + планка + отступ;
	   +4px выравнивают первые базовые линии вводного абзаца 22/1.5 и текста 17/1.6) */
	.about__body {
		padding-top: calc(var(--title-size) * 1.15 + 75px);
	}

	/* Заголовок раздела не заполнен: вводный абзац наверху, текст справа — вровень с ним */
	.about__intro:not(:has(.section-title)) + .about__body {
		padding-top: 4px;
	}

	/* Осталась одна колонка (нет вводного абзаца с заголовком или нет основного текста) — как на планшете */
	.about__intro:only-child,
	.about__body:only-child {
		grid-column: 1 / -1;
		padding-top: 0;
	}
}


/* ==========================================================================
   8. Преимущества
   ========================================================================== */

/* Сетка как техническая таблица: ячейки разделены тонкими линиями */
.adv__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-line-dark);
	border-left: 1px solid var(--c-line-dark);
}

.adv-card {
	position: relative;
	padding: 32px 24px;
	border-right: 1px solid var(--c-line-dark);
	border-bottom: 1px solid var(--c-line-dark);
}

/* Рамка при наведении поверх общих линий — без сдвига */
.adv-card::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 1px solid rgba(42, 184, 202, .4);
	opacity: 0;
	transition: opacity .2s var(--ease);
	pointer-events: none;
}

@media (hover: hover) {
	.adv-card:hover::after {
		opacity: 1;
	}
}

.adv-card__visual {
	display: flex;
	align-items: flex-end;
	min-height: 64px;
	margin-bottom: 24px;
}

/* Значение не обрезается: если не помещается в ячейку — переносится на вторую строку */
.adv-card__value {
	min-width: 0;
	max-width: 100%;
	font-size: 52px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--c-teal);
}

/* 320–359px: «4 центра» помещается в одну строку с запасом */
@media (max-width: 359.98px) {
	.adv-card__value {
		font-size: 46px;
	}
}

.adv-card__icon {
	width: 56px;
	height: 56px;
	color: var(--c-teal);
}

.adv-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff;
}

.adv-card__text {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-steel);
}

@media (min-width: 576px) {
	.adv__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adv-card {
		padding: 32px 24px;
	}

	/* Узкие ячейки в две колонки: «4 центра» должно уместиться */
	.adv-card__value {
		font-size: 46px;
	}
}

@media (min-width: 768px) {
	.adv-card {
		padding: 36px 32px;
	}

	.adv-card__value {
		font-size: 52px;
	}
}

@media (min-width: 992px) {
	.adv__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   9. Услуги
   ========================================================================== */

.services__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px 20px;
	background-color: #fff;
	border: 1px solid transparent;
	border-radius: var(--radius);
	transition: box-shadow .25s var(--ease);
}

/* Эффекты наведения — только для мыши: на сенсорных экранах они «залипают» после касания */
@media (hover: hover) {
	.service-card:hover {
		box-shadow: var(--shadow-card);
	}
}

/* Раскрытая карточка отмечена бирюзовой планкой сверху (без сдвига содержимого) */
.service-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 3px;
	background-color: var(--c-teal);
	border-radius: var(--radius) var(--radius) 0 0;
	opacity: 0;
	transition: opacity .2s;
}

.service-card.is-open::before {
	opacity: 1;
}

.service-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.service-card__icon {
	width: 56px;
	height: 56px;
	color: var(--c-teal);
}

.service-card__num {
	margin-left: auto; /* номер остаётся справа, даже если иконки нет */
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	color: var(--c-steel);
}

.service-card__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.service-card__summary {
	flex-grow: 1;
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
}

.service-card__details-inner {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--c-line);
}

.service-card__text p {
	margin: 0 0 .75em;
	font-size: 16px;
	line-height: 1.6;
}

.service-card__text p:last-child {
	margin-bottom: 0;
}

.service-card__works-title {
	margin: 24px 0 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.check-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list__item {
	position: relative;
	padding-left: 28px;
	font-size: 15.5px;
	line-height: 1.5;
}

.check-list__item::before {
	content: "";
	position: absolute;
	top: .7em;
	left: 0;
	width: 14px;
	height: 2px;
	background-color: var(--c-teal);
}

.service-card__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	margin-top: 20px;
	padding: 8px 0;
	font-family: var(--font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-teal-ink);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color .2s;
}

/* Область нажатия больше видимой кнопки (≈133×45), в пределах внутренних отступов карточки */
.service-card__toggle::after {
	content: "";
	position: absolute;
	inset: -6px -12px;
}

@media (hover: hover) {
	.service-card__toggle:hover {
		color: var(--c-ink);
	}
}

.service-card__toggle-icon {
	width: 16px;
	height: 16px;
	transition: transform .2s var(--ease);
}

.service-card__toggle[aria-expanded="true"] .service-card__toggle-icon {
	transform: rotate(180deg);
}

/* Без JS подробности видны, кнопка не нужна */
.no-js .service-card__toggle {
	display: none;
}

@media (min-width: 576px) {
	.service-card {
		padding: 36px 36px 28px;
	}
}

@media (min-width: 768px) {
	.services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Закрытые карточки ряда — одной высоты (кнопки на одной линии);
	   если соседняя карточка раскрыта, ряд не растягивается (align-items: start) */
	.service-card:not(.is-open) + .service-card:nth-child(even):not(.is-open) {
		align-self: stretch;
	}

	.service-card:nth-child(odd):not(.is-open):not(:has(+ .service-card.is-open)) {
		align-self: stretch;
	}
}


/* ==========================================================================
   10. Проекты
   ========================================================================== */

.projects__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
	background-color: var(--c-bg-light);
	border: 1px solid transparent;
	border-radius: var(--radius);
	transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.project-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 24px;
	width: 40px;
	height: 3px;
	background-color: var(--c-teal);
}

@media (hover: hover) {
	.project-card:hover {
		background-color: #fff;
		border-color: var(--c-line);
		box-shadow: var(--shadow-card);
	}
}

.project-card__meta {
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.project-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-ink);
}

.project-card__customer {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-teal-ink);
}

.project-card__text {
	margin: 16px 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
}

.project-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.tag {
	display: inline-block;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-ink);
	background-color: rgba(42, 184, 202, .16); /* заметна и на сером фоне карточки, и на белом при наведении */
	border-radius: 2px;
}

@media (min-width: 576px) {
	.project-card {
		padding: 32px;
	}

	.project-card::before {
		left: 32px;
	}
}

@media (min-width: 640px) {
	.projects__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.projects__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   11. Заявка и контакты, форма Contact Form 7
   ========================================================================== */

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

.request__text {
	max-width: 420px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--c-steel);
}

/* ---- Список контактов (секция заявки и подвал) ---- */
.contact-list {
	display: grid;
	gap: 16px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

/* Заголовок и текст блока не заполнены — список начинается сверху */
.contact-list:first-child {
	margin-top: 0;
}

/* Иконка — по центру первой строки: у многострочного адреса она стоит у его начала */
.contact-list__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.contact-list__icon {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--c-teal);
}

/* Область нажатия выше на 16px; отрицательные поля компенсируют отступы — раскладка не меняется */
.contact-list__link {
	margin-block: -8px;
	padding-block: 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .02em;
	color: #fff;
	transition: color .2s;
}

.contact-list__link:hover {
	color: var(--c-teal);
}

.contact-list__text {
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-steel);
}

/* ---- Панель формы ---- */
.form-panel {
	padding: 24px;
	background-color: rgba(23, 36, 45, .55);
	border: 1px solid var(--c-line-dark);
	border-radius: var(--radius);
}

.form-panel__fallback {
	font-size: 17px;
	color: var(--c-steel);
}

.form-panel__fallback a {
	color: var(--c-teal);
	text-decoration: underline;
	text-underline-offset: .15em;
}

/* ---- Поля ---- */
.mss-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.mss-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-steel);
}

.mss-form__req {
	color: var(--c-teal);
}

.form-panel .wpcf7-form-control-wrap {
	display: block;
}

.mss-form__input {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	line-height: 1.4;
	color: #fff;
	background-color: var(--c-navy-900);
	border: 1px solid rgba(167, 187, 197, .6); /* граница — единственный контур поля: ≥3:1 к панели */
	border-radius: 2px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}

.mss-form__input::placeholder {
	color: rgba(167, 187, 197, .7);
	opacity: 1;
}

.mss-form__input:hover {
	border-color: rgba(167, 187, 197, .75);
}

/* Прозрачная обводка не видна, но в режиме высокой контрастности показывает фокус */
.mss-form__input:focus {
	outline: 2px solid transparent;
	outline-offset: 2px;
	border-color: var(--c-teal);
	box-shadow: 0 0 0 3px rgba(42, 184, 202, .25);
}

/* Автозаполнение браузера не должно делать поле светлым */
.mss-form__input:-webkit-autofill,
.mss-form__input:-webkit-autofill:hover {
	-webkit-text-fill-color: #fff;
	caret-color: #fff;
	box-shadow: 0 0 0 100px var(--c-navy-900) inset;
}

.mss-form__input:-webkit-autofill:focus {
	-webkit-text-fill-color: #fff;
	box-shadow: 0 0 0 100px var(--c-navy-900) inset, 0 0 0 3px rgba(42, 184, 202, .25);
}

textarea.mss-form__input {
	min-height: 120px;
	resize: vertical;
}

/* ---- Ошибки полей ---- */
.form-panel .mss-form__input.wpcf7-not-valid {
	border-color: var(--c-error-on-dark);
}

.form-panel .mss-form__input.wpcf7-not-valid:focus {
	box-shadow: 0 0 0 3px rgba(255, 154, 158, .25);
}

.form-panel .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--c-error-on-dark);
}

/* ---- Согласие (чекбокс) ---- */
.mss-form__consent {
	margin-top: 24px;
}

.mss-form__consent .wpcf7-form-control-wrap,
.mss-form__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.mss-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	cursor: pointer;
}

.mss-form__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	background-color: var(--c-navy-900);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 14px 14px;
	border: 1px solid rgba(167, 187, 197, .65);
	border-radius: 2px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .15s, border-color .15s;
}

.mss-form__consent input[type="checkbox"]:hover {
	border-color: var(--c-teal);
}

.mss-form__consent input[type="checkbox"]:checked {
	background-color: var(--c-teal);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.9 2.9L11.5 4' fill='none' stroke='%2317242d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	border-color: var(--c-teal);
}

.mss-form__consent input[type="checkbox"]:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Режим высокой контрастности: системный чекбокс вместо нарисованного */
@media (forced-colors: active) {
	.mss-form__consent input[type="checkbox"] {
		-webkit-appearance: auto;
		appearance: auto;
	}
}

.mss-form__consent .wpcf7-list-item-label {
	font-size: 14px;
	line-height: 1.55;
	color: var(--c-steel);
}

.mss-form__consent .wpcf7-list-item-label::before,
.mss-form__consent .wpcf7-list-item-label::after {
	content: none;
}

.mss-form__consent a {
	color: var(--c-teal);
	text-decoration: underline;
	text-underline-offset: .15em;
	transition: color .2s;
}

.mss-form__consent a:hover {
	color: var(--c-teal-hover);
}

/* ---- Отправка ---- */
.mss-form__actions {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 28px;
}

.mss-form__submit {
	width: 100%;
}

/* Пока согласие не отмечено, CF7 отключает кнопку: она остаётся бирюзовой, но приглушённой */
.form-panel .mss-form__submit:disabled,
.form-panel .mss-form__submit:disabled:hover {
	color: var(--c-navy-900);
	background-color: var(--c-teal);
	opacity: .45;
	cursor: not-allowed;
}

/* Спиннер CF7: на мобильном — поверх кнопки справа, на десктопе — рядом с ней */
.form-panel .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 8px;
	margin: -12px 0 0;
	background-color: rgba(23, 36, 45, .25);
	opacity: 1;
}

.form-panel .wpcf7-spinner::before {
	background-color: var(--c-navy-900);
}

/* ---- Сообщение о результате ---- */
.form-panel .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #fff;
	border: 1px solid var(--c-line-dark);
	border-radius: 2px;
}

.form-panel .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--c-teal);
	background-color: rgba(42, 184, 202, .12);
}

.form-panel .wpcf7 form.invalid .wpcf7-response-output,
.form-panel .wpcf7 form.unaccepted .wpcf7-response-output,
.form-panel .wpcf7 form.payment-required .wpcf7-response-output,
.form-panel .wpcf7 form.failed .wpcf7-response-output,
.form-panel .wpcf7 form.aborted .wpcf7-response-output,
.form-panel .wpcf7 form.spam .wpcf7-response-output {
	color: var(--c-error-on-dark);
	border-color: var(--c-error-on-dark);
	background-color: rgba(229, 72, 77, .1);
}

@media (min-width: 576px) {
	.form-panel {
		padding: 40px;
	}

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

	.mss-form__field--wide {
		grid-column: 1 / -1;
	}

	.mss-form__submit {
		width: auto;
	}

	.form-panel .wpcf7-spinner {
		position: relative;
		top: auto;
		right: auto;
		margin: 0;
		background-color: rgba(167, 187, 197, .2);
	}

	.form-panel .wpcf7-spinner::before {
		background-color: var(--c-teal);
	}
}

@media (min-width: 992px) {
	.request__grid {
		grid-template-columns: 5fr 7fr;
		gap: 64px;
		align-items: start;
	}

	/* Нет ни заголовка, ни текста, ни контактов — форма занимает всю ширину */
	.request__form:only-child {
		grid-column: 1 / -1;
	}
}


/* ==========================================================================
   12. Подвал
   ========================================================================== */

.site-footer {
	padding-top: 64px;
	color: var(--c-text);
	background-color: var(--c-bg-light);
}

/* Внутренние страницы (и главная, если последней осталась серая секция): светлый фон контента
   и подвала разделены тонкой линией */
.site-main:has(> .page-content:last-child) + .site-footer,
.site-main:has(> .section--light:last-child) + .site-footer {
	border-top: 1px solid var(--c-line);
}

.site-footer__grid {
	display: grid;
	gap: 40px;
}

.site-footer__logo {
	display: inline-flex;
	border-radius: var(--radius);
}

.site-footer__logo img {
	display: block;
	width: auto;
	height: 52px;
}

/* Режим высокой контрастности: тёмные буквы «МСС» остаются на своём светлом фоне */
@media (forced-colors: active) {
	.site-footer__logo img {
		forced-color-adjust: none;
		background-color: var(--c-bg-light);
	}
}

.site-footer__about {
	max-width: 360px;
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--c-muted);
}

.site-footer__heading {
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.footer-menu {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu__link {
	font-size: 15px;
	line-height: 1.5;
	color: var(--c-ink);
	transition: color .2s;
}

.footer-menu__link:hover {
	color: var(--c-teal-ink);
}

/* Колонка «Документы»: длинное название переносится — его строки ближе друг к другу, чем пункты списка;
   пункты в одну строку идут с тем же шагом, что и в колонке «Разделы» */
.site-footer__docs .footer-menu {
	gap: 16px;
}

.site-footer__docs .footer-menu__item {
	font-size: 15px;
	line-height: 1.4;
}

.site-footer__docs .footer-menu__link {
	line-height: inherit;
}

.contact-list--light {
	gap: 14px;
	margin-top: 0;
}

.contact-list--light .contact-list__icon {
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

/* Промежуток между пунктами 14px: области нажатия соседних ссылок не перекрываются */
.contact-list--light .contact-list__link {
	margin-block: -7px;
	padding-block: 7px;
	font-size: 16px;
	color: var(--c-ink);
}

.contact-list--light .contact-list__link:hover {
	color: var(--c-teal-ink);
}

.contact-list--light .contact-list__text {
	color: var(--c-text);
}

.site-footer__bottom {
	margin-top: 56px;
	padding: 20px 0;
	border-top: 1px solid var(--c-line);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-muted);
}

/* Планшет: колонки 2×2 (логотип, разделы / контакты, документы) */
@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 48px;
	}

	/* Пустая колонка не выводится: из трёх колонок логотип занимает весь ряд, две другие — под ним;
	   колонка с логотипом без других колонок — тоже во весь ряд */
	.site-footer__brand:nth-last-child(3),
	.site-footer__brand:only-child {
		grid-column: 1 / -1;
	}
}

/* Десктоп: четыре колонки, колонка с логотипом шире */
@media (min-width: 992px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr);
		gap: 40px;
	}

	.site-footer__brand:nth-last-child(3),
	.site-footer__brand:only-child {
		grid-column: auto;
	}
}

@media (min-width: 1200px) {
	.site-footer__grid {
		gap: 48px;
	}
}


/* ==========================================================================
   13. Внутренние страницы
   ========================================================================== */

.page-hero {
	padding: 48px 0 calc(64px + var(--slant));
	background-position: 50% 0;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .02em;
	color: var(--c-steel);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "→";
	content: "→" / "";
	margin: 0 .6em;
	color: var(--c-teal);
}

.breadcrumbs__link {
	color: var(--c-steel);
	transition: color .2s;
}

.breadcrumbs__link:hover {
	color: #fff;
}

.breadcrumbs__item[aria-current="page"] {
	color: #fff;
}

.page-hero__title {
	margin-top: 20px;
	font-size: clamp(30px, 3vw, 46px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
}

.page-content {
	background-color: var(--c-bg-light);
}

/* ---- Текст из редактора ---- */
.prose {
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
}

.prose > :first-child {
	margin-top: 0;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1em;
}

.prose h2 {
	margin: 2em 0 .6em;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-ink);
}

.prose h3 {
	margin: 1.6em 0 .5em;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--c-ink);
}

.prose ul {
	padding: 0;
	list-style: none;
}

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

.prose ul > li::before {
	content: "";
	position: absolute;
	top: .68em;
	left: 2px;
	width: 6px;
	height: 6px;
	background-color: var(--c-teal);
}

.prose ol {
	padding-left: 1.5em;
}

.prose ol > li {
	padding-left: .3em;
}

.prose ol > li::marker {
	font-weight: 700;
	color: var(--c-teal-ink);
}

.prose li + li {
	margin-top: .4em;
}

.prose a:not(.btn) {
	color: var(--c-teal-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .2s;
}

.prose a:not(.btn):hover {
	color: var(--c-ink);
}

.prose strong {
	font-weight: 700;
	color: var(--c-ink);
}

/* Цитата из редактора — с бирюзовой планкой, как вводный абзац «О компании» */
.prose blockquote {
	margin: 0 0 1em;
	padding-left: 24px;
	border-left: 3px solid var(--c-teal);
	color: var(--c-ink);
}

.prose blockquote > :last-child {
	margin-bottom: 0;
}

/* Таблица из редактора (раздел 5 политики обработки персональных данных): во всю ширину колонки текста,
   тонкие линии, текст ячеек — сверху */
.prose table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
	background-color: #fff;
}

.prose th,
.prose td {
	padding: 14px 18px;
	text-align: left;
	vertical-align: top;
	border: 1px solid var(--c-line);
}

.prose th > :first-child,
.prose td > :first-child {
	margin-top: 0;
}

.prose th > :last-child,
.prose td > :last-child {
	margin-bottom: 0;
}

/* Строка из одной ячейки на всю ширину — заголовок раздела таблицы (5.1.1, 5.1.2…) */
.prose th,
.prose td[colspan] {
	font-weight: 700;
	color: var(--c-ink);
	background-color: var(--c-teal-soft);
}

/* Две колонки: подпись — около трети ширины */
@media (min-width: 640px) {
	.prose td:first-child:not(:only-child) {
		width: 32%;
	}
}

/* Телефоны: ячейки встают друг под другом, подпись — над значением; без прокрутки вбок */
@media (max-width: 639.98px) {
	.prose table,
	.prose thead,
	.prose tbody,
	.prose tfoot,
	.prose tr,
	.prose th,
	.prose td {
		display: block;
	}

	.prose th,
	.prose td {
		padding: 12px 16px;
	}

	/* Между ячейками одна линия: у следующей строки и у значения под подписью нет верхней линии */
	.prose tr + tr > :first-child,
	.prose td + td {
		border-top: 0;
	}

	.prose td:first-child:not(:only-child) {
		padding-bottom: 6px;
		font-weight: 700;
		color: var(--c-ink);
		border-bottom: 0;
	}

	.prose td + td {
		padding-top: 0;
	}

	/* Шапка бланка заявления (приложения): на десктопе — в правой половине, на телефоне — во всю ширину */
	.prose [style*="padding-left: 50%"],
	.prose [style*="padding-left:50%"] {
		padding-left: 0 !important;
	}
}

@media (max-width: 575.98px) {
	.page-hero {
		padding-top: 32px;
	}

	/* Самое длинное слово заголовка («КОНФИДЕНЦИАЛЬНОСТИ», ≈11.6em) помещается в колонку целиком
	   на экранах 320–390px, а не разрывается посередине; от ~390px — 30px, как в SPEC §3.9 */
	.page-hero__title {
		font-size: clamp(22px, calc((100vw - var(--gutter) * 2) / 11.65), 30px);
	}

	.prose {
		font-size: 16px;
	}

	.prose h2 {
		font-size: 21px;
	}

	.prose h3 {
		font-size: 18px;
	}
}


/* ==========================================================================
   14. Анимации и prefers-reduced-motion
   ========================================================================== */

@keyframes mss-details-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Раскрытие подробностей услуги; закрытие — мгновенное */
.js .service-card.is-open .service-card__details-inner {
	animation: mss-details-in 220ms var(--ease) both;
}

/* Вращение шестерни на первом экране (.hero__gear-wheel) */
@keyframes mss-gear-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Без анимаций: подробности услуги раскрываются сразу, шестерня первого экрана стоит на месте */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

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


/* ==========================================================================
   15. Уведомление об использовании cookies
   ========================================================================== */

/* Полоса закреплена внизу экрана: выше содержимого страницы, но ниже открытого мобильного меню
   (.site-header.is-nav-open, z-index 100). Пока она видна, main.js добавляет <body> отступ снизу на её высоту.
   При сильном увеличении (300–400 %) полоса не выше экрана: её текст прокручивается внутри неё,
   а ссылка или кнопка в фокусе не прижимается к краю (рамка фокуса видна целиком) */
.cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	max-height: 100vh;
	max-height: 100dvh;
	overflow-y: auto;
	scroll-padding-block: 8px;
	padding: 12px 0 14px;
	color: var(--c-steel);
	background-color: var(--c-navy);
	border-top: 1px solid var(--c-line-dark);
	box-shadow: 0 -12px 32px -16px rgba(23, 36, 45, .45);
}

.cookie-banner__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Обычный перенос строк (не «pretty»): полоса на телефоне — на строку ниже */
.cookie-banner__text {
	font-size: 14px;
	line-height: 1.4;
	text-wrap: wrap;
}

.cookie-banner__text a {
	color: var(--c-teal);
	text-decoration: underline;
	text-underline-offset: .15em;
	transition: color .2s;
}

.cookie-banner__text a:hover {
	color: var(--c-teal-hover);
}

/* Полоса тёмная: рамка фокуса белая, как в тёмных секциях */
.cookie-banner :focus-visible,
.cookie-banner .btn:focus-visible {
	outline-color: #fff;
}

/* Телефон: кнопка во всю ширину и ниже обычной, чтобы полоса занимала меньше места */
.cookie-banner__button {
	width: 100%;
	min-height: 48px;
}

/* Планшет и десктоп: текст и кнопка в одну строку */
@media (min-width: 768px) {
	.cookie-banner {
		padding: 18px 0;
	}

	.cookie-banner__inner {
		flex-direction: row;
		align-items: center;
		gap: 32px;
	}

	.cookie-banner__text {
		flex: 1 1 auto;
		font-size: 15px;
		line-height: 1.5;
	}

	.cookie-banner__button {
		flex: 0 0 auto;
		width: auto;
		min-height: 56px;
	}
}

/* Режим высокой контрастности: фон полосы не отличается от страницы — граница сверху заметнее */
@media (forced-colors: active) {
	.cookie-banner {
		border-top: 2px solid CanvasText;
	}
}

@media print {
	.cookie-banner {
		display: none !important;
	}

	body {
		padding-bottom: 0 !important;
	}
}
