/* assets/css/fonts.css */
/* Шрифты внутри темы (скачаны с Google Fonts): Inter 400–700 (вариативный) и Golos Text 900 для логотипа. Только кириллица и латиница. */
@font-face {
	font-family: 'Golos Text';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('https://webrock.uz/wp-content/themes/webrock/assets/fonts/golos-text-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Golos Text';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('https://webrock.uz/wp-content/themes/webrock/assets/fonts/golos-text-latin.woff2') format('woff2');
	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: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('https://webrock.uz/wp-content/themes/webrock/assets/fonts/inter-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('https://webrock.uz/wp-content/themes/webrock/assets/fonts/inter-latin.woff2') format('woff2');
	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;
}


/* assets/css/base.css */
/* ==========================================================================
   Webrock — переменные, сброс, типографика, общие компоненты
   ========================================================================== */

:root {
	/* Цвета */
	--c-black: #0d0d0d;
	--c-white: #f6f6f6;
	--c-paper: #ffffff;
	--c-dark: #1a1a1a;
	--c-dark-deep: #141414;
	--c-dark-soft: #222222;
	--c-dark-hover: #262626;
	--c-warm-dark: #2a2927;
	--c-grey-700: #505050;
	--c-grey-500: #9a9a9a;
	--c-grey-400: #c4c4c4;
	--c-grey-300: #d7d7d7;
	--c-grey-250: #e6e6e6;
	--c-grey-200: #e9e9e9;
	--c-grey-150: #ececec;
	/* Ошибка в форме: незаполненное обязательное поле */
	--c-error: #ff5a5a;
	/* Живые обложки статей (тёмные плашки сцен) */
	--c-cover-soft: #292929;
	--c-cover-line: #333333;
	--c-cover-line-2: #3a3a3a;

	/* Линии и полупрозрачные слои */
	--line-on-dark: rgba(246, 246, 246, .25);
	--line-on-dark-soft: rgba(246, 246, 246, .15);
	--line-on-dark-strong: rgba(246, 246, 246, .6);
	--line-on-light: rgba(13, 13, 13, .2);
	--veil-dark: rgba(13, 13, 13, .6);
	--veil-light: rgba(246, 246, 246, .92);
	--veil-paper: rgba(255, 255, 255, .55);
	--scrollbar-thumb: rgba(80, 80, 80, .45);
	--scrollbar-thumb-hover: rgba(80, 80, 80, .7);
	--glow: rgba(246, 246, 246, .10);
	--glow-none: rgba(246, 246, 246, 0);
	--glow-card: rgba(246, 246, 246, .14);
	--shade-from: rgba(13, 13, 13, 0);
	--shade-to: rgba(13, 13, 13, .75);
	--shade-strong: rgba(13, 13, 13, .92);

	/* Тени */
	--shadow-card: 0 16px 48px rgba(13, 13, 13, .12);
	--shadow-lift: 0 30px 80px rgba(13, 13, 13, .25);
	--shadow-stack: 0 -12px 40px rgba(13, 13, 13, .18);
	--shadow-stack-hover: 0 -12px 60px rgba(13, 13, 13, .3);
	--shadow-shot: 0 24px 60px rgba(13, 13, 13, .35);

	/* Шрифт и размеры */
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fs-h1: clamp(30px, 5.3vw, 76px);
	--fs-h2: clamp(40px, 5vw, 72px);
	--fs-h2-long: var(--fs-h2); /* длинные заголовки секций (цены) — на телефоне меньше */
	--fs-h2-xl: clamp(44px, 6.1vw, 88px);
	--fs-lead: clamp(22px, 2.3vw, 32px);
	--fs-h3-xl: clamp(30px, 3.1vw, 44px);
	--fs-h3-lg: clamp(26px, 2.4vw, 34px);
	--fs-h3: clamp(22px, 2vw, 28px);
	--fs-h3-sm: clamp(20px, 1.8vw, 26px);
	--fs-stat: clamp(52px, 5vw, 72px);
	--fs-price: clamp(32px, 2.8vw, 40px);
	--fs-body-lg: clamp(16px, 1.35vw, 19px);
	--fs-body-md: 18px;
	--fs-article: var(--fs-body-md); /* текст статей блога */
	--lh-article: 1.65;
	--fs-body: 16px;
	--fs-sm: 15px;
	--fs-xs: 14px;
	--fs-xxs: 13px;

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
	--fw-black: 900;

	--lh-tight: 1;
	--lh-head: 1.05;
	--lh-title: 1.25;
	--lh-text: 1.5;
	--lh-lead: 1.3; /* подзаголовки под H1 и в блоках форм */
	--lh-body: 1.55;

	--ls-display: -0.035em;
	--ls-head: -0.025em;
	--ls-title: -0.015em;
	--ls-caps: 0.1em;
	--ls-logo: -0.06em;
	--fs-logo: 34px;
	--fs-logo-xl: clamp(64px, 11vw, 160px);
	/* Подвал */
	--fs-logo-footer: clamp(44px, 4.5vw, 64px);
	--fs-footer-phone: clamp(30px, 3.6vw, 52px);
	--fs-footer-channel: clamp(17px, 1.3vw, 20px);
	--footer-pad-top: clamp(72px, 8vw, 112px);
	--t-preloader: 1.1s;
	--font-logo: 'Golos Text', var(--font);
	/* Две параллельные косые трещины в логотипе (через «e» и «c») */
	--logo-cracks: linear-gradient(101deg, #000 0 26.2%, transparent 26.2% 27.8%, #000 27.8% 76.4%, transparent 76.4% 78%, #000 78%);
	--fs-nav: 19px;

	/* Сетка и отступы */
	--container: 1300px;
	--gutter: 20px;
	--section-top: clamp(72px, 8vw, 112px);
	--section-bottom: clamp(88px, 9vw, 128px);
	--gap-xxl: clamp(48px, 5vw, 72px);
	--gap-xl: clamp(40px, 4vw, 56px);
	--gap-lg: 32px;
	--gap-md: 24px;
	--gap-sm: 16px;
	--gap-xs: 8px;

	/* Скругления */
	--r-sheet: clamp(28px, 3.4vw, 48px);
	--r-xl: 32px;
	--r-lg: 24px;
	--r-md: 16px;

	/* Поля форм: отступы внутри и место плавающей подписи */
	--field-pad-top: 24px;
	--field-pad-bottom: 6px;
	--field-pad-x: 16px;
	--field-label-top: 16px;
	--field-country-w: 80px;
	--fs-field: var(--fs-body);
	--field-label-float: translateY(-10px) scale(.75);
	--fs-chip: var(--fs-sm);
	--chip-pad-y: 12px;
	--chip-pad-x: 20px;
	--chip-lh: inherit;
	--r-sm: 12px;
	--r-pill: 100px;

	/* Движение */
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-slow: cubic-bezier(.16, 1, .3, 1);
	--t-split: 1.6s;
	--t-fade: 1.8s;
	--split-step: 140ms;
	--t-word: 1.3s;
	--word-step: 60ms;
	--t-card: .8s;
	--t-marker: .7s;
	--t-card-fill: .9s;
	--t-card-shape: 1.2s;
	--t-accordion: 1.2s;
	--t-fill: .55s;
	--t-fill-shape: .9s;
	--t-roll: .8s;
	--t-squish: .6s;
	--ease-fill: cubic-bezier(.4, 0, 0, 1);
	--ease-squish: cubic-bezier(.34, 5, .64, 1);
	--t-fast: .3s;
	--t-mid: .5s;
	--t-slow: .9s;

	--header-h: 100px;
	--cursor-size: 14px;
	--cursor-arrow: 40px;
}

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

/* Атрибут hidden всегда прячет элемент: display в стилях компонентов не должен его перебивать
   (иначе невидимый, но живой элемент перехватывает касания — так ломалась прокрутка на телефоне) */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	interpolate-size: allow-keywords;
	/* Полоса прокрутки: тонкая, без фона, полупрозрачный серый ползунок */
	scrollbar-width: thin;
	scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--scrollbar-thumb) padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: var(--scrollbar-thumb-hover);
}

/*
 * Для мыши стандартную полосу прячем и рисуем свою (main.js): ползунок поверх страницы
 * в режиме «разница» — на светлых секциях чёрный, на тёмных белый. Класс ставится в <head>.
 */
.custom-scrollbar {
	scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
	display: none;
}

.scrollbar {
	position: fixed;
	z-index: 999;
	top: 0;
	right: 0;
	bottom: 0;
	width: 14px;
	mix-blend-mode: difference;
}

.scrollbar__thumb {
	position: absolute;
	top: 0;
	right: 4px;
	width: 4px;
	min-height: 40px;
	border-radius: 4px;
	background: var(--c-paper);
	opacity: .8;
	cursor: grab;
	transition: width var(--t-fast) var(--ease), opacity var(--t-fast);
}

.scrollbar:hover .scrollbar__thumb,
.scrollbar.is-dragging .scrollbar__thumb {
	width: 6px;
	opacity: 1;
}

.scrollbar.is-dragging .scrollbar__thumb {
	cursor: grabbing;
}

.preloader-on .scrollbar {
	opacity: 0;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--c-black);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

img {
	height: auto;
}

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

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

button {
	cursor: pointer;
}

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

ul,
ol {
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* --- Служебное --- */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--r-pill);
	background: var(--c-black);
	color: var(--c-white);
}

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

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* --- Секции и «листы» --- */
.section {
	position: relative;
	padding: var(--section-top) 0 var(--section-bottom);
}

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

.section--dark {
	background: var(--c-black);
	color: var(--c-white);
}

/* Лист заходит на предыдущую секцию скруглёнными углами */
.sheet {
	margin-top: calc(-1 * var(--r-sheet));
	border-radius: var(--r-sheet) var(--r-sheet) 0 0;
	transform-origin: 50% 0;
}

/* --- Типографика --- */
.eyebrow {
	font-size: var(--fs-xxs);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	letter-spacing: var(--ls-caps);
	color: var(--c-grey-700);
}

.section--dark .eyebrow {
	color: var(--c-grey-500);
}

.h2 {
	font-size: var(--fs-h2);
	line-height: var(--lh-tight);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-display);
}

.text-muted {
	color: var(--c-grey-700);
}

.section--dark .text-muted {
	color: var(--c-grey-500);
}

/* Шапка секции: крупный заголовок слева, действие справа */
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--gap-lg);
	flex-wrap: wrap;
}

.section-head__text {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
}

.section-head__sub {
	font-size: var(--fs-body-md);
	line-height: var(--lh-text);
	max-width: 560px;
}

/* Вступление: подпись слева, крупный текст справа */
.section-intro {
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
}

.section-intro__label {
	flex: 0 0 280px;
}

.section-intro__text {
	flex: 1 1 560px;
	font-size: var(--fs-lead);
	line-height: 1.3;
	letter-spacing: var(--ls-title);
}

/* --- Кнопки --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 30px;
	border: 0;
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	line-height: 1.2;
	white-space: nowrap;
}

/*
 * Ховер кнопок, три слоя:
 * 1) заливка с куполом выезжает снизу, купол выпрямляется медленнее движения;
 * 2) текст уезжает вверх, снизу выкатывается копия нового цвета (разметку собирает main.js);
 * 3) кнопка мягко «булькает» по ширине за счёт кривой с перелётом.
 */
.btn,
.fill-hover {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transform: translateZ(0);
	transition: transform var(--t-fast) var(--ease), border-color var(--t-fill) var(--ease-fill);
}

.btn:hover,
.fill-hover:hover {
	transform: scaleX(1.03);
	border-color: var(--fill);
	transition: transform var(--t-squish) var(--ease-squish), border-color var(--t-fill) var(--ease-fill);
}

/* Ровная тонкая обводка поверх заливки — одинаковой толщины по всему контуру */
.btn::after {
	content: '';
	position: absolute;
	z-index: 1;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--ring, transparent);
	pointer-events: none;
}

.btn::before,
.fill-hover::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 50% 50% 0 0;
	background: var(--fill);
	transform: translateY(101%);
	transition: transform var(--t-fill) var(--ease-fill), border-radius var(--t-fill) var(--ease-fill);
	pointer-events: none;
}

.btn:hover::before,
.btn:focus-visible::before,
.fill-hover:hover::before,
.fill-hover:focus-visible::before {
	transform: none;
	border-radius: 0;
	transition-duration: var(--t-fill), var(--t-fill-shape);
}

/* Перекатывание текста */
.roll {
	position: relative;
	display: block;
	overflow: hidden;
}

.roll__inner {
	position: relative;
	display: block;
	transition: transform var(--t-roll) var(--ease-slow);
}

.roll__clone {
	position: absolute;
	top: 110%;
	left: 0;
	right: 0;
	color: var(--fill-text);
}

.btn:hover .roll__inner,
.btn:focus-visible .roll__inner,
.fill-hover:hover .roll__inner,
.fill-hover:focus-visible .roll__inner,
.link-roll:hover .roll__inner,
.link-roll:focus-visible .roll__inner {
	transform: translateY(-110%);
}

