@charset "UTF-8";
/* ==========================================================================
   SiteUpper — базовые стили
   Токены · сброс · типографика · раскладка · кнопки · шапка · подвал · формы
   Стили отдельных секций лежат в blocks/<имя>/style.css
   ========================================================================== */

/* ---------- Токены ----------
 * Монохром (белый, светло-серый, графит) + фирменный фиолетовый точечно.
 */
:root {
	--c-primary: #750093;
	--c-primary-light: #e28af8;
	--c-ink: #111216; /* графит — тёмные секции, основной текст */
	--c-navy: #111216; /* совместимость со старыми правилами */
	--c-navy-soft: #1b1d22;
	--c-tint: #f2f2f4;
	--c-text: #111216;
	--c-muted: #85878e;
	--c-white: #fff;
	--c-error: #e5484d;
	--c-success: #2fb36d;

	/* Градиент — только для 3D-бликов и акцентных кнопок */
	--grad: linear-gradient(120deg, #750093 0%, #a63fd1 60%, #e28af8 100%);
	--grad-text: linear-gradient(100deg, #a63fd1 0%, #e28af8 100%);

	--font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: var(--font);

	--container: 1920px;
	--gutter: clamp(16px, 2.2vw, 40px);
	--content: 860px;
	--header-h: 72px;
	--section-y: clamp(80px, 10vw, 180px);

	--r-lg: 16px;
	--r: 12px;
	--r-sm: 8px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--t: 0.4s var(--ease);

	--fs-display: clamp(3rem, 1rem + 8vw, 12rem);
	--fs-h1: clamp(2.5rem, 1.2rem + 5vw, 7.5rem);
	--fs-h2: clamp(2rem, 1.1rem + 3.2vw, 5rem);
	--fs-h3: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.5rem);
	--fs-small: 0.9375rem;
}

/* Тема секции: переменные цвета внутри блока */
:root,
.is-light {
	--bg: var(--c-white);
	--fg: #3a3c42;
	--heading: var(--c-ink);
	--muted: var(--c-muted);
	--line: rgba(17, 18, 22, 0.12);
	--card: var(--c-tint);
	--card-border: transparent;
	--accent: var(--c-primary);
	--field: var(--c-white);
}

.is-tint {
	--bg: var(--c-tint);
	--fg: #3a3c42;
	--heading: var(--c-ink);
	--muted: var(--c-muted);
	--line: rgba(17, 18, 22, 0.12);
	--card: var(--c-white);
	--card-border: transparent;
	--accent: var(--c-primary);
	--field: var(--c-white);
}

.is-dark {
	--bg: var(--c-ink);
	--fg: rgba(255, 255, 255, 0.7);
	--heading: var(--c-white);
	--muted: rgba(255, 255, 255, 0.45);
	--line: rgba(255, 255, 255, 0.14);
	--card: rgba(255, 255, 255, 0.05);
	--card-border: transparent;
	--accent: var(--c-primary-light);
	--field: rgba(255, 255, 255, 0.05);
}

.is-light,
.is-tint,
.is-dark {
	background-color: var(--bg);
	color: var(--fg);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	min-width: 360px;
	min-height: 100vh;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.55;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

body.is-locked {
	overflow: hidden;
}

[hidden] {
	display: none !important;
}

img,
svg,
video,
picture {
	display: block;
	max-width: 100%;
	height: auto;
}

svg:not([fill]) {
	fill: currentColor;
}

.ui-icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	fill: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--heading, var(--c-ink));
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--accent, var(--c-primary));
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition:
		color var(--t),
		opacity var(--t);
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

ul,
ol {
	padding-left: 1.25em;
}

:focus-visible {
	outline: 2px solid var(--c-primary-light);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--c-primary);
	color: #fff;
}

.mono {
	letter-spacing: 0;
}

.sr-only,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 10px 16px;
	border-radius: var(--r-sm);
	background: #fff;
	color: var(--c-navy);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* ---------- Раскладка ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

/* Две светлые секции подряд не удваивают отступ */
/* (кроме первого экрана intro — после него отступ нужен всегда) */
.section.is-light:not(.intro) + .section.is-light,
.section.is-tint + .section.is-tint,
.section.is-dark + .section.is-dark {
	padding-top: 0;
}

/* Секции с отдельным слоем (бывшая техно-сетка — в монохроме фон чистый) */
.has-grid {
	isolation: isolate;
	overflow: hidden;
}

