/* ==========================================================================
   Sborka — основной стиль
   Опирается на DESIGN.md: тёмный редакторский холст, один синий акцент,
   один вес шрифта (450), кнопки-пилюли, глубина только через inset-обводку.
   ========================================================================== */

/* ---------- Шрифт: Inter Variable (кириллица + латиница, лежит в теме) ---------- */
@font-face {
	font-family: "Inter Sborka";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Inter Sborka";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	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;
}

/* ---------- Токены ---------- */
:root {
	/* Цвета */
	--color-canvas: #1c1d20;     /* Obsidian Canvas — фон */
	--color-white: #ffffff;      /* Bone White — текст */
	--color-fog: #999d9e;        /* Fog — второстепенный текст */
	--color-graphite: #494a4d;   /* Graphite — приподнятые поверхности */
	--color-iris: #455ce9;       /* Electric Iris — единственный акцент */
	--color-iris-deep: #334bd3;  /* Deep Iris — ховер акцента */
	--color-line: rgba(255, 255, 255, 0.14);
	--color-surface: #232428;    /* Полшага над холстом для полей ввода */

	/* Шрифт */
	--font: "Inter Sborka", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--weight: 450;

	/* Шкала размеров (адаптивная, верхние значения — из DESIGN.md) */
	--fs-caption: 12px;
	--fs-body: 15px;
	--fs-body-lg: 17px;
	--fs-h3: clamp(22px, 2.4vw, 33px);
	--fs-h2: clamp(36px, 5vw, 60px);
	--fs-h1: clamp(44px, 7.4vw, 88px);
	--fs-display: clamp(72px, min(17vw, 25vh), 216px);

	--lh-body: 1.6;
	--lh-display: 1;
	--lh-heading: 1.06;

	--tracking-body: 0.01em;
	--tracking-caption: 0.05em;
	--tracking-heading: -0.02em;
	--tracking-display: -0.035em;

	/* Отступы */
	--gutter: clamp(16px, 4vw, 64px);
	--gap: 12px;
	--section-gap: clamp(96px, 12vw, 160px);

	/* Форма */
	--radius-card: 10px;
	--radius-pill: 36.72px;
	--ring: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
	--ring-strong: inset 0 0 0 1px rgba(255, 255, 255, 0.45);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--color-canvas);
	color: var(--color-white);
	font-family: var(--font);
	font-weight: var(--weight);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	letter-spacing: var(--tracking-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

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

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: var(--weight); }
ul, ol { padding: 0; list-style: none; }

button,
input,
textarea {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--color-iris); color: var(--color-white); }

:focus-visible {
	outline: 2px solid var(--color-iris);
	outline-offset: 3px;
	border-radius: 4px;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 1000;
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	background: var(--color-iris);
	transform: translateY(-200%);
	transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container {
	width: 100%;
	padding-inline: var(--gutter);
}

.caption {
	font-size: var(--fs-caption);
	letter-spacing: var(--tracking-caption);
	color: var(--color-fog);
	line-height: 1.45;
}

.h-xl {
	font-size: var(--fs-h1);
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-heading);
}

/* ---------- Пилюли и круглые кнопки ---------- */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	letter-spacing: 0.05em;
	line-height: 1.2;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pill--ghost { box-shadow: var(--ring); }