/* У ссылок копия того же цвета, что и текст */
.link-roll:not(.btn) {
	display: inline-block;
}

.link-roll:not(.btn) .roll__clone {
	color: inherit;
}

/* Иконки и запасной вариант без JS просто меняют цвет */
.btn .icon,
.fill-hover .icon {
	transition: color var(--t-fast);
}

.btn:hover .icon,
.fill-hover:hover .icon,
.no-js .btn:hover,
.no-js .fill-hover:hover {
	color: var(--fill-text);
}

.btn--lg {
	padding: 21px 38px;
	font-size: var(--fs-body);
}

/* Залитые кнопки заливаются цветом своего текста */
.btn--dark {
	background: var(--c-black);
	color: var(--c-white);
	--fill: var(--c-paper);
	--fill-text: var(--c-black);
	--ring: var(--c-black);
}

.btn--light {
	background: var(--c-white);
	color: var(--c-black);
	--fill: var(--c-black);
	--fill-text: var(--c-white);
	--ring: var(--c-white);
}

/* Контур — внутренней тенью: заливка его полностью перекрывает */
.btn--outline {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px currentColor;
	--fill: var(--c-black);
	--fill-text: var(--c-white);
}

.section--dark .btn--outline,
.site-footer .fill-hover {
	--fill: var(--c-white);
	--fill-text: var(--c-black);
}

/* Карточка с заливкой снизу, как у кнопок, только крупнее и медленнее */
.card-fill {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.card-fill::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: 50% 50% 0 0 / 30% 30% 0 0;
	background: var(--card-fill);
	transform: translateY(101%);
	transition: transform var(--t-card-fill) var(--ease-fill), border-radius var(--t-card-fill) var(--ease-fill);
	pointer-events: none;
}

.card-fill:hover::before {
	transform: none;
	border-radius: 0;
	transition-duration: var(--t-card-fill), var(--t-card-shape);
}

/* Круглая кнопка-стрелка */
.round {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	transition: transform var(--t-mid) var(--ease), background var(--t-mid), color var(--t-mid);
}

/* Таблетка-метка */
.pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line-on-light);
	border-radius: var(--r-pill);
	padding: 8px 16px;
	font-size: var(--fs-xs);
	font-weight: var(--fw-medium);
	white-space: nowrap;
}

.section--dark .pill {
	border-color: var(--line-on-dark);
}

/*
 * --- Появление при прокрутке (только если работает JS) ---
 * Через animation, а не transition: так появление не перебивает плавные ховеры самих карточек.
 */
.js [data-reveal]:not(.is-in) {
	opacity: 0;
}

.js [data-reveal].is-in {
	animation: reveal-in 1.1s var(--ease) backwards;
	animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes reveal-in {
	from {
		opacity: 0;
		transform: translateY(48px);
	}
}

/* Текст выезжает построчно из-под маски (как у Cuberto) */
.js [data-split]:not(.is-split) {
	opacity: 0;
}

.split-line {
	display: block;
	overflow: hidden;
	padding-bottom: .14em;
	margin-bottom: -.14em;
}

.split-line__inner {
	display: inline-block;
	transform: translateY(110%) rotate(3deg);
	transform-origin: 0 0;
	transition: transform var(--t-split) var(--ease-slow);
	transition-delay: calc(var(--delay, 0ms) + var(--line) * var(--split-step));
}

.is-in .split-line__inner {
	transform: none;
}

/* Заголовки по словам: у каждого слова своя маска */
.split-word {
	display: inline-block;
	overflow: clip;
	vertical-align: top;
	margin: -.12em;
	padding: .12em;
}

.split-word__inner {
	display: inline-block;
	transform: translateY(115%);
	transition: transform var(--t-word) var(--ease-slow);
	transition-delay: calc(var(--delay, 0ms) + var(--i) * var(--word-step));
}

.is-in .split-word__inner {
	transform: none;
}

/* Медленное проявление блока целиком */
.js [data-fade] {
	opacity: 0;
	transform: translateY(60px);
	transition: opacity var(--t-fade) var(--ease-slow), transform var(--t-fade) var(--ease-slow);
	transition-delay: var(--delay, 0ms);
}

.js [data-fade].is-in {
	opacity: 1;
	transform: none;
}

/* Листы слегка «расширяются», въезжая в экран */
@supports (animation-timeline: view()) {
	.sheet {
		animation: sheet-in linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 45%;
	}

	@keyframes sheet-in {
		from {
			transform: scale(.94);
		}

		to {
			transform: none;
		}
	}
}

/* --- Курсор-шарик (cursor.js) --- */
/*
 * Режим «разница» стоит на самом .cursor: он двигается через transform и образует свой слой,
 * поэтому смешиваться со страницей должен именно он, а не шарик внутри.
 * Белый в «разнице» = инверсия: на белом фоне шарик чёрный, на чёрном — белый, буквы под ним видны.
 */
.cursor {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	pointer-events: none;
	mix-blend-mode: difference;
	visibility: hidden;
}

.cursor.is-visible {
	visibility: visible;
}

.cursor__ball {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--cursor-size);
	height: var(--cursor-size);
	margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
	border-radius: 50%;
	background: var(--c-paper);
	transform: scale(1);
	transition: transform var(--t-mid) var(--ease-slow), background var(--t-fast);
}

.cursor.is-link .cursor__ball {
	transform: scale(3);
}

/*
 * Над карточками: большой круг со стрелкой. Инверсия остаётся —
 * круг переворачивает цвета под собой, а чёрная стрелка в «разнице» показывает фон как есть.
 */
.cursor.is-arrow .cursor__ball,
.cursor.is-grow .cursor__ball {
	transform: scale(7);
}

.cursor__arrow {
	position: absolute;
	left: 0;
	top: 0;
	width: var(--cursor-arrow);
	height: var(--cursor-arrow);
	margin: calc(var(--cursor-arrow) / -2) 0 0 calc(var(--cursor-arrow) / -2);
	color: var(--c-black);
	opacity: 0;
	transform: scale(.3) rotate(-45deg);
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow);
}

.cursor__arrow svg {
	width: 100%;
	height: 100%;
}

.cursor.is-arrow .cursor__arrow {
	opacity: 1;
	transform: none;
}

/* --- Кнопка «наверх»: выезжает снизу, когда листаешь вверх (main.js). Инвертирует цвет, как курсор --- */
.to-top {
	position: fixed;
	z-index: 998;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-paper);
	color: var(--c-black);
	mix-blend-mode: difference;
	transform: translateY(calc(100% + 40px)) scale(.8);
	transition: transform .7s var(--ease-slow);
}

.to-top.is-visible {
	transform: none;
}

.to-top.is-visible:hover {
	transform: scale(1.08);
}

.to-top svg {
	transition: transform var(--t-mid) var(--ease-slow);
}

.to-top:hover svg {
	transform: translateY(-3px);
}

/* --- Lenis --- */
html.lenis,
html.lenis body {
	height: auto;
}

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

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

/* --- Меньше движения по просьбе системы --- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}

	.js [data-reveal],
	.js [data-fade],
	.split-line__inner,
	.split-word__inner {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 768px) {
	:root {
		--gutter: 16px;
		--fs-h2-xl: 34px;
		/* Текст статей блога на телефоне (решение владельца 2026-11-14) */
		--fs-article: 13px;
		--lh-article: 1.5;
		--fs-h2-long: 30px; /* «Цены на разработку сайтов в Ташкенте» — 2–3 строки, а не 4 */ /* «Есть проект? / Давайте обсудим» — две строки на телефоне */

		/* Кнопки-варианты в формах (радиокнопки «до 10 млн», «Telegram») компактнее */
		--fs-chip: 13px;
		--chip-pad-y: 10px;
		--chip-pad-x: 13px;
		--chip-lh: 1.2;

		--header-h: 72px;
		--fs-logo: 28px;
	}

	.section-intro {
		gap: var(--gap-sm);
	}

	.section-intro__label {
		flex-basis: 100%;
	}

	.section-intro__text {
		flex-basis: 100%;
	}

	.btn--lg {
		padding: 18px 28px;
	}
}

/* --- SVG-истории (страница «Спасибо», 404, фон первого экрана): общие цвета и текст, анимации — у каждой сцены свои --- */
.ts-card {
	fill: var(--c-paper);
	stroke: var(--c-grey-200);
}

.ts-dark {
	fill: var(--c-black);
}

.ts-screen {
	fill: var(--c-dark);
}

.ts-base {
	fill: var(--c-grey-400);
}

.ts-input,
.ts-soft {
	fill: var(--c-grey-150);
}

.ts-type,
.ts-slot {
	fill: var(--c-grey-500);
}

.ts-light,
.ts-bell,
.ts-dot {
	fill: var(--c-white);
}

.ts-handset,
.ts-user {
	fill: none;
	stroke: var(--c-black);
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.ts-handset {
	fill: var(--c-black);
	stroke: none;
}

.ts-flap {
	fill: none;
	stroke: var(--c-white);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ts-wire {
	fill: none;
	stroke: var(--c-grey-300);
	stroke-width: 2;
	stroke-dasharray: 5 6;
}

.ts-bar {
	fill: var(--c-black);
}

.ts-cursor {
	fill: var(--c-white);
	stroke: var(--c-black);
	stroke-width: 1.4;
	stroke-linejoin: round;
}

.ts-ring {
	fill: none;
	stroke: var(--c-black);
	stroke-width: 2;
}

/* Текст внутри картинки */
.ts-t {
	font-family: inherit;
	font-size: 11px;
	fill: var(--c-black);
}

.ts-t--strong {
	font-size: 13px;
	font-weight: var(--fw-semibold);
}

.ts-t--mid {
	font-size: 12px;
	font-weight: var(--fw-medium);
}

.ts-t--num {
	font-size: 11px;
	font-weight: var(--fw-medium);
}

.ts-t--small {
	font-size: 9.5px;
}

.ts-t--muted {
	fill: var(--c-grey-700);
}

.ts-t--light {
	fill: var(--c-white);
}

/* ===== Карточки вбок на телефоне (атрибут data-rail у контейнера; счётчик и стрелки добавляет main.js) ===== */
.rail-nav {
	display: none;
}

@media (max-width: 768px) {
	[data-rail] {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: stretch;
		gap: 10px !important;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	[data-rail]::-webkit-scrollbar {
		display: none;
	}

	[data-rail] > * {
		flex: 0 0 min(84%, 420px);
		min-width: 0;
		margin: 0 !important;
		scroll-snap-align: start;
	}

	[data-rail] > [hidden] {
		display: none !important;
	}

	.rail-nav {
		display: flex;
		align-items: center;
		gap: 10px;
		margin-top: 14px;
	}

	.rail-nav__count {
		font-size: var(--fs-xs);
		font-weight: var(--fw-semibold);
		color: var(--c-grey-500);
		font-variant-numeric: tabular-nums;
	}

	.rail-nav__count b {
		color: currentColor;
	}

	.section--dark .rail-nav__count b {
		color: var(--c-white);
	}

	.section--light .rail-nav__count b {
		color: var(--c-black);
	}

	.rail-nav__hint {
		margin-right: auto;
		font-size: var(--fs-xxs);
		color: var(--c-grey-500);
	}

	.rail-nav__btn {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--c-grey-300);
		border-radius: 50%;
		background: none;
		color: inherit;
		cursor: pointer;
		transition: opacity var(--t-fast), transform var(--t-squish) var(--ease-squish);
	}

	.section--dark .rail-nav__btn {
		border-color: var(--line-on-dark-soft);
		color: var(--c-white);
	}

	.rail-nav__btn:active {
		transform: scale(.9);
	}

	.rail-nav__btn:disabled {
		opacity: .3;
	}

	.rail-nav__btn svg {
		width: 18px;
		height: 18px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}
}

/* ===== Телефон: секции-ленты и удобство нажатий (аудит мобильной версии 2026-11-16) ===== */
@media (max-width: 768px) {
	/* Проекты: в ленте все сразу, без «Смотреть ещё» и без смещения колонок */
	.portfolio__grid[data-rail].is-collapsed .project.is-extra {
		display: flex;
	}

	.portfolio__grid[data-rail] ~ .portfolio__more,
	.portfolio__grid[data-rail] + .rail-nav + .portfolio__more {
		display: none !important;
	}

	.portfolio__grid[data-rail] .project {
		translate: none !important;
	}

	/* Фильтры — одна строка с прокруткой, а не стопка чипов */
	.portfolio__filter {
		flex-wrap: nowrap !important;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.portfolio__filter::-webkit-scrollbar {
		display: none;
	}

	.portfolio__filter .chip {
		flex: none;
	}

	/* Цели нажатия не меньше 44 px */
	.service-card__more,
	.b-tags__item,
	.a-chip,
	.talk-form__kind,
	.calc-opt__btn {
		min-height: 44px;
	}

	.calc-opt__btn {
		min-width: 44px;
	}

	.rate__star {
		min-width: 44px;
		min-height: 44px;
	}

	.a-anatomy__part {
		min-height: 44px;
	}

	/* Мелкий текст — не меньше 12 px */
	.talk-form__note,
	.talk__time,
	.a-anatomy__part small {
		font-size: 12px;
	}
}

/* Ловушка для ботов — посетителю не видна */
.wr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* assets/css/header.css */
/* Шапка: прозрачная наверху, при прокрутке получает фон и прячется при движении вниз */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: transform var(--t-mid) var(--ease), background var(--t-fast), backdrop-filter var(--t-fast);
}

.site-header.is-scrolled {
	background: var(--veil-light);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-md);
	height: var(--header-h);
}

/* Логотип: Golos Text Black, две косые трещины — маска с прозрачными полосами */
.logo {
	position: relative;
	display: inline-flex;
	font-family: var(--font-logo);
	font-size: var(--fs-logo);
	font-weight: var(--fw-black);
	line-height: 1;
	letter-spacing: var(--ls-logo);
	white-space: nowrap;
}

.logo__text {
	display: inline-block;
	padding: .08em .04em .08em 0;
	-webkit-mask-image: var(--logo-cracks);
	mask-image: var(--logo-cracks);
}

.logo__web,
.logo__rock {
	display: inline-block;
}

/*
 * Прелоадер: тёмный экран с крупным логотипом, который «набирается» (main.js),
 * затем экран уезжает вверх. Показывается при первом заходе за сессию (класс preloader-on ставится в <head>).
 */
.preloader {
	display: none;
}

.preloader-on .preloader {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--c-black);
	color: var(--c-white);
	transition: background-color var(--t-preloader) var(--ease-slow);
}

