/* 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;

	/* Линии и полупрозрачные слои */
	--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-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-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-reel-scroll: 48s; /* окно шоурила прокручивает сайт вниз (и столько же обратно) */
	--t-reel-drop: 1.4s; /* окно шоурила опускается после наведения */
	--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;
}

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;

		/* Кнопки-варианты в формах (радиокнопки «до 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;
	}
}

/* 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;
	}
}

/* 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);
}

.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 {
		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-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);
}

/* 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);
	}
}

/* assets/css/sections/blog.css */
/* Блог: обложка с рубрикой и датой, заголовок не длиннее двух строк */

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

.blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gap-md);
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
}

.post-card__media {
	position: relative;
	height: 280px;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--c-dark);
}

.post-card__cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-slow);
}

.post-card__cover--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--c-warm-dark), var(--c-grey-700));
	font-size: var(--fs-xxs);
	color: var(--c-grey-500);
}

.post-card:nth-child(2) .post-card__cover--empty {
	background: linear-gradient(135deg, var(--c-dark), var(--c-grey-700));
}

.post-card:nth-child(3) .post-card__cover--empty {
	background: linear-gradient(135deg, var(--c-dark-soft), var(--c-grey-700));
}

.post-card:hover .post-card__cover {
	transform: scale(1.06);
}

.post-card__meta {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	gap: 6px;
	font-size: var(--fs-xxs);
	font-weight: var(--fw-medium);
}

.post-card__tag,
.post-card__date {
	padding: 7px 12px;
	border-radius: var(--r-pill);
}

.post-card__tag {
	background: var(--veil-light);
	color: var(--c-black);
}

.post-card__date {
	background: var(--veil-dark);
	color: var(--c-white);
}

.post-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-size: 24px;
	line-height: var(--lh-title);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-title);
}

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

	.post-card__media {
		height: 220px;
	}

	.post-card__title {
		font-size: 21px;
	}
}

