/* ==========================================================================
   Alushkin — основные стили
   Тёмная тема в цветах логотипа: сине-фиолетовый градиент на глубоком синем.
   ========================================================================== */

/* ---------- Шрифты (локально, вариативные) ---------- */
@font-face {
	font-family: "Unbounded";
	src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Unbounded";
	src: url("../fonts/unbounded-latin.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
	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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
	color-scheme: dark;

	--bg: #070a14;
	--bg-2: #0a0f1e;
	--surface: #0e1427;
	--surface-2: #131b33;
	--surface-3: #1a2343;
	--line: rgb(255 255 255 / 0.08);
	--line-2: rgb(255 255 255 / 0.14);

	--text: #eef1fa;
	--text-2: #b3bcd6;
	--text-3: #8791b0;

	--blue: #21b4ff;
	--indigo: #4a5cff;
	--violet: #8b3dff;
	--grad: linear-gradient(115deg, #21b4ff 0%, #4a5cff 50%, #8b3dff 100%);
	--grad-soft: linear-gradient(115deg, rgb(33 180 255 / 0.16), rgb(139 61 255 / 0.16));
	--success: #3ddc97;
	--danger: #ff6b81;

	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 12px;
	--radius-xs: 8px;

	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 12px -4px rgb(0 0 0 / 0.4);
	--shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 24px 48px -16px rgb(0 0 0 / 0.6);
	--shadow-lg: 0 4px 8px rgb(0 0 0 / 0.25), 0 40px 80px -24px rgb(0 0 0 / 0.75);

	--ease: cubic-bezier(0.2, 0, 0, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	--font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
	--font-text: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

	/* Типографическая шкала */
	--fs-display: clamp(2rem, 1.2rem + 3.2vw, 3.375rem);
	--fs-h1: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
	--fs-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.375rem);
	--fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-sm: 0.9375rem;
	--fs-xs: 0.8125rem;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
	--section: clamp(72px, 9vw, 128px);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul[class]:not(.wp-block-list), ol[class]:not(.wp-block-list) { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(74 92 255 / 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; left: 16px; top: -60px; z-index: 100;
	padding: 10px 16px; border-radius: var(--radius-sm); background: #fff; color: #000; font-weight: 600;
	transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--text { width: min(100% - 2 * var(--gutter), 760px); }
.container--wide { width: min(100% - 2 * var(--gutter), 1040px); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.text-grad {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
	--btn-h: 48px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--btn-h);
	padding: 0 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: var(--fs-sm);
	line-height: 1.2;
	white-space: nowrap;
	transition-property: background-color, border-color, color, box-shadow, scale, translate;
	transition-duration: 0.2s;
	transition-timing-function: var(--ease);
	isolation: isolate;
}
.btn:active { scale: 0.96; }
.btn .icon { width: 18px; height: 18px; transition: translate 0.2s var(--ease); }
.btn:hover .icon { translate: 3px 0; }
.btn--sm { --btn-h: 40px; padding: 0 18px; font-size: var(--fs-xs); }
.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
	color: #fff;
	background: var(--grad);
	box-shadow: 0 8px 24px -8px rgb(74 92 255 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn--primary::after {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: linear-gradient(115deg, #45c4ff, #6474ff 50%, #a05cff);
	opacity: 0; transition: opacity 0.2s var(--ease);
}
.btn--primary:hover::after { opacity: 1; }
.btn--primary:hover { box-shadow: 0 12px 32px -8px rgb(74 92 255 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.3); }

.btn--ghost {
	color: var(--text);
	background: rgb(255 255 255 / 0.04);
	box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24); }

.btn--light { color: #0b1020; background: #fff; }
.btn--light:hover { background: #e6eaff; }

/* ---------- Мелкие элементы ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	margin-bottom: 18px;
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-2);
}
.kicker::before {
	content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad);
}
.badge {
	display: inline-flex; align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--grad-soft);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
	padding: 8px 16px; border-radius: 999px;
	font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
	box-shadow: inset 0 0 0 1px var(--line-2);
	transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.chip:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.chip[aria-current="page"] { color: #fff; background: var(--grad); box-shadow: none; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--grad-soft) center / 10px no-repeat, var(--surface-3);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321b4ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
	background: rgb(7 10 20 / 0.78);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 46px; height: auto; }
.brand__logo { width: auto; height: 48px; }
.site-footer .brand__logo { height: 88px; }
/* Текст под логотипом-картинкой — ровно по ширине логотипа */
.site-footer__about:has(.brand--image) { justify-self: start; width: fit-content; }
.site-footer__about:has(.brand--image) .site-footer__text {
	width: 0; min-width: 100%; max-width: none;
	/* По ширине логотипа: выключка + переносы, чтобы не было «дыр» между словами */
	text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; text-wrap: wrap;
}
@media (max-width: 420px) { .site-header .brand__logo { height: 40px; } }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand__tag { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list a {
	display: block; padding: 8px 12px; border-radius: 999px;
	font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
	transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__list a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav__list .current-menu-item > a,
.nav__list a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / 0.08); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
	display: none; position: relative;
	width: 48px; height: 48px; margin-left: auto; border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--line-2);
}
.nav-toggle__icon {
	position: absolute; inset: 0; display: grid; place-items: center;
	transition-property: opacity, scale, filter;
	transition-duration: 0.25s;
	transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.nav-toggle__icon--close { opacity: 0; scale: 0.25; filter: blur(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { opacity: 0; scale: 0.25; filter: blur(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { opacity: 1; scale: 1; filter: blur(0); }

@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: 16px var(--gutter) 32px;
		background: rgb(7 10 20 / 0.97);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		box-shadow: 0 1px 0 var(--line), 0 24px 48px -12px rgb(0 0 0 / 0.6);
		opacity: 0; translate: 0 -8px; visibility: hidden;
		transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0s linear 0.2s;
	}
	.nav.is-open { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 14px 4px; border-radius: 0; font-size: 1.125rem; box-shadow: 0 1px 0 var(--line); }
	.nav__list a:hover { background: none; }
	.nav__cta { margin: 8px 0 0; --btn-h: 52px; font-size: 1rem; }
	body.nav-open { overflow: hidden; }
	.site-header:has(.nav.is-open) { background: rgb(7 10 20 / 0.97); }
}
@media (max-width: 420px) {
	.brand__tag { display: none; }
}

/* ---------- Секции ---------- */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section__head--row > div { max-width: 720px; }
.section__title { font-size: var(--fs-h2); }
.section__title--sm { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-bottom: 28px; }
.section__lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--text-2); max-width: 64ch; }

/* ---------- Герой ---------- */
.hero {
	position: relative;
	margin-top: calc(-1 * var(--header-h));
	padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px));
	padding-bottom: clamp(48px, 7vw, 96px);
	overflow: clip;
}
.hero__glow,
.page-hero__glow {
	position: absolute; inset: -20% -10% auto; height: 120%;
	pointer-events: none; z-index: -1;
	background:
		radial-gradient(40% 50% at 78% 38%, rgb(74 92 255 / 0.28), transparent 70%),
		radial-gradient(30% 40% at 92% 70%, rgb(139 61 255 / 0.22), transparent 70%),
		radial-gradient(35% 45% at 12% 8%, rgb(33 180 255 / 0.14), transparent 70%);
}
.hero::before {
	/* сетка-подложка */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__title { font-size: var(--fs-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.hero__lead { margin-top: 24px; max-width: 58ch; font-size: var(--fs-lead); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Пазл «успешный проект» в первом экране ---------- */
.puzzle { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.puzzle__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.puzzle__board { position: relative; aspect-ratio: 480 / 540; border-radius: 4.58% / 4.07%; transition: box-shadow 0.8s var(--ease-out); }
.puzzle__board::before {
	/* свечение под пазлом */
	content: ""; position: absolute; inset: 12% 6% -4%; z-index: -1;
	background: var(--grad); filter: blur(70px); opacity: 0.35; border-radius: 50%;
	transition: opacity 0.8s var(--ease-out);
}

.puzzle__piece {
	position: absolute; left: 0; width: 100%;
	margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit;
	perspective: 1600px;
	transition: translate 0.7s var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
button.puzzle__piece { cursor: pointer; }
/* Пока пазл не собран — куски чуть разъехались */
/* Сдвиг на целые пиксели, без поворота: поворот и дробные сдвиги размывают текст и линии картинки */
.puzzle:not(.is-complete) .puzzle__piece--1 { translate: -6px -10px; }
.puzzle:not(.is-complete) .puzzle__piece--2 { translate: 8px 0; }
.puzzle:not(.is-complete) .puzzle__piece--3 { translate: -4px 10px; }

.puzzle__card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.3, 1.25, 0.4, 1); }
.puzzle__piece.is-open .puzzle__card { transform: rotateX(180deg); }
.puzzle__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.puzzle__face--open { transform: rotateX(180deg); }
.puzzle__face svg { display: block; width: 100%; height: 100%; }
/* После переворота — плоское состояние без 3D: браузер рисует слой в полном разрешении, текст резкий */
.puzzle__piece.is-settled .puzzle__card { transform: none; transition: none; }
.puzzle__piece.is-settled .puzzle__face--closed { display: none; }
.puzzle__piece.is-settled .puzzle__face--open { transform: none; }
.puzzle__glass { fill: url(#pz-closed); stroke: rgb(255 255 255 / 0.2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 0.2s var(--ease); }
.puzzle__edge { fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
button.puzzle__piece:hover .puzzle__glass { stroke: rgb(74 92 255 / 0.9); }
button.puzzle__piece:focus-visible { outline: none; }
button.puzzle__piece:focus-visible .puzzle__glass { stroke: var(--blue); stroke-width: 3; }

.puzzle__label {
	position: absolute; left: 0; right: 0; top: var(--cy); translate: 0 -50%;
	display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none;
}
.puzzle__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem); line-height: 1.05; letter-spacing: -0.02em; }
.puzzle__cap { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.puzzle__tap {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
	font-size: var(--fs-xs); font-weight: 700; color: var(--blue);
	animation: pz-pulse 2.2s ease-in-out infinite;
}
.puzzle__tap .icon { width: 15px; height: 15px; }
@keyframes pz-pulse { 50% { opacity: 0.45; } }

/* Выносные таблички — появляются, когда кусок открыт */
.puzzle__chip {
	position: absolute; z-index: 3;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: 999px;
	background: rgb(14 20 39 / 0.78);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
	font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap;
	opacity: 0; scale: 0.6; filter: blur(4px);
	transition-property: opacity, scale, filter; transition-duration: 0.35s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
	transition-delay: 0.45s;
	pointer-events: none;
}
.puzzle__chip.is-visible { opacity: 1; scale: 1; filter: blur(0); }
.puzzle__chip strong { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.puzzle__chip .icon { color: var(--blue); width: 18px; height: 18px; }
/* Таблички на рамке пазла — не закрывают главное на картинке */
.puzzle__chip--1 { top: -6.5%; left: -7%; }
.puzzle__chip--2 { top: 29.5%; right: -7%; }
.puzzle__chip--3 { bottom: -3.4%; left: -7%; }

.puzzle__footer { margin-top: 22px; min-height: 64px; display: grid; justify-items: center; text-align: center; }
.puzzle__hint { font-size: var(--fs-sm); color: var(--text-3); }
.puzzle__done { display: grid; justify-items: center; gap: 12px; animation: pz-in 0.6s var(--ease-out) both; }
.puzzle__done[hidden] { display: none; }
.puzzle__done-title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
@keyframes pz-in { from { opacity: 0; translate: 0 10px; } }

/* Собрано: куски сомкнулись, по картинке пробегает блик */
.puzzle.is-complete .puzzle__board { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 90px -30px rgb(74 92 255 / 0.8); }
.puzzle.is-complete .puzzle__board::before { opacity: 0.6; }
.puzzle.is-complete .puzzle__board::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
	background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%;
	animation: pz-shine 1.4s 0.5s var(--ease-out) both;
}
@keyframes pz-shine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.puzzle.is-complete .puzzle__edge { stroke: rgb(255 255 255 / 0.08); transition: stroke 0.6s var(--ease); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { order: 1; margin-top: 8px; }
	.puzzle { max-width: 380px; }
	.puzzle__chip { font-size: var(--fs-xs); padding: 8px 12px; }
	.puzzle__chip--1 { left: -3%; }
	.puzzle__chip--2 { right: -3%; }
	.puzzle__chip--3 { left: -3%; }
}
@media (max-width: 480px) {
	.hero__actions .btn { width: 100%; }
}

/* ---------- Цифры ---------- */
.stats { padding-bottom: clamp(24px, 4vw, 48px); }
.stats__grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.stat { padding: clamp(20px, 3vw, 32px); }
.stat + .stat { box-shadow: -1px 0 0 var(--line); }
.stat__value {
	font-family: var(--font-display); font-weight: 600;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}
.stat__label { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.45; }
@media (max-width: 800px) {
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
	.stat:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
}

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
	position: relative;
	display: flex; flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
	transition: box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}
.service-card:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg); }
.service-card__icon {
	display: grid; place-items: center;
	width: 56px; height: 56px; border-radius: 16px;
	background: var(--grad); color: #fff;
	box-shadow: 0 10px 24px -8px rgb(74 92 255 / 0.7);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__title { margin-top: 24px; font-size: var(--fs-h3); line-height: 1.25; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card__text { margin-top: 14px; color: var(--text-2); font-size: var(--fs-sm); }
.service-card .ticks { margin-top: 20px; }
.service-card__price {
	margin-top: auto; padding-top: 24px;
	font-weight: 700; font-size: var(--fs-sm);
}
.service-card__price span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.service-card__link {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 18px; font-weight: 700; font-size: var(--fs-sm); color: var(--blue);
}
.service-card__link .icon { width: 18px; transition: translate 0.2s var(--ease); }
.service-card:hover .service-card__link .icon { translate: 4px 0; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

/* ---------- Окно браузера (скриншот) ---------- */
.browser {
	border-radius: 14px;
	overflow: hidden;
	background: var(--surface);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), var(--shadow-lg);
}
.browser__bar {
	position: relative;
	display: flex; align-items: center; gap: 6px;
	height: 30px; padding: 0 12px;
	background: #151c33;
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4262; }
.browser__bar i:nth-child(1) { background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
	position: absolute; left: 50%; translate: -50% 0;
	max-width: 60%; padding: 2px 12px; border-radius: 6px;
	background: rgb(255 255 255 / 0.06);
	font-size: 11px; color: var(--text-3);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; outline: 1px solid rgb(255 255 255 / 0.1); outline-offset: -1px; }

/* ---------- Хаотичная раскладка портфолио ---------- */
.section--portfolio { overflow: clip; }
.scatter {
	position: relative;
	container-type: inline-size;
	width: min(100% - 2 * var(--gutter), 1360px);
	margin-inline: auto;
}
.scatter__hint {
	position: absolute; right: 0; top: -40px;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: var(--fs-xs); color: var(--text-3);
}
.scatter__hint .icon { width: 16px; height: 16px; }
.scatter__list { position: relative; height: calc(var(--h) * 1cqw); }
.scatter__item {
	position: absolute;
	left: calc(var(--x) * 1%);
	top: calc(var(--y) * 1cqw);
	width: calc(var(--w) * 1%);
	rotate: var(--r);
	z-index: 1;
	transition: rotate 0.45s var(--ease-out), scale 0.45s var(--ease-out);
}
/* Жесты у карточек блокируем только там, где их можно перетаскивать мышью,
   иначе на телефоне страница не листается свайпом по карточке */
@media (min-width: 761px) and (pointer: fine) {
	.scatter__item { touch-action: none; }
}
.scatter__item:hover,
.scatter__item:focus-within { rotate: 0deg; scale: 1.04; z-index: 5; }
.scatter__item.is-dragging { transition: none; z-index: 10; scale: 1.06; rotate: 0deg; cursor: grabbing; }
.scatter__item.is-top { z-index: 6; }

.shot { display: block; cursor: pointer; user-select: none; -webkit-user-select: none; }
.shot .browser { position: relative; transition: box-shadow 0.45s var(--ease-out); }
.shot:hover .browser,
.shot:focus-visible .browser { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16), 0 30px 80px -20px var(--c, var(--indigo)), var(--shadow-lg); }
.shot__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 4px 0; }
.shot__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem); letter-spacing: -0.01em; }
.shot__kind { font-size: var(--fs-xs); color: var(--text-3); text-align: right; }

.shot--cta {
	display: grid; place-items: center; align-content: center; gap: 10px;
	aspect-ratio: 16 / 11;
	padding: 24px;
	border-radius: 14px;
	text-align: center;
	background: repeating-linear-gradient(135deg, rgb(255 255 255 / 0.02) 0 12px, transparent 12px 24px), var(--surface);
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.14);
	transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.shot--cta:hover { box-shadow: inset 0 0 0 1.5px var(--indigo), 0 30px 60px -20px rgb(74 92 255 / 0.6); }
.shot--cta__plus {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--grad); color: #fff; font-size: 28px; line-height: 1; font-weight: 300;
}
.shot--cta .shot__kind { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: var(--fs-sm); }
.shot--cta .shot__kind .icon { width: 16px; }

@media (max-width: 760px) {
	.scatter__hint { display: none; }
	.scatter__list { height: auto; display: grid; gap: 36px; }
	.scatter__item { position: relative; left: auto; top: auto; width: 100%; rotate: calc(var(--r) * 0.4); }
	.scatter__item:nth-child(even) { margin-left: 6%; width: 94%; }
	.scatter__item:nth-child(odd) { width: 94%; }
	.scatter__item:hover { scale: 1; }
}

/* Список проектов под коллажем */
.project-list { display: grid; }
.project-list a {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr) 24px; align-items: center; gap: 24px;
	padding: 22px 4px;
	box-shadow: 0 1px 0 var(--line);
	transition: background-color 0.15s var(--ease), padding 0.25s var(--ease);
}
.project-list li:first-child a { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.project-list a:hover { background: rgb(255 255 255 / 0.03); padding-inline: 16px; }
.project-list__title { font-family: var(--font-display); font-weight: 600; }
.project-list__kind, .project-list__works { color: var(--text-3); font-size: var(--fs-sm); }
.project-list .icon { color: var(--blue); }
@media (max-width: 760px) {
	.project-list a { grid-template-columns: 1fr 24px; gap: 4px 16px; }
	.project-list__kind, .project-list__works { grid-column: 1; }
	.project-list .icon { grid-row: 1 / span 3; grid-column: 2; }
}

/* ---------- Принципы ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.principle { padding: clamp(24px, 3vw, 36px); background: var(--bg); transition: background-color 0.3s var(--ease); }
.principle:hover { background: var(--bg-2); }
.principle__icon {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	background: var(--grad-soft); color: var(--blue);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.principle__title { margin-top: 20px; font-size: 1.125rem; line-height: 1.3; }
.principle__text { margin-top: 10px; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Таймлайн ---------- */
.section--timeline { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.timeline {
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px;
}
.timeline__item { position: relative; padding-top: 40px; }
.timeline__item::before {
	content: ""; position: absolute; left: 0; top: 0; z-index: 1;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--bg-2); box-shadow: inset 0 0 0 3px var(--indigo);
}
.timeline__item::after {
	content: ""; position: absolute; left: 16px; top: 7px; height: 2px;
	width: calc(100% + 20px - 16px);
	background: linear-gradient(90deg, rgb(33 180 255 / 0.7), rgb(139 61 255 / 0.7));
}
.timeline__item:last-child::after { width: calc(100% - 16px); background: linear-gradient(90deg, rgb(139 61 255 / 0.7), transparent); }
.timeline__item:last-child::before { background: var(--grad); box-shadow: 0 0 0 6px rgb(139 61 255 / 0.2); }
.timeline__year { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timeline__title { margin-top: 8px; font-family: var(--font-text); font-weight: 700; font-size: 1rem; letter-spacing: 0; line-height: 1.35; }
.timeline__text { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
@media (max-width: 1000px) {
	.timeline { grid-template-columns: 1fr; gap: 28px; }
	.timeline__item { padding: 0 0 0 36px; }
	.timeline__item::before { top: 6px; }
	.timeline__item::after { left: 7px; top: 22px; width: 2px; height: calc(100% + 28px - 16px); background: linear-gradient(180deg, rgb(33 180 255 / 0.7), rgb(139 61 255 / 0.7)); }
	.timeline__item:last-child::after { display: none; }
}

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
	position: relative; padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.step__num { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; }
.step:nth-child(1) .step__num { color: var(--blue); }
.step:nth-child(2) .step__num { color: #3b86ff; }
.step:nth-child(3) .step__num { color: var(--indigo); }
.step:nth-child(4) .step__num { color: var(--violet); }
.step__title { margin-top: 18px; font-size: 1.125rem; }
.step__text { margin-top: 10px; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Цены ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
	display: flex; flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.price-card--accent {
	position: relative;
	background: linear-gradient(160deg, rgb(33 180 255 / 0.14), rgb(139 61 255 / 0.2)), var(--surface-2);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 30px 60px -24px rgb(74 92 255 / 0.55);
}
.price-card__name { font-weight: 700; color: var(--text-2); font-size: var(--fs-sm); letter-spacing: 0.02em; }
.price-card__value { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.price-card__note { margin-top: 12px; margin-bottom: 28px; color: var(--text-2); font-size: var(--fs-sm); }
.price-card .btn { margin-top: auto; }
.price-card--hero { align-self: center; }
.price-card--hero .price-card__note { margin-bottom: 0; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.about__photo {
	position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
	background: radial-gradient(70% 60% at 50% 25%, rgb(74 92 255 / 0.35), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg-2));
	box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
}
.about__photo::after { content: ""; position: absolute; inset: auto -20% -30%; height: 60%; background: var(--grad); filter: blur(70px); opacity: 0.4; }
.about__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__text > p:not(.kicker) { margin-top: 18px; color: var(--text-2); }
.about__facts { display: grid; gap: 10px; margin: 28px 0 32px; }
.about__facts li { display: flex; gap: 12px; align-items: flex-start; }
.about__facts .icon { color: var(--success); margin-top: 3px; }
@media (max-width: 860px) {
	.about { grid-template-columns: 1fr; }
	.about__photo { max-width: 380px; }
}

/* ---------- Блог: карточки ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	overflow: hidden;
	transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.5s var(--ease-out); }
.post-card:hover .post-card__media img { scale: 1.04; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--text-3); background: var(--grad-soft); }
.post-card__placeholder .icon { width: 40px; height: 40px; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.post-card__title { font-size: 1.125rem; line-height: 1.3; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item {
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq__item[open] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 24px;
	font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
	cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.faq__icon::before, .faq__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
	background: currentColor; translate: -50% -50%;
	transition: rotate 0.25s var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon::after { rotate: 0deg; }
.faq__answer { padding: 0 24px 24px; color: var(--text-2); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* ---------- CTA ---------- */
.cta { padding-bottom: var(--section); }
.cta__box {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
	border-radius: 36px;
	text-align: center;
	background: linear-gradient(135deg, #0f1a45 0%, #1b1760 55%, #2a0f5c 100%);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--shadow-lg);
}
.cta__glow {
	position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
	background: radial-gradient(40% 50% at 20% 30%, rgb(33 180 255 / 0.45), transparent 70%), radial-gradient(40% 50% at 85% 60%, rgb(139 61 255 / 0.5), transparent 70%);
}
.cta__title { font-size: var(--fs-h2); }
.cta__text { max-width: 56ch; margin: 18px auto 0; font-size: var(--fs-lead); color: rgb(255 255 255 / 0.78); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.cta__mail { margin-top: 24px; color: rgb(255 255 255 / 0.7); font-size: var(--fs-sm); }
.cta__mail a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 4px; }
.cta__mail a:hover { text-decoration-color: #fff; }
@media (max-width: 480px) { .cta__actions .btn { width: 100%; } }

/* ---------- Подвал ---------- */
.site-footer { padding: 64px 0 32px; background: var(--bg-2); box-shadow: 0 -1px 0 var(--line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__text { margin-top: 20px; max-width: 38ch; color: var(--text-3); font-size: var(--fs-sm); }
.site-footer__title { margin-bottom: 16px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__nav a { color: var(--text-2); font-size: var(--fs-sm); transition: color 0.15s var(--ease); }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__contacts .btn { margin-top: 20px; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.contact-link .icon { color: var(--blue); width: 18px; height: 18px; }
.contact-link:hover { color: var(--blue); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	margin-top: 56px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line);
	font-size: var(--fs-xs); color: var(--text-3);
}
.site-footer__bottom a:hover { color: var(--text); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Баннер cookie ---------- */
.cookie-banner {
	position: fixed; left: 24px; bottom: 24px; z-index: 60;
	width: min(440px, calc(100vw - 32px));
	padding: 20px 22px;
	border-radius: var(--radius);
	background: rgb(14 20 39 / 0.94);
	backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
	opacity: 0; translate: 0 12px;
	transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; translate: 0 0; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.cookie-banner__text a { color: var(--text); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.35); text-underline-offset: 3px; }
.cookie-banner__text a:hover { text-decoration-color: var(--text); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 560px) {
	.cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 16px; }
	.cookie-banner__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero {
	position: relative; overflow: clip;
	margin-top: calc(-1 * var(--header-h));
	padding: calc(var(--header-h) + clamp(24px, 4vw, 48px)) 0 clamp(40px, 5vw, 64px);
}
.page-hero__glow { opacity: 0.8; }
.page-hero__title { font-size: var(--fs-h1); max-width: 22ch; }
.page-hero__title--article { max-width: none; }
.page-hero__lead { margin-top: 20px; max-width: 64ch; font-size: var(--fs-lead); color: var(--text-2); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: 32px; } }

.crumbs { margin-bottom: 28px; font-size: var(--fs-xs); color: var(--text-3); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.crumbs a { transition: color 0.15s var(--ease); }
.crumbs a:hover { color: var(--text); }

.page-body { padding-bottom: var(--section); }

/* ---------- Страницы с боковой колонкой (услуги, «Обо мне», длинные тексты) ---------- */
.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
	grid-template-areas: "main aside";
	justify-content: space-between;
	column-gap: 48px;
	align-items: start;
	padding-bottom: var(--section);
}
.page-layout__main { grid-area: main; min-width: 0; }
.page-layout__aside { grid-area: aside; align-self: stretch; }
.page-layout__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-conv, .aside-nav { display: grid; gap: 16px; }
/* Оглавление прокручивается само; резерв под соседние карточки колонки */
.page-layout .toc__list {
	max-height: max(150px, calc(100vh - var(--header-h) - var(--aside-reserve, 140px)));
	overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
	margin-right: -10px; padding-right: 10px;
}
.page-layout--service { --aside-reserve: 600px; }

.aside-price { padding: 24px; }
.aside-price__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.aside-price__value { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.aside-price__note { margin: 10px 0 18px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }

.page-layout ul.aside-facts { list-style: none; padding: 18px 20px; margin: 0; display: grid; gap: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.aside-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-2); }
.aside-facts .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.aside-facts b { color: var(--text); font-weight: 700; }

.about-card { padding: 22px; }
.about-card__photo {
	aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
	background: radial-gradient(70% 60% at 50% 30%, rgb(74 92 255 / 0.4), transparent 70%), linear-gradient(180deg, var(--surface-3), var(--bg-2));
}
.about-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about-card__name { margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.about-card__role { margin-top: 2px; font-size: var(--fs-sm); color: var(--text-3); }
.about-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.about-card__stats div { padding: 10px 8px; border-radius: var(--radius-xs); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.about-card__stats dt { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.about-card__stats dd { margin: 2px 0 0; font-size: 0.6875rem; line-height: 1.3; color: var(--text-3); }
.about-card__req { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 16px 0 18px; font-size: var(--fs-xs); }
.about-card__req dt { color: var(--text-3); font-weight: 700; }
.about-card__req dd { margin: 0; color: var(--text-2); font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) {
	.page-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "main" "conv"; }
	.page-layout__aside, .page-layout__sticky { display: contents; }
	.page-layout .aside-nav { grid-area: nav; margin-bottom: 28px; max-width: 760px; }
	.page-layout .aside-conv { grid-area: conv; margin-top: 48px; max-width: 760px; }
	.page-layout .toc__list { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
	.page-layout--service .aside-conv { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
	.about-card { display: grid; grid-template-columns: 160px 1fr; column-gap: 20px; align-items: start; }
	.about-card__photo { grid-row: span 5; }
	.about-card__name { margin-top: 0; }
}
@media (max-width: 560px) {
	.about-card { grid-template-columns: 1fr; }
	.about-card__photo { grid-row: auto; max-width: 220px; }
	.about-card__name { margin-top: 16px; }
}

/* ---------- Контент из редактора ---------- */
.prose { max-width: 760px; color: var(--text-2); }
.prose--wide { max-width: 880px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); color: var(--text); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; color: var(--text); }
.prose h4 { margin-top: 1.6em; font-family: var(--font-text); font-size: 1.0625rem; font-weight: 800; letter-spacing: 0; color: var(--text); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose h2 + h3 { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-color: rgb(33 180 255 / 0.4);
	text-decoration-thickness: from-font;
	text-underline-offset: 3px;
	text-decoration-skip-ink: auto;
	transition: text-decoration-color 0.15s var(--ease);
	overflow-wrap: break-word;
}
.prose a:hover { text-decoration-color: var(--blue); }
.prose ul:not([class]), .prose ol:not([class]), .prose .wp-block-list { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose ul:not([class]) li::marker, .prose ul.wp-block-list li::marker { color: var(--indigo); }
.prose ol li::marker { color: var(--text-3); font-weight: 700; }
.prose blockquote, .prose .wp-block-quote {
	padding: 20px 24px; border-radius: var(--radius-sm);
	background: var(--surface); box-shadow: inset 3px 0 0 var(--indigo);
	color: var(--text); font-size: 1.125rem;
}
.prose blockquote cite { display: block; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-3); font-style: normal; }
.prose img { border-radius: var(--radius-sm); outline: 1px solid rgb(255 255 255 / 0.1); outline-offset: -1px; }
.prose figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin-block: 2.5em; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: 0.9em; color: var(--text); }
.prose pre { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); overflow-x: auto; font-size: var(--fs-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; box-shadow: 0 1px 0 var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; }
.prose thead th { box-shadow: 0 1px 0 var(--line-2); }
/* Рамки блока «Таблица» из стилей WordPress — убираем, разделители даёт box-shadow */
.prose .wp-block-table table, .prose .wp-block-table th, .prose .wp-block-table td, .prose .wp-block-table thead { border: 0; }
.prose th { white-space: nowrap; }
.prose .lead, .prose .is-style-lead { font-size: var(--fs-lead); color: var(--text); }

/* Карточки внутри контента: группа с классом card */
.prose .card, .prose .wp-block-group.card {
	padding: 24px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.prose .card > :first-child { margin-top: 0; }
.prose .card h3 { margin-top: 0; font-size: 1.125rem; }
.prose .card > * + * { margin-top: 0.6em; }
.prose .wp-block-columns { gap: 20px; margin-block: 1.6em; }
.prose .wp-block-columns .wp-block-column > .card { height: 100%; }

/* FAQ из блоков «Подробности» */
.prose .wp-block-details {
	margin-top: 12px; padding: 0;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.prose h2 + .wp-block-details { margin-top: 1em; }
.prose .wp-block-details summary {
	position: relative; padding: 20px 60px 20px 24px;
	font-weight: 700; color: var(--text); cursor: pointer; list-style: none;
}
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after {
	content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 400; font-size: 18px;
}
.prose .wp-block-details[open] summary::after { content: "−"; }
.prose .wp-block-details > :not(summary) { padding: 0 24px; }
.prose .wp-block-details > :last-child { padding-bottom: 22px; }

/* Цифры в тексте кейса */
.prose .metrics:not(:has(> .wp-block-group__inner-container)),
.prose .metrics > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.prose .metrics > .wp-block-group__inner-container > * { margin: 0; }
.prose .metrics p { margin: 0; padding: 20px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); }
.prose .metrics strong { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }

/* ---------- Кейс ---------- */
.project .page-hero__glow {
	background:
		radial-gradient(40% 50% at 80% 30%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%),
		radial-gradient(30% 40% at 10% 10%, rgb(74 92 255 / 0.18), transparent 70%);
}
.project__facts { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 36px; }
.project__facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.project__facts dd { margin-top: 8px; font-weight: 600; }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project__site { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.project__site .icon { width: 16px; }
.project__site:hover { text-decoration: underline; text-underline-offset: 4px; }

.project__showcase { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0; margin-bottom: clamp(48px, 7vw, 96px); }
.project__desktop { grid-column: 1 / -1; grid-row: 1; margin-right: clamp(0px, 10vw, 140px); }
.project__desktop .browser { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 120px -30px color-mix(in srgb, var(--c) 60%, transparent), var(--shadow-lg); }
.project__mobile { grid-column: 2; grid-row: 1; translate: 0 12%; z-index: 2; }
.phone {
	width: clamp(140px, 18vw, 250px);
	padding: 10px;
	border-radius: 36px;
	background: #0b0f1d;
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.16), var(--shadow-lg);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 27px; }
@media (max-width: 700px) {
	.project__desktop { margin-right: 22%; }
	.phone { width: 34vw; padding: 6px; border-radius: 22px; }
	.phone img { border-radius: 17px; }
}

.project__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.project__aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .project__body { grid-template-columns: 1fr; } .project__aside { position: static; } }

.aside-card {
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.aside-card + .aside-card { margin-top: 16px; }
.aside-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.aside-card__text { margin: 10px 0 20px; color: var(--text-2); font-size: var(--fs-sm); }

.project__gallery { margin-top: clamp(56px, 8vw, 104px); }
.gallery { display: grid; gap: 32px; }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), var(--shadow); }
.gallery__item img { width: 100%; transition: scale 0.5s var(--ease-out); }
.gallery__item a:hover img { scale: 1.02; }
.gallery__item figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-3); }
/* Скриншот во всю длину — в окне с прокруткой */
.gallery__item--tall { grid-column: 1 / -1; }
.gallery__item--tall a { max-height: 720px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.gallery__item--tall a:hover img { scale: 1; }
.gallery__toggle { display: none; }
/* Мобильный: без вложенной прокрутки — превью с затуханием и раскрытие на всю длину */
@media (max-width: 760px) {
	.gallery__item--tall a { position: relative; max-height: 60vh; overflow: hidden; overscroll-behavior: auto; }
	.gallery__item--tall a::after {
		content: ""; position: absolute; inset: auto 0 0; height: 45%;
		background: linear-gradient(180deg, transparent, var(--bg));
		pointer-events: none;
		transition: opacity 0.2s var(--ease);
	}
	.gallery__item--tall.is-expanded a { max-height: none; }
	.gallery__item--tall.is-expanded a::after { opacity: 0; }
	.gallery__toggle { display: flex; margin: -24px auto 0; position: relative; z-index: 1; background: var(--surface-2); }
	.gallery__item--tall.is-expanded .gallery__toggle { margin-top: 16px; }
}

.project__next { margin-top: clamp(56px, 8vw, 104px); margin-bottom: var(--section); }
.next-card {
	position: relative; display: grid; gap: 6px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--radius-lg);
	background: var(--grad-soft), var(--surface);
	box-shadow: inset 0 0 0 1px var(--line-2);
	transition: box-shadow 0.3s var(--ease);
}
.next-card:hover { box-shadow: inset 0 0 0 1px var(--indigo), 0 30px 60px -24px rgb(74 92 255 / 0.5); }
.next-card__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.next-card__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); letter-spacing: -0.02em; line-height: 1.15; }
.next-card__kind { color: var(--text-2); }
.next-card__icon { position: absolute; right: clamp(24px, 4vw, 48px); top: 50%; translate: 0 -50%; width: 40px; height: 40px; color: var(--blue); transition: translate 0.3s var(--ease); }
.next-card:hover .next-card__icon { translate: 6px -50%; }

/* ---------- Статья: контент слева, боковая колонка справа ---------- */
.page-hero__title--article { max-width: 24ch; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 20px; font-size: var(--fs-sm); color: var(--text-3); }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { width: 16px; }

.article__layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
	grid-template-areas: "main aside";
	justify-content: space-between;
	column-gap: 48px;
	align-items: start;
}
.article__main { grid-area: main; min-width: 0; }
.article__aside { grid-area: aside; align-self: stretch; }
.article__aside .article__cats { margin-bottom: 16px; }
.article__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
/* Длинное оглавление прокручивается само — карточка брифа всегда на экране */
.article__sticky .toc__list {
	max-height: max(160px, calc(100vh - var(--header-h) - 380px));
	overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
	margin-right: -10px; padding-right: 10px;
}
.article__cover { margin-bottom: clamp(36px, 4vw, 56px); }
.article__cover img { width: 100%; border-radius: var(--radius-lg); outline: 1px solid rgb(255 255 255 / 0.1); outline-offset: -1px; }
.article .prose { font-size: 1.125rem; line-height: 1.7; }

/* Содержание */
.toc, .article__cats {
	padding: 20px 22px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.toc__title {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
	list-style: none;
}
.toc summary { cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc__chevron { display: none; width: 16px; height: 16px; transition: rotate 0.2s var(--ease); }
.toc__list { list-style: none; padding: 0; margin: 12px 0 0 -12px; display: grid; gap: 2px; counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a {
	position: relative;
	display: grid; grid-template-columns: 26px 1fr; gap: 6px;
	padding: 7px 8px 7px 12px;
	border-radius: 8px;
	font-size: 0.90625rem; line-height: 1.4; color: var(--text-2);
	transition: color 0.15s var(--ease);
}
.toc__list a::before {
	content: counter(toc, decimal-leading-zero);
	font-size: 0.75rem; font-weight: 700; line-height: 1.9; color: var(--text-3);
	font-variant-numeric: tabular-nums;
	transition: color 0.15s var(--ease);
}
.toc__list a:hover { color: var(--text); }
.toc__list a.is-active { color: var(--text); background: rgb(255 255 255 / 0.04); }
.toc__list a.is-active::before { color: var(--blue); }
.toc__list a.is-active::after {
	content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad);
}

.aside-card--accent {
	background: linear-gradient(160deg, rgb(33 180 255 / 0.14), rgb(139 61 255 / 0.2)), var(--surface-2);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.article__cta { padding: 22px; }
.article__cta .aside-card__title { font-size: 1.0625rem; line-height: 1.3; }
.article__cta .aside-card__text { margin: 8px 0 16px; }

.article__cats ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article__cats .chip { display: inline-flex; gap: 6px; padding: 6px 12px; font-size: var(--fs-xs); }
.article__cats .chip span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.article__cats .chip.is-current { color: var(--text); box-shadow: inset 0 0 0 1px var(--indigo); }

@media (max-width: 1180px) {
	.article__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "main"; }
	.article__main { max-width: 760px; }
	.article__aside { align-self: auto; margin-bottom: 28px; max-width: 760px; }
	.article__sticky { position: static; }
	.article__sticky .toc__list { max-height: none; overflow: visible; margin-right: 0; padding-right: 0; }
	.article__cta, .article__cats { display: none; }
	.toc summary { cursor: pointer; }
	.toc__chevron { display: block; }
	.toc[open] .toc__chevron { rotate: 90deg; }
	.toc__list a.is-active::after { display: none; }
}

.author {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start;
	margin: clamp(48px, 6vw, 72px) 0 var(--section);
	padding: 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--grad); }
.author__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.author__name { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.author__name a:hover { color: var(--blue); }
.author__text { margin: 10px 0 18px; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 520px) { .author { grid-template-columns: 1fr; } }

/* ---------- Пагинация, поиск, пусто ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 999px; font-weight: 700; font-size: var(--fs-sm);
	box-shadow: inset 0 0 0 1px var(--line-2);
	font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { background: var(--grad); box-shadow: none; color: #fff; }
.pagination a.page-numbers:hover { background: rgb(255 255 255 / 0.06); }

.search-form { position: relative; display: flex; max-width: 480px; margin-top: 32px; }
.search-form__input {
	width: 100%; height: 52px; padding: 0 56px 0 20px;
	border: 0; border-radius: 999px;
	background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
	font-size: 16px;
}
.search-form__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--indigo); }
.search-form__btn { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.search-form__btn:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.empty { padding: 48px 0; color: var(--text-2); }
.big-404 { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 1; letter-spacing: -0.05em; margin-bottom: 12px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: var(--section); }
.contact-big {
	display: flex; align-items: center; gap: 20px;
	padding: 24px 28px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow 0.2s var(--ease);
}
.contact-big + .contact-big { margin-top: 12px; }
.contact-big:hover { box-shadow: inset 0 0 0 1px var(--indigo); }
.contact-big__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; flex: none; }
.contact-big__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.contact-big__value { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contacts__briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.brief-link {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
	padding: 20px 22px;
	border-radius: var(--radius);
	background: var(--grad-soft), var(--surface);
	box-shadow: inset 0 0 0 1px var(--line-2);
	transition: box-shadow 0.2s var(--ease);
}
.brief-link:hover { box-shadow: inset 0 0 0 1px var(--indigo); }
.brief-link > .icon:first-child { color: var(--blue); width: 28px; height: 28px; }
.brief-link strong { display: block; font-size: var(--fs-sm); }
.brief-link em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--text-3); }
.contacts .prose { margin-top: 40px; }
.requisites dl { display: grid; gap: 4px; margin-top: 18px; }
.requisites dt { margin-top: 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.requisites dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contacts__briefs { grid-template-columns: 1fr; } }

/* ---------- Бриф ---------- */
.brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: var(--section); }
.brief-aside { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .brief-layout { grid-template-columns: 1fr; } .brief-aside { position: static; } }

.brief-panel {
	padding: clamp(20px, 4vw, 44px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.brief-panel__lead { margin: 24px 0 8px; color: var(--text-2); }

.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.tabs__tab {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 16px; border-radius: 999px;
	font-weight: 700; font-size: var(--fs-sm); color: var(--text-2);
	transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
	text-align: center;
}
.tabs__tab .icon { width: 18px; height: 18px; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgb(74 92 255 / 0.7); }
@media (max-width: 420px) { .tabs__tab .icon { display: none; } .tabs__tab { font-size: var(--fs-xs); } }

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

.brief__progress { display: flex; gap: 8px; margin: 24px 0 8px; counter-reset: none; }
.brief__progress li { flex: 1; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); }
.brief__progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background-color 0.3s var(--ease); }
.brief__progress li.is-done::before, .brief__progress li.is-current::before { background: var(--grad); }
.brief__progress li.is-current { color: var(--text); font-weight: 700; }
.brief__progress span { display: none; }
.brief__progress em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .brief__progress em { display: none; } }
.brief:not(.is-js) .brief__progress { display: none; }

.brief__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.brief__step + .brief__step { margin-top: 40px; }
.brief.is-js .brief__step { display: none; margin-top: 0; }
.brief.is-js .brief__step.is-active { display: block; animation: step-in 0.35s var(--ease-out); }
@keyframes step-in { from { opacity: 0; translate: 12px 0; } }
.brief__legend { display: block; padding: 24px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.brief__count { display: block; margin-bottom: 6px; font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.brief__intro { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--grad-soft); font-size: var(--fs-sm); color: var(--text-2); }

.field { margin-top: 24px; }
.field[hidden] { display: none; }
.field__label { display: block; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.field__req { color: var(--blue); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--bg-2);
	box-shadow: inset 0 0 0 1px var(--line-2);
	font-size: 16px; line-height: 1.5;
	transition: box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24); }
.field input:focus, .field textarea:focus { outline: none; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--indigo); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field__error { margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }

.choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; }
.choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.choices--cards .choices__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .choices--cards .choices__list { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
	display: flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 10px 16px;
	border-radius: 999px;
	background: var(--bg-2);
	box-shadow: inset 0 0 0 1px var(--line-2);
	font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
	transition: box-shadow 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
	user-select: none;
}
.choices--cards .choice span { min-height: 60px; padding: 14px 18px; border-radius: var(--radius-sm); line-height: 1.35; }
.choices--cards .choice span::before {
	content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--line-2);
	transition: box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.field--checkbox .choices--cards .choice span::before { border-radius: 6px; }
.choice:hover span { color: var(--text); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.26); }
.choice input:checked + span { color: #fff; background: linear-gradient(115deg, rgb(33 180 255 / 0.2), rgb(139 61 255 / 0.24)); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.choices--cards .choice input:checked + span::before { background: var(--indigo); box-shadow: inset 0 0 0 5px var(--bg-2), 0 0 0 1.5px var(--indigo); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field.is-invalid .choice span { box-shadow: inset 0 0 0 1px var(--danger); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--indigo); cursor: pointer; }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.brief__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; box-shadow: 0 -1px 0 var(--line); }
.brief__nav [data-next], .brief__nav [type="submit"] { margin-left: auto; }
.brief:not(.is-js) .brief__nav [data-prev], .brief:not(.is-js) .brief__nav [data-next] { display: none; }
.brief__error { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgb(255 107 129 / 0.12); color: #ffc1cb; font-size: var(--fs-sm); }
.brief.is-sending [type="submit"] { opacity: 0.7; pointer-events: none; }
.notice { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.notice--error { background: rgb(255 107 129 / 0.12); color: #ffc1cb; }

.brief-done { padding: 40px 8px; text-align: center; }
.brief-done[hidden] { display: none; }
.brief-done__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -12px rgb(74 92 255 / 0.8); }
.brief-done__icon .icon { width: 34px; height: 34px; }
.brief-done h2 { font-size: var(--fs-h2); }
.brief-done p { margin: 14px auto 28px; max-width: 44ch; color: var(--text-2); }

.mini-steps { list-style: none; padding: 0; counter-reset: ms; display: grid; gap: 14px; margin-top: 18px; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.mini-steps li::before { content: counter(ms); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; color: var(--text); font-size: var(--fs-xs); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
/* Для элементов коллажа сдвиг задаётся перетаскиванием — появление только прозрачностью */
.js .scatter__item.reveal { translate: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js .reveal { opacity: 1; translate: none; }
}