.pill--ghost:hover { background: var(--color-graphite); box-shadow: none; }
.pill--accent { background: var(--color-iris); color: var(--color-white); }
.pill--accent:hover { background: var(--color-iris-deep); }
.pill .icon { width: 18px; height: 18px; }

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	box-shadow: var(--ring);
	background: rgba(28, 29, 32, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.round-btn:hover { background: var(--color-graphite); box-shadow: none; }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px var(--gutter);
	font-size: 13px;
	letter-spacing: 0.04em;
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.topbar.is-scrolled {
	background: rgba(28, 29, 32, 0.78);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	box-shadow: inset 0 -1px 0 var(--color-line);
}

.topbar__name {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	white-space: nowrap;
}
.topbar__copy { display: inline-block; transition: transform 0.6s var(--ease); }
.topbar__name:hover .topbar__copy { transform: rotate(360deg); }

.topbar__contacts {
	display: flex;
	align-items: center;
	gap: clamp(8px, 2.4vw, 32px);
}

.topbar__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.topbar__link .icon { width: 16px; height: 16px; opacity: 0.7; }
.topbar__link::after {
	content: "";
	position: absolute;
	left: 50%; bottom: -8px;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: currentColor;
	transform: translateX(-50%) scale(0);
	transition: transform 0.3s var(--ease);
}
.topbar__link:hover::after { transform: translateX(-50%) scale(1); }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto auto;
	min-height: 100vh;
	min-height: 100svh;
	padding-top: 96px;
	overflow: hidden;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	animation: hero-zoom 2.4s var(--ease) forwards;
}
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Затемнение, чтобы белый текст читался на светлых рендерах */
	background:
		linear-gradient(180deg, rgba(28, 29, 32, 0.78) 0%, rgba(28, 29, 32, 0.4) 9%, rgba(28, 29, 32, 0) 24%),
		linear-gradient(270deg, rgba(28, 29, 32, 0.72) 0%, rgba(28, 29, 32, 0.35) 28%, rgba(28, 29, 32, 0) 50%),
		linear-gradient(0deg, rgba(28, 29, 32, 0.95) 0%, rgba(28, 29, 32, 0.5) 38%, rgba(28, 29, 32, 0) 70%);
}
@media (max-width: 760px) {
	.hero__media::after {
		background:
			linear-gradient(180deg, rgba(28, 29, 32, 0.7) 0%, rgba(28, 29, 32, 0) 18%),
			linear-gradient(0deg, rgba(28, 29, 32, 0.96) 0%, rgba(28, 29, 32, 0.78) 40%, rgba(28, 29, 32, 0.2) 65%, rgba(28, 29, 32, 0) 80%);
	}
}
@keyframes hero-zoom { to { transform: scale(1); } }

/* Без картинки — тихий градиент, чтобы экран не был плоским */
.hero:not(.hero--image) {
	background:
		radial-gradient(60% 50% at 75% 30%, rgba(69, 92, 233, 0.16), transparent 70%),
		var(--color-canvas);
}

.hero__badge {
	grid-column: 1;
	grid-row: 2;
	align-self: end;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 22px;
	margin-left: 0;
	padding: 18px 18px 18px 26px;
	border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
	background: var(--color-canvas);
	font-size: 13px;
	line-height: 1.25;
	letter-spacing: 0.04em;
}
.hero__badge-icon {
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--color-graphite);
}
.hero__badge-icon .icon { width: 24px; height: 24px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__intro {
	grid-column: 2;
	grid-row: 2;
	align-self: end;
	max-width: 440px;
	margin-left: auto;
	padding-right: var(--gutter);
}
.hero__intro > .icon { width: 28px; height: 28px; margin-bottom: 24px; }
.hero__role {
	font-size: clamp(20px, 2.1vw, 28px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 14px;
}
.hero__text { color: rgba(255, 255, 255, 0.72); }

.hero__marquee {
	grid-column: 1 / -1;
	grid-row: 3;
	margin-top: clamp(24px, 4vw, 48px);
	/* Имя целиком в кадре, с небольшим отступом от нижнего края экрана */
	margin-bottom: clamp(12px, 2vw, 32px);
	min-width: 0;
	font-size: var(--fs-display);
	line-height: 1.15; /* запас под выносные элементы букв (у, д, р) */
	letter-spacing: var(--tracking-display);
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}
.marquee {
	display: flex;
	width: max-content;
	animation: marquee 32s linear infinite;
}
.marquee__group { display: flex; flex: none; }
.marquee__item { padding-right: 0.25em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding-top: var(--section-gap); }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 64px;
	margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head__count {
	margin-left: 0.2em;
	font-size: 0.24em;
	vertical-align: super;
	letter-spacing: 0.05em;
	color: var(--color-fog);
}
.section-head__text {
	max-width: 380px;
	color: var(--color-fog);
}

.admin-hint {
	padding: 22px;
	border-radius: var(--radius-card);
	box-shadow: var(--ring);
	color: var(--color-fog);
}
.admin-hint a { color: var(--color-white); text-decoration: underline; }

/* ---------- Работы ---------- */
.works-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(56px, 7vw, 112px) clamp(16px, 2vw, 32px);
}

.work { display: flex; flex-direction: column; gap: 22px; }
.work--wide { grid-column: 1 / -1; }

/* Шахматный сдвиг правой колонки — редакционный ритм */
@media (min-width: 761px) {
	.works-grid .work:not(.work--wide):nth-child(odd) { margin-top: clamp(48px, 8vw, 140px); }
}

.work__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--color-surface);
	cursor: pointer;
}
.work--wide .work__media { aspect-ratio: 16 / 8; }
.work__media:disabled { cursor: default; }

