/* ==========================================================================
   iskrenochka — основные стили. Mobile First (360–430 px), затем 768 / 1024 / 1440.
   Цвета приходят из настроек как CSS-переменные (см. functions.php).
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Цвета (переопределяются из настроек). */
	--c-bg: #FAF7F2;
	--c-bg-alt: #F1E8DE;
	--c-text: #222222;
	--c-muted: #6b665f;
	--c-accent: #E86D61;
	--c-accent-ink: #b84a3f;
	--c-on-accent: #111111;
	--c-btn: #222222;
	--c-on-btn: #ffffff;
	--c-line: color-mix(in srgb, var(--c-text) 16%, transparent);
	--c-line-strong: color-mix(in srgb, var(--c-text) 40%, transparent);
	--c-overlay: rgba(17, 17, 17, .92);

	/* Шрифты. */
	--f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-display: "Unbounded", "Manrope", system-ui, sans-serif;

	/* Размеры шрифтов. */
	--fs-xs: .75rem;
	--fs-sm: .875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: clamp(1.25rem, 1.1rem + .8vw, 1.625rem);
	--fs-xl: clamp(1.75rem, 1.2rem + 2.8vw, 3.5rem);
	--fs-2xl: clamp(2.25rem, 1.2rem + 5.4vw, 5.5rem);
	--fs-hero: clamp(3rem, 14.6vw, 15rem);

	/* Отступы. */
	--sp-1: .25rem;
	--sp-2: .5rem;
	--sp-3: .75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);
	--gutter: clamp(1.125rem, .8rem + 1.6vw, 2.5rem);
	--container: 1360px;

	/* Скругления. */
	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-pill: 999px;

	--header-h: 60px;
	--cta-h: 0px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 var(--fs-base)/1.55 var(--f-body);
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	padding-bottom: var(--cta-h);
}
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-accent); color: var(--c-on-accent); }
.screen-reader-text, .sr-only {
	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:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--c-btn); color: var(--c-on-btn); padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.is-muted { color: var(--c-muted); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }
[hidden] { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .75em 1.4em;
	border: 1px solid transparent; border-radius: var(--r-pill);
	font-weight: 600; font-size: var(--fs-sm); letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
	text-decoration: none; cursor: pointer; text-align: center;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-btn); color: var(--c-on-btn); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-btn) 85%, var(--c-bg)); color: var(--c-on-btn); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 85%, var(--c-text)); color: var(--c-on-accent); }
.btn-ghost { border-color: var(--c-line-strong); background: transparent; color: var(--c-text); }
.btn-ghost:hover { border-color: var(--c-text); color: var(--c-text); }
.btn-sm { min-height: 44px; padding: .6em 1.1em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 600; text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: .04em; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-bg) 92%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--c-line);
	padding-top: env(safe-area-inset-top);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; min-height: 44px; }
.logo:hover { color: inherit; }
.logo-mark {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px;
	background: var(--c-text); color: var(--c-bg);
	font: 700 .8rem/1 var(--f-display); letter-spacing: -.02em;
}
.logo-text { font: 600 1.05rem/1 var(--f-display); letter-spacing: -.03em; }
.logo-text i { font-style: normal; color: var(--c-accent-ink); }
.logo img { max-height: 40px; width: auto; }

.nav-primary { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.75rem, 1.6vw, 1.75rem); }
.nav-list a {
	display: inline-flex; align-items: center; min-height: 44px;
	text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: var(--fs-sm); letter-spacing: .02em;
}
.nav-list a[aria-current="page"], .nav-list .current-menu-item > a { color: var(--c-muted); }
.header-cta { display: none; }