/* Логотип в шапке скрыт, пока на его место не приедет логотип из прелоадера */
.preloader-on .site-header .logo {
	opacity: 0;
}

/* Уход: фон растворяется, логотип уменьшается и едет в шапку (координаты считает main.js) */
.preloader.is-leaving {
	background-color: transparent;
	color: var(--c-black);
	pointer-events: none;
}

.logo--preloader {
	font-size: var(--fs-logo-xl);
	transform-origin: 0 0;
	transition: transform var(--t-preloader) var(--ease-slow), color var(--t-preloader) var(--ease-slow);
}

/* Курсор набора */
.logo__caret {
	position: absolute;
	left: 0;
	top: .1em;
	bottom: .06em;
	width: .07em;
	background: currentColor;
	opacity: 0;
	pointer-events: none;
}

/* До набора «web» скрыт, буквы «rock» спрятаны */
.logo--preloader .logo__web {
	clip-path: inset(0 100% 0 0);
}

.logo--preloader .logo__rock span {
	opacity: 0;
}

.logo--preloader.is-blinking .logo__caret {
	animation: caret-blink .9s steps(1) infinite;
}

@keyframes caret-blink {
	0%,
	50% {
		opacity: 1;
	}

	50.01%,
	100% {
		opacity: 0;
	}
}

/* Меню прижато к правому краю и растянуто на свободное место */
.site-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(28px, 3.2vw, 52px);
	font-size: var(--fs-nav);
	font-weight: var(--fw-medium);
}

/* Пункт по высоте ссылки: без лишней строки снизу все пункты на одной линии с «Услугами» и кнопкой */
.site-nav__list > li {
	display: flex;
}

/*
 * «Услуги» с выпадающим списком всех услуг (helpers.php: walker_nav_menu_start_el).
 * Открывается при наведении и при фокусе с клавиатуры.
 */
.has-dropdown {
	position: relative;
}

.site-nav__list .has-dropdown > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.has-dropdown__chevron {
	transition: transform var(--t-mid) var(--ease-slow);
}

.site-nav .has-dropdown:hover .has-dropdown__chevron,
.site-nav .has-dropdown:focus-within .has-dropdown__chevron {
	transform: rotate(180deg);
}

.site-nav .sub-menu {
	position: absolute;
	z-index: 5;
	top: 100%;
	left: -22px;
	min-width: 400px;
	margin-top: 18px;
	padding: 10px;
	border-radius: var(--r-lg);
	background: var(--c-paper);
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow), visibility 0s var(--t-mid);
}

/* Невидимый мостик между пунктом и списком — список не закрывается, пока ведём к нему мышь */
.site-nav .sub-menu::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 20px;
}

.site-nav .has-dropdown:hover > .sub-menu,
.site-nav .has-dropdown:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow);
}

.site-nav__list .sub-menu a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--gap-md);
	padding: 14px 16px;
	border-radius: calc(var(--r-lg) - 10px);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	white-space: nowrap;
	transition: background var(--t-fast);
}

.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu a:focus-visible,
.site-nav__list .sub-menu a[aria-current="page"] {
	outline: none;
	background: var(--c-grey-200);
}

.sub-menu__meta {
	font-size: var(--fs-xxs);
	font-weight: var(--fw-regular);
	color: var(--c-grey-700);
}

/* «Контакты» — выделенная кнопка в конце меню */
.site-nav__list .menu-cta .btn {
	padding: 14px 26px;
	font-size: var(--fs-nav);
	font-weight: var(--fw-semibold);
}

.site-header__actions {
	display: flex;
	align-items: center;
}

/* Бургер — только на узких экранах */
.burger {
	display: none;
	position: relative;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--c-black);
}

.burger__line {
	position: absolute;
	left: 15px;
	right: 15px;
	top: 50%;
	margin-top: -1px; /* половина толщины линии — центр круга */
	height: 2px;
	border-radius: 2px;
	background: var(--c-white);
	transition: transform var(--t-mid) var(--ease);
}

.burger__line:first-child {
	transform: translateY(-4px);
}

.burger__line:nth-child(2) {
	transform: translateY(4px);
}

.menu-open .burger__line:first-child {
	transform: rotate(45deg);
}

.menu-open .burger__line:nth-child(2) {
	transform: rotate(-45deg);
}

/* Мобильное меню на весь экран */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	padding-top: calc(var(--header-h) + 24px);
	background: var(--c-black);
	color: var(--c-white);
	clip-path: circle(0 at calc(100% - 44px) 34px);
	transition: clip-path .7s var(--ease);
}

.mobile-menu.is-open {
	clip-path: circle(150% at calc(100% - 44px) 34px);
}

.mobile-menu__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--gap-xl);
	height: 100%;
	padding-bottom: 40px;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: clamp(34px, 9vw, 52px);
	font-weight: var(--fw-medium);
	line-height: 1.15;
	letter-spacing: var(--ls-head);
}

/* В мобильном меню услуги — мелким списком под «Услугами», без цен и стрелки */
.mobile-menu {
	overflow-y: auto;
}

.mobile-menu__list .has-dropdown__chevron,
.mobile-menu__list .sub-menu__meta {
	display: none;
}

.mobile-menu__list .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 10px 0 14px;
	padding-left: 4px;
	font-size: var(--fs-body-md);
	letter-spacing: 0;
	line-height: 1.3;
	color: var(--c-grey-300);
}

/* В мобильном меню «Контакты» — светлая кнопка */
.mobile-menu__list .menu-cta {
	margin-top: 16px;
}

.mobile-menu__list .menu-cta .btn {
	background: var(--c-white);
	color: var(--c-black);
	font-size: var(--fs-body-md);
	letter-spacing: 0;
	--fill: var(--c-grey-300);
	--fill-text: var(--c-black);
	--ring: var(--c-white);
}

.mobile-menu__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: var(--fs-body-md);
	color: var(--c-grey-500);
}

.menu-open .site-header {
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: var(--c-white);
}

.menu-open .burger {
	background: var(--c-white);
}

.menu-open .burger__line {
	background: var(--c-black);
}

@media (max-width: 1000px) {
	.site-nav {
		display: none;
	}

	.burger {
		display: block;
	}
}

/* --- Переключатель языка: RU · UZ · EN (inc/lang-switch.php) --- */
.lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: var(--r-pill);
	background: var(--c-grey-150);
}

.lang__item {
	padding: 6px 10px;
	border-radius: var(--r-pill);
	font-size: var(--fs-xxs);
	font-weight: var(--fw-semibold);
	letter-spacing: .04em;
	color: var(--c-grey-700);
	transition: background var(--t-fast), color var(--t-fast), transform var(--t-squish) var(--ease-squish);
}

.lang__item:hover {
	color: var(--c-black);
	transform: scale(1.08);
}

.lang__item.is-current {
	background: var(--c-black);
	color: var(--c-white);
}

.lang--header {
	margin-right: 12px;
}

/* На телефоне — в шапке рядом с бургером, компактнее */
@media (max-width: 1000px) {
	.lang--header {
		margin-right: 8px;
	}

	/* Цвет меняется вместе с фоном меню: тот же темп, что у раскрытия круга (.mobile-menu) */
	.lang--header {
		transition: background .7s var(--ease);
	}

	.lang--header .lang__item {
		padding: 6px 8px;
		transition: background .7s var(--ease), color .7s var(--ease), transform var(--t-squish) var(--ease-squish);
	}

	/* Открыто меню (чёрный фон) — переключатель тёмный */
	.menu-open .lang--header {
		background: var(--c-dark-soft);
	}

	.menu-open .lang--header .lang__item {
		color: var(--c-grey-400);
	}

	.menu-open .lang--header .lang__item.is-current {
		background: var(--c-white);
		color: var(--c-black);
	}
}

/* Услуги по разделам: две колонки «Сайты» / «Продвижение и поддержка» */
.site-nav .sub-menu--groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, auto));
	gap: 4px;
	min-width: 0;
	width: max-content;
}

.sub-menu__group > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sub-menu__label {
	display: block;
	padding: 10px 16px 6px;
	font-size: var(--fs-xxs);
	font-weight: var(--fw-semibold);
	color: var(--c-grey-500);
}

.mobile-menu__list .sub-menu--groups,
.mobile-menu__list .sub-menu__group > ul {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobile-menu__list .sub-menu--groups {
	gap: 14px;
}

.mobile-menu__list .sub-menu__label {
	padding: 0 0 2px;
	letter-spacing: 0;
}

/*
 * Телефон и планшет: шапка — капсула (решение владельца 2026-11-17).
 * Чёрная «таблетка» парит с отступом от краёв, при прокрутке чуть сжимается;
 * при движении вниз уезжает, вверх — возвращается (main.js). Меню раскрывается кругом из кнопки капсулы.
 */
@media (max-width: 1000px) {
	.site-header {
		padding: 10px 10px 0;
	}

	.site-header.is-scrolled {
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-header.is-hidden {
		transform: translateY(calc(-100% - 12px));
	}

	.site-header__inner {
		max-width: none;
		height: 58px;
		margin: 0;
		padding: 0 7px 0 20px;
		border-radius: var(--r-pill);
		background: var(--c-black);
		color: var(--c-white);
		box-shadow: 0 12px 32px color-mix(in srgb, var(--c-black) 22%, transparent);
		transition: height .5s var(--ease-slow), margin .5s var(--ease-slow), background .7s var(--ease), box-shadow .7s var(--ease);
	}

	.site-header.is-scrolled .site-header__inner {
		height: 52px;
		margin: 0 12px;
	}

	.site-header .logo {
		font-size: 24px;
	}

	.burger {
		width: 44px;
		height: 44px;
		background: var(--c-white);
	}

	.burger__line {
		left: 13px;
		right: 13px;
		background: var(--c-black);
	}

	/* Переключатель языка на чёрной капсуле — тёмный */
	.lang--header {
		background: var(--c-dark-soft);
	}

	.lang--header .lang__item {
		color: var(--c-grey-400);
	}

	.lang--header .lang__item.is-current {
		background: var(--c-white);
		color: var(--c-black);
	}

	/* Открыто меню: капсула остаётся, отделяется от чёрного фона тонкой обводкой */
	.menu-open .site-header__inner {
		background: var(--c-dark-soft);
		box-shadow: inset 0 0 0 1px var(--c-dark-hover);
	}

	.menu-open .lang--header {
		background: var(--c-black);
	}

	/* Круг меню раскрывается из кнопки капсулы */
	.mobile-menu {
		clip-path: circle(0 at calc(100% - 39px) 39px);
	}

	.mobile-menu.is-open {
		clip-path: circle(150% at calc(100% - 39px) 39px);
	}

	/* Логотип из прелоадера приезжает в капсулу белым */
	.preloader.is-leaving {
		color: var(--c-white);
	}
}

/* Низ мобильного меню: «Контакты» и иконки телефона и Telegram в один ряд */
.mobile-menu__list .menu-cta {
	display: none;
}

.mobile-menu__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mobile-menu__cta {
	flex: 1;
	background: var(--c-white);
	color: var(--c-black);
	--fill: var(--c-grey-300);
	--fill-text: var(--c-black);
	--ring: var(--c-white);
}

.mobile-menu__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--c-dark-soft);
	color: var(--c-white);
	transition: background var(--t-fast), transform var(--t-squish) var(--ease-squish);
}

.mobile-menu__icon:hover,
.mobile-menu__icon:focus-visible {
	background: var(--c-dark-hover);
}