.work__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.work__media:hover .work__img,
.work__media:focus-visible .work__img { transform: scale(1.04); }

.work__count {
	position: absolute;
	left: 16px; bottom: 16px;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: rgba(28, 29, 32, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 12px;
	letter-spacing: 0.05em;
}

.work__body {
	display: grid;
	gap: 14px;
}
.work--wide .work__body {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.work__meta { margin-bottom: 8px; }
.work__title {
	font-size: var(--fs-h3);
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.work__text {
	max-width: 560px;
	color: rgba(255, 255, 255, 0.72);
}
.work__soft {
	margin-top: 10px;
	font-size: var(--fs-caption);
	letter-spacing: var(--tracking-caption);
	color: var(--color-fog);
}

/* ---------- Что входит ---------- */
.services__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(16px, 2.4vw, 40px);
}
.service {
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 14px;
	padding: 28px 0 48px;
	border-top: 1px solid var(--color-line);
}
.service__num { margin-bottom: 8px; }
.service__title {
	font-size: clamp(20px, 1.9vw, 24px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.service__text { color: var(--color-fog); max-width: 420px; }

/* ---------- Этапы ---------- */
.steps__list {
	display: grid;
	grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
	gap: var(--gap);
	counter-reset: step;
}
.step {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	padding: 22px;
	border-radius: var(--radius-card);
	background: var(--color-graphite);
	transition: background-color 0.4s var(--ease);
}
.step:hover { background: #55565a; }
.step__num {
	font-size: clamp(48px, 5vw, 76px);
	line-height: 1;
	letter-spacing: -0.03em;
	color: rgba(255, 255, 255, 0.28);
	padding-bottom: clamp(48px, 6vw, 96px);
}
.step__title {
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.2;
	margin-bottom: 10px;
}
.step__text { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px clamp(32px, 6vw, 120px);
	align-items: start;
}
.faq__head { position: sticky; top: 100px; }
.faq__head .h-xl { font-size: var(--fs-h2); }

.faq__item { border-top: 1px solid var(--color-line); }
.faq__item:last-child { border-bottom: 1px solid var(--color-line); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0;
	font-size: clamp(17px, 1.6vw, 21px);
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	transition: color 0.3s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: rgba(255, 255, 255, 0.72); }

.faq__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	border-radius: 50%;
	box-shadow: var(--ring);
	transition: transform 0.4s var(--ease), background-color 0.3s;
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--color-graphite); box-shadow: none; }

.faq__a {
	padding: 0 64px 28px 0;
	color: var(--color-fog);
	max-width: 640px;
}
.faq__item[open] .faq__a { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ==========================================================================
   Призыв к действию — единственный на сайте
   ========================================================================== */
.cta {
	padding-top: var(--section-gap);
	padding-bottom: clamp(48px, 6vw, 80px);
}
.cta__title {
	max-width: 12ch;
	font-size: var(--fs-h1);
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-heading);
}
.cta__text {
	max-width: 460px;
	margin-top: 28px;
	color: var(--color-fog);
	font-size: var(--fs-body-lg);
}

.cta__line {
	position: relative;
	height: 1px;
	margin: clamp(110px, 12vw, 150px) 0 clamp(110px, 12vw, 150px);
	background: var(--color-line);
}
.cta__button {
	position: absolute;
	top: 50%;
	right: clamp(0px, 12vw, 220px);
	display: grid;
	place-items: center;
	width: clamp(176px, 15vw, 216px);
	aspect-ratio: 1;
	padding: 28px;
	border-radius: 50%;
	background: var(--color-iris);
	color: var(--color-white);
	font-size: clamp(15px, 1.15vw, 17px);
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-align: center;
	transform: translate(var(--mx, 0px), calc(-50% + var(--my, 0px)));
	transition: background-color 0.4s var(--ease), transform 0.5s var(--ease);
	isolation: isolate;
	overflow: hidden;
}
.cta__button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: var(--color-iris-deep);
	transform: translateY(101%);
	transition: transform 0.5s var(--ease);
}
.cta__button:hover::before { transform: none; }
.cta__button-label { transform: translate(calc(var(--mx, 0px) * 0.35), calc(var(--my, 0px) * 0.35)); transition: transform 0.5s var(--ease); }

.cta__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap);
}
.cta__contacts .pill { font-size: 15px; min-height: 56px; padding: 16px 26px; }