/* ---------- Типографика секций ---------- */
.label {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 1.5rem;
	color: var(--muted);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: -0.005em;
}

.label__num {
	color: var(--heading);
	font-variant-numeric: tabular-nums;
}

.label__num::after {
	content: "\2014"; /* — длинное тире */
	margin-left: 0.6em;
	color: var(--muted);
}

/* Выделение в заголовках: в монохроме — приглушённый серый, как у швейцарских студий;
   фирменный фиолетовый — у ссылок, кнопок и деталей */
.accent {
	color: var(--muted);
}

.section-head {
	display: grid;
	gap: 1.25rem 4rem;
	margin-bottom: clamp(40px, 5vw, 88px);
}

.section-head .label {
	margin: 0;
}

.section-head__title {
	max-width: 20ch;
	margin: 0;
	font-size: var(--fs-h2);
}

.section-head__subtitle {
	max-width: 56ch;
	margin: 0;
	color: var(--muted);
	font-size: var(--fs-lead);
	line-height: 1.5;
}

@media (min-width: 1100px) {
	.section-head:has(.section-head__subtitle) {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: end;
	}

	.section-head .label {
		grid-column: 1 / -1;
	}
}

/* ---------- Кнопки ---------- */
.btn {
	--btn-h: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: var(--btn-h);
	padding: 0 1.6em;
	border: 1px solid transparent;
	border-radius: 999px;
	background: none;
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform var(--t),
		box-shadow var(--t),
		background-color var(--t),
		border-color var(--t),
		color var(--t);
}

.btn .ui-icon {
	transition: transform var(--t);
}

.btn:hover .ui-icon {
	transform: translateX(3px);
}

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

.btn--lg {
	--btn-h: 60px;
	padding-inline: 2em;
	font-size: 1.0625rem;
}

/* Основная кнопка: графит на светлом, белая на тёмном; при наведении — фирменный фиолетовый */
.btn--primary {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--heading);
	color: var(--bg);
}

.btn--primary:hover {
	background: var(--c-primary);
	color: #fff;
}

.btn--ghost {
	border-color: var(--line);
	color: var(--heading);
}

.btn--ghost:hover {
	border-color: var(--heading);
	background: var(--heading);
	color: var(--bg);
}

.btn[disabled] {
	opacity: 0.6;
	pointer-events: none;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--heading);
	font-weight: 500;
	text-decoration: none;
}

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

/* ---------- Шапка ----------
   Прозрачная, графитовый текст. Над тёмной секцией app.js ставит .is-inverse — текст белеет. */
.site-header {
	--fg: var(--c-ink);
	--heading: var(--c-ink);
	--muted: var(--c-muted);
	--line: rgba(17, 18, 22, 0.12);
	--bg: #fff;
	--panel: rgba(255, 255, 255, 0.82);
	position: fixed;
	z-index: 100;
	inset: 0 0 auto;
	height: var(--header-h);
	color: var(--fg);
	transition:
		background-color var(--t),
		color var(--t),
		transform 0.5s var(--ease);
}

.site-header.is-inverse {
	--fg: #fff;
	--heading: #fff;
	--muted: rgba(255, 255, 255, 0.6);
	--line: rgba(255, 255, 255, 0.16);
	--bg: var(--c-ink);
	--panel: rgba(17, 18, 22, 0.78);
}

.site-header.is-scrolled {
	background: var(--panel);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 56px);
	height: 100%;
}

.site-header__logo {
	flex: none;
	color: var(--fg);
}

.logo {
	width: auto;
	height: 30px;
}

.logo-accent {
	fill: var(--c-primary);
}

.site-header.is-inverse .logo-accent {
	fill: var(--c-primary-light);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--fg);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__phone .ui-icon {
	color: currentColor;
}

.site-header__phone:hover {
	color: var(--c-primary);
}

.site-header.is-inverse .site-header__phone:hover {
	color: var(--c-primary-light);
}

/* «Обсудить проект •» — кнопка с точкой-индикатором */
.site-header__cta {
	--btn-h: 42px;
	padding-inline: 1.3em;
	font-size: 0.9375rem;
}

.site-header__cta::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 0.2em;
	border-radius: 50%;
	background: var(--c-primary-light);
}

/* Меню */
.nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(8px, 2.4vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
}

.nav__list a {
	position: relative;
	display: block;
	padding: 0.5em 0;
	color: var(--fg);
	font-size: 0.9688rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

/* Подчёркивание «вырастает» слева направо */
.nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.2em;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease);
}