.mobile-menu__icon:active {
	transform: scale(.92);
}

/* На компьютере «ИИ-агенты» — под «Сайтами» (левая колонка), «Продвижение и поддержка» — справа во всю высоту */
.site-nav .sub-menu__group--sites,
.site-nav .sub-menu__group--ai {
	grid-column: 1;
}

.site-nav .sub-menu__group--growth {
	grid-column: 2;
	grid-row: 1 / span 2;
}

/*
 * Мобильное меню в несколько уровней (main.js): «Услуги» → панель разделов → панель услуг раздела.
 * Панели выезжают справа на весь экран, предыдущий уровень отъезжает влево и гаснет.
 * Размеры — от ширины экрана (clamp), чтобы на всех телефонах 320–430 px выглядело одинаково.
 */
.mobile-menu__list > .has-dropdown > .sub-menu {
	display: none;
}

.mobile-menu__list > .has-dropdown > a {
	display: inline-flex;
	align-items: center;
	gap: .3em;
}

.mobile-menu__list > .has-dropdown .has-dropdown__chevron {
	display: block;
	width: .34em;
	height: auto;
	transform: rotate(-90deg);
	opacity: .6;
}

.mobile-menu__inner {
	transition: transform .55s var(--ease-slow), opacity .4s var(--ease);
}

.mobile-menu.is-deep {
	overflow: hidden;
}

.mobile-menu.is-deep .mobile-menu__inner {
	transform: translateX(-30%);
	opacity: 0;
}

.mm-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-black);
	color: var(--c-white);
	transform: translateX(100%);
	transition: transform .55s var(--ease-slow), opacity .4s var(--ease);
}

.mm-panel.is-open {
	transform: none;
}

.mm-panel.is-open.is-behind {
	transform: translateX(-30%);
	opacity: 0;
}

.mm-panel__back {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-left: -8px;
	padding: 0 14px 0 6px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--c-dark-soft);
	color: var(--c-grey-400);
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
}

.mm-panel__back svg,
.mm-panel__link svg,
.mm-panel__all svg {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mm-panel__title {
	margin: clamp(16px, 4vh, 28px) 0 clamp(8px, 2vh, 16px);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-grey-500);
}

.mm-panel__list {
	display: flex;
	flex-direction: column;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.mm-panel__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	padding: clamp(10px, 1.8vh, 16px) 0;
	border: 0;
	border-bottom: 1px solid var(--c-dark-soft);
	background: none;
	color: inherit;
	font: inherit;
	font-size: clamp(20px, 5.6vw, 26px);
	font-weight: var(--fw-medium);
	line-height: 1.2;
	letter-spacing: var(--ls-head);
	text-align: left;
	transition: color var(--t-fast);
}

.mm-panel__link > span {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.mm-panel__link small {
	font-size: var(--fs-xs);
	font-weight: var(--fw-regular);
	letter-spacing: 0;
	color: var(--c-grey-500);
}

.mm-panel__link svg {
	color: var(--c-grey-500);
	transition: transform var(--t-mid) var(--ease-slow);
}

.mm-panel__link:active svg {
	transform: translateX(4px);
}

.mm-panel__link[aria-current="page"] {
	color: var(--c-grey-400);
}

/* Разделы — крупно, как пункты главного меню */
.mm-panel__big .mm-panel__link {
	min-height: 64px;
	font-size: clamp(30px, 8.6vw, 44px);
}

.mm-panel__big .mm-panel__link small {
	font-size: var(--fs-sm);
}

.mm-panel__all {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	margin-top: auto;
	padding: 0 20px;
	border-radius: var(--r-pill);
	background: var(--c-white);
	color: var(--c-black);
	font-size: var(--fs-body);
	font-weight: var(--fw-semibold);
}

@media (prefers-reduced-motion: reduce) {
	.mm-panel,
	.mobile-menu__inner {
		transition: none;
	}
}

@media (min-width: 1001px) {
	.mm-panel {
		display: none;
	}
}

/* Под разделом — начало списка его услуг в одну строку */
.mm-panel__peek {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Меню «Услуги» на компьютере — вариант A (решение владельца 2026-11-16):
   слева разделы-вкладки (с числом услуг) и карточка калькулятора, справа — услуги раздела карточками
   с иконкой и ценой. Вкладки переключает main.js ([data-mega]): наведение, фокус, клик.
   ========================================================================== */
@media (min-width: 1001px) {
	.site-nav .sub-menu--groups {
		grid-template-columns: 210px 580px;
		grid-auto-rows: auto;
		gap: 4px 14px;
		padding: 14px;
	}

	.site-nav .sub-menu--groups > .sub-menu__group {
		display: contents;
	}

	.site-nav .sub-menu--groups .sub-menu__label {
		grid-column: 1;
		grid-row: auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 13px 14px;
		border: 0;
		border-radius: calc(var(--r-lg) - 12px);
		background: transparent;
		color: var(--c-black);
		font: inherit;
		font-size: var(--fs-body);
		font-weight: var(--fw-medium);
		text-align: left;
		cursor: pointer;
		transition: background var(--t-fast), color var(--t-fast);
	}

	.site-nav .sub-menu--groups .sub-menu__label::after {
		content: attr(data-count);
		font-size: var(--fs-xxs);
		color: var(--c-grey-500);
	}

	.site-nav .sub-menu--groups .sub-menu__label:hover,
	.site-nav .sub-menu--groups .sub-menu__label:focus-visible {
		outline: none;
		background: var(--c-grey-150);
	}

	.site-nav .sub-menu__group.is-active > .sub-menu__label {
		background: var(--c-black);
		color: var(--c-white);
	}

	.site-nav .sub-menu__group.is-active > .sub-menu__label::after {
		color: var(--c-grey-400);
	}

	/* Услуги раздела — справа, все разделы в одной области, виден активный */
	.site-nav .sub-menu--groups .sub-menu__group > ul {
		grid-column: 2;
		grid-row: 1 / span 4;
		display: none;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		align-content: start;
	}

	.site-nav .sub-menu--groups .sub-menu__group.is-active > ul {
		display: grid;
	}

	.site-nav__list .sub-menu--groups .sub-menu__group a {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 4px;
		min-height: 104px;
		padding: 12px;
		border-radius: calc(var(--r-lg) - 10px);
		background: var(--c-grey-150);
		white-space: normal;
		font-size: var(--fs-sm);
		line-height: var(--lh-title);
		transition: background var(--t-fast), color var(--t-fast);
	}

	.sub-menu__icon {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		margin-bottom: 6px;
		border-radius: var(--r-sm);
		background: var(--c-black);
		color: var(--c-white);
		transition: background var(--t-fast), color var(--t-fast);
	}

	.site-nav__list .sub-menu--groups .sub-menu__group a:hover,
	.site-nav__list .sub-menu--groups .sub-menu__group a:focus-visible,
	.site-nav__list .sub-menu--groups .sub-menu__group a[aria-current="page"] {
		outline: none;
		background: var(--c-black);
		color: var(--c-white);
	}

	.sub-menu__group a:hover .sub-menu__icon,
	.sub-menu__group a:focus-visible .sub-menu__icon,
	.sub-menu__group a[aria-current="page"] .sub-menu__icon {
		background: var(--c-white);
		color: var(--c-black);
	}

	.sub-menu__group a:hover .sub-menu__meta,
	.sub-menu__group a:focus-visible .sub-menu__meta,
	.sub-menu__group a[aria-current="page"] .sub-menu__meta {
		color: var(--c-grey-400);
	}

	/* Калькулятор — под вкладками */
	.site-nav .sub-menu__promo {
		grid-column: 1;
		align-self: end;
		margin-top: 10px;
	}

	.site-nav__list .sub-menu__promo a {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		padding: 14px 14px 40px;
		border-radius: calc(var(--r-lg) - 10px);
		background: var(--c-grey-150);
		white-space: normal;
		font-size: var(--fs-xs);
		line-height: var(--lh-body);
		color: var(--c-grey-700);
	}

	.sub-menu__promo b {
		font-size: var(--fs-sm);
		color: var(--c-black);
	}

	.sub-menu__promo i {
		position: absolute;
		left: 14px;
		bottom: 12px;
		font-style: normal;
		color: var(--c-black);
		transition: transform var(--t-fast) var(--ease);
	}

	.site-nav__list .sub-menu__promo a:hover,
	.site-nav__list .sub-menu__promo a:focus-visible {
		outline: none;
		background: var(--c-black);
		color: var(--c-grey-400);
	}

	.sub-menu__promo a:hover b,
	.sub-menu__promo a:hover i,
	.sub-menu__promo a:focus-visible b,
	.sub-menu__promo a:focus-visible i {
		color: var(--c-white);
	}

	.sub-menu__promo a:hover i {
		transform: translateX(6px);
	}
}

/* На телефоне карточка калькулятора и иконки в исходном списке не нужны (там свои панели) */
@media (max-width: 1000px) {
	.sub-menu__promo,
	.mobile-menu__list .sub-menu__icon {
		display: none;
	}
}

/* ==========================================================================
   Поиск в шапке (inc/search.php, search.js): кнопка-лупа, панель под шапкой с подсказками
   ========================================================================== */
.site-search-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: 10px;
	border: 0;
	border-radius: 50%;
	background: var(--c-grey-150);
	color: var(--c-black);
	cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.site-search-toggle:hover,
.site-search-toggle:focus-visible,
.site-search-toggle[aria-expanded="true"] {
	outline: none;
	background: var(--c-black);
	color: var(--c-white);
}

.site-search-toggle:active {
	transform: scale(.92);
}

.site-search {
	position: fixed;
	z-index: 99;
	top: var(--header-h);
	left: 0;
	right: 0;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow);
}

.site-search.is-open {
	opacity: 1;
	transform: none;
}

.site-search__inner {
	display: grid;
	gap: 10px;
	max-height: calc(100svh - var(--header-h) - 24px);
	padding: 16px;
	border-radius: var(--r-lg);
	background: var(--c-paper);
	box-shadow: var(--shadow-card);
	overflow: auto;
	overscroll-behavior: contain;
}

.site-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 0 18px;
	border: 1px solid var(--line-on-light);
	border-radius: var(--r-pill);
	transition: border-color var(--t-fast);
}

.site-search__form:focus-within {
	border-color: var(--c-black);
}

.site-search__form > svg {
	flex: none;
	opacity: .55;
}

.site-search__input {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	border: 0;
	background: none;
	color: var(--c-black);
	font: inherit;
	font-size: var(--fs-body-lg);
	outline: none;
}

.site-search__input::-webkit-search-cancel-button {
	display: none;
}

.site-search__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--c-grey-150);
	color: var(--c-black);
	cursor: pointer;
}

.site-search__close:hover,
.site-search__close:focus-visible {
	outline: none;
	background: var(--c-black);
	color: var(--c-white);
}

.site-search__results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 6px 16px;
	align-items: start;
}

.site-search__group {
	display: grid;
	gap: 2px;
}

.site-search__label {
	margin: 8px 0 4px;
	padding: 0 12px;
	font-size: var(--fs-xxs);
	font-weight: var(--fw-semibold);
	color: var(--c-grey-500);
}

.site-search__item {
	display: grid;
	gap: 2px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	color: var(--c-black);
	text-decoration: none;
	transition: background var(--t-fast);
}

.site-search__item b {
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-title);
}

.site-search__item mark {
	padding: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-search__item em {
	font-size: var(--fs-xxs);
	font-style: normal;
	color: var(--c-grey-700);
}

.site-search__item span {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: var(--fs-xxs);
	line-height: var(--lh-body);
	color: var(--c-grey-500);
}

.site-search__item:hover,
.site-search__item:focus-visible,
.site-search__item.is-active {
	outline: none;
	background: var(--c-grey-150);
}

.site-search__all {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 6px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--r-md);
	background: none;
	color: var(--c-black);
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: var(--fw-semibold);
	cursor: pointer;
}

.site-search__all:hover,
.site-search__all:focus-visible {
	outline: none;
	background: var(--c-grey-150);
}

.site-search__quick {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 4px 4px 6px;
}

.site-search__quick span {
	margin-right: 4px;
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
}