/* ---------- Подвал ---------- */
.site-footer {
	padding: 0 var(--gutter) 22px;
}
.site-footer__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	align-items: center;
	padding-top: 22px;
	border-top: 1px solid var(--color-line);
}
.site-footer__legal { color: #7c8081; }
.site-footer__link { transition: color 0.3s; }
.site-footer__link:hover { color: var(--color-white); }
.site-footer__top { margin-left: auto; }

/* ==========================================================================
   Модальное окно заявки (выезжает справа)
   ========================================================================== */
.modal {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(560px, 100%);
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-canvas);
	color: var(--color-white);
	box-shadow: inset 1px 0 0 var(--color-line);
	overflow: hidden;
}
.modal::backdrop {
	background: rgba(10, 10, 12, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.modal[open] { animation: drawer-in 0.55s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.4s ease; }
.modal.is-closing { animation: drawer-out 0.35s var(--ease) forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.35s ease forwards; }

@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.modal__panel {
	position: relative;
	height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(28px, 5vw, 56px);
	padding-top: 96px;
}
.modal__close { position: absolute; top: 22px; right: 22px; }
.modal__eyebrow { margin-bottom: 14px; }
.modal__title {
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.08;
	letter-spacing: var(--tracking-heading);
	margin-bottom: 40px;
	max-width: 12ch;
}

/* ---------- Форма ---------- */
.lead-form { display: grid; gap: 10px; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; }
.field__input {
	display: block;
	width: 100%;
	padding: 26px 0 10px;
	border: 0;
	border-bottom: 1px solid var(--color-line);
	border-radius: 0;
	background: transparent;
	font-size: 17px;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.3s;
	-webkit-appearance: none;
	appearance: none;
}
.field__input--area { resize: vertical; min-height: 96px; }
.field__input:focus { border-color: var(--color-white); }
.field__input:-webkit-autofill {
	-webkit-text-fill-color: var(--color-white);
	-webkit-box-shadow: 0 0 0 1000px var(--color-canvas) inset;
	caret-color: var(--color-white);
}

.field__label {
	position: absolute;
	left: 0; top: 26px;
	color: var(--color-fog);
	font-size: 17px;
	line-height: 1.4;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.3s var(--ease), color 0.3s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
	transform: translateY(-22px) scale(0.72);
}
.field__input:focus + .field__label { color: var(--color-white); }

.field__error {
	display: block;
	min-height: 0;
	font-size: 12px;
	color: #ff8a80;
	letter-spacing: 0.03em;
}
.field__error:not(:empty) { padding-top: 6px; }
.field.has-error .field__input { border-color: #ff8a80; }

.consent {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-top: 22px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--color-fog);
	cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.consent__box {
	flex: none;
	width: 20px; height: 20px;
	border-radius: 6px;
	box-shadow: var(--ring-strong);
	transition: background-color 0.2s, box-shadow 0.2s;
	background-repeat: no-repeat;
	background-position: center;
}
.consent input:checked + .consent__box {
	background-color: var(--color-iris);
	box-shadow: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	background-size: 14px;
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--color-iris); outline-offset: 3px; }
.consent a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }

.lead-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 28px;
}
.lead-form__submit { min-height: 56px; padding: 16px 28px; font-size: 15px; }
.lead-form__submit[disabled] { opacity: 0.6; pointer-events: none; }
.lead-form__status { font-size: 13px; color: var(--color-fog); }
.lead-form__status.is-error { color: #ff8a80; }

.lead-success { padding-top: 24px; }
.lead-success__icon {
	display: grid;
	place-items: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: var(--color-iris);
	margin-bottom: 28px;
}
.lead-success__icon .icon { width: 30px; height: 30px; }
.lead-success__text { font-size: 22px; line-height: 1.35; max-width: 20ch; }

/* ==========================================================================
   Лайтбокс
   ========================================================================== */
.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #0f1012;
	color: var(--color-white);
	overflow: hidden;
}
.lightbox::backdrop { background: #0f1012; }
.lightbox[open] { animation: fade-in 0.35s ease; }
.lightbox.is-closing { animation: fade-out 0.25s ease forwards; }

.lightbox__stage {
	position: absolute;
	inset: 80px var(--gutter) 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: pan-y;
}
.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	opacity: 0;
	transform: scale(0.985);
	transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
	user-select: none;
	-webkit-user-drag: none;
}
.lightbox__img.is-loaded { opacity: 1; transform: none; }
.lightbox__loader {
	position: absolute;
	width: 36px; height: 36px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
	border-top: 1px solid var(--color-white);
	animation: spin 0.9s linear infinite;
	opacity: 0;
	transition: opacity 0.2s;
}
.lightbox.is-loading .lightbox__loader { opacity: 1; }