.nav__list > li > a:hover::after,
.nav__list > .current-menu-item > a::after,
.nav__list > .current-menu-ancestor > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__toggle {
	display: grid;
	place-items: center;
	width: 24px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--fg);
}

.nav__toggle .ui-icon {
	width: 14px;
	transition: transform var(--t);
}

.nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: -16px;
	min-width: 260px;
	margin: 0;
	padding: 8px;
	border-radius: var(--r-lg);
	background: #fff;
	box-shadow:
		0 24px 60px -20px rgba(17, 18, 22, 0.25),
		0 0 0 1px rgba(17, 18, 22, 0.06);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition:
		opacity var(--t),
		transform var(--t),
		visibility var(--t);
}

.nav__list .sub-menu::before {
	content: "";
	position: absolute;
	inset: -14px 0 auto;
	height: 14px;
}

.nav__list .sub-menu a {
	padding: 0.6em 0.9em;
	border-radius: var(--r-sm);
	color: var(--c-ink);
}

.nav__list .sub-menu a:hover,
.nav__list .sub-menu .current-menu-item > a {
	background: var(--c-tint);
	color: var(--c-primary);
}

.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu,
.nav__list > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav__list > li.is-open > .nav__toggle .ui-icon {
	transform: rotate(180deg);
}

.nav__mobile-extra {
	display: none;
}

.burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--heading);
}

.burger span {
	position: absolute;
	left: 14px;
	right: 14px;
	height: 1.5px;
	border-radius: 2px;
	background: var(--bg);
	transition:
		transform var(--t),
		top var(--t);
}

.burger span:first-child {
	top: 18px;
}

.burger span:last-child {
	top: 25px;
}

.burger[aria-expanded="true"] span:first-child {
	top: 21px;
	transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
	top: 21px;
	transform: rotate(-45deg);
}

@media (max-width: 1279px) {
	.site-header__phone span {
		display: none;
	}

	.site-header__phone {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: 50%;
	}
}

@media (max-width: 1099px) {
	:root {
		--header-h: 64px;
	}

	.burger {
		display: block;
	}

	.site-header__cta {
		display: none;
	}

	/* Десктопное меню прячем — на узких экранах работает полноэкранное (.menu ниже) */
	.nav {
		display: none;
	}
}

/* ---------- Заголовок страницы ---------- */
.page-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--header-h) + clamp(32px, 5vw, 88px)) 0 clamp(32px, 4vw, 64px);
}

.page-head--compact {
	padding-bottom: 0;
}

.page-head__title {
	max-width: 16ch;
	margin: 0;
	font-size: var(--fs-h1);
	letter-spacing: -0.06em;
	line-height: 0.92;
	text-wrap: balance;
}

.page-head__lead {
	max-width: 60ch;
	margin: 1.5rem 0 0;
	color: var(--fg);
	font-size: var(--fs-lead);
	line-height: 1.5;
}

/* Хлебные крошки (разметка Yoast: span > span > a, последний — .breadcrumb_last) */
.crumbs {
	margin-bottom: clamp(24px, 3vw, 48px);
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.8;
}

.crumbs__sep {
	margin: 0 0.75em;
	opacity: 0.5;
}

.crumbs a {
	color: var(--fg);
	text-decoration: none;
}

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