.site-search__quick button {
	padding: 8px 14px;
	border: 1px solid var(--line-on-light);
	border-radius: var(--r-pill);
	background: none;
	color: var(--c-black);
	font: inherit;
	font-size: var(--fs-xs);
	cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.site-search__quick button:hover,
.site-search__quick button:focus-visible {
	outline: none;
	border-color: var(--c-black);
	background: var(--c-black);
	color: var(--c-white);
}

.site-search__empty {
	grid-column: 1 / -1;
	margin: 6px 12px 10px;
	font-size: var(--fs-sm);
	color: var(--c-grey-700);
}

.site-search__shade {
	position: fixed;
	z-index: 98;
	inset: 0;
	background: var(--shade-to);
	opacity: .5;
}

.search-open .site-header {
	transform: none !important;
}

/* Телефон: кнопка — в капсуле (белая на чёрном), панель на всю ширину под капсулой */
@media (max-width: 1000px) {
	.site-search-toggle {
		width: 40px;
		height: 40px;
		margin-right: 8px;
		background: var(--c-dark-soft);
		color: var(--c-white);
	}

	.site-search-toggle:hover,
	.site-search-toggle:focus-visible,
	.site-search-toggle[aria-expanded="true"] {
		background: var(--c-white);
		color: var(--c-black);
	}

	.site-search {
		top: calc(var(--header-h) + 6px);
	}

	.site-search .container {
		padding-left: 10px;
		padding-right: 10px;
	}

	.site-search__input {
		min-height: 48px;
		font-size: var(--fs-body);
	}

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

/* Меню «Услуги» — на всю ширину экрана, карточки крупные (решение владельца 2026-11-16) */
@media (min-width: 1001px) {
	.site-nav .sub-menu--groups {
		position: fixed;
		top: calc(var(--header-h) - 14px);
		left: var(--gutter);
		right: var(--gutter);
		width: auto;
		max-width: none;
		margin-top: 0;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 6px 20px;
		padding: 20px;
		max-height: calc(100vh - var(--header-h));
		overflow: auto;
	}

	/* Мостик от пункта меню до панели — по всей высоте зазора */
	.site-nav .sub-menu--groups::before {
		height: 24px;
	}

	.site-nav .sub-menu--groups .sub-menu__label {
		padding: 16px 18px;
		font-size: var(--fs-body-md);
	}

	.site-nav .sub-menu--groups .sub-menu__group > ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
	}

	.site-nav__list .sub-menu--groups .sub-menu__group a {
		min-height: 168px;
		padding: 18px;
		gap: 6px;
		font-size: var(--fs-body-md);
		font-weight: var(--fw-semibold);
	}

	.site-nav__list .sub-menu--groups .sub-menu__group a .sub-menu__meta {
		margin-top: auto;
		font-size: var(--fs-xs);
		font-weight: var(--fw-regular);
	}

	.site-nav .sub-menu--groups .sub-menu__icon {
		width: 48px;
		height: 48px;
		margin-bottom: 14px;
		border-radius: var(--r-md);
	}

	.site-nav .sub-menu--groups .sub-menu__icon svg {
		width: 24px;
		height: 24px;
	}

	.site-nav__list .sub-menu__promo a {
		padding: 18px 18px 46px;
		font-size: var(--fs-sm);
	}

	.sub-menu__promo b {
		font-size: var(--fs-body-md);
	}

	.sub-menu__promo i {
		left: 18px;
		bottom: 16px;
	}
}

/* Быстрые фильтры поиска: #услуги, #статьи, #словарь, #портфолио */
.site-search__tags {
	grid-column: 1 / -1;
	display: flex;
	gap: 8px;
	padding: 2px 4px 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.site-search__tags button {
	flex: none;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--c-grey-150);
	color: var(--c-black);
	font: inherit;
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast);
}

.site-search__tags button:hover,
.site-search__tags button:focus-visible,
.site-search__tags button.is-active {
	outline: none;
	background: var(--c-black);
	color: var(--c-white);
}

/* «Главная» — только в мобильном меню */
.site-nav .menu-home {
	display: none;
}

/*
 * Телефон (решение владельца 2026-11-16): в капсуле вместо логотипа — переключатель языков слева,
 * справа лупа поиска и кнопка меню. На компьютере шапка прежняя, с логотипом.
 */
@media (max-width: 1000px) {
	.site-header .logo {
		display: none;
	}

	.site-header__actions {
		flex: 1;
	}

	.site-header__actions .lang--header {
		order: -1;
		margin-right: auto;
	}

	.site-header__actions .site-search-toggle {
		margin-right: 8px;
		margin-left: auto;
	}
}

/* Пока открыт поиск — страница под ним не прокручивается */
.search-open,
.search-open body {
	overflow: hidden;
}

/* Выбран раздел (#услуги и т. п.) — результаты сеткой карточек на всю ширину панели */
.site-search__group.is-full {
	grid-column: 1 / -1;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 8px;
}

.site-search__group.is-full .site-search__label {
	grid-column: 1 / -1;
}

.site-search__group.is-full .site-search__item {
	align-content: start;
	min-height: 100%;
	padding: 14px 16px;
	background: var(--c-grey-150);
}

.site-search__group.is-full .site-search__item:hover,
.site-search__group.is-full .site-search__item:focus-visible,
.site-search__group.is-full .site-search__item.is-active {
	background: var(--c-black);
	color: var(--c-white);
}

.site-search__group.is-full .site-search__item:hover em,
.site-search__group.is-full .site-search__item:hover span,
.site-search__group.is-full .site-search__item.is-active em,
.site-search__group.is-full .site-search__item.is-active span {
	color: var(--c-grey-400);
}

/* assets/css/footer.css */
/* Подвал: слева логотип, описание и копирайт; справа способы связи. Меню — только в шапке. */

.site-footer {
	padding: var(--footer-pad-top) 0 48px;
	background: var(--c-black);
	color: var(--c-white);
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: var(--gap-xxl);
}

/* --- Слева --- */
.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-md);
	max-width: 420px;
}

.site-footer .logo {
	font-size: var(--fs-logo-footer);
}

.site-footer__about {
	font-size: var(--fs-body);
	line-height: var(--lh-text);
	color: var(--c-grey-500);
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: auto;
	padding-top: var(--gap-lg);
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
}

.site-footer__privacy {
	align-self: flex-start;
	transition: color var(--t-fast);
}

.site-footer__privacy:hover {
	color: var(--c-white);
}

/* --- Справа: способы связи --- */
.site-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-sm);
}

.site-footer__label {
	font-size: var(--fs-xxs);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-grey-500);
}

.site-footer__phone {
	margin-bottom: var(--gap-sm);
	font-size: var(--fs-footer-phone);
	line-height: 1.1;
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
	white-space: nowrap;
}

.site-footer__channels {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* .site-footer впереди — чтобы перебить display у .link-roll */
.site-footer .site-footer__channel {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-size: var(--fs-footer-channel);
	line-height: 1.3;
}

/* Иконка в круге: при наведении круг заливается белым */
.site-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--line-on-dark);
	transition: background var(--t-mid) var(--ease-slow), color var(--t-mid) var(--ease-slow), box-shadow var(--t-mid) var(--ease-slow);
}

.site-footer__channel:hover .site-footer__icon,
.site-footer__channel:focus-visible .site-footer__icon {
	background: var(--c-white);
	color: var(--c-black);
	box-shadow: inset 0 0 0 1.5px var(--c-white);
}

@media (max-width: 900px) {
	.site-footer__inner {
		flex-direction: column;
	}

	/* На телефоне копирайт — в самом низу, после способов связи */
	.site-footer__brand {
		display: contents;
	}

	.site-footer .logo,
	.site-footer__about {
		order: -1;
	}

	.site-footer__about {
		margin-top: calc(var(--gap-md) - var(--gap-xxl));
	}

	.site-footer__legal {
		order: 1;
		padding-top: 0;
	}
}

/* assets/css/pages.css */
/* Внутренние страницы: шапка страницы, текст, услуга, проект, команда, контакты, поиск, 404 */

/* --- Шапка страницы --- */
.page-hero {
	padding: calc(var(--header-h) + 64px) 0 56px;
	background: var(--c-white);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.page-hero__title {
	max-width: 1000px;
	font-size: var(--fs-h1);
	line-height: 1.02;
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-display);
}

.page-hero__lead {
	max-width: 640px;
	font-size: var(--fs-body-lg);
	line-height: var(--lh-lead);
}

.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: var(--fs-xxs);
	color: var(--c-grey-700);
}

.crumbs__list li + li::before {
	content: '/';
	margin-right: 8px;
	color: var(--c-grey-400);
}

.crumbs__list a:hover {
	color: var(--c-black);
}

/* --- Текст из редактора --- */
.page-content {
	padding-top: 24px;
}

.prose {
	max-width: 760px;
	font-size: var(--fs-body-md);
	line-height: 1.65;
}

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

.prose h2 {
	margin-top: 1.8em;
	font-size: var(--fs-h3);
	line-height: var(--lh-title);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
}

.prose h3 {
	margin-top: 1.5em;
	font-size: 22px;
	line-height: var(--lh-title);
	font-weight: var(--fw-semibold);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

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

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose img {
	border-radius: var(--r-lg);
}

.prose blockquote {
	padding-left: 24px;
	border-left: 2px solid var(--c-black);
	font-size: var(--fs-h3-sm);
	line-height: var(--lh-title);
}

/* --- «Услуги»: SEO-текст — главный заголовок и вступление на всю ширину, ниже пункты с подзаголовками сеткой --- */
.services-text .prose {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap-xl) var(--gap-lg);
	max-width: none;
}

.services-text .prose > * {
	margin: 0;
}

.services-text .prose > h2,
.services-text .prose > p {
	grid-column: 1 / -1;
}

.services-text .prose > h2 {
	max-width: 900px;
	font-size: var(--fs-h2);
}

.services-text .prose > p {
	max-width: 640px;
	margin-top: calc(16px - var(--gap-xl));
	margin-bottom: calc(var(--gap-xl) - var(--gap-lg));
	color: var(--c-grey-700);
}

.services-text .prose h3 {
	margin: 0 0 12px;
	font-size: var(--fs-h3);
	line-height: var(--lh-title);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
}

.services-text .prose div p {
	font-size: var(--fs-body);
	line-height: var(--lh-text);
	color: var(--c-grey-700);
}

@media (max-width: 1024px) {
	.services-text .prose {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.services-text .prose {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* --- Услуга --- */
.service-intro {
	padding-bottom: var(--section-bottom);
	background: var(--c-white);
}

.service-intro__inner {
	display: flex;
	flex-direction: column;
	gap: var(--gap-lg);
}

.service-intro__tags,
.service-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-sm);
}

.service-intro__media {
	overflow: hidden;
	border-radius: var(--r-xl);
}

.service-intro__img {
	width: 100%;
}

.service-about {
	padding-top: 0;
}

/* SEO-текст услуги: заголовок и вступление на всю ширину, разделы — по два в ряд, читаются слева направо */
.service-about__inner {
	display: flex;
	flex-direction: column;
	gap: var(--gap-lg);
}

/* SEO-заголовки длинные — мельче обычного H2, чтобы шли в одну-две строки */
.service-about__title {
	font-size: var(--fs-h3-lg);
	line-height: var(--lh-title);
}

.service-about__intro {
	max-width: 860px;
	font-size: var(--fs-body-lg);
}

.service-about__intro--long {
	max-width: none;
	columns: 2;
	column-gap: var(--gap-xxl);
	font-size: var(--fs-body);
}

.service-about__intro--long :is(p, li, ol, ul) {
	break-inside: avoid;
}

.service-about__intro--long > :first-child {
	margin-top: 0;
}

.service-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: var(--gap-xl) var(--gap-xxl);
	margin-top: var(--gap-md);
}

.service-about__block {
	max-width: none;
	font-size: var(--fs-body);
}

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

/* Нечётный последний раздел — на всю ширину, сам текст внутри тоже в две колонки, подзаголовок над ними */
.service-about__block:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	columns: 2;
	column-gap: var(--gap-xxl);
}

.service-about__block:last-child:nth-child(odd) > :is(h2, h3) {
	column-span: all;
	margin-bottom: 1em;
}

.service-about__block:last-child:nth-child(odd) :is(p, li) {
	break-inside: avoid;
}

/* --- «Спасибо за заявку»: слева текст и кнопки, справа анимированная история заявки --- */
.thanks {
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding: calc(var(--header-h) + 48px) 0 var(--section-bottom);
}

/* На 404 под историей ещё поиск и услуги — экран не растягиваем на всю высоту */
.thanks--404 {
	min-height: 0;
	padding-bottom: var(--gap-xl);
}

.thanks__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	align-items: center;
	gap: var(--gap-xl);
}

.thanks__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.thanks__title {
	max-width: 900px;
	font-size: var(--fs-h1);
	line-height: 1.02;
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-display);
}

.thanks__lead {
	max-width: 620px;
	font-size: var(--fs-body-lg);
	line-height: var(--lh-lead);
}

.thanks__text {
	max-width: 620px;
	font-size: var(--fs-body);
	line-height: var(--lh-text);
	color: var(--c-grey-700);
}

.thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-xs);
	margin-top: 16px;
}

.thanks__more {
	margin-top: 8px;
	font-size: var(--fs-sm);
	color: var(--c-grey-700);
}

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

	/* На узком экране история сверху, текст под ней */
	.thanks-scene,
	.notfound-scene {
		order: -1;
	}
}

/*
 * История заявки (template-parts/thanks-scene.php). Все части живут на одном цикле --ts-dur,
 * проценты в keyframes — моменты на этом цикле:
 * 2–14% ввод в форму, 16% «Отправить», 20–30% письмо летит на сервер, 30–36% мигает сервер,
 * 36–44% сигнал по проводу, 45% уведомление, 49–57% курсор и клик, 60% открытая заявка,
 * 65–76% анализ, 78% номер, 82–96% звонок, 97–100% всё гаснет и цикл повторяется.
 */
