/* ==========================================================================
   Interrascan — main stylesheet
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
	font-family: "Inter";
	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";
	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;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src: url("../fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-display: swap;
	font-weight: 500;
	src: url("../fonts/jetbrains-mono-latin-500-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;
}

/* ---------- Tokens ---------- */
:root {
	--c-ink: #0f1419;
	--c-ink-2: #171d24;
	--c-ink-3: #232b34;
	--c-text: #1b2027;
	--c-muted: #5d6671;
	--c-bg: #faf8f5;
	--c-surface: #ffffff;
	--c-muted-bg: #f2eee8;
	--c-line: #e6e0d7;
	--c-accent: #f07e0e;
	--c-accent-hover: #ff8f22;
	--c-accent-text: #b85700; /* AA on light backgrounds */
	--c-accent-soft: #ffebd8;
	--c-on-dark: #f1ede7;
	--c-on-dark-muted: #9aa3ad;
	--c-on-dark-line: rgba(241, 237, 231, .12);

	--f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--fs-xs: .8125rem;
	--fs-sm: .9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
	--fs-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
	--fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);
	--fs-h1: clamp(2.25rem, 1.6rem + 2.9vw, 4rem);
	--fs-hero: clamp(2.5rem, 1.55rem + 4.4vw, 5.25rem);

	--container: 1440px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 3rem + 3vw, 104px);
	--radius: 20px;
	--radius-sm: 12px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 1px 2px rgba(15, 20, 25, .04), 0 12px 32px -12px rgba(15, 20, 25, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* Canvas behind the page (overscroll bounce, rounded window corners) matches the edges:
   light header on top, dark footer at the bottom; dark at the top on pages with a dark hero. */
html { background: linear-gradient(to bottom, var(--c-bg) 50%, var(--c-ink) 50%); }
html:has(body.has-dark-hero) { background: var(--c-ink); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--c-ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0; }
.accent { color: var(--c-accent); }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 18px;
	font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
	text-transform: uppercase; letter-spacing: .08em;
	color: var(--c-accent-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transform: translateY(-.12em); } /* align with cap middle, not line box */
.eyebrow--light, .section--dark .eyebrow { color: var(--c-accent); }

/* ---------- Buttons & links ---------- */
.btn {
	--btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font-size: var(--fs-sm); font-weight: 600; line-height: 1;
	white-space: nowrap;
	color: var(--btn-fg); background: var(--btn-bg);
	border: 1.5px solid var(--btn-bd); border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: var(--c-accent-hover); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-text); --btn-bd: var(--c-line); }
.btn--ghost:hover { --btn-bd: var(--c-text); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--c-on-dark); --btn-bd: rgba(241, 237, 231, .28); }
.btn--ghost-light:hover { --btn-bd: var(--c-on-dark); }
.btn--sm { min-height: 42px; padding: 0 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
	color: var(--c-text); border-bottom: 1.5px solid var(--c-accent); padding-bottom: 4px;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--c-on-dark); }

.icon { width: 20px; height: 20px; flex: none; }