/* ---------- Контент из редактора ---------- */
.entry--blocks > :where(:not(.section):not(.alignfull):not(.alignwide)) {
	max-width: calc(var(--content) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.entry--blocks > .alignwide {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.entry--blocks,
.entry--classic {
	background: var(--c-white);
	display: flow-root; /* отступы первого и последнего блока не выпадают за белый фон */
}

.entry--blocks > :where(:not(.section)):first-child {
	margin-top: var(--section-y);
}

.entry--blocks > :where(:not(.section)):last-child {
	margin-bottom: var(--section-y);
}

.entry--classic {
	max-width: calc(var(--content) + var(--gutter) * 2);
	padding-block: var(--section-y);
}

:where(.entry--classic, .text-section__content) :where(h2) {
	margin-top: 1.6em;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
}

:where(.entry--classic, .text-section__content) :where(h3) {
	margin-top: 1.4em;
	font-size: var(--fs-h3);
}

:where(.entry--classic, .text-section__content) :where(ul, ol) li + li {
	margin-top: 0.4em;
}

:where(.entry--classic, .text-section__content) :where(ul) li::marker {
	color: var(--c-primary);
}

:where(.entry--classic, .text-section__content) :where(img) {
	border-radius: var(--r);
}

:where(.entry--classic, .text-section__content) :where(table) {
	width: 100%;
	border-collapse: collapse;
}

:where(.entry--classic, .text-section__content) :where(th, td) {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

:where(.entry--classic, .text-section__content) :where(blockquote) {
	margin: 2em 0;
	padding: 0 0 0 1.5em;
	border-left: 3px solid var(--c-primary);
	font-size: var(--fs-lead);
}

.empty-note {
	padding-block: 80px;
	background: var(--c-tint);
	color: var(--c-muted);
}

.card-base {
	border: 1px solid var(--card-border);
	border-radius: var(--r-lg);
	background: var(--card);
	transition:
		border-color var(--t),
		transform var(--t),
		box-shadow var(--t);
}

/* ---------- Проекты: плитки и фильтр ---------- */
.cases-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
	gap: 8px;
}

/* Страница портфолио: сразу под заголовком страницы */
.cases-archive.section {
	padding-top: 0;
	padding-bottom: 8px;
}

/* На странице портфолио — две плитки во всю ширину экрана с тонким зазором */
.cases-grid--wide {
	padding-inline: 8px;
}

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

.case-card {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: 16px;
	background: radial-gradient(70% 60% at 50% 38%, #34363e 0%, transparent 70%), var(--c-ink);
	isolation: isolate;
}

.case-card[hidden] {
	display: none;
}

/* Обложка — мокап по центру; низ уходит под стеклянную панель */
.case-card__media {
	position: absolute;
	inset: 0 0 8%;
	display: grid;
	place-items: center;
	padding: 10% 9% 4%;
}

.case-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
	transition: transform 1s var(--ease);
}

.case-card:hover .case-card__img {
	transform: scale(1.04);
}

.case-card__media .placeholder {
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.5);
}

.case-card__media .placeholder__caption {
	color: #fff;
}

/* Направления — «таблетки» сверху слева */
.case-card__tags {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.case-card__tags li {
	padding: 0.45em 0.95em;
	border-radius: 999px;
	background: #fff;
	color: var(--c-ink);
	font-size: 0.8125rem;
	box-shadow: 0 1px 0 rgba(17, 18, 22, 0.06);
}

/* Стеклянная панель снизу: название, линия, клиент и иконка */
.case-card__body {
	position: absolute;
	z-index: 2;
	right: 8px;
	bottom: 8px;
	left: 8px;
	display: grid;
	overflow: hidden;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(22px) saturate(1.4);
	backdrop-filter: blur(22px) saturate(1.4);
	color: #fff;
	text-decoration: none;
	transition:
		transform 2.5s var(--ease) 0.15s,
		background-color var(--t);
}

a.case-card__body:hover {
	background: rgba(255, 255, 255, 0.16);
}

/* Панель выезжает снизу, когда плитка появилась на экране */
.js .case-card[data-reveal] {
	opacity: 1;
	transform: none;
}

.js .case-card[data-reveal] .case-card__body {
	transform: translateY(calc(100% + 12px));
}

.js .case-card[data-reveal].is-visible .case-card__body {
	transform: none;
}

.case-card__title {
	margin: 0;
	padding: clamp(10px, 1vw, 16px) clamp(12px, 1.2vw, 20px) clamp(14px, 1.4vw, 24px);
	color: #fff;
	font-size: clamp(2rem, 1rem + 3.2vw, 4.5rem);
	letter-spacing: -0.06em;
	line-height: 0.95;
	overflow-wrap: anywhere;
}

.case-card__title::first-letter {
	text-transform: uppercase;
}

.case-card__line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 10px clamp(12px, 1.2vw, 20px);
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.case-card__subtitle {
	font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
	font-weight: 500;
	line-height: 1.3;
}

.case-card__icon {
	flex: none;
	width: 22px;
	height: 22px;
	transition: transform var(--t);
}

a.case-card__body:hover .case-card__icon {
	transform: translate(2px, -2px);
}

/* В блоке «Кейсы» плитки поменьше — и заголовок скромнее */
.cases .case-card__title {
	font-size: clamp(1.75rem, 1rem + 1.6vw, 3rem);
}

@media (prefers-reduced-motion: reduce) {
	.js .case-card[data-reveal] .case-card__body {
		transform: none;
	}
}

/* Фильтр: крупные «таблетки» с числом проектов */
.filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(40px, 5vw, 80px);
}

.filter__btn {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	padding: 0.55em 1.1em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: none;
	color: var(--heading);
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	transition:
		background-color var(--t),
		border-color var(--t),
		color var(--t);
}

.filter__btn sup {
	color: var(--muted);
	font-size: 0.6em;
}

.filter__btn:hover {
	border-color: var(--heading);
}

.filter__btn.is-active {
	border-color: var(--heading);
	background: var(--heading);
	color: var(--bg);
}

.filter__btn.is-active sup {
	color: inherit;
	opacity: 0.6;
}

/* ---------- Формы ---------- */
.lead-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.field--wide {
	grid-column: 1 / -1;
}

@media (max-width: 559px) {
	.lead-form {
		grid-template-columns: 1fr;
	}
}

.lead-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field {
	position: relative;
}

.field__input {
	display: block;
	width: 100%;
	min-height: 60px;
	padding: 26px 18px 8px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--field);
	color: var(--heading);
	font: inherit;
	font-size: 1rem;
	transition:
		border-color var(--t),
		box-shadow var(--t);
	resize: vertical;
}

textarea.field__input {
	min-height: 104px;
}

.field__input:hover {
	border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.field__input:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field__label {
	position: absolute;
	top: 19px;
	left: 19px;
	color: var(--muted);
	font-size: 1rem;
	pointer-events: none;
	transform-origin: left top;
	transition:
		transform var(--t),
		color var(--t);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	color: var(--accent);
	transform: translateY(-10px) scale(0.75);
}

.field.is-invalid .field__input {
	border-color: var(--c-error);
}

.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.45;
	cursor: pointer;
}

.check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--c-primary);
}