.thanks-scene {
	--ts-dur: 11s;
	width: 100%;
}

.thanks-scene svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.thanks-scene * {
	transform-box: fill-box;
	transform-origin: center;
	animation-duration: var(--ts-dur);
	animation-iteration-count: infinite;
	animation-timing-function: var(--ease-slow);
}

/* Цвета и текст сцен (.ts-*) — общие, в base.css */

/* 1. Ввод в форму и нажатие «Отправить» */
.ts-type {
	transform-origin: left center;
	animation-name: ts-type-1;
}

.ts-type--2 {
	animation-name: ts-type-2;
}

@keyframes ts-type-1 {
	0%, 2% { transform: scaleX(0); }
	8%, 96% { transform: scaleX(1); }
	100% { transform: scaleX(0); }
}

@keyframes ts-type-2 {
	0%, 8% { transform: scaleX(0); }
	14%, 96% { transform: scaleX(1); }
	100% { transform: scaleX(0); }
}

.ts-press {
	animation-name: ts-press;
}

@keyframes ts-press {
	0%, 15%, 19%, 100% { transform: scale(1); }
	17% { transform: scale(.92); }
}

/* 2. Письмо летит по дуге на сервер */
.ts-mail {
	opacity: 0;
	animation-name: ts-mail;
}

@keyframes ts-mail {
	0%, 17% { opacity: 0; transform: translate(0, 0) scale(0); }
	20% { opacity: 1; transform: translate(0, -14px) scale(1); }
	25% { opacity: 1; transform: translate(96px, -150px) scale(.9) rotate(-12deg); }
	30% { opacity: 0; transform: translate(191px, -179px) scale(.35) rotate(0); }
	100% { opacity: 0; transform: translate(191px, -179px) scale(0); }
}

/* 3. Сервер принял — огоньки пробегают сверху вниз */
.ts-led {
	fill: var(--c-grey-700);
	animation-name: ts-led;
	animation-timing-function: steps(1);
}

.ts-led--2 {
	animation-name: ts-led-2;
}

.ts-led--3 {
	animation-name: ts-led-3;
}

@keyframes ts-led {
	0%, 30%, 33%, 100% { fill: var(--c-grey-700); }
	31% { fill: var(--c-white); }
}

@keyframes ts-led-2 {
	0%, 32%, 35%, 100% { fill: var(--c-grey-700); }
	33% { fill: var(--c-white); }
}

@keyframes ts-led-3 {
	0%, 34%, 37%, 100% { fill: var(--c-grey-700); }
	35% { fill: var(--c-white); }
}

/* 4. Сигнал по проводу до ноутбука */
.ts-pulse {
	fill: var(--c-black);
	opacity: 0;
	animation-name: ts-pulse;
	animation-timing-function: linear;
}

@keyframes ts-pulse {
	0%, 36% { opacity: 0; transform: translate(0, 0); }
	37% { opacity: 1; transform: translate(0, 0); }
	41% { opacity: 1; transform: translate(156px, 0); }
	44% { opacity: 1; transform: translate(156px, 55px); }
	45%, 100% { opacity: 0; transform: translate(156px, 55px); }
}

/* 5. Уведомление «Новая заявка» */
.ts-toast {
	opacity: 0;
	animation-name: ts-toast;
}

@keyframes ts-toast {
	0%, 45% { opacity: 0; transform: translateX(40px); }
	49%, 57% { opacity: 1; transform: translateX(0); }
	61%, 100% { opacity: 0; transform: translateX(0) scale(.96); }
}

.ts-dot {
	animation-name: ts-dot;
}

@keyframes ts-dot {
	0%, 49%, 53%, 57%, 100% { opacity: 1; }
	51%, 55% { opacity: .2; }
}

/* 6. Курсор подводится к уведомлению и кликает */
.ts-cursor {
	opacity: 0;
	transform-origin: left top;
	animation-name: ts-cursor;
}

@keyframes ts-cursor {
	0%, 46% { opacity: 0; transform: translate(0, 0); }
	49% { opacity: 1; transform: translate(0, 0); }
	55% { opacity: 1; transform: translate(-62px, -84px) scale(1); }
	56.5% { transform: translate(-62px, -84px) scale(.8); }
	58% { opacity: 1; transform: translate(-62px, -84px) scale(1); }
	64%, 100% { opacity: 0; transform: translate(-62px, -84px); }
}

/* 7. Открытая заявка, анализ, номер и звонок */
.ts-panel {
	opacity: 0;
	animation-name: ts-panel;
}

@keyframes ts-panel {
	0%, 59% { opacity: 0; transform: scale(.94); }
	63%, 96% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1); }
}

.ts-bar {
	transform-origin: left center;
	animation-name: ts-bar;
	animation-timing-function: linear;
}

@keyframes ts-bar {
	0%, 65% { transform: scaleX(0); }
	68% { transform: scaleX(.35); }
	71% { transform: scaleX(.5); }
	76%, 100% { transform: scaleX(1); }
}

.ts-done {
	opacity: 0;
	animation-name: ts-done;
}

@keyframes ts-done {
	0%, 76% { opacity: 0; }
	78%, 100% { opacity: 1; }
}

.ts-call {
	opacity: 0;
	animation-name: ts-call;
}

@keyframes ts-call {
	0%, 78% { opacity: 0; transform: translateY(8px); }
	82%, 100% { opacity: 1; transform: translateY(0); }
}

.ts-handset {
	animation-name: ts-shake;
	animation-timing-function: linear;
}

@keyframes ts-shake {
	0%, 82%, 89%, 96%, 100% { transform: rotate(0); }
	83%, 85%, 87%, 90%, 92%, 94% { transform: rotate(-14deg); }
	84%, 86%, 88%, 91%, 93%, 95% { transform: rotate(14deg); }
}

.ts-ring {
	opacity: 0;
	animation-name: ts-ring;
	animation-timing-function: ease-out;
}

.ts-ring--2 {
	animation-name: ts-ring-2;
}

@keyframes ts-ring {
	0%, 82% { opacity: 0; transform: scale(1); }
	82.5% { opacity: .5; transform: scale(1); }
	88% { opacity: 0; transform: scale(2.4); }
	88.5% { opacity: .5; transform: scale(1); }
	94%, 100% { opacity: 0; transform: scale(2.4); }
}

@keyframes ts-ring-2 {
	0%, 85% { opacity: 0; transform: scale(1); }
	85.5% { opacity: .5; transform: scale(1); }
	91% { opacity: 0; transform: scale(2.4); }
	91.5% { opacity: .5; transform: scale(1); }
	96%, 100% { opacity: 0; transform: scale(2.4); }
}

.ts-calling {
	animation-name: ts-calling;
	animation-timing-function: steps(1);
}

@keyframes ts-calling {
	0%, 84%, 88%, 92%, 96%, 100% { opacity: 1; }
	86%, 90%, 94% { opacity: .35; }
}

/* Без анимации — сразу последний кадр: заявка открыта, номер на экране */
@media (prefers-reduced-motion: reduce) {
	.thanks-scene * {
		animation: none !important;
	}

	.ts-panel,
	.ts-call,
	.ts-done {
		opacity: 1;
	}

	.ts-toast,
	.ts-mail,
	.ts-cursor,
	.ts-pulse,
	.ts-ring {
		opacity: 0;
	}
}

/* --- Проект --- */
.project-page {
	padding-bottom: var(--section-bottom);
	background: var(--c-white);
}

/* Две колонки: скриншот слева, текст справа (закреплён при прокрутке длинного скриншота) */
.project-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: start;
	gap: var(--gap-xxl);
}

.project-page__media {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
}

.project-page__side {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: var(--gap-xl);
}

.project-page__browser {
	overflow: hidden;
	border-radius: var(--r-md);
	background: var(--c-paper);
	box-shadow: var(--shadow-shot);
}

.project-page__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--gap-lg);
}

.project-page__text {
	max-width: none;
	font-size: var(--fs-body);
}

.project-page__fact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: var(--fs-body-md);
}

.project-page__cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-xs);
}

.project-page__cover {
	padding: clamp(20px, 3.4vw, 48px);
	border-radius: var(--r-xl);
	background: var(--accent, var(--c-grey-250));
}

/* Скриншот в натуральную ширину колонки, без растягивания сверх оригинала */
.project-page__shot {
	display: block;
	width: 100%;
	max-width: 1200px;
	height: auto;
}

.project-page__story {
	display: flex;
	flex-direction: column;
	gap: var(--gap-lg);
}

.project-page__block {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
	font-size: var(--fs-body-md);
	line-height: 1.6;
}

.project-page__heading {
	font-size: var(--fs-h3);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
}

.project-page__gallery {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
}

.project-page__image {
	overflow: hidden;
	border-radius: var(--r-lg);
}

.project-page__image img {
	width: 100%;
}

/* --- Команда --- */
.team {
	scroll-margin-top: calc(var(--header-h) - var(--r-sheet));
}

.team__inner {
	display: flex;
	flex-direction: column;
	gap: var(--gap-xl);
}

.team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--gap-md);
}

.member {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.member__photo {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	aspect-ratio: 4 / 5;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--c-dark);
}

.member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.member__placeholder {
	color: var(--c-grey-700);
}

.member__name {
	font-size: var(--fs-h3-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-title);
}

.member__role,
.member__bio {
	color: var(--c-grey-500);
}

/* --- Контакты: способы связи --- */
.contacts-ways {
	padding-bottom: calc(var(--section-bottom) * .6 + var(--r-sheet));
	background: var(--c-white);
}

.contacts-ways__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--gap-sm);
}

/* Карточка связи заливается чёрным снизу (card-fill), как кнопки */
.way {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--gap-xl);
	min-height: 220px;
	padding: 28px;
	border-radius: var(--r-lg);
	background: var(--c-paper);
	color: var(--c-black);
	--card-fill: var(--c-black);
	transition: color var(--t-card-fill) var(--ease-fill);
}

a.way:hover {
	color: var(--c-white);
}

.way__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--c-grey-150);
	transition: background var(--t-card-fill) var(--ease-fill);
}

a.way:hover .way__icon {
	background: var(--c-dark-hover);
}

.way__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.way__label {
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
}

.way__value {
	font-size: var(--fs-h3-sm);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-title);
	word-break: break-word;
}

.way__value + .way__label {
	margin-top: 12px;
}

.way--info {
	background: var(--c-grey-250);
}

/* --- Контакты: бриф --- */
/* Свечение (.contact__glow, 1100 px) не должно расширять страницу на телефоне.
   clip, а не hidden: hidden сломал бы закреплённую левую колонку (sticky) */
.brief {
	overflow: clip;
}

.brief__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	align-items: start;
	gap: var(--gap-xxl);
}

.brief__head {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-md);
}

.brief .contact__title {
	font-size: var(--fs-h2);
	text-align: left;
}

/* Кнопка короткой заявки — крупная, заметная рядом с заголовком брифа */
/* Высокая кнопка на всю ширину колонки, текст в одну строку и ровно по центру */
.brief__quick {
	align-self: stretch;
	justify-content: center;
	min-height: 120px;
	margin-top: 20px;
	padding: 0 24px;
	border-width: 2px;
	font-size: clamp(17px, 1.5vw, 22px);
	font-weight: var(--fw-semibold);
	letter-spacing: -0.01em;
	white-space: nowrap;
	text-align: center;
}

.brief__quick .roll {
	text-align: center;
}

@media (max-width: 560px) {
	.brief__quick {
		min-height: 96px;
		padding: 0 16px;
		font-size: 16px;
	}
}

.brief__form {
	flex: none;
}

.brief-form {
	gap: var(--gap-xl);
}

.brief__step {
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
	margin: 0;
	padding: 0;
	border: 0;
}

.brief__title {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 4px;
	padding: 0;
	font-size: var(--fs-h3);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
}

.brief__num {
	font-size: var(--fs-sm);
	color: var(--c-grey-500);
}

.brief-form .contact-form__row {
	row-gap: var(--gap-md);
}

.brief-form textarea.field__input {
	min-height: 80px;
	resize: vertical;
}

/* Телефон: поля брифа плотнее, без лишних отступов между ними */
@media (max-width: 768px) {
	.brief-form {
		gap: var(--gap-lg);
	}

	.brief__step {
		gap: var(--gap-sm);
	}

	.brief-form .contact-form__row {
		gap: var(--gap-sm);
	}

	.brief__title {
		margin-bottom: 0;
	}
}

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

	.brief__head {
		position: static;
	}
}

/* --- Блог: список и статья --- */
.blog--list {
	margin-top: 0;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gap-xs);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--line-on-dark);
	border-radius: var(--r-pill);
	transition: background var(--t-mid) var(--ease-slow), color var(--t-mid) var(--ease-slow);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--c-white);
	color: var(--c-black);
}

.article {
	padding-top: 0;
}

.article__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-xl);
}