.tag {
	display: inline-flex; align-items: center;
	padding: calc(6px + .033em) 12px calc(6px - .033em); border-radius: 999px; /* caps have no descenders: nudge down to optical center */
	font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
	background: var(--c-accent-soft); color: var(--c-accent-text); text-decoration: none;
}
.tag--on-media { position: absolute; left: 14px; top: 14px; background: rgba(15, 20, 25, .72); color: #fff; backdrop-filter: blur(6px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	background: rgba(250, 248, 245, .86);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header.is-toggling, .site-header.is-toggling * { transition: none !important; }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { display: inline-flex; color: var(--c-ink); flex: none; }
.logo__img { width: 104px; height: auto; }
.logo--light { color: var(--c-on-dark); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__list a {
	display: block; padding: 8px 14px; white-space: nowrap; border-radius: 999px;
	font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
	transition: background .2s var(--ease);
}
.nav__list a:hover { background: rgba(15, 20, 25, .06); }
.nav__list .current-menu-item > a { background: var(--c-ink); color: #fff; }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.site-header__phone { font-weight: 600; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--c-line); border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.burger .icon { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Transparent header over the dark hero on the front page */
.has-dark-hero .site-header:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--c-on-dark); }
.has-dark-hero .site-header:not(.is-scrolled):not(.is-open) .logo { color: var(--c-on-dark); }
.has-dark-hero .site-header:not(.is-scrolled):not(.is-open) .nav__list a:hover { background: rgba(255, 255, 255, .1); }
.has-dark-hero .site-header:not(.is-scrolled):not(.is-open) .burger { border-color: rgba(255, 255, 255, .25); }
.has-dark-hero .site-main { margin-top: calc(var(--header-h) * -1); }

.mobile-nav {
	position: fixed; inset: var(--header-h) 0 0; z-index: 49;
	overflow-y: auto; padding: 24px 0 40px;
	background: var(--c-bg); color: var(--c-text);
}
.mobile-nav .nav__list { flex-direction: column; gap: 0; margin-bottom: 28px; }
.mobile-nav .nav__list a { padding: 16px 0; border-radius: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid var(--c-line); }
.mobile-nav .nav__list a:hover, .mobile-nav .nav__list .current-menu-item > a { background: none; color: var(--c-accent-text); }
.mobile-nav__contacts { display: grid; gap: 14px; margin-bottom: 28px; }
.mobile-nav__contacts a { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
body.nav-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--flush-top { padding-top: clamp(16px, 2.5vw, 32px); }
.section--muted { background: var(--c-muted-bg); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section__head { max-width: 760px; margin-bottom: clamp(24px, 2.5vw, 36px); }
.section__head--row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; max-width: none; }
.section__title { font-size: var(--fs-h2); }
.section__lead { margin-top: 18px; font-size: var(--fs-lg); color: var(--c-muted); }
.section--dark .section__lead { color: var(--c-on-dark-muted); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { color: var(--c-muted); }

/* ---------- Strata (geological layers) motif ---------- */
.hero__strata path, .page-header__strata, .cta__strata { pointer-events: none; }
.page-header__strata, .cta__strata {
	position: absolute; inset: auto 0 0 0; height: 70%;
	background:
		repeating-linear-gradient(176deg, transparent 0 26px, rgba(240, 126, 14, .07) 26px 27px),
		radial-gradient(120% 80% at 100% 100%, rgba(240, 126, 14, .08), transparent 60%);
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
	mask-image: linear-gradient(to top, #000 10%, transparent);
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(100svh, 920px);
	display: flex; align-items: flex-end;
	padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(40px, 5vw, 64px);
	background: var(--c-ink); color: var(--c-on-dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.7) contrast(1.05); }
.hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(15, 20, 25, .96) 0%, rgba(15, 20, 25, .82) 45%, rgba(15, 20, 25, .35) 100%),
		linear-gradient(0deg, rgba(15, 20, 25, 1) 0%, transparent 45%);
}
.hero__strata { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 46%; }
.hero__strata path {
	fill: none; stroke: var(--c-accent); stroke-width: 1.2;
	opacity: calc(.5 - var(--i) * .06);
	stroke-dasharray: 6 10;
	animation: strata-flow 18s linear infinite;
	animation-delay: calc(var(--i) * -2.4s);
}
@keyframes strata-flow { to { stroke-dashoffset: -320; } }

.hero__inner { position: relative; }
.hero__title { max-width: 15ch; font-size: var(--fs-hero); font-weight: 680; letter-spacing: -.04em; line-height: 1.02; }
.hero__lead { max-width: 58ch; margin-top: 28px; font-size: var(--fs-lg); color: var(--c-on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(48px, 7vw, 96px) 0 0; padding-top: 28px;
	border-top: 1px solid var(--c-on-dark-line);
}
.facts__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding-right: 24px; }
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--c-on-dark-line); }
.facts__value { margin: 0; font-family: var(--f-mono); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.facts__value span { color: var(--c-accent); font-size: .6em; }
.facts__label { font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.facts--section { margin: 0; padding: 0; border: 0; }

/* ---------- Page header ---------- */
.page-header {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
}
.page-header__strata {
	z-index: -1;
	/* Fade out at the bottom too: content right below the header must not hit a hard edge. */
	-webkit-mask-image: linear-gradient(to top, transparent 0, #000 45%, transparent 100%);
	mask-image: linear-gradient(to top, transparent 0, #000 45%, transparent 100%);
}
.page-header__title { max-width: 22ch; font-size: var(--fs-h1); letter-spacing: -.035em; }
.page-header__lead { max-width: 62ch; margin-top: 22px; font-size: var(--fs-lg); color: var(--c-muted); }
.page-header__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; font-family: var(--f-mono); font-size: var(--fs-sm); color: var(--c-muted); }
.page-header--404 { min-height: 60vh; display: flex; align-items: center; }

.breadcrumbs { margin-bottom: 28px; font-size: var(--fs-xs); color: var(--c-muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-text); text-decoration: underline; }
.breadcrumbs .breadcrumb_last { color: var(--c-text); }

/* ---------- Clients ---------- */
.clients { border-bottom: 1px solid var(--c-line); }
.clients__title { margin-bottom: 28px; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.clients__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; list-style: none; }
.clients__item img { max-height: 56px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.clients__item img:hover { filter: none; opacity: 1; }

/* ---------- Directions ---------- */
.directions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.direction { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.direction__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.direction__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.direction:hover .direction__media img { transform: scale(1.04); }
.direction__index { position: absolute; left: 20px; bottom: 16px; font-family: var(--f-mono); font-size: 3rem; line-height: 1; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.direction__body { display: flex; flex-direction: column; gap: 18px; flex: 1; padding: clamp(24px, 3vw, 36px); }
.direction__body .link-arrow { margin-top: auto; align-self: flex-start; }
.direction__title { font-size: var(--fs-h3); }
.direction__body > p { color: var(--c-muted); }

.checklist { display: grid; gap: 10px; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent-text); stroke-width: 2.5; }
.checklist--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }

/* ---------- Tech teaser ---------- */
.tech-teaser__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tech-teaser__figure { margin: 0; padding: 14px; border-radius: var(--radius); background: var(--c-ink-2); border: 1px solid var(--c-on-dark-line); }
.tech-teaser__figure img { width: 100%; border-radius: var(--radius-sm); }
.tech-teaser__figure figcaption { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--c-on-dark-muted); }
.steps-inline { display: grid; gap: 0; margin: 32px 0; list-style: none; border-top: 1px solid var(--c-on-dark-line); }
.steps-inline li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--c-on-dark-line); font-size: var(--fs-lg); font-weight: 550; }
.steps-inline .mono { font-size: var(--fs-xs); color: var(--c-accent); }

/* ---------- Advantages ---------- */
.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.advantage { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.section--muted .advantage { background: var(--c-bg); }
.advantage__value { margin-bottom: 18px; font-family: var(--f-mono); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); line-height: 1; letter-spacing: -.04em; color: var(--c-accent-text); }
.advantage__text { font-size: var(--fs-lg); font-weight: 550; line-height: 1.35; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-muted-bg); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.card__meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.card__title { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.015em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__text { font-size: var(--fs-sm); color: var(--c-muted); }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-accent-text); }
.card__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card__more .icon { transform: translateX(4px); }
.media-placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(176deg, var(--c-muted-bg) 0 18px, var(--c-line) 18px 19px); }