.check a {
	color: inherit;
}

.check.is-invalid {
	color: var(--c-error);
}

.lead-form__status:empty {
	display: none;
}

.lead-form__status {
	margin: 0;
	font-size: 0.9375rem;
}

.lead-form__status.is-error {
	color: var(--c-error);
}

.lead__success {
	display: grid;
	justify-items: start;
	gap: 8px;
	padding: 24px 0 8px;
}

.lead__success-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
}

.lead__success-icon .ui-icon {
	width: 26px;
	height: 26px;
}

.lead__success-title {
	margin: 0;
	color: var(--heading);
	font-size: var(--fs-h3);
	font-weight: 500;
}

/* ---------- Модальное окно ---------- */
.modal {
	--bg: var(--c-ink);
	--fg: rgba(255, 255, 255, 0.72);
	--heading: #fff;
	--muted: rgba(255, 255, 255, 0.5);
	--line: rgba(255, 255, 255, 0.14);
	--accent: var(--c-primary-light);
	--field: rgba(255, 255, 255, 0.04);
	width: min(100% - 32px, 620px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--bg);
	color: var(--fg);
	box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.5);
	overflow: auto;
}

.modal::backdrop {
	background: rgba(17, 18, 22, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.modal[open] {
	animation: modal-in 0.35s var(--ease);
}

.modal[open]::backdrop {
	animation: fade-in 0.35s var(--ease);
}

@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

.modal__box {
	position: relative;
	padding: clamp(28px, 4vw, 48px);
}

.modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	color: #fff;
	transition:
		background-color var(--t),
		transform var(--t);
}

.modal__close:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: rotate(90deg);
}

.modal__title {
	max-width: 24ch;
	margin: 0 0 28px;
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.modal .label {
	margin-bottom: 1rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: clamp(48px, 6vw, 96px);
	border-top: 1px solid var(--line);
}

/* Гигантская надпись внизу подвала — во всю ширину контейнера */
.site-footer__word {
	margin: 0 0 0.14em;
	color: #fff;
	font-size: min(24.4vw, 468px);
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 0.8;
	text-align: center;
	white-space: nowrap;
	user-select: none;
}

/* Призыв — в одну строку с кнопками */
.site-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	padding-bottom: clamp(40px, 5vw, 72px);
	border-bottom: 1px solid var(--line);
}

.site-footer__cta .label {
	margin-bottom: 1rem;
}

.site-footer__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2.5rem, 1.2rem + 5vw, 7.5rem);
	font-weight: 500;
	letter-spacing: -0.055em;
	line-height: 1;
}

.site-footer__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Основная сетка: бренд + три колонки ссылок */
.site-footer__grid {
	display: grid;
	gap: 40px clamp(24px, 3vw, 64px);
	padding-block: clamp(40px, 5vw, 72px);
}

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