.article__cover {
	width: 100%;
	overflow: hidden;
	border-radius: var(--r-xl);
}

.article__cover img {
	width: 100%;
}

/* --- Поиск и 404 --- */
.search-again {
	padding-bottom: 40px;
	background: var(--c-white);
}

.search-form {
	display: flex;
	gap: var(--gap-xs);
	max-width: 640px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 16px 24px;
	border: 1px solid var(--line-on-light);
	border-radius: var(--r-pill);
	background: var(--c-paper);
	font-size: var(--fs-body);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--c-black);
}

.results__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 880px;
}

.result__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px 28px;
	border-radius: var(--r-lg);
	background: var(--c-paper);
	transition: translate var(--t-card) var(--ease-slow);
}

.result__link:hover {
	translate: 6px 0;
}

.result__type {
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
}

.result__title {
	font-size: var(--fs-h3-sm);
	font-weight: var(--fw-medium);
}

.result__text {
	color: var(--c-grey-700);
}

.not-found {
	padding-top: 0;
}

.not-found__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap-xl);
}

.not-found__search {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
	width: 100%;
}

.not-found__links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
	width: 100%;
}

.not-found__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--gap-sm);
	padding: 24px 28px;
	border-radius: var(--r-lg);
	background: var(--c-paper);
	font-size: var(--fs-body-md);
	font-weight: var(--fw-medium);
	--card-fill: var(--c-black);
	transition: color var(--t-card-fill) var(--ease-fill);
}

.not-found__link:hover {
	color: var(--c-white);
}

.not-found__go {
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-on-light);
	transition: transform 1s var(--ease-slow), border-color var(--t-card-fill) var(--ease-fill);
}

.not-found__link:hover .not-found__go {
	transform: rotate(45deg);
	border-color: var(--line-on-dark);
}

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

	.service-about__block:last-child:nth-child(odd),
	.service-about__intro--long {
		columns: 1;
	}

	/* На телефоне сначала текст, под ним скриншот */
	.project-page__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.project-page__side {
		position: static;
		order: -1;
	}

	.page-hero {
		padding-top: calc(var(--header-h) + 32px);
	}
}

/*
 * История 404 (template-parts/notfound-scene.php) — в стиле «Спасибо», цикл --nf-dur:
 * 4–16% набор адреса, 17% клик «→», 19–27% загрузка, 26–32% страница собирается,
 * 35–43% разваливается, 43–48% «404» и трещины, 48–64% лупа ищет, 64% «Может, сюда?»,
 * 68–78% курсор выбирает «Портфолио», 96–100% всё гаснет и цикл повторяется.
 */
.notfound-scene {
	--nf-dur: 10s;
	width: 100%;
}

.notfound-scene svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.notfound-scene * {
	transform-box: fill-box;
	transform-origin: center;
	animation-duration: var(--nf-dur);
	animation-iteration-count: infinite;
	animation-timing-function: var(--ease-slow);
}

.nf-digits {
	font-family: var(--font-logo);
	font-size: 112px;
	font-weight: var(--fw-black);
	letter-spacing: -0.04em;
	fill: var(--c-black);
}

.nf-crack {
	fill: none;
	stroke: var(--c-paper);
	stroke-width: 7;
	stroke-dasharray: 120;
	stroke-dashoffset: 120;
}

.nf-load {
	fill: var(--c-black);
}

.nf-lens {
	fill: var(--c-white);
	fill-opacity: .6;
	stroke: var(--c-black);
	stroke-width: 4;
}

.nf-handle,
.nf-arrow-dark {
	fill: none;
	stroke: var(--c-black);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nf-handle {
	stroke-width: 6;
}

.nf-arrow-dark {
	stroke-width: 2;
}

/* 1. Адрес набирается, клик по «→» */
.nf-url {
	clip-path: inset(0 100% 0 0);
	animation-name: nf-url;
	animation-timing-function: steps(20);
}

@keyframes nf-url {
	0%, 4% { clip-path: inset(0 100% 0 0); }
	16%, 96% { clip-path: inset(0 0 0 0); }
	100% { clip-path: inset(0 100% 0 0); }
}

.nf-go {
	animation-name: nf-go;
}

@keyframes nf-go {
	0%, 16%, 19%, 100% { transform: scale(1); }
	17.5% { transform: scale(.85); }
}

/* 2. Загрузка */
.nf-load {
	transform-origin: left center;
	animation-name: nf-load;
	animation-timing-function: linear;
}

@keyframes nf-load {
	0%, 18% { opacity: 1; transform: scaleX(0); }
	23% { transform: scaleX(.55); }
	27% { opacity: 1; transform: scaleX(1); }
	30%, 100% { opacity: 0; transform: scaleX(1); }
}

/* 3. Блоки страницы появляются и падают */
.nf-block {
	opacity: 0;
	animation-name: nf-block-1;
}

.nf-block--2 { animation-name: nf-block-2; }
.nf-block--3 { animation-name: nf-block-3; }
.nf-block--4 { animation-name: nf-block-4; }
.nf-block--5 { animation-name: nf-block-5; }
.nf-block--6 { animation-name: nf-block-6; }

@keyframes nf-block-1 {
	0%, 26% { opacity: 0; transform: translateY(6px); }
	29%, 35% { opacity: 1; transform: none; }
	43%, 100% { opacity: 0; transform: translate(-30px, 260px) rotate(-24deg); }
}

@keyframes nf-block-2 {
	0%, 27% { opacity: 0; transform: translateY(6px); }
	30%, 36% { opacity: 1; transform: none; }
	44%, 100% { opacity: 0; transform: translate(20px, 250px) rotate(18deg); }
}

@keyframes nf-block-3 {
	0%, 28% { opacity: 0; transform: translateY(6px); }
	31%, 35.5% { opacity: 1; transform: none; }
	43%, 100% { opacity: 0; transform: translate(-10px, 240px) rotate(-12deg); }
}

@keyframes nf-block-4 {
	0%, 29% { opacity: 0; transform: translateY(6px); }
	32%, 36.5% { opacity: 1; transform: none; }
	44.5%, 100% { opacity: 0; transform: translate(-40px, 200px) rotate(-30deg); }
}

@keyframes nf-block-5 {
	0%, 29.5% { opacity: 0; transform: translateY(6px); }
	32%, 35% { opacity: 1; transform: none; }
	43%, 100% { opacity: 0; transform: translate(40px, 230px) rotate(26deg); }
}

@keyframes nf-block-6 {
	0%, 30% { opacity: 0; transform: translateY(6px); }
	32.5%, 37% { opacity: 1; transform: none; }
	45%, 100% { opacity: 0; transform: translate(26px, 180px) rotate(40deg); }
}

/* 4. «404» и трещины */
.nf-404 {
	opacity: 0;
	animation-name: nf-404;
}

@keyframes nf-404 {
	0%, 42% { opacity: 0; transform: scale(.8); }
	46% { opacity: 1; transform: scale(1.04); }
	48%, 96% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1); }
}

.nf-crack {
	animation-name: nf-crack;
	animation-timing-function: ease-out;
}

.nf-crack--2 {
	animation-name: nf-crack-2;
}

@keyframes nf-crack {
	0%, 46% { stroke-dashoffset: 120; }
	50%, 100% { stroke-dashoffset: 0; }
}

@keyframes nf-crack-2 {
	0%, 48% { stroke-dashoffset: 120; }
	52%, 100% { stroke-dashoffset: 0; }
}

/* 5. Лупа ищет страницу */
.nf-glass {
	opacity: 0;
	animation-name: nf-glass;
}

@keyframes nf-glass {
	0%, 49% { opacity: 0; transform: translate(70px, 250px) rotate(-10deg); }
	52% { opacity: 1; transform: translate(80px, 230px) rotate(0); }
	56% { opacity: 1; transform: translate(330px, 220px) rotate(8deg); }
	60% { opacity: 1; transform: translate(300px, 90px) rotate(-6deg); }
	64% { opacity: 1; transform: translate(110px, 100px) rotate(4deg); }
	67%, 100% { opacity: 0; transform: translate(110px, 100px) scale(.6); }
}

/* 6. «Может, сюда?» и выбор «Портфолио» */
.nf-card {
	opacity: 0;
	animation-name: nf-card;
}

@keyframes nf-card {
	0%, 63% { opacity: 0; transform: translateX(36px); }
	67%, 96% { opacity: 1; transform: none; }
	100% { opacity: 0; transform: none; }
}

.nf-pick {
	opacity: 0;
	animation-name: nf-pick;
	animation-timing-function: steps(1);
}

@keyframes nf-pick {
	0%, 77% { opacity: 0; }
	78%, 96% { opacity: 1; }
	100% { opacity: 0; }
}

.nf-cursor {
	opacity: 0;
	transform-origin: left top;
	animation-name: nf-cursor;
}

@keyframes nf-cursor {
	0%, 9% { opacity: 0; transform: translate(430px, 150px); }
	12% { opacity: 1; transform: translate(430px, 150px); }
	16% { opacity: 1; transform: translate(392px, 52px) scale(1); }
	17.5% { transform: translate(392px, 52px) scale(.8); }
	19% { opacity: 1; transform: translate(392px, 52px) scale(1); }
	23%, 67% { opacity: 0; transform: translate(392px, 52px); }
	69% { opacity: 1; transform: translate(600px, 320px); }
	76% { opacity: 1; transform: translate(560px, 200px) scale(1); }
	77.5% { transform: translate(560px, 200px) scale(.8); }
	79% { opacity: 1; transform: translate(560px, 200px) scale(1); }
	86%, 100% { opacity: 0; transform: translate(560px, 200px); }
}

/* Без анимации — сразу последний кадр: «404», трещины и «Может, сюда?» */
@media (prefers-reduced-motion: reduce) {
	.notfound-scene * {
		animation: none !important;
	}

	.nf-url {
		clip-path: none;
	}

	.nf-404,
	.nf-card {
		opacity: 1;
	}

	.nf-crack {
		stroke-dashoffset: 0;
	}

	.nf-block,
	.nf-glass,
	.nf-cursor,
	.nf-pick,
	.nf-load {
		opacity: 0;
	}
}

/* SEO-текст услуги на блоках статьи: заголовок сверху, ниже оглавление и текст (сетка .a-grid из article.css) */
.service-article {
	padding-top: 0;
}

.service-article__title {
	max-width: 1000px;
	margin-bottom: var(--gap-xl);
	font-size: var(--fs-h3-lg);
	line-height: var(--lh-title);
}

/* assets/css/sections/contact.css */
/* Связаться: финальный тёмный экран с формой */

.contact {
	overflow: hidden;
	padding-top: 120px;
}

.contact__glow {
	position: absolute;
	left: 50%;
	top: -360px;
	width: 1100px;
	height: 800px;
	margin-left: -550px;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--glow), var(--glow-none));
	pointer-events: none;
}

.contact__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--gap-xxl);
}

.contact__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.contact__title {
	font-size: var(--fs-h2-xl);
	line-height: var(--lh-tight);
	font-weight: var(--fw-medium);
	letter-spacing: -0.04em;
}

.contact__lead {
	max-width: 560px;
	font-size: var(--fs-body-lg);
	line-height: var(--lh-lead);
}

.contact__body {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--gap-md);
}

/* Форма (разметка Contact Form 7, шаблон в inc/forms.php) */
.contact-form {
	flex: 1 1 640px;
	padding: 44px;
	border-radius: var(--r-xl);
	background: var(--c-dark);
}

.lead-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

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

/* Служебный блок CF7 со скрытыми полями — браузер рисует ему рамку, прячем целиком */
.lead-form .hidden-fields-container,
.wpcf7-form-control-wrap[data-name^="utm_"],
.wpcf7-form-control-wrap[data-name="plan"],
.wpcf7-form-control-wrap[data-name="page_url"],
.lead-form input[type="hidden"] {
	display: none;
}

/* Капча Turnstile: обычно невидима; без ключей блок пустой и не даёт лишнего отступа */
.form-captcha:empty {
	display: none;
}

.form-captcha .cf-turnstile {
	max-width: 400px;
}

.contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap-sm);
}

/*
 * Плавающая подпись: пока поле пустое, подпись («Имя») стоит внутри поля.
 * При фокусе или когда поле заполнено, она уезжает вверх и уменьшается, а внутри появляется подсказка.
 */
.field {
	position: relative;
	display: block;
}

.field__label {
	padding: 0;
	font-size: var(--fs-xs);
	color: var(--c-grey-500);
}

.field > .field__label {
	position: absolute;
	z-index: 1;
	left: calc(var(--field-pad-x) + 1px);
	top: var(--field-label-top);
	font-size: var(--fs-field);
	line-height: 1.2;
	pointer-events: none;
	transform-origin: 0 0;
	transition: transform var(--t-mid) var(--ease-slow), color var(--t-fast);
}

.field:focus-within > .field__label,
.field:has(.field__input:not(:placeholder-shown)) > .field__label {
	transform: var(--field-label-float);
}