.menu-toggle {
	display: inline-flex; align-items: center; gap: .5em; min-height: 44px; min-width: 44px; padding: 0 .25em;
	background: none; border: 0; cursor: pointer; text-transform: uppercase; font-weight: 600; font-size: var(--fs-sm); letter-spacing: .04em;
}
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-menu { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
	position: fixed; inset: 0; z-index: 49;
	padding: calc(var(--header-h) + env(safe-area-inset-top) + var(--sp-5)) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
	background: var(--c-bg); overflow-y: auto;
	display: flex; flex-direction: column; gap: var(--sp-6);
	opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu .nav-list { flex-direction: column; gap: 0; }
.mobile-menu .nav-list a {
	display: flex; justify-content: space-between; width: 100%; min-height: 64px;
	font-size: clamp(1.75rem, 9vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; border-bottom: 1px solid var(--c-line);
}
.mobile-menu-foot { margin-top: auto; display: grid; gap: var(--sp-4); }
.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
	:root { --header-h: 72px; }
	.menu-toggle, .mobile-menu { display: none; }
	.nav-primary { display: block; }
	.header-cta { display: inline-flex; }
}

/* ---------- Секции ---------- */
.section { padding-block: var(--sp-8); }
.section + .section { border-top: 1px solid var(--c-line); }
.section-alt { background: var(--c-bg-alt); border-top: 0 !important; }
.section-alt + .section { border-top: 0; }
.section-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.section-index { font-size: var(--fs-sm); color: var(--c-muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.section-title { font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: -.035em; line-height: .98; max-width: 16ch; }
.section-sub { color: var(--c-muted); max-width: 46ch; margin: 0; font-size: var(--fs-md); }
.section-foot { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (min-width: 768px) {
	.section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--sp-6); }
	.section-head .section-index { grid-column: 1 / -1; }
	.section-sub { justify-self: end; text-align: right; }
}

/* Появление при прокрутке (без JS всё видно). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Первый экран ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--sp-7); }
.hero > .container { container-type: inline-size; }
.hero-intro {
	margin: 0 0 clamp(2rem, 8vw, 4.5rem) auto; max-width: 30ch; text-align: right;
	font-size: clamp(.95rem, .85rem + .5vw, 1.25rem); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.15;
}
.hero-title {
	/* Размер подобран так, чтобы «iskrenochka» занимало ширину контейнера (cqi — % ширины контейнера). */
	font-size: var(--fs-hero); font-size: min(var(--hero-fit, 19.6cqi), 16rem);
	font-weight: 600; line-height: .82; letter-spacing: -.065em;
	margin: 0 0 var(--sp-5) -.04em; overflow-wrap: normal;
}
.hero-sub {
	font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-5);
}
.hero-sub::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .6em; vertical-align: .15em; border-radius: 50%; background: var(--c-accent); }
.hero-actions { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.hero-actions .btn { width: 100%; }
.hero-extra { margin-bottom: var(--sp-6); }
.hero-media { position: relative; margin: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg-alt); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media--photo { aspect-ratio: 4 / 5; }
.hero-media--video_v { aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; }
.hero-media--video_h { aspect-ratio: 16 / 9; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.hero-media.is-playing video { opacity: 1; }
.hero-video-toggle {
	position: absolute; right: 12px; bottom: 12px; z-index: 2;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(17, 17, 17, .55); color: #fff;
}
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-video-toggle[aria-pressed="true"] .icon-play { display: block; }
.hero--solid .hero-media { display: none; }
.placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	background:
		radial-gradient(120% 80% at 20% 10%, color-mix(in srgb, var(--c-accent) 22%, transparent), transparent 60%),
		linear-gradient(160deg, var(--c-bg-alt), color-mix(in srgb, var(--c-bg-alt) 70%, var(--c-text)));
	color: color-mix(in srgb, var(--c-text) 55%, transparent);
	font: 600 var(--fs-xs)/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 1em;
}
.hero-media .placeholder { position: absolute; inset: 0; }

@media (min-width: 768px) {
	.hero-actions { grid-template-columns: auto auto; justify-content: start; }
	.hero-actions .btn { width: auto; }
}
@media (min-width: 1024px) {
	.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6); align-items: start; }
	.hero-grid .hero-left { padding-top: var(--sp-4); position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
	.hero-media--photo { aspect-ratio: 3 / 2; max-height: 78vh; }
	.hero-media--video_v { max-height: 78vh; width: auto; margin-inline: auto 0; }
	.hero--video_h .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
	.hero--solid .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Соцсети и аудитория ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.stat-card { background: var(--c-bg); }
.section-alt .stat-card { background: var(--c-bg-alt); }
.stat-card > a, .stat-card > div {
	display: flex; flex-direction: column; gap: var(--sp-2); height: 100%; min-height: 150px; padding: var(--sp-5) var(--sp-4);
	text-decoration: none;
}
.stat-card > a:hover { background: color-mix(in srgb, var(--c-bg-alt) 60%, var(--c-bg)); color: inherit; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-weight: 600; text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: .03em; }
.stat-value { font: 600 clamp(2rem, 1.4rem + 3vw, 3.25rem)/1 var(--f-display); letter-spacing: -.04em; margin-top: auto; }
.stat-value small { font-size: .45em; letter-spacing: 0; vertical-align: .9em; margin-right: .15em; color: var(--c-muted); font-family: var(--f-body); }
.stat-unit { font-size: var(--fs-sm); color: var(--c-muted); }
.stat-updated { font-size: var(--fs-xs); color: var(--c-muted); }
.stats-note { font-size: var(--fs-xs); color: var(--c-muted); margin-top: var(--sp-4); }
@media (min-width: 1024px) {
	.stats-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
	.stat-card > a, .stat-card > div { min-height: 200px; padding: var(--sp-6); }
}

/* ---------- Работы ---------- */
.filters { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) var(--sp-5); padding: 2px var(--gutter); list-style: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; white-space: nowrap;
	border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); background: transparent;
	font-weight: 600; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer;
}
.filter:hover { border-color: var(--c-text); color: var(--c-text); }
.filter.is-active, .filter[aria-pressed="true"], .filter[aria-current="page"] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }

.works-grid { columns: 2; column-gap: 10px; margin: 0; padding: 0; list-style: none; }
.work { break-inside: avoid; margin: 0 0 18px; }
.js .work.is-filtered, .js .work.is-more { display: none; }
.work-link { display: block; text-decoration: none; color: inherit; }
.work-link:hover { color: inherit; }
.work-media { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--c-bg-alt); }
.work-media img { width: 100%; transition: transform .6s var(--ease); }
.work-link:hover .work-media img { transform: scale(1.03); }
.work-media .placeholder { aspect-ratio: 4 / 5; }
.work--video .work-media .placeholder { aspect-ratio: 9 / 16; }
.work-play {
	position: absolute; left: 10px; bottom: 10px; display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111;
}
.work-play .icon { margin-left: 2px; }
.work-provider { position: absolute; right: 8px; top: 8px; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(17, 17, 17, .6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.work-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.work-title { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.2; }
.work-cat { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.works-empty { padding: var(--sp-6); border: 1px dashed var(--c-line-strong); border-radius: var(--r-md); text-align: center; color: var(--c-muted); }
@media (min-width: 768px) { .works-grid { columns: 3; column-gap: 16px; } .work { margin-bottom: 26px; } }
@media (min-width: 1680px) { .works-grid { columns: 4; } }

.pagination { margin-top: var(--sp-6); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8em; border: 1px solid var(--c-line); border-radius: var(--r-pill); text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-text); color: var(--c-bg); }

/* ---------- Услуги ---------- */
.services-list { display: grid; gap: var(--sp-6); margin: 0; padding: 0; list-style: none; counter-reset: svc; }
.service-card { display: grid; gap: var(--sp-4); align-content: start; }
.service-photo { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg-alt); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-photo img { transform: scale(1.03); }
.service-head { display: flex; gap: var(--sp-4); align-items: baseline; justify-content: space-between; border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }
.service-num { color: var(--c-muted); font-size: var(--fs-sm); white-space: nowrap; }
.service-title { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: -.02em; flex: 1; }
.service-title a { text-decoration: none; }
.service-desc { color: var(--c-muted); margin: 0; }
.service-price { font: 600 var(--fs-md)/1.2 var(--f-display); letter-spacing: -.02em; }
.service-price.is-request { font-family: var(--f-body); font-weight: 600; color: var(--c-muted); font-size: var(--fs-base); }
.service-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (min-width: 768px) { .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-6); } }
@media (min-width: 1280px) { .services-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .services-list--4 .service-photo { aspect-ratio: 3 / 4; } }