/* ---------- Stages ---------- */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; counter-reset: stage; border-top: 1px solid var(--c-line); }
.stage { position: relative; padding: 32px 28px 0 0; }
.stage::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 5px var(--c-accent-soft); }
.stage__num { display: block; margin-bottom: 12px; font-size: var(--fs-xs); color: var(--c-accent-text); }
.stage__title { margin-bottom: 10px; font-size: 1.1875rem; }
.stage p { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- CTA + form ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta__strata { z-index: -1; height: 100%; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta__lead { margin-top: 18px; font-size: var(--fs-lg); color: var(--c-on-dark-muted); }
.cta__card { display: grid; gap: 4px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.cta__contact { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.cta__contact:hover .cta__value { color: var(--c-accent-text); }
.cta__label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.cta__value { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; transition: color .2s var(--ease); }
.cta__card .btn { margin-top: 20px; }

.contact-list { display: grid; gap: 14px; margin-top: 32px; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--c-accent); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }



/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contacts__list { display: grid; gap: 0; margin: 28px 0 0; }
.contacts__list > div { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.contacts__list dt { margin-bottom: 4px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.contacts__list dd { margin: 0; font-weight: 550; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--c-accent-text); }
.contacts__map { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--radius); background: var(--c-muted-bg); border: 1px solid var(--c-line); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 32px; background: var(--c-ink); color: var(--c-on-dark); }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--c-on-dark-line); }
.site-footer__brand .logo__img { width: 124px; }
.site-footer__slogan { margin: 20px 0 28px; max-width: 18ch; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.site-footer__title { margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-on-dark-muted); }
.site-footer__nav .nav__list { flex-direction: column; gap: 2px; }
.site-footer__nav .nav__list a { padding: 6px 0; border-radius: 0; color: var(--c-on-dark); }
.site-footer__nav .nav__list a:hover, .site-footer__nav .current-menu-item > a { background: none; color: var(--c-accent); }
.site-footer .contact-list { margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 28px; font-size: var(--fs-xs); color: var(--c-on-dark-muted); }
.site-footer__bottom p { margin: 0 auto 0 0; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--c-on-dark); }