.field:focus-within > .field__label {
	color: var(--c-white);
}

.field__input {
	width: 100%;
	padding: var(--field-pad-top) var(--field-pad-x) var(--field-pad-bottom);
	border: 1px solid var(--line-on-dark-soft);
	border-radius: var(--r-md);
	background: var(--c-dark-deep);
	color: var(--c-white);
	font-size: var(--fs-field);
	line-height: 1.4;
	transition: border-color var(--t-fast), background var(--t-fast);
}

/* Подсказка видна только в фокусе, когда подпись уже наверху */
.field__input::placeholder {
	color: var(--c-grey-700);
	opacity: 0;
	transition: opacity var(--t-fast);
}

.field__input:focus::placeholder {
	opacity: 1;
}

/*
 * Телефон: слева выбор страны, в поле код и маска номера (assets/js/lead-form.js).
 * Подпись всегда наверху, вместо подсказки — маска, которая заполняется по мере ввода.
 */
.field--phone > .field__label {
	transform: var(--field-label-float);
}

.phone {
	position: relative;
}

.phone .field__input {
	padding-left: var(--field-country-w);
}

.phone__ghost {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	max-width: 100%;
	padding: var(--field-pad-top) var(--field-pad-x) var(--field-pad-bottom) var(--field-country-w);
	border: 1px solid transparent;
	overflow: hidden;
	font-size: var(--fs-field);
	line-height: 1.4;
	white-space: pre;
	color: var(--c-grey-500);
	pointer-events: none;
}

.phone__typed {
	color: transparent;
}

.phone__country {
	position: absolute;
	z-index: 2;
	left: calc(var(--field-pad-x) + 1px);
	top: calc(var(--field-pad-top) + 1px);
	display: flex;
	align-items: center;
	gap: 8px;
	height: calc(var(--fs-field) * 1.4);
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	font: inherit;
	font-size: var(--fs-field);
	cursor: pointer;
}

.phone__country svg:last-child {
	color: var(--c-grey-500);
	transition: transform var(--t-mid) var(--ease-slow);
}

.phone.is-open .phone__country svg:last-child {
	transform: rotate(180deg);
}

.phone__list {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	max-height: 296px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--c-grey-700) transparent;
	list-style: none;
	border: 1px solid var(--line-on-dark-soft);
	border-radius: var(--r-md);
	background: var(--c-dark-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow), visibility 0s var(--t-mid);
}

.phone.is-open .phone__list {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-slow);
}

.phone__option {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-radius: calc(var(--r-md) - 6px);
	background: none;
	color: var(--c-white);
	font: inherit;
	font-size: var(--fs-sm);
	text-align: left;
	cursor: pointer;
	transition: background var(--t-fast);
}

.phone__option span:last-child {
	color: var(--c-grey-500);
}

.phone__option:hover,
.phone__option:focus-visible,
.phone__option[aria-selected="true"] {
	outline: none;
	background: var(--c-dark-deep);
}

.field__input:focus {
	outline: none;
	border-color: var(--c-white);
	background: var(--c-dark-soft);
}

.options {
	margin: 0;
	padding: 0;
	border: 0;
}

.options .field__label {
	margin-bottom: 12px;
}

/* Варианты-«таблетки»: радиокнопки CF7 */
.options__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-xs);
}

.options__list .wpcf7-list-item {
	position: relative;
	margin: 0;
}

.options__list input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.options__list .wpcf7-list-item-label {
	display: block;
	padding: var(--chip-pad-y) var(--chip-pad-x);
	border: 1px solid var(--line-on-dark);
	border-radius: var(--r-pill);
	font-size: var(--fs-chip);
	line-height: var(--chip-lh);
	cursor: pointer;
	transition: background var(--t-card) var(--ease-slow), color var(--t-card) var(--ease-slow), border-color var(--t-card) var(--ease-slow);
}

.options__list label:hover .wpcf7-list-item-label {
	border-color: var(--line-on-dark-strong);
}

.options__list input:checked + .wpcf7-list-item-label {
	border-color: var(--c-white);
	background: var(--c-white);
	color: var(--c-black);
}

.options__list input:focus-visible + .wpcf7-list-item-label {
	outline: 2px solid var(--c-white);
	outline-offset: 2px;
}

.contact-form__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gap-md);
	margin-top: 8px;
}

.consent {
	max-width: 380px;
	font-size: var(--fs-xxs);
	line-height: var(--lh-text);
	color: var(--c-grey-500);
}

.consent .wpcf7-list-item {
	margin: 0;
}

.consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.consent input {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--c-white);
}

.consent a {
	color: var(--c-white);
	text-decoration: underline;
}

/* Подсказки и ответ формы */
/* Незаполненное обязательное поле: красная рамка и красная подсказка «Заполните это поле» */
.wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	font-size: var(--fs-xxs);
	color: var(--c-error);
}

.field__input.wpcf7-not-valid,
.field__input.wpcf7-not-valid:focus {
	border-color: var(--c-error);
}

.consent .wpcf7-not-valid .wpcf7-list-item-label {
	color: var(--c-error);
}

.wpcf7-response-output {
	margin: 0;
	padding: 14px 20px;
	border: 1px solid var(--line-on-dark);
	border-radius: var(--r-md);
	font-size: var(--fs-xs);
	color: var(--c-grey-300);
}

.wpcf7-response-output:empty {
	display: none;
}

.lead-form.sent .wpcf7-response-output {
	border-color: var(--c-white);
	color: var(--c-white);
}

.wpcf7-spinner {
	display: none;
}

.lead-form.submitting .contact-form__submit {
	opacity: .6;
	pointer-events: none;
}

.screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* Под формой: «Уже знаете, что нужно?» → бриф на странице «Контакты» */
.contact__brief {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gap-md);
	margin-top: calc(var(--gap-md) - var(--gap-xxl));
	padding: 36px 44px;
	border-radius: var(--r-xl);
	background: var(--c-dark);
}

.contact__brief-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 620px;
	font-size: var(--fs-body);
	line-height: var(--lh-text);
}

.contact__brief-title {
	font-size: var(--fs-h3);
	line-height: var(--lh-title);
	font-weight: var(--fw-medium);
	letter-spacing: -0.02em;
}

/* Каналы связи */
.channels {
	flex: 1 1 360px;
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
}

/* Карточка целиком заливается белым снизу (класс card-fill) — видно, что кликается весь блок */
.channel {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	border-radius: var(--r-lg);
	background: var(--c-dark);
	color: var(--c-white);
	--card-fill: var(--c-white);
	transition: color var(--t-card-fill) var(--ease-fill);
}

.channel:hover {
	color: var(--c-black);
}

.channel:hover .channel__hint {
	color: var(--c-grey-700);
}

.channel--main {
	flex-grow: 1;
	flex-direction: column;
	align-items: stretch;
	gap: var(--gap-md);
	padding: 32px;
	border-radius: var(--r-xl);
}

.channel__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.channel__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.channel--main .channel__text {
	margin-top: auto;
	gap: 6px;
}

.channel__title {
	font-size: var(--fs-h3);
	font-weight: var(--fw-medium);
	letter-spacing: -0.02em;
}

.channel__hint {
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
	transition: color var(--t-card-fill) var(--ease-fill);
}

.channel--main .channel__hint {
	font-size: var(--fs-sm);
}

.channel__value {
	font-size: 20px;
	font-weight: var(--fw-medium);
}

.channel__go {
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-on-dark);
	transition: transform 1s var(--ease-slow), background var(--t-card-fill) var(--ease-fill), color var(--t-card-fill) var(--ease-fill), border-color var(--t-card-fill) var(--ease-fill);
}

.channel__go--solid {
	width: 48px;
	height: 48px;
	border: 0;
	background: var(--c-white);
	color: var(--c-black);
}

.channel:hover .channel__go {
	transform: rotate(45deg);
	border-color: var(--line-on-light);
}

.channel:hover .channel__go--solid {
	background: var(--c-black);
	color: var(--c-white);
}

@media (max-width: 768px) {
	.contact {
		padding-top: var(--section-top);
	}

	.contact-form {
		padding: 28px 20px;
		border-radius: var(--r-lg);
	}

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

	.contact-form__footer .btn,
	.contact__brief .btn {
		width: 100%;
	}

	.contact__brief {
		padding: 28px 20px;
		border-radius: var(--r-lg);
	}

	.channel {
		padding: 20px 24px;
	}
}

/* Форма на телефоне: варианты — одна строка с прокруткой, все цели нажатия от 44 px, плитки связи компактные */
@media (max-width: 768px) {
	/* Варианты — ровная сетка в две колонки: всё видно сразу, без прокрутки */
	.options__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.options__list .wpcf7-list-item-label {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		padding-inline: 10px;
		text-align: center;
		white-space: nowrap;
	}

	.phone__country {
		min-width: 56px;
		min-height: 44px;
		margin: -12px 0 0 -6px;
		padding: 0 6px;
	}

	.consent label {
		align-items: center;
		min-height: 44px;
	}

	.consent input {
		width: 22px;
		height: 22px;
		margin: 0;
	}

	.channel--main {
		gap: var(--gap-sm);
		padding: 20px;
	}

	.channel--main .channel__title {
		font-size: var(--fs-body-md);
	}

	.channel {
		padding: 16px 20px;
	}
}

/* assets/css/modal.css */
/* Всплывающие окна: «Что входит в тариф» (price-modal) и быстрая заявка (modal) */

.price-modal,
.modal {
	width: min(560px, calc(100% - 2 * var(--gutter)));
	max-height: calc(100% - 2 * var(--gutter));
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--r-xl);
	background: var(--c-white);
	color: var(--c-black);
	opacity: 0;
	transform: translateY(40px) scale(.97);
	transition: opacity .35s var(--ease-slow), transform .6s var(--ease-slow);
}

.price-modal.is-open,
.modal.is-open {
	opacity: 1;
	transform: none;
}

.price-modal::backdrop,
.modal::backdrop {
	background: var(--veil-dark);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.price-modal__box,
.modal__box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
	padding: 44px;
}

/* Тёмное окно с формой заявки */
.modal {
	width: min(640px, calc(100% - 2 * var(--gutter)));
}

.modal--dark {
	background: var(--c-dark);
	color: var(--c-white);
}

.modal__title {
	padding-right: 48px;
	font-size: var(--fs-h3-lg);
	line-height: var(--lh-head);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
}

.modal__form {
	margin-top: 12px;
}

.modal--dark .modal__close {
	background: var(--c-dark-hover);
	color: var(--c-white);
}

.price-modal__close,
.modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--c-grey-250);
	transform: rotate(45deg);
	transition: transform var(--t-mid) var(--ease-slow), background var(--t-fast);
}

.price-modal__close:hover,
.modal__close:hover {
	transform: rotate(135deg);
	background: var(--c-grey-300);
	color: var(--c-black);
}

.price-modal__title {
	font-size: var(--fs-h3-lg);
	line-height: var(--lh-head);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-head);
	padding-right: 48px;
}

.price-modal__meta {
	color: var(--c-grey-700);
}

.price-modal__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 12px 0 8px;
}

.price-modal__list li {
	position: relative;
	padding-left: 28px;
	line-height: var(--lh-text);
}

/* Галочка перед пунктом */
.price-modal__list li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: .35em;
	width: 12px;
	height: 7px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

.price-modal__cta {
	align-self: flex-start;
	margin-top: 8px;
}

@media (max-width: 560px) {
	.price-modal__box,
	.modal__box {
		padding: 32px 24px;
	}
}

/*
 * Окно никогда не выше экрана: в окне тарифа прокручивается только список
 * (заголовок и кнопка всегда видны), в окне заявки — содержимое целиком.
 * Полоса прокрутки — тонкая и внутри скругления.
 */
.price-modal,
.modal {
	max-height: calc(100svh - 2 * var(--gutter));
	overflow: hidden;
}

.price-modal__box,
.modal__box {
	max-height: calc(100svh - 2 * var(--gutter));
}

.price-modal__box {
	overflow: hidden;
}

.price-modal__list {
	flex: 1 1 auto;
	min-height: 0;
	margin-right: -16px;
	padding-right: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.price-modal__title,
.price-modal__meta,
.price-modal .eyebrow,
.price-modal__cta {
	flex: none;
}

.modal__box {
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

/* Список длиннее окна: снизу мягкое затухание, чтобы было видно, что он прокручивается */
.price-modal__list.is-scrollable {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}

.price-modal__list.is-scrollable.is-end {
	-webkit-mask-image: none;
	mask-image: none;
}

@media (max-width: 560px) {
	.price-modal__box {
		gap: 8px;
	}

	.price-modal__list {
		gap: 10px;
		font-size: var(--fs-sm);
	}

	.price-modal__cta {
		align-self: stretch;
	}
}

/* Низкие экраны (телефон боком, ноутбук с маленькой высотой) */
@media (max-height: 600px) {
	.price-modal__box,
	.modal__box {
		padding: 24px;
	}

	.price-modal__title,
	.modal__title {
		font-size: var(--fs-h3);
	}
}