@media (min-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
	}
}

.site-footer__brand {
	display: grid;
	gap: 16px;
	align-content: start;
}

.site-footer__logo {
	width: fit-content;
	color: #fff;
}

.site-footer__logo .logo {
	height: 40px;
}

.site-footer__slogan {
	max-width: 32ch;
	margin: 0;
	color: var(--fg);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.site-footer__phone {
	width: fit-content;
	margin-top: 8px;
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	text-decoration: none;
	white-space: nowrap;
}

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

.site-footer__contacts li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--fg);
	font-size: 0.9688rem;
}

.site-footer__contacts .ui-icon {
	margin-top: 3px;
	color: var(--muted);
}

.site-footer__contacts a {
	color: #fff;
	text-decoration: none;
}

.site-footer__contacts a:hover {
	color: var(--c-primary-light);
}

.site-footer__social {
	display: flex;
	gap: 8px;
}

.site-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: #fff;
}

.site-footer__head {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 0.9375rem;
}

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

/* Услуги — в две колонки */
.site-footer__col--services .site-footer__menu {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}

.site-footer__menu a,
.site-footer__menu button {
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-size: 0.9688rem;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: color var(--t);
}

.site-footer__menu a:hover,
.site-footer__menu button:hover,
.site-footer__menu .current-menu-item > a {
	color: var(--c-primary-light);
}

.site-footer__phone:hover {
	color: var(--c-primary-light);
}

/* Нижняя строка */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 32px;
	padding-block: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 767px) {
	.site-footer__bottom p {
		text-align: center;
	}
}

.site-footer__top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	color: var(--fg);
	text-decoration: none;
}

.site-footer__top .ui-icon {
	transform: rotate(180deg);
}

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

/* ---------- 404, блог ---------- */
/* 404: оформление — от блока «Первый экран» (blocks/intro/style.css), здесь только отличия */
.intro--404 .intro__wordmark {
	font-size: min(46vw, 820px);
	letter-spacing: -0.08em;
}

.intro--404 .intro__title {
	font-size: clamp(2rem, 1.2rem + 2.6vw, 4rem);
	letter-spacing: -0.05em;
}

.error-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.error-404__links a {
	color: var(--muted);
	font-size: 1.0625rem;
	text-decoration: none;
	transition: color var(--t);
}

.error-404__links a:hover {
	color: var(--heading);
}

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

.post-card {
	padding: 28px;
	border: 1px solid var(--card-border);
	border-radius: var(--r);
}

.post-card__date {
	margin-bottom: 0.5em;
	color: var(--muted);
	font-size: 0.8125rem;
}

.post-card__title {
	font-size: var(--fs-h3);
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(24px);
		transition:
			opacity 0.8s var(--ease),
			transform 0.8s var(--ease);
		transition-delay: var(--delay, 0s);
	}

	.js [data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Архив услуг ---------- */
.services-archive .cards__item {
	min-height: clamp(260px, 22vw, 360px);
}

.services-archive .cards__title {
	font-size: var(--fs-h3);
}

.services-archive__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
}

.services-archive__price {
	color: var(--heading);
	font-weight: 500;
}

.services-archive__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Подвал без призыва (страница контактов) — без большого верхнего отступа */
.site-footer--compact {
	padding-top: 0;
}

/* ---------- Баннер cookie ---------- */
.cookie {
	position: fixed;
	z-index: 150;
	left: 50%;
	bottom: clamp(12px, 2vw, 24px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	width: min(calc(100% - 24px), 880px);
	padding: 12px 12px 12px 24px;
	border-radius: 999px;
	background: rgba(17, 18, 22, 0.92);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
	transform: translateX(-50%);
	animation: cookie-in 0.6s var(--ease);
}

@media (max-width: 767px) {
	.cookie {
		padding: 18px;
		border-radius: 20px;
	}
}

@keyframes cookie-in {
	from {
		opacity: 0;
		transform: translate(-50%, 16px);
	}
}

.cookie__text {
	flex: 1 1 320px;
	margin: 0;
	color: var(--fg);
	font-size: 0.875rem;
	line-height: 1.4;
}

.cookie__text a {
	color: var(--c-primary-light);
}

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

.cookie__actions .btn {
	--btn-h: 44px;
	padding-inline: 1.2em;
	flex: 1 1 auto;
	font-size: 0.9375rem;
}

/* ---------- Подсказки валидации в формах ---------- */
.field__error {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin-top: 6px;
	color: var(--c-error);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
}

.field__error:empty {
	display: none;
}

.field__error::before {
	content: "!";
	display: grid;
	flex: none;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--c-error);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 500;
}