/* ---------- Обо мне ---------- */
.about-grid { display: grid; gap: var(--sp-6); }
.about-photo { margin: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-bg-alt); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { font-size: var(--fs-lg); line-height: 1.4; letter-spacing: -.01em; }
.about-text p:first-child::first-letter { color: var(--c-accent-ink); }
@media (min-width: 1024px) {
	.about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: center; }
}

/* ---------- Как проходит работа / FAQ (строки с номерами, как в макете) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.row-item { display: grid; grid-template-columns: 4.2em 1fr; gap: var(--sp-3); padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-line); }
.row-num { color: var(--c-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; padding-top: .2em; white-space: nowrap; }
.row-title { font-size: var(--fs-md); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.25; margin-bottom: .35em; display: flex; gap: .6em; align-items: center; }
.row-title .icon { color: var(--c-accent-ink); }
.row-text { color: var(--c-muted); margin: 0; }
@media (min-width: 1024px) {
	.rows--process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0; gap: var(--sp-5); }
	.rows--process .row-item { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--c-text); padding-top: var(--sp-4); }
}

.faq { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
	display: grid; grid-template-columns: 4.2em 1fr 28px; gap: var(--sp-3); align-items: start;
	padding: var(--sp-5) 0; cursor: pointer; list-style: none; min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: var(--fs-md); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.25; }
.faq-plus { position: relative; width: 22px; height: 22px; margin-top: .1em; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 var(--sp-5) calc(4.2em + var(--sp-3)); color: var(--c-muted); max-width: 70ch; }
.faq-grid { display: grid; gap: var(--sp-6); }
.faq-photo { margin: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--c-bg-alt); }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .faq-grid--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; } }

/* ---------- Бренды ---------- */
.brands-grid { display: grid; gap: var(--sp-6); }
.brands-text { font-size: var(--fs-md); max-width: 52ch; }
.formats { list-style: none; margin: 0 0 var(--sp-5); padding: 0; border-top: 1px solid var(--c-line); }
.formats li { display: flex; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); font-weight: 500; }
.formats li::before { content: "+"; color: var(--c-accent-ink); font-weight: 700; }
.agency { display: flex; flex-wrap: wrap; gap: .3em .6em; align-items: baseline; padding: var(--sp-4); border-radius: var(--r-md); background: var(--c-bg); margin-bottom: var(--sp-5); }
.agency strong { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
.brands-actions { display: grid; gap: var(--sp-3); }
.brands-photo { margin: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; }
.brands-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .brands-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 1024px) { .brands-grid--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); } }