.lightbox__bar {
	position: absolute;
	left: 0; right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px var(--gutter);
}
.lightbox__bar--top { top: 0; }
.lightbox__bar--bottom { bottom: 0; padding-bottom: 22px; }
.lightbox__title { font-size: 15px; letter-spacing: 0.03em; }
.lightbox__nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lightbox__counter {
	min-width: 72px;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
	color: var(--color-fog);
}

/* ---------- Курсор «Смотреть» над работами ---------- */
.cursor {
	position: fixed;
	top: 0; left: 0;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 96px; height: 96px;
	margin: -48px 0 0 -48px;
	border-radius: 50%;
	background: var(--color-iris);
	font-size: 13px;
	letter-spacing: 0.04em;
	pointer-events: none;
	transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0);
	transition: transform 0.35s var(--ease);
	will-change: transform;
}
.cursor.is-active { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Обычные страницы
   ========================================================================== */
.page { min-height: 70vh; padding: 140px var(--gutter) var(--section-gap); }
.page__inner { max-width: 760px; }
.page__back { margin-bottom: 40px; }
.page__title {
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-heading);
	margin: 12px 0 40px;
}
.prose { color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--color-white); margin-top: 2em; line-height: 1.2; }
.prose ul, .prose ol { padding-left: 1.2em; list-style: revert; }
.prose a { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Появление при прокрутке
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
	.services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.step { min-height: 240px; }
}

@media (max-width: 900px) {
	.topbar__label { display: none; }
	.topbar__link {
		display: grid;
		place-items: center;
		width: 40px; height: 40px;
		border-radius: 50%;
		box-shadow: var(--ring);
		background: rgba(28, 29, 32, 0.4);
	}
	.topbar__link .icon { opacity: 1; width: 18px; height: 18px; }
	.topbar__link::after { display: none; }
	.topbar__contacts { gap: 8px; }

	.faq__grid { grid-template-columns: 1fr; }
	.faq__head { position: static; }
}

@media (max-width: 760px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr auto auto auto;
		padding-top: 80px;
	}
	.hero__intro {
		grid-column: 1;
		grid-row: 2;
		margin: 0;
		padding: 0 var(--gutter);
		max-width: none;
	}
	.hero__intro > .icon { margin-bottom: 16px; }
	.hero__badge {
		grid-row: 3;
		margin-top: 28px;
		padding: 12px 12px 12px var(--gutter);
		font-size: 12px;
	}
	.hero__badge-icon { width: 40px; height: 40px; }
	.hero__marquee { grid-row: 4; margin-top: 20px; margin-bottom: 12px; }

	.works-grid { grid-template-columns: 1fr; gap: 56px; }
	.work--wide .work__media,
	.work__media { aspect-ratio: 4 / 3; }
	.work--wide .work__body { grid-template-columns: 1fr; gap: 14px; }

	.services__list { grid-template-columns: 1fr; }
	.service { padding-bottom: 32px; }

	.steps__list { grid-template-columns: 1fr; }
	.step { min-height: 0; }
	.step__num { padding-bottom: 24px; }

	.faq__a { padding-right: 0; }

	.cta__line { margin: 120px 0 112px; }
	.cta__button { right: var(--gutter); width: 168px; padding: 22px; font-size: 15px; }
	.cta__contacts { flex-direction: column; align-items: stretch; }
	.cta__contacts .pill { justify-content: flex-start; }

	.site-footer__top { margin-left: 0; }

	.modal { width: 100%; }
	.modal__panel { padding: 88px var(--gutter) 40px; }
	.modal__close { top: 16px; right: 16px; }

	.lightbox__stage { inset: 72px 0 96px; }
	.lightbox__title { font-size: 14px; }
	.lightbox__caption { display: none; }
	.lightbox__nav { margin-inline: auto; }
}

@media (max-width: 380px) {
	.topbar { font-size: 12px; }
	.topbar__link { width: 36px; height: 36px; }
}

/* Пользователь просит меньше анимации */
@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 [data-reveal] { opacity: 1; transform: none; }
	.marquee { animation: none; }
}