.field.is-invalid .field__input {
	border-color: var(--c-error);
	box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.14);
}

.field.is-invalid .field__label {
	color: var(--c-error);
}

/* Правильно заполненное поле — галочка справа */
.field.is-valid .field__input {
	border-color: color-mix(in srgb, var(--c-success) 60%, var(--line));
	padding-right: 44px;
}

.field.is-valid::after {
	content: "";
	position: absolute;
	top: 22px;
	right: 18px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--c-success);
	border-bottom: 2px solid var(--c-success);
	transform: rotate(-45deg);
	pointer-events: none;
}

.check-wrap.is-invalid .check {
	color: var(--c-error);
}

.check-wrap.is-invalid .check input {
	outline: 2px solid var(--c-error);
	outline-offset: 2px;
}

/* Кнопка во время отправки */
.btn.is-loading {
	position: relative;
	color: transparent !important;
}

.btn.is-loading .ui-icon {
	opacity: 0;
}

.btn.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 22px;
	height: 22px;
	margin: auto;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Заглушка изображения ---------- */
.placeholder {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 8px;
	width: 100%;
	height: 100%;
	min-height: 200px;
	padding: 24px;
	border: 1px dashed rgba(17, 18, 22, 0.18);
	border-radius: var(--r);
	background: var(--c-tint);
	color: var(--c-primary);
	text-align: center;
}

.placeholder__icon {
	width: 40px;
	height: 40px;
	opacity: 0.7;
}

.placeholder__caption {
	color: var(--c-ink);
	font-weight: 500;
}

.placeholder__note {
	color: var(--c-muted);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

/* Заглушка на тёмном фоне */
.placeholder--dark {
	border-color: rgba(255, 255, 255, 0.16);
	background: var(--c-navy-soft);
	color: rgba(255, 255, 255, 0.6);
}

.placeholder--dark .placeholder__caption {
	color: #fff;
}

.placeholder--dark .placeholder__note {
	color: rgba(255, 255, 255, 0.5);
}

/* ---------- Плавная прокрутка (Lenis) ---------- */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* ---------- Курсор-подсказка ---------- */
.cursor {
	position: fixed;
	z-index: 300;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	pointer-events: none;
	transform: scale(0);
	transition: transform 0.4s var(--ease);
}

.cursor.is-on {
	transform: scale(1);
}

/* Слова для проявления при прокрутке */
.word {
	will-change: opacity;
}

/* ---------- Мобильное меню (parts/mobile-menu.php, до 1100px) ----------
   Слой раскрывается кругом из кнопки-бургера (--ox/--oy ставит app.js), пункты выплывают по очереди,
   у пунктов с подпунктами своя панель — она выезжает справа. */
.menu {
	--bg: var(--c-ink);
	--fg: rgba(255, 255, 255, 0.72);
	--heading: #fff;
	--muted: rgba(255, 255, 255, 0.45);
	--line: rgba(255, 255, 255, 0.12);
	--accent: var(--c-primary-light);
	--ease-menu: cubic-bezier(0.76, 0, 0.24, 1);
	position: fixed;
	z-index: 250;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: radial-gradient(70% 45% at 100% 100%, rgba(117, 0, 147, 0.32), transparent 70%), var(--bg);
	color: var(--fg);
	clip-path: circle(0 at var(--ox, calc(100% - 40px)) var(--oy, 32px));
	transition: clip-path 0.9s var(--ease-menu);
	overscroll-behavior: contain;
}

.menu.is-open {
	clip-path: circle(150vmax at var(--ox, calc(100% - 40px)) var(--oy, 32px));
}

@media (min-width: 1100px) {
	.menu {
		display: none !important;
	}
}

.admin-bar .menu {
	top: var(--wp-admin--admin-bar--height, 46px);
}

/* Верхняя строка: логотип и «закрыть» на месте бургера */
.menu__bar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding-inline: var(--gutter);
}

.menu__logo {
	color: #fff;
}

.menu__logo .logo {
	height: 30px;
}

.menu__logo .logo-accent {
	fill: var(--c-primary-light);
}

.menu__close {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	transform: rotate(-90deg) scale(0.6);
	opacity: 0;
	transition:
		transform 0.7s var(--ease) 0.25s,
		opacity 0.4s var(--ease) 0.25s;
}