/* ---------- Форма ---------- */
.order-grid { display: grid; gap: var(--sp-6); }
.order-title { font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: -.045em; line-height: .95; margin-bottom: var(--sp-4); }
.direct { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.direct a {
	display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: 0 var(--sp-4);
	border: 1px solid var(--c-line-strong); border-radius: var(--r-md); text-decoration: none; font-weight: 600;
}
.direct a:hover { border-color: var(--c-text); color: inherit; }
.direct a span { margin-left: auto; color: var(--c-muted); font-weight: 400; font-size: var(--fs-sm); }
.order-form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: var(--fs-sm); padding: 0; }
.req { color: var(--c-accent-ink); }
.order-form input[type="text"], .order-form input[type="tel"], .order-form input[type="email"], .order-form input[type="date"], .order-form select, .order-form textarea {
	width: 100%; min-height: 52px; padding: 12px 14px;
	font-size: 16px; /* не даёт iOS зумить поле */
	background: color-mix(in srgb, var(--c-bg) 60%, #fff); border: 1px solid var(--c-line-strong); border-radius: var(--r-md);
	appearance: none; -webkit-appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.order-form textarea { min-height: 110px; resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--c-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 15%, transparent); }
.order-form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: color-mix(in srgb, var(--c-text) 7%, transparent); margin-bottom: 6px; }
.segmented-item { position: relative; }
.segmented-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented-item span { display: grid; place-items: center; min-height: 44px; border-radius: calc(var(--r-md) - 4px); font-weight: 600; font-size: var(--fs-sm); }
.segmented-item input:checked + span { background: var(--c-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented-item input:focus-visible + span { outline: 2px solid var(--c-text); outline-offset: 1px; }
.field-more { border: 1px solid var(--c-line); border-radius: var(--r-md); }
.field-more summary { display: block; min-height: 52px; padding: 15px var(--sp-4); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); list-style: none; }
.field-more summary::-webkit-details-marker { display: none; }
.field-more summary::before { content: "+"; display: inline-block; font-size: 1.3em; line-height: 1; width: 1em; }
.field-more[open] summary::before { content: "−"; }
.field-more-body { display: grid; gap: var(--sp-4); padding: 0 var(--sp-4) var(--sp-4); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-3); align-items: start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-text); }
.form-error { margin: 0; color: #b3261e; font-size: var(--fs-sm); font-weight: 500; }
.form-alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: #fde8e6; color: #8c1d18; font-weight: 500; }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; text-align: center; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.order-success { padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--c-text); color: var(--c-bg); }
.order-success:focus { outline: none; }
.order-success-title { font: 600 var(--fs-lg)/1.2 var(--f-display); letter-spacing: -.02em; margin-bottom: .4em; }
.order-success p:last-child { margin: 0; }
@media (min-width: 1024px) { .order-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-8); align-items: start; } .order-aside { position: sticky; top: calc(var(--header-h) + var(--sp-6)); } }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3em .5em; list-style: none; margin: 0 0 var(--sp-5); padding: 0; align-items: center; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5em; }
.breadcrumbs li { display: inline-flex; align-items: center; min-height: 24px; }
.breadcrumbs a { text-decoration: none; display: inline-flex; min-height: 24px; align-items: center; }
.page-head { container-type: inline-size; }
.page-title { font-size: var(--fs-2xl); font-size: min(var(--fs-2xl), 10.2cqi); text-transform: uppercase; letter-spacing: -.045em; line-height: .95; overflow-wrap: break-word; hyphens: auto; }
.page-lead { margin-top: var(--sp-4); color: var(--c-muted); font-size: var(--fs-md); max-width: 52ch; }
.entry { max-width: 72ch; font-size: var(--fs-md); }
.entry h2 { font-size: var(--fs-lg); margin: 1.8em 0 .6em; text-transform: uppercase; }
.entry h3 { font-size: var(--fs-md); margin: 1.5em 0 .5em; }
.entry ul, .entry ol { margin: 0 0 1em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: var(--r-sm); }
.legal-missing { background: #fff1b8; color: #5c4300; padding: 0 .25em; border-radius: 3px; }

.work-single-head { display: grid; gap: var(--sp-4); }
.work-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.work-facts li { padding: .35em .9em; border: 1px solid var(--c-line); border-radius: var(--r-pill); font-size: var(--fs-sm); }
.work-gallery { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.work-gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.work-gallery img { width: 100%; }
@media (min-width: 768px) { .work-gallery { grid-template-columns: repeat(2, 1fr); align-items: start; } .work-gallery li:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
.video-frame { position: relative; margin: 0 auto; border-radius: var(--r-sm); overflow: hidden; background: #111; color: #fff; max-height: 86svh; }
.video-frame--9-16 { aspect-ratio: 9 / 16; max-width: min(100%, 48svh); }
.video-frame--16-9 { aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame video, .video-frame > img, .video-frame .placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame video { object-fit: contain; background: #000; }
.video-facade { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.video-facade-btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.4em; border-radius: var(--r-pill); background: rgba(17, 17, 17, .72); font-weight: 600; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; }
.video-note { font-size: var(--fs-xs); color: var(--c-muted); margin-top: var(--sp-2); text-align: center; }
.video-original { display: flex; justify-content: center; margin-top: var(--sp-3); }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-7); border-top: 1px solid var(--c-line); padding-top: var(--sp-5); }
.adjacent a { display: grid; gap: 4px; text-decoration: none; min-height: 44px; }
.adjacent small { color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xs); }
.adjacent .next { text-align: right; }

.service-single { display: grid; gap: var(--sp-6); }
.service-aside { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-bg-alt); }
.service-aside .service-price { font-size: var(--fs-xl); }
.includes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.includes li { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.includes li::before { content: "+"; color: var(--c-accent-ink); font-weight: 700; }
@media (min-width: 1024px) { .service-single { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--sp-7); align-items: start; } .service-aside { position: sticky; top: calc(var(--header-h) + var(--sp-5)); } }

.error-404 { min-height: 60svh; display: grid; align-content: center; gap: var(--sp-5); }
.error-404 .hero-title { color: var(--c-accent-ink); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--c-text); color: var(--c-bg); padding-block: var(--sp-7) calc(var(--sp-6) + env(safe-area-inset-bottom)); }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer > .container { container-type: inline-size; }
.footer-logo { font: 600 2.5rem/.85 var(--f-display); font-size: min(12.8cqi, 10rem); letter-spacing: -.06em; margin: 0 0 var(--sp-6); text-decoration: none; display: block; white-space: nowrap; }
.footer-grid { display: grid; gap: var(--sp-6); }
.footer-col h2 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: var(--sp-3); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-col li a { display: inline-flex; align-items: center; gap: .5em; min-height: 40px; text-decoration: none; }
.footer-bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid color-mix(in srgb, var(--c-bg) 20%, transparent); display: grid; gap: var(--sp-3); font-size: var(--fs-xs); opacity: .8; }
.footer-bottom p { margin: 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Нижняя кнопка на телефоне ---------- */
.sticky-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, var(--c-bg) 65%, transparent);
	transform: translateY(0); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.sticky-cta .btn { width: 100%; min-height: 52px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
body.has-sticky-cta { --cta-h: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .sticky-cta { display: none; } body.has-sticky-cta { --cta-h: 0px; } }

/* ---------- Лайтбокс ---------- */
.lightbox {
	width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
	background: var(--c-overlay); color: #fff;
}
.lightbox::backdrop { background: var(--c-overlay); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 8px; }
.lb-title { font-weight: 600; text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage > img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lb-stage .video-frame { width: 100%; max-height: 100%; }
.lb-stage .video-frame--9-16 { width: auto; height: 100%; max-height: calc(100svh - 160px); max-width: 100%; }
.lb-stage .video-frame--16-9 { width: min(100%, 1200px); }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
.lb-count { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); opacity: .8; }
.lb-foot a { color: #fff; }
.lb-nav { display: flex; gap: var(--sp-2); }

/* ---------- Баннер cookies ---------- */
.cookie-banner {
	position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom) + var(--cta-h));
	padding: var(--sp-4); border-radius: var(--r-lg); background: var(--c-text); color: var(--c-bg);
	font-size: var(--fs-sm); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); max-width: 560px;
}
.cookie-banner a { color: inherit; }
.cookie-banner p { margin-bottom: var(--sp-3); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cookie-banner .btn-primary { background: var(--c-bg); color: var(--c-text); }
.cookie-banner .btn-ghost { color: var(--c-bg); border-color: color-mix(in srgb, var(--c-bg) 50%, transparent); }
@media (min-width: 1024px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Печать ---------- */
@media print {
	.site-header, .sticky-cta, .site-footer, .cookie-banner, .order-form { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
}

/* Соцсети на странице контактов: переносятся, а не скроллятся. */
.filters--wrap { flex-wrap: wrap; overflow: visible; margin: var(--sp-5) 0 0; padding: 0; }
.page-template-default .page-head + .section, .page-head + .section#order { padding-top: var(--sp-6); }