/* ---------- Works filter ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--c-line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 550; text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.chip:hover { border-color: var(--c-text); }
.chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.chip__count { font-family: var(--f-mono); font-size: 12px; opacity: .6; }

/* ---------- Article / prose ---------- */
.article > * { max-width: 920px; }
.article__cover { margin: 0 0 clamp(32px, 4vw, 56px); overflow: hidden; border-radius: var(--radius); }
.article__cover img { width: 100%; }
.prose { max-width: 72ch; font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.8em; font-size: var(--fs-h3); }
.prose a:not(.btn) { color: var(--c-accent-text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-accent); }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--c-muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose .wp-block-embed__wrapper { position: relative; }
.prose blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--c-accent); font-size: var(--fs-lg); }
.prose--case .case-label {
	display: flex; align-items: center; gap: 12px;
	margin-top: 2em; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
	text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-text);
}
.prose--case .case-label::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.prose--case .case-label:first-child { margin-top: 0; }
.prose--case .case-label + * { margin-top: .8em; }


.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--c-text); }

/* ---------- News post ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.news__body { max-width: 68ch; }
.news__body > p:first-child { font-size: var(--fs-lg); line-height: 1.6; color: var(--c-text); }
.news__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.news__cover { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--c-muted-bg); border: 1px solid var(--c-line); }
.news__cover a { display: block; cursor: zoom-in; }
.news__cover img { width: 100%; max-height: 60vh; object-fit: contain; }
.news__panel { display: grid; gap: 14px; justify-items: start; padding: 22px 24px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.news__panel p { margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.news__label { font-family: var(--f-mono); font-size: 12px !important; text-transform: uppercase; letter-spacing: .08em; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--c-line); border-radius: 50%; background: none; color: var(--c-text); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.share__btn:hover { border-color: var(--c-accent); color: var(--c-accent-text); }
.share__btn svg { width: 20px; height: 20px; }
.share__status { font-size: var(--fs-xs); color: var(--c-muted); }

/* Consecutive images in articles */
.prose .media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .media-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .media-grid figure { margin: 0; }
.prose .media-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose img { cursor: zoom-in; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 13, 17, .92); }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 96px); width: auto; height: auto; border-radius: var(--radius-sm); cursor: default; }
.lightbox__close { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(15, 20, 25, .6); color: #fff; cursor: pointer; }

/* ---------- Technology ---------- */
.principles { display: grid; gap: clamp(20px, 3vw, 40px); }
.principle { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.principle:nth-child(even) .principle__media { order: 2; }
.principle__media { margin: 0; padding: 12px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.principle__media img { width: 100%; border-radius: var(--radius-sm); }
.principle__num { display: block; margin-bottom: 12px; font-size: var(--fs-xs); color: var(--c-accent-text); }
.principle__title { margin-bottom: 14px; font-size: var(--fs-h3); }
.principle__body p { color: var(--c-muted); font-size: var(--fs-lg); }

.applications { display: grid; gap: clamp(20px, 3vw, 32px); }
.application { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.application__title { margin-bottom: 10px; font-size: var(--fs-h3); }
.application__lead { margin-bottom: 22px; color: var(--c-muted); }
.application__more { display: grid; gap: 14px; margin: 28px 0; padding-top: 24px; list-style: none; border-top: 1px solid var(--c-line); }
.application__more li { display: flex; gap: 12px; }
.application__more .icon { margin-top: 3px; color: var(--c-accent); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.1875rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--f-mono); font-size: 1.5rem; line-height: 1; color: var(--c-accent); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding-bottom: 22px; color: var(--c-muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__lead { font-size: var(--fs-lg); font-weight: 550; color: var(--c-text); }
.about__text .btn { margin-top: 1.6em; }
.about__map { margin: 0; }
.about__map img { width: 100%; opacity: .9; }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.person { overflow: hidden; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.person__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--c-muted-bg); }
.person__body { padding: 22px 24px 26px; }
.person__role { margin-bottom: 6px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-accent-text); }
.person__name { margin-bottom: 10px; font-size: 1.1875rem; line-height: 1.3; }
.person__bio { font-size: var(--fs-sm); color: var(--c-muted); }

.timeline { list-style: none; border-top: 1px solid var(--c-line); }
.timeline__item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.timeline__date { font-size: var(--fs-sm); color: var(--c-muted); }
.timeline__link { font-size: var(--fs-lg); font-weight: 550; text-decoration: none; }
.timeline__link:hover { color: var(--c-accent-text); }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.review__icon { width: 36px; height: 36px; color: var(--c-accent); }
.review__text { margin: 0; font-size: var(--fs-lg); line-height: 1.5; }
.review__author { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--c-line); }
.review__author a, .review__author span { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
	.js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
	.site-header__phone { display: none; }
	.site-header__inner { gap: 20px; }
	.nav__list a { padding: 8px 10px; }
}
@media (max-width: 1100px) {
	.nav, .site-header__cta { display: none; }
	.burger { display: grid; }
	.site-header__actions { margin-left: auto; }
	.site-header.is-open { background: var(--c-bg); }
}
@media (max-width: 1024px) {
	.grid--3, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
	.stage { border-top: 1px solid var(--c-line); }
	.tech-teaser__grid, .cta__grid, .contacts__grid, .about, .faq { grid-template-columns: 1fr; }
	.news { grid-template-columns: 1fr; }
	.news__aside { display: contents; }
	.news__cover { order: -1; max-width: 560px; }
	.news__body { max-width: none; }
	.news__panel .link-arrow { display: none; } /* «Все новости» is right below, in the next section */
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.logo__img { width: 92px; }
	.grid--2, .grid--3, .team, .directions, .advantages, .principle, .stages { grid-template-columns: 1fr; }
	.person__photo { aspect-ratio: 1; }
	.principle:nth-child(even) .principle__media { order: 0; }
	.checklist--columns { grid-template-columns: 1fr; }
	.prose .media-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section__head--row { flex-direction: column; align-items: flex-start; }
	.hero { min-height: auto; }
	.hero__actions .btn { flex: 1 1 100%; }
	.facts__item { padding-right: 12px; }
	.facts__item + .facts__item { padding-left: 12px; }
	.clients__list { justify-content: flex-start; gap: 24px 32px; }
	.clients__item img { max-height: 40px; max-width: 110px; }
	.contacts__map { min-height: 320px; }
	.timeline__item { grid-template-columns: 1fr; gap: 4px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__bottom p { margin-right: 0; width: 100%; }
}
.breadcrumbs__sep { margin-inline: 8px; opacity: .5; }