.menu.is-open .menu__close {
	transform: none;
	opacity: 1;
}

.menu__close span {
	position: absolute;
	top: 21px;
	left: 14px;
	right: 14px;
	height: 1.5px;
	border-radius: 2px;
	background: var(--c-ink);
	transform: rotate(45deg);
}

.menu__close span + span {
	transform: rotate(-45deg);
}

/* Панели уровней */
.menu__nav {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.menu__panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	padding: 8px var(--gutter) 24px;
	transform: translateX(100%);
	opacity: 0;
	transition:
		transform 0.6s var(--ease),
		opacity 0.6s var(--ease);
	overscroll-behavior: contain;
}

.menu__panel.is-active {
	transform: none;
	opacity: 1;
}

/* Корневая панель уходит влево, когда открыт подуровень, и возвращается оттуда же */
.menu__panel.is-gone-left,
.menu__panel.is-from-left {
	transform: translateX(-30%);
	opacity: 0;
}

.menu__panel.is-from-left {
	transition: none;
}

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

.menu__item {
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.menu__link {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: clamp(12px, 2.2vh, 18px) 0;
	border: 0;
	background: none;
	color: var(--heading);
	font: inherit;
	font-size: clamp(1.75rem, 1rem + 4vw, 2.75rem);
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 1.05;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	/* Появление: выплывает снизу, по очереди (--i — номер пункта) */
	transform: translateY(105%);
	opacity: 0;
	transition:
		transform 0.8s var(--ease),
		opacity 0.6s var(--ease),
		color var(--t);
	transition-delay: 0s;
}

.menu.is-open .menu__panel.is-active .menu__link {
	transform: none;
	opacity: 1;
	transition-delay: calc(0.3s + var(--i, 0) * 0.06s), calc(0.3s + var(--i, 0) * 0.06s), 0s;
}

.menu__num {
	align-self: start;
	padding-top: 0.5em;
	color: var(--muted);
	font-size: 0.8125rem;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
}

.menu__more {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: #fff;
	transition:
		background-color var(--t),
		color var(--t);
}

.menu__more .ui-icon {
	width: 18px;
	transform: rotate(-90deg);
}

.menu__link:hover,
.menu__link:focus-visible {
	color: var(--accent);
}

.menu__link:hover .menu__more {
	background: #fff;
	color: var(--c-ink);
}

.menu__item.is-current > .menu__link .menu__text::after {
	content: "";
	display: inline-block;
	width: 0.18em;
	height: 0.18em;
	margin-left: 0.2em;
	border-radius: 50%;
	background: var(--c-primary-light);
	vertical-align: 0.55em;
}

/* Подуровень: «Назад», название раздела и ссылка «Все …» */
.menu__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 8px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.menu__back .ui-icon {
	width: 18px;
	transform: rotate(180deg);
}

.menu__back:hover {
	color: #fff;
}

.menu__level-title {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.menu__item--all .menu__link {
	display: inline-flex;
	gap: 0.4em;
	width: auto;
	color: var(--accent);
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.menu__item--all .menu__link .ui-icon {
	width: 18px;
}

/* Подвал меню: контакты, мессенджеры, кнопки */
.menu__footer {
	display: grid;
	flex: none;
	gap: 14px;
	padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	transform: translateY(24px);
	opacity: 0;
	transition:
		transform 0.8s var(--ease),
		opacity 0.6s var(--ease);
}

.menu.is-open .menu__footer {
	transform: none;
	opacity: 1;
	transition-delay: 0.55s;
}

.menu__phone {
	width: fit-content;
	color: #fff;
	font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1;
	text-decoration: none;
}

.menu__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: 0.875rem;
	list-style: none;
}

.menu__contacts a {
	color: var(--fg);
	text-decoration: none;
}

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

.menu__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: #fff;
	transition:
		background-color var(--t),
		color var(--t);
}

.menu__social a:hover {
	background: #fff;
	color: var(--c-ink);
}

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

.menu__actions .btn {
	--btn-h: 52px;
	flex: 1 1 150px;
}

/* Невысокие экраны (телефон боком) — контакты компактнее */
@media (max-height: 640px) {
	.menu__contacts li + li {
		display: none;
	}

	.menu__link {
		font-size: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.menu,
	.menu__panel,
	.menu__link,
	.menu__footer,
	.menu__close {
		transition-duration: 0.01s !important;
		transition-delay: 0s !important;
	}
}
