/* ТІРА БМ — стилі сайту. Токени: tokens.css */

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 16px); }
/* на всьому сайті текст не виділяється: над текстом — звичайна стрілочка; посилання й кнопки — «рука»; поля форми працюють як завжди */
html { -webkit-user-select: none; user-select: none; cursor: default; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), textarea { cursor: text; }
a, button, [role="button"], label, summary { cursor: pointer; }
/* Однаковий вигляд у всіх браузерах (Safari, Firefox, Edge — як у Chrome):
   згладжування шрифту, без підсвітки дотику на iPhone, поля й кнопки без системного оформлення */
html { -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }
button, .field__input, input[type="submit"], input[type="button"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
button { border-radius: 0; }
summary { list-style: none; } summary::-webkit-details-marker { display: none; }
video { -webkit-user-drag: none; }
body {
  margin: 0;
  font: 400 16px/var(--lh-body) var(--font-text);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--fg-1); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.icon { flex: none; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--tira-black); color: #fff; font-weight: 600; }
.skip-link:focus { top: 16px; color: #fff; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-1);
  font: 600 15px/1 var(--font-text); letter-spacing: .01em; white-space: nowrap;
  cursor: pointer; text-shadow: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--fg-on-accent); }
.btn--primary:active { background: var(--accent-press); border-color: var(--accent-press); }
.btn--light { background: var(--tira-white); border-color: var(--tira-white); color: var(--fg-1); }
.btn--light:hover { background: var(--tira-ink-100); border-color: var(--tira-ink-100); color: var(--fg-1); }
.btn--block { display: flex; width: 100%; }
.btn--dark { background: var(--tira-black); border-color: var(--tira-black); color: var(--fg-inverse); }
.btn--dark:hover { background: var(--tira-ink-700); border-color: var(--tira-ink-700); color: var(--fg-inverse); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--fg-1); }
.btn--outline:hover { background: var(--tira-black); border-color: var(--tira-black); color: var(--fg-inverse); }
button.btn { font-family: var(--font-text); }

.btn-square {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-1);
  background: var(--accent); color: var(--fg-on-accent);
  transition: background var(--dur-fast) var(--ease-out);
}

/* ── Header (floating glass) ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 0;
  pointer-events: none;
}
.site-header__bar, .mobile-nav { pointer-events: auto; }
/* Хедер на всю ширину: логотип ліворуч, меню по центру сторінки, мова й кнопка праворуч */
.site-header__bar {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  /* смуга на всю ширину, вміст — у межах змісту сайту (як у блоків нижче) */
  padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.site-header__start, .site-header__end { display: flex; align-items: center; gap: 28px; min-width: 0; }
.site-header__end { justify-content: flex-end; gap: 20px; }
/* Матове скло (glass="frosted" з дизайн-системи): світле — за замовчуванням,
   темне (is-dark) — над фото першого екрана головної */
.glass {
  background: var(--glass-light-bg-frosted);
  -webkit-backdrop-filter: blur(16px) saturate(180%); /* Safari: у префіксній властивості змінні var() не спрацьовують — значення прописані явно */
  backdrop-filter: blur(var(--glass-blur-frosted)) saturate(var(--glass-saturate));
  border: 0;
  border-bottom: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-header);
  transition: background var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 24px; width: auto; }
.site-header .logo-on-dark { display: none; }
.site-header.is-dark .logo-on-dark { display: block; }
.site-header.is-dark .logo-on-light { display: none; }
.site-header__divider { flex: none; width: 1px; height: 28px; background: var(--border-2); }

.nav { display: flex; justify-content: center; gap: 24px; min-width: 0; }
@media (max-width: 1400px) { .site-header__bar { grid-template-columns: auto 1fr auto; } }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 15px/1 var(--font-text); color: var(--fg-1); white-space: nowrap;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { border-bottom-color: var(--accent); }
.nav__link .icon { transition: transform var(--dur-base) var(--ease-out); }
.nav__item:not(.is-closed):hover > .nav__link .icon, .nav__item:has(:focus-visible) > .nav__link .icon { transform: rotate(180deg); }

/* Випадне меню: панель «виростає» з нижнього краю шапки, тонка червона лінія зверху,
   пункти з'являються по черзі; без роздільників — тільки акцентна риска при наведенні */
.dropdown {
  position: absolute; top: 100%; left: -23px; padding-top: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.nav__item:not(.is-closed):hover > .dropdown, .nav__item:has(:focus-visible) > .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s;
}
.dropdown__panel {
  position: relative; min-width: 280px; padding: 10px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border-1); border-top: 0; border-radius: 0 0 var(--radius-2) var(--radius-2);
  box-shadow: 0 18px 40px rgba(18, 18, 18, .12);
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out), background var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.dropdown__panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.nav__item:not(.is-closed):hover .dropdown__panel, .nav__item:has(:focus-visible) .dropdown__panel { clip-path: inset(0 -48px -64px -48px); }
.nav__item:not(.is-closed):hover .dropdown__panel::before, .nav__item:has(:focus-visible) .dropdown__panel::before { transform: none; transition-delay: 80ms; }
.dropdown__panel a {
  display: flex; align-items: center;
  padding: 11px 12px; border-radius: var(--radius-1);
  font: 500 15px/1.3 var(--font-text); color: var(--fg-1); white-space: nowrap;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.dropdown__panel a::before {
  content: ""; flex: none; width: 0; height: 2px; margin-right: 0; background: var(--accent);
  transition: width var(--dur-base) var(--ease-out), margin-right var(--dur-base) var(--ease-out);
}
.nav__item:not(.is-closed):hover .dropdown__panel a, .nav__item:has(:focus-visible) .dropdown__panel a {
  opacity: 1; transform: none;
  transition-duration: 260ms, 260ms, var(--dur-fast), var(--dur-fast);
  transition-delay: calc(60ms + var(--i, 0) * 35ms), calc(60ms + var(--i, 0) * 35ms), 0s, 0s;
}
.dropdown__panel a:hover, .dropdown__panel a:focus-visible { background: rgba(18, 18, 18, .04); color: var(--fg-1); }
.dropdown__panel a:hover::before, .dropdown__panel a:focus-visible::before,
.dropdown__panel a[aria-current="page"]::before { width: 14px; margin-right: 10px; }
.dropdown__panel a[aria-current="page"] { color: var(--accent); }
.site-header.is-dark .dropdown__panel { background: rgba(20, 20, 20, .92); border-color: var(--glass-border-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.site-header.is-dark .dropdown__panel a { color: var(--fg-inverse-2); }
.site-header.is-dark .dropdown__panel a:hover, .site-header.is-dark .dropdown__panel a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--fg-inverse); }
@media (prefers-reduced-motion: reduce) {
  .dropdown__panel, .dropdown__panel a { transform: none !important; clip-path: none !important; }
}

.site-header__cta { flex: none; }

.lang { display: flex; align-items: center; gap: 8px; flex: none; }
.lang a, .lang span[aria-current] {
  padding: 6px 2px 4px; font: 600 13px/1 var(--font-mono); letter-spacing: .06em;
  color: var(--fg-3); border-bottom: 2px solid transparent;
}
.lang [aria-current] { color: var(--fg-1); border-bottom-color: var(--accent); }
.lang a:hover { color: var(--fg-1); }
.lang__sep { width: 1px; height: 12px; background: var(--fg-3); opacity: .5; }

.burger {
  display: none; width: 40px; height: 40px; place-items: center; flex: none;
  background: none; border: 0; padding: 0; color: var(--fg-1); cursor: pointer;
}
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.site-header.is-dark .glass { background: var(--glass-dark-bg-frosted); border-color: var(--glass-border-dark); }
.site-header.is-dark .site-header__divider { background: var(--border-inverse); }
.site-header.is-dark .nav__link, .site-header.is-dark .burger, .site-header.is-dark .lang [aria-current] { color: var(--fg-inverse); }
.site-header.is-dark .nav__link:hover { color: var(--accent); }
.site-header.is-dark .lang a { color: var(--fg-inverse-2); }
.site-header.is-dark .lang a:hover { color: var(--fg-inverse); }
.site-header.is-dark .lang__sep { background: var(--fg-inverse-2); }

.mobile-nav {
  margin: 0; padding: 8px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 20px;
  max-height: calc(100svh - var(--header-h) - var(--header-top) - 24px); overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border-1); box-shadow: var(--shadow-header); }
.mobile-nav > ul > li + li { border-top: var(--rule-hair); }
.mobile-nav__link { display: block; padding: 14px 0; font: 600 20px/1.2 var(--font-display); }
.mobile-nav__link[aria-current="page"] { color: var(--accent); }
.mobile-nav__sub { padding: 0 0 14px 16px; border-left: 2px solid var(--accent); margin-bottom: 14px; }
.mobile-nav__sub a { display: block; padding: 7px 0; font: 500 16px/1.3 var(--font-text); color: var(--fg-2); }
.mobile-nav__cta { display: none; margin-top: 12px; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (min-width: 1121px) {
  .mobile-nav { display: none !important; }
}
@media (max-width: 640px) {
  .site-header__bar { gap: 14px; padding: 0 6px 0 var(--gutter); }
  .site-header__start, .site-header__end { gap: 12px; }
  .site-header__divider, .site-header__cta { display: none; }
  .site-header__logo img { height: 22px; }
  .mobile-nav { padding: 4px var(--gutter) 16px; }
  .mobile-nav__cta { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; display: flex;
  min-height: max(640px, 100svh);
  margin-top: calc(-1 * (var(--header-h) + var(--header-top)));
  color: var(--fg-inverse); background: var(--tira-black); overflow: hidden;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 65% 50%; } /* на екранах 16:10 і вужчих — екскаватор у кадрі */
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 12, 12, .55) 0%, rgba(12, 12, 12, 0) 30%), var(--scrim-left); }

.hero__inner {
  position: relative; width: 100%; max-width: var(--container); margin: 0 auto;
  padding: calc(var(--header-h) + var(--header-top) + 64px) var(--gutter) 0;
  display: flex; flex-direction: column;
}
.eyebrow { display: flex; gap: 14px; align-items: stretch; max-width: 360px; margin-bottom: 24px; }
.eyebrow::before { content: ''; flex: none; width: var(--accent-bar); background: var(--accent); }
.eyebrow span { font: 600 16px/1.3 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font: 700 var(--fs-hero)/var(--lh-tight) var(--font-display); letter-spacing: var(--ls-display); max-width: 720px; }
.hero__lead { margin-top: 18px; font: 400 22px/1.4 var(--font-text); }
.hero__lead--years { margin-top: 6px; } /* «15 років на ринку України.» — тим самим шрифтом, рядком нижче */
.hero__cta { margin-top: 32px; }
.hero__tagline { margin-top: auto; padding: 28px 0 clamp(32px, 5vh, 56px); display: flex; align-items: center; gap: 24px; color: inherit; }
.hero__tagline span { font: 500 12px/1.5 var(--font-text); letter-spacing: var(--ls-tagline); text-transform: uppercase; }

@media (max-width: 760px) {
  .hero { min-height: max(560px, 100svh); }
  .hero__media img { object-position: 62% 50%; }
  .hero__scrim { background: linear-gradient(0deg, rgba(12, 12, 12, .6), rgba(12, 12, 12, .25) 60%), var(--scrim-left); }
  .hero__inner { padding-top: calc(var(--header-h) + var(--header-top) + 48px); }
  .hero__lead { font-size: 19px; }
  .hero__tagline { gap: 16px; }
  .hero__tagline span { letter-spacing: .18em; }
}

/* «15 років на ринку України» — невеликий напис із фірмовою рискою над описом у банерах послуг і на головному банері */
.years { display: inline-flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap; font: 600 13px/1.2 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-1); }
.years .tick { width: 22px; }
.page-top .years, .sub-hero .years { margin: clamp(10px, 1.6vh, 16px) 0 -4px; }
/* ── Sections ─────────────────────────────────────────── */
/* «Наші клієнти» (головна): підпис + два вільні ряди логотипів; логотипи чорні (силует), при наведенні — у фірмових кольорах */
.clients { padding: clamp(24px, 4vh, 40px) 0 clamp(40px, 7vh, 72px); background: #fff; }
.clients .clients__label { margin-bottom: clamp(36px, 6vh, 64px); } /* той самий стиль підпису, що «Послуги» і «Проєкти» (.overline) */
.clients__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 4.5vh, 48px) clamp(20px, 3vw, 48px); align-items: center; margin: 0; padding: 0; list-style: none; }
.clients__item { display: flex; justify-content: center; transition: opacity 600ms var(--ease-out) calc(var(--i, 0) * 50ms), transform 600ms var(--ease-out) calc(var(--i, 0) * 50ms); }
.clients__item:nth-child(6n + 1) { justify-content: flex-start; }
.clients__item:nth-child(6n) { justify-content: flex-end; }
.clients__logo { display: block; }
.clients__logo img { display: block; width: auto; height: clamp(34px, 3.2vw, 46px); max-width: 100%; filter: brightness(0); opacity: .9; transition: filter 350ms var(--ease-out), opacity 350ms var(--ease-out), transform 400ms var(--ease-out); }
.clients__item:hover .clients__logo img, .clients__logo:focus-visible img { filter: none; opacity: 1; transform: translateY(-2px); }
.clients__grid.is-waiting .clients__item { opacity: 0; transform: translateY(12px); transition: none; }
@media (max-width: 1000px) { .clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .clients__item, .clients__item:nth-child(n) { justify-content: center; } }
@media (max-width: 560px) { .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Релокація → «Від технічного обстеження до відновлення…»: 8 етапів-вкладок і деталі вибраного */
.stg .sh { margin-bottom: 12px; }
.stg .sh__aside { border-left-color: var(--accent); }
.stg__hint { margin-bottom: 14px; font: 400 15px/1.4 var(--font-text); color: var(--fg-2); }
.stg__tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 3px solid var(--accent); background: var(--bg-alt); }
.stg__tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px; padding: 16px 16px 18px; border: 0; border-right: 1px solid var(--border-2); background: none; color: var(--fg-1); text-align: left; cursor: pointer; transition: background 300ms var(--ease-out), color 300ms var(--ease-out); }
.stg__tab:last-child { border-right: 0; }
.stg__tab:hover { background: #ebebea; }
.stg__tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.stg__tab-n { font: 700 15px/1 var(--font-display); letter-spacing: .02em; }
.stg__tab-name { font: 600 clamp(14px, 1.15vw, 17px)/1.25 var(--font-display); letter-spacing: var(--ls-display); }
.stg__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out); }
.stg__tab:not([aria-selected="true"]):hover::after { transform: none; }
.stg__panels { display: grid; padding-top: clamp(28px, 4vh, 48px); }
.stg__panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; visibility: hidden; opacity: 0; transition: opacity 140ms linear, visibility 0s linear 140ms; }
.stg__panel.is-active { visibility: visible; opacity: 1; transition: opacity 360ms var(--ease-out) 140ms; } /* спершу зникає попередній етап, потім проявляється новий — без накладання */
.stg__art { position: relative; overflow: hidden; }
.stg__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.stg__art:hover img, .stg__art:hover .stg__glow { transform: scale(1.03); }
.stg__art:hover .stg__glow { opacity: 1; } /* наведення: червоні деталі креслення світяться, як скрізь на сайті */
.stg__title { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; font: 700 clamp(24px, 2.25vw, 36px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.stg__num { flex: none; }
.stg__slash { flex: none; color: var(--accent); }
.stg__lead { margin-top: clamp(16px, 2.4vh, 24px); font: 700 clamp(17px, 1.4vw, 21px)/1.35 var(--font-text); color: var(--fg-1); }
.stg__text { margin-top: 14px; font: 400 clamp(15px, 1.15vw, 18px)/1.6 var(--font-text); color: var(--fg-2); }
.stg__list-title { margin-top: clamp(20px, 3vh, 30px); font: 700 clamp(17px, 1.35vw, 20px)/1.2 var(--font-display); letter-spacing: var(--ls-display); }
.stg__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), auto); grid-auto-flow: column; align-content: start; column-gap: 36px; /* заповнюється по колонках, як на макеті */ margin: 14px 0 0; padding: 0; list-style: none; }
.stg__list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--border-2); font: 400 clamp(15px, 1.1vw, 17px)/1.4 var(--font-text); color: var(--fg-1); }
.stg__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 13px; background: var(--accent); clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%); }
@media (max-width: 1100px) {
  .stg__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .stg__tab { flex: none; width: 170px; scroll-snap-align: start; }
  .stg__panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .stg__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } .stg__title { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .stg__panel { transition: none; } }

/* «Про компанію» → перший екран: фото зі скісним лівим краєм (кут фірмової мітки) і червоною смугою вздовж нього, плашка з фактами */
.ab-hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - var(--header-h) - var(--header-top)); padding: clamp(32px, 6vh, 64px) 0; overflow: hidden; background: #fff; }
.ab-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 57%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); background: var(--tira-ink-200); }
.ab-hero__media picture, .ab-hero__media img { display: block; width: 100%; height: 100%; }
.ab-hero__media img { object-fit: cover; object-position: 60% 50%; animation: ab-hero-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ab-hero-zoom { from { transform: scale(1.12); } to { transform: none; } }
.ab-hero__stripe { position: absolute; inset: 0; background: var(--accent); clip-path: polygon(16% 0, 18.2% 0, 2.2% 100%, 0 100%); transform-origin: top; animation: ab-hero-stripe 1.1s cubic-bezier(.65, 0, .25, 1) .25s both; }
@keyframes ab-hero-stripe { from { clip-path: polygon(16% 0, 18.2% 0, 18.2% 0, 16% 0); } }
.ab-hero__facts { position: absolute; left: 22%; bottom: clamp(24px, 6vh, 56px); display: flex; margin: 0; background: rgba(18, 18, 18, .86); color: #fff; animation: ab-hero-facts .8s var(--ease-out) 1s both; }
@keyframes ab-hero-facts { from { opacity: 0; transform: translateY(16px); } }
.ab-hero__facts > div { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 1.6vw, 22px) clamp(18px, 2vw, 30px); }
.ab-hero__facts > div + div { border-left: 1px solid rgba(255, 255, 255, .18); }
.ab-hero__facts dt { font: italic 700 clamp(30px, 3vw, 46px)/1 var(--font-display); color: #fff; }
.ab-hero__facts dt::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; background: var(--accent); }
.ab-hero__facts dd { margin: 0; font: 600 11px/1.3 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.ab-hero__inner { position: relative; z-index: 1; width: 100%; }
.ab-hero__text { display: flex; flex-direction: column; align-items: flex-start; width: min(44%, 600px); }
.ab-hero__text .overline { margin-bottom: 14px; }
.ab-hero__title { font: 700 clamp(40px, 4.6vw, 72px)/1 var(--font-display); letter-spacing: var(--ls-display); }
.ab-hero__lead { margin-top: clamp(18px, 2.6vh, 28px); font: 500 clamp(17px, 1.35vw, 20px)/1.5 var(--font-text); color: var(--fg-1); }
.ab-hero__more { position: relative; display: grid; gap: 10px; margin: clamp(18px, 2.6vh, 28px) 0 clamp(22px, 3.2vh, 34px); padding-top: clamp(16px, 2.2vh, 24px); border-top: 1px solid var(--border-2); }
.ab-hero__more .tick { position: absolute; left: 0; top: -2px; width: 48px; }
.ab-hero__more p { font: 400 clamp(14px, 1.05vw, 16px)/1.6 var(--font-text); color: #3A3A3A; }
@media (prefers-reduced-motion: reduce) { .ab-hero__media img, .ab-hero__stripe, .ab-hero__facts { animation: none; } }
@media (max-width: 900px) {
  .ab-hero { display: block; min-height: 0; padding: 0 0 40px; }
  .ab-hero__media { position: relative; width: 100%; height: clamp(240px, 56vw, 420px); clip-path: none; }
  .ab-hero__stripe { clip-path: polygon(0 calc(100% - 6px), 100% calc(100% - 6px), 100% 100%, 0 100%); animation: none; }
  .ab-hero__facts { left: var(--gutter); bottom: 20px; }
  .ab-hero__text { width: 100%; padding-top: 28px; }
}

/* «Про компанію» → «Наші ресурси та можливості»: 4 компактні картки 2×2 — фото з червоною міткою-номером ліворуч, текст праворуч */
.res .sh { margin-bottom: clamp(24px, 3.6vh, 40px); }
.res__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.res__card { --d: calc(var(--i, 0) * 140ms); position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); background: #fff; border: 1px solid var(--border-2); overflow: hidden; transition: opacity 700ms var(--ease-out) var(--d), transform 800ms var(--ease-out) var(--d), border-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.res__card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.res__card:hover { border-color: var(--tira-ink-300); box-shadow: 0 20px 44px -28px rgba(18, 18, 18, .28); }
.res__card:hover::after { transform: none; }
.res__media { position: relative; overflow: hidden; background: var(--tira-ink-200); }
.res__media picture, .res__media img { display: block; width: 100%; height: 100%; }
.res__media img { object-fit: cover; aspect-ratio: auto; min-height: 100%; transition: transform 800ms var(--ease-out); }
.res__card:hover .res__media img { transform: scale(1.05); }
.res__num { position: absolute; left: 0; top: 0; padding: 8px 22px 8px 14px; background: var(--accent); color: #fff; font: italic 700 clamp(18px, 1.6vw, 24px)/1 var(--font-display); clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
/* фірмова риска з гострим кінчиком: при появі картки «пробігає» зліва направо, при наведенні — знову */
.res__rule { position: relative; display: block; width: calc(100% - 12px); height: 3px; margin-bottom: 6px; background: var(--accent); transition: width 1100ms cubic-bezier(.65, 0, .25, 1) calc(var(--d) + 250ms); }
.res__rule::after { content: ""; position: absolute; right: -10px; top: -4px; width: 16px; height: 11px; background: var(--accent); clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%); }
.res__card:hover .res__rule { animation: capx-draw 900ms cubic-bezier(.65, 0, .25, 1); }
.res__card.is-waiting .res__rule { width: 0; transition: none; }
.res__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(20px, 2.2vw, 32px); }
.res__title { font: 700 clamp(20px, 1.7vw, 26px)/1.15 var(--font-display); letter-spacing: var(--ls-display); }
.res__text { font: 400 clamp(14px, 1.05vw, 16px)/1.6 var(--font-text); color: #3A3A3A; }
.res__card.is-waiting { opacity: 0; transform: translateY(24px); transition: none; }
@media (max-width: 1000px) { .res__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .res__card { grid-template-columns: minmax(0, 1fr); } .res__media img { aspect-ratio: 16 / 10; } .res__card { --d: 0ms; } }

/* «Про компанію» → «Принципи нашої роботи»: та сама темна стрічка, що «Наші компетенції», але без фото — колонки в межах контейнера */
.capx--text .capx__head { grid-template-columns: minmax(0, 1fr); }
.capx--text .capx__info { padding-left: 0; padding-top: 0; }
.capx--text .capx__item + .capx__item .capx__info { padding-left: clamp(18px, 1.9vw, 40px); border-left: 1px solid rgba(255, 255, 255, .12); }
.capx--text .capx__text { font-size: clamp(14px, 1.1vw, 17px); }
@media (max-width: 1100px) { .capx--text .capx__item:nth-child(3) .capx__info { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) { .capx--text .capx__item + .capx__item .capx__info { padding-left: 0; border-left: 0; } }

/* Темна стрічка на всю ширину вікна: «Наші компетенції» (головна) і «Досвід, техніка та можливості» (Промисловий демонтаж) */
.capx { background: radial-gradient(120% 90% at 50% 0%, #202020 0%, #151515 55%, var(--bg-inverse) 100%); color: #fff; padding: clamp(36px, 6vh, 60px) 0 clamp(40px, 7vh, 72px); overflow: hidden; }
.capx__head { display: grid; grid-template-columns: minmax(0, auto) auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 2.4vw, 40px); margin-bottom: clamp(24px, 4vh, 44px); }
.capx__head h2 { font: 700 var(--fs-h2)/1.05 var(--font-display); letter-spacing: var(--ls-display); color: #fff; }
.capx__slash { width: 4px; height: clamp(44px, 4.4vw, 64px); background: var(--accent); transform: skewX(-22deg); }
.capx__aside { max-width: 540px; font: 400 clamp(15px, 1.15vw, 18px)/1.5 var(--font-text); color: rgba(255, 255, 255, .78); }
.capx__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
#competencies.capx { padding-top: clamp(24px, 4vh, 40px); }
@media (min-width: 1101px) and (max-height: 820px) { .capx .capx__media { aspect-ratio: 1.6; } } /* невисокі екрани ноутбуків — стрічка вміщається повністю */ /* відступ від «Підходу» — як між головним банером і «Послугами» */ /* далі одразу темна смуга «Почнімо з вашого об’єкта» — без зайвого проміжку */
.capx__item { --d: calc(var(--i, 0) * 170ms); position: relative; display: flex; flex-direction: column; min-width: 0; }
.capx__media { position: relative; aspect-ratio: 1.4; overflow: hidden; background: var(--tira-ink-800); }
.capx__item + .capx__item .capx__media { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22); }
.capx__media picture, .capx__media img { display: block; width: 100%; height: 100%; }
.capx__media img { object-fit: cover; transition: transform 1400ms var(--ease-out) var(--d), filter 500ms var(--ease-out); }
.capx__media::before { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; z-index: 1; background: linear-gradient(180deg, rgba(16, 16, 16, 0), rgba(16, 16, 16, .55)); pointer-events: none; }
.capx__big { position: absolute; left: 7%; top: 5%; z-index: 1; font: italic 700 clamp(64px, 7.5vw, 128px)/1 var(--font-display); letter-spacing: -.02em; color: rgba(255, 255, 255, .26); pointer-events: none; transition: transform 900ms var(--ease-out) calc(var(--d) + 500ms), opacity 900ms var(--ease-out) calc(var(--d) + 500ms); }
.capx__info { position: relative; padding: clamp(22px, 3vh, 32px) clamp(18px, 1.9vw, 40px) 0; }
/* фірмова риска (як .tick): лінія з гострим скошеним кінчиком; при появі «пробігає» зліва направо — кінчик веде лінію */
.capx__rule { position: relative; display: block; width: calc(100% - 12px); height: 3px; background: var(--accent); transition: width 1300ms cubic-bezier(.65, 0, .25, 1) calc(var(--d) + 100ms); }
.capx__rule::after { content: ""; position: absolute; right: -10px; top: -4px; width: 16px; height: 11px; background: var(--accent); clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%); transition: transform 400ms var(--ease-out); }
.capx__title { display: flex; align-items: baseline; gap: 12px; margin-top: clamp(18px, 2.4vh, 26px); font: 700 clamp(19px, 1.5vw, 27px)/1.15 var(--font-display); letter-spacing: var(--ls-display); color: #fff; transition: opacity 700ms var(--ease-out) calc(var(--d) + 450ms), transform 700ms var(--ease-out) calc(var(--d) + 450ms); }
.capx__num { flex: none; color: var(--accent); font-style: italic; font-size: 1.15em; transition: transform 400ms var(--ease-out); }
.capx__text, .capx__list { margin-top: 12px; font: 400 clamp(14px, 1.05vw, 16px)/1.55 var(--font-text); color: rgba(255, 255, 255, .74); transition: opacity 700ms var(--ease-out) calc(var(--d) + 600ms), transform 700ms var(--ease-out) calc(var(--d) + 600ms); }
.capx__list { display: grid; gap: clamp(8px, 1.3vh, 13px); margin: clamp(14px, 2vh, 20px) 0 0; padding: 0; list-style: none; }
.capx__list li { display: flex; align-items: baseline; gap: 12px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.35; color: rgba(255, 255, 255, .9); }
@media (min-width: 1101px) { .capx__list li { white-space: nowrap; } } /* кожен пункт — в один рядок */
@media (min-width: 1101px) and (max-width: 1279px) { .capx__list li { gap: 10px; font-size: 13px; } }
/* маркер списку — лише фірмова скісна «крапка» (кінчик риски), без лінії й без анімації */
.capx__list .tick { width: 0; margin: 0 4px 0 6px; transform: translateY(-3px); transition: none; }
/* при наведенні велика риска заново «відкривається» зліва направо */
@keyframes capx-draw { from { width: 0; } }
.capx__item:hover .capx__rule { animation: capx-draw 900ms cubic-bezier(.65, 0, .25, 1); }
/* наведення: колонка «в світлі», сусідні фото приглушені; лінія товщає, номер зсувається */
.capx__grid:hover .capx__item:not(:hover) .capx__media img { filter: grayscale(.65) brightness(.55); }
.capx__item:hover .capx__media img { transform: scale(1.05); transition-delay: 0s; }
.capx__item:hover .capx__rule::after { transform: translateX(6px); }
.capx__item:hover .capx__num { transform: translateX(-4px) skewX(-6deg); }
/* стан «ще не на екрані» — вмикається миттєво, анімується лише поява */
.capx__grid.is-waiting .capx__media img { transform: scale(1.14); transition: none; }
.capx__grid.is-waiting .capx__big { opacity: 0; transform: translateY(30px); transition: none; }
.capx__info.is-waiting .capx__rule { width: 0; transition: none; }
.capx__info.is-waiting .capx__rule::after { transition: none; }
.capx__info.is-waiting :is(.capx__title, .capx__text, .capx__list) { opacity: 0; transform: translateY(14px); transition: none; }
@media (max-width: 1100px) {
  .capx__head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .capx__slash { display: none; }
  .capx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .capx__item { --d: calc(var(--i, 0) * 170ms % 340ms); }
  .capx__item:nth-child(3) .capx__media { box-shadow: none; }
}
@media (max-width: 640px) {
  .capx__grid { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .capx__item { --d: 0ms; }
  .capx__item + .capx__item .capx__media { box-shadow: none; }
  .capx__info { padding-inline: var(--gutter); }
}


.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.rule { border: 0; border-top: var(--rule-hair); margin: 0; }

.sh { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.sh--single { grid-template-columns: 1fr; margin-bottom: 0; }
.overline { margin-bottom: 18px; font: 600 var(--fs-overline)/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.sh h2 { font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.sh__aside { border-left: var(--rule-hair); padding: 0 0 6px 32px; font: 400 16px/1.5 var(--font-text); color: var(--fg-2); }
@media (max-width: 900px) {
  .sh { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .sh__aside { padding-left: 20px; }
}

/* ── Service cards ────────────────────────────────────── */
.card { display: flex; flex-direction: column; gap: 18px; color: var(--fg-1); }
.card:hover { color: var(--fg-1); }
.card__media { overflow: hidden; border-radius: var(--radius-1); background: var(--tira-ink-200); }
.card__media img { width: 100%; height: auto; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.025); }
.card__row { display: flex; align-items: flex-start; gap: 16px; }
.card__num { align-self: stretch; padding: 8px 16px 0 0; border-right: var(--rule-hair); font: 500 13px/1 var(--font-mono); color: var(--fg-3); }
.card__body { flex: 1; min-width: 0; }
.card__title { font: 700 26px/var(--lh-snug) var(--font-display); transition: color var(--dur-fast) var(--ease-out); }
.card:hover .card__title { color: var(--accent); }
.card__text { margin-top: 6px; font: 400 14px/1.45 var(--font-text); color: var(--fg-2); }
.card:hover .btn-square { background: var(--accent-hover); }
@media (max-width: 760px) {
  .card__title { font-size: 23px; }
}

/* ── Стрічка послуг на головній (гортається) ─────────────
   Картки того ж розміру (дві в межах змісту), стрічка виходить за правий край екрана,
   щоб наступна картка «визирала»; під нею — смуга прогресу і стрілки. */
/* Фірмова рисочка: червона лінія зі скошеним кінчиком (як у логотипі); видовжується при наведенні на картку */
.tick { position: relative; display: block; flex: none; width: 36px; height: 3px; background: var(--accent); transition: width 500ms var(--ease-out); }
.tick::after { content: ""; position: absolute; right: -6px; top: -3px; width: 12px; height: 9px; background: var(--accent); clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%); }

/* ── Послуги: великі рядки «фото | номер, назва, опис | стрілка» ──
   На ПК блок займає рівно екран під шапкою: заголовок і дві послуги, фото тягнуться під висоту вікна */
/* Розділи головної, на які веде меню (Послуги, Проєкти, Про компанію), стають рівно під шапку — без смужки попереднього блоку */
#services, #projects, #about { scroll-margin-top: -16px; }
.section--svc { padding-top: clamp(24px, 4vh, 40px); }
.section--svc .sh { margin-bottom: clamp(16px, 2.6vh, 28px); }
.section--svc .overline { margin-bottom: 12px; }
.svc { border-top: var(--rule-hair); }
@media (min-width: 761px) {
  .section--svc { display: flex; min-height: calc(100svh - var(--header-h) - var(--header-top)); padding-bottom: clamp(20px, 3vh, 36px); }
  .section--svc > .container { display: flex; flex-direction: column; width: 100%; }
  .section--svc .svc { flex: 1; display: grid; grid-template-rows: repeat(2, minmax(min-content, 1fr)); }
  .section--svc .svc-row__media { position: relative; align-self: stretch; min-height: 200px; }
  .svc-row__media picture, .svc-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
.svc-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center;
  gap: clamp(24px, 3.4vw, 48px);
  padding: clamp(14px, 2.4vh, 24px) 0;
  border-bottom: var(--rule-hair); color: var(--fg-1);
}
.svc-row:hover { color: var(--fg-1); }
.svc-row__line { /* червона смуга по низу рядка при наведенні — зі скошеним кінчиком, як у логотипі */
  position: absolute; left: 0; bottom: -2px; width: 0; height: 3px;
  background: var(--accent); pointer-events: none;
  transition: width 700ms var(--ease-out);
}
.svc-row__line::after {
  content: ""; position: absolute; right: -6px; top: -3px; width: 12px; height: 9px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%);
  opacity: 0; transition: opacity 150ms var(--ease-out) 550ms;
}
.svc-row:hover .svc-row__line, .svc-row:focus-visible .svc-row__line { width: 100%; }
.svc-row:hover .svc-row__line::after, .svc-row:focus-visible .svc-row__line::after { opacity: 1; transition-delay: 0s; }
.svc-row:focus-visible { outline-offset: 6px; }
.svc-row__media {
  overflow: hidden; border-radius: var(--radius-1); background: var(--tira-ink-200);
}
.svc-row__media img {
  width: 100%; object-fit: cover; object-position: 100% 100%; /* обрізається зверху/зліва — знак «Ті» в куті завжди видно */
  transition: transform 1400ms var(--ease-out);
}
.svc-row:hover .svc-row__media img { transform: scale(1.045); transition-duration: 900ms; }
.svc-row__body {
  position: relative; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(24px, 3vw, 44px);
}
.svc-row__body::before { /* вертикальна лінія-роздільник, «прорисовується» зверху */
  content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 1px;
  background: var(--border-2); transform-origin: top;
  transition: transform 900ms var(--ease-out) 250ms;
}
.svc-row:hover .tick, .svc-row:focus-visible .tick { width: 72px; }
.svc-row__title {
  margin-top: clamp(14px, 2.2vh, 24px);
  font: 700 clamp(38px, 4.6vw, 76px)/.95 var(--font-display); letter-spacing: var(--ls-display);
}
.svc-row__text { margin-top: clamp(12px, 2vh, 20px); max-width: 40ch; font: 400 clamp(17px, 1.45vw, 21px)/1.4 var(--font-text); color: var(--fg-2); }
.svc-row .tick, .svc-row__title, .svc-row__text {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), width 500ms var(--ease-out);
}
.svc-row__title { transition-delay: 90ms; }
.svc-row__text { transition-delay: 180ms; }
.svc-row__go {
  display: grid; place-items: center; width: 72px; height: 72px; flex: none; align-self: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-1); color: var(--fg-1);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.svc-row__go .icon { transition: transform var(--dur-slow) var(--ease-out); }
.svc-row:hover .svc-row__go { background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent); }
.svc-row:hover .svc-row__go .icon { transform: translateX(4px); }
/* Наведення на ПК: рядок-«акордеон» — фото послуги під курсором розкривається майже на весь свій формат
   (≈ удвічі більше), друга послуга стискається до рядка з назвою.
   Текст ніколи не переноситься заново: велика назва — по слову в рядок (min-content), підпис — фіксованої ширини,
   а назва в один рядок — окремий елемент, що з’являється плавним перетіканням */
.svc-row__title-sm { display: none; }
@media (min-width: 1001px) and (hover: hover) {
  .section--svc .svc { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); transition: grid-template-rows 600ms var(--ease-out); }
  .section--svc .svc:has(> .svc-row:first-child.is-active) { grid-template-rows: minmax(0, 1.5fr) minmax(0, .5fr); }
  .section--svc .svc:has(> .svc-row:last-child.is-active) { grid-template-rows: minmax(0, .5fr) minmax(0, 1.5fr); }
  .section--svc .svc-row { transition: grid-template-columns 600ms var(--ease-out); }
  .section--svc .svc-row.is-active { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) auto; }
  .section--svc .svc-row__media { min-height: 0; contain: paint; } /* перерахунок фото не зачіпає решту сторінки */
  .section--svc .svc-row__media img { object-position: 50% 100%; transition: transform 900ms var(--ease-out), filter 400ms var(--ease-out), object-position 600ms var(--ease-out); }
  .section--svc .svc-row.is-active .svc-row__media img { transform: none; }
  .section--svc .svc-row__body { min-height: 0; }
  .section--svc .svc-row__body > * { pointer-events: none; } /* невидимий текст стиснутого рядка не «ловить» курсор */
  .section--svc .svc-row__title { width: min-content; transform-origin: 0 50%; transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out); }
  .section--svc .svc-row__text { width: 18em; max-width: none; transition: opacity 300ms var(--ease-out), transform 600ms var(--ease-out); }
  .section--svc .svc-row .tick { transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out), width 500ms var(--ease-out); }
  .section--svc .svc-row__go { transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .section--svc .svc-row__title-sm {
    display: block; position: absolute; left: clamp(24px, 3vw, 44px); top: 50%;
    font: 700 clamp(26px, 2.4vw, 36px)/1 var(--font-display); letter-spacing: var(--ls-display); white-space: nowrap; color: var(--fg-1);
    opacity: 0; transform: translateY(-50%) translateY(14px);
    transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out);
  }
  /* стиснута (друга) послуга */
  .svc:has(.svc-row.is-active) .svc-row:not(.is-active) .svc-row__media img { object-position: 50% 55%; filter: grayscale(.5) brightness(.9); }
  .svc:has(.svc-row.is-active) .svc-row:not(.is-active) :is(.svc-row__title, .svc-row__text, .tick) { opacity: 0; transform: translateY(-14px) scale(.96); }
  .svc:has(.svc-row.is-active) .svc-row:not(.is-active) .svc-row__title-sm { opacity: 1; transform: translateY(-50%); transition-delay: 120ms, 0s; }
  .svc:has(.svc-row.is-active) .svc-row:not(.is-active) .svc-row__go { transform: scale(.72); }
}
/* Поява при прокрутці: фото одразу на місці, текст м’яко підіймається */
.svc-row.is-waiting .svc-row__body::before { transform: scaleY(0); }
.svc-row.is-waiting :is(.tick, .svc-row__title, .svc-row__text) { opacity: 0; transform: translateY(24px); }
.svc-row.is-waiting .svc-row__go { opacity: 0; }
.svc-row__go { transition-property: background, border-color, color, opacity; }
@media (max-width: 1000px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-row__go { position: absolute; right: 0; bottom: clamp(14px, 2.4vh, 24px); width: 56px; height: 56px; }
  .svc-row__body { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .svc { border-top: 0; }
  .svc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 20px 16px; padding: 0 0 32px; margin-bottom: 32px; }
  .svc-row:last-child { margin-bottom: 0; }
  .svc-row__media { grid-column: 1 / -1; }
  .svc-row__media img { height: auto; aspect-ratio: 2 / 1; }
  .svc-row__body { padding: 0 0 0 16px; }
  .svc-row__body::before { top: 0; bottom: 0; }
  .svc-row__go { position: static; align-self: end; width: 48px; height: 48px; }
  .svc-row__title { margin-top: 12px; font-size: clamp(34px, 10vw, 44px); }
  .svc-row__text { margin-top: 10px; font-size: 16px; }
}

/* ── Проєкти на головній: компактно, рівно на екран під шапкою; висота фото — під висоту вікна ── */
@media (min-width: 761px) {
  .section--proj { display: flex; flex-direction: column; justify-content: flex-start; min-height: calc(100svh - var(--header-h) - var(--header-top)); padding: clamp(24px, 4vh, 40px) 0 clamp(20px, 3vh, 36px); }
  .section--proj > .container { width: 100%; } /* у флекс-колонці контейнер інакше стискається й зсувається */
  .section--proj .overline { margin-bottom: 12px; }
  .section--proj .sh { margin-bottom: clamp(16px, 2.6vh, 28px); }
  .section--proj .card { gap: 14px; }
  .section--proj .card__media img { aspect-ratio: auto; height: clamp(200px, calc(100svh - var(--header-h) - var(--header-top) - 352px), 440px); object-position: 100% 100%; }
  .section--proj .slider__controls { margin-top: clamp(16px, 2.6vh, 28px); }
}

.slider { container-type: inline-size; }
.section:has(.slider) { overflow-x: clip; } /* стрічка виходить до краю екрана, але без горизонтальної прокрутки сторінки */
.slider__track {
  --gap: 32px;
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  margin-right: calc((100cqw - 100vw) / 2); padding-right: calc((100vw - 100cqw) / 2);
  cursor: grab; outline: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track.is-dragging .card { pointer-events: none; }
.slider__item { flex: 0 0 calc((100cqw - var(--gap)) / 2); scroll-snap-align: start; }
.slider--3 .slider__item { flex-basis: calc((100cqw - 2 * var(--gap)) / 3); }
.slider--3 .slider__track { --gap: 24px; }
.slider__item img { -webkit-user-drag: none; user-select: none; }
.slider__controls { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.slider__bar { position: relative; flex: 1; height: 1px; margin-right: 12px; background: var(--border-2); }
.slider__thumb {
  position: absolute; left: 0; top: -1px; height: 3px; width: 40%; background: var(--accent);
  transform: translateX(0); transition: transform .25s var(--ease-out), width .25s var(--ease-out);
}
.slider__thumb::after { /* скошений кінчик, як елемент логотипу */
  content: ''; position: absolute; right: -6px; top: -3px; width: 12px; height: 9px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%);
}
.slider__btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: var(--accent); color: var(--fg-on-accent); border: 1px solid var(--accent); border-radius: var(--radius-1);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.slider__btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.slider__btn--prev .icon { transform: rotate(180deg); }
.slider__btn:disabled { background: transparent; color: var(--fg-3); border-color: var(--border-2); cursor: default; }
@media (max-width: 1000px) and (min-width: 761px) { .slider--3 .slider__item { flex-basis: calc((100cqw - var(--gap)) / 2); } }
@media (max-width: 760px) {
  .slider__track { --gap: 16px; }
  .slider__item, .slider--3 .slider__item { flex-basis: 85cqw; }
  .slider--3 .slider__track { --gap: 16px; }
  .slider__btn { width: 40px; height: 40px; }
  .slider__controls { margin-top: 24px; }
}

/* ── Банер «Про компанію» (головна і сторінка «Про компанію») ── */
.about-banner { position: relative; overflow: hidden; background: #fff; display: flex; aspect-ratio: 1793 / 877; min-height: 620px; } /* фото в оригінальних пропорціях, без обрізання */
.about-banner__media, .about-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-banner__media img { object-fit: cover; object-position: 100% 50%; }
.about-banner__inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 56px; padding-bottom: 56px; }
.about-banner .overline { font-size: 15px; margin-bottom: 20px; }
.about-banner__title { font: 700 clamp(46px, 5.6vw, 84px)/.95 var(--font-display); letter-spacing: var(--ls-display); max-width: 640px; }
.about-banner__lead { margin-top: 22px; max-width: 470px; font: 400 clamp(18px, 1.7vw, 24px)/1.35 var(--font-text); color: #2B2B2B; }
.about-banner__btn { margin-top: 32px; }
.about-banner .btn--outline { border-width: 2px; background: rgba(255, 255, 255, .85); }
.about-banner .btn--outline:hover { background: var(--tira-black); }
/* заклик: лінія з червоною скошеною міткою → фраза → дві кнопки */
.about-banner__call { position: relative; margin-top: 34px; padding-top: 26px; width: min(560px, 100%); border-top: 1px solid var(--border-2); }
.about-banner__mark { position: absolute; top: -5px; left: 0; width: 28px; height: 9px; background: var(--accent); clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); }
.about-banner__call-title { font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--font-display); letter-spacing: var(--ls-display); }
.about-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
/* опис компанії в банері (сторінка «Про компанію») */
.about-banner__intro { display: grid; gap: 12px; max-width: 520px; }
.about-banner__intro p { font: 400 16px/1.55 var(--font-text); color: #3A3A3A; }
.about-banner__intro p:first-of-type { font-weight: 500; color: var(--fg-1); }
@media (max-width: 1100px) {
  .about-banner__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 80%); }
}
@media (max-width: 900px) {
  .about-banner { aspect-ratio: auto; min-height: 0; }
  .about-banner__media img { object-position: 78% 30%; }
  .about-banner__inner { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 560px) {
  /* телефон: текст і заклик, під ними фото */
  .about-banner { flex-direction: column; }
  .about-banner__inner { order: 1; padding-top: 40px; padding-bottom: 28px; }
  .about-banner__media { order: 2; position: relative; inset: auto; height: 300px; }
  .about-banner__media::after { display: none; }
  .about-banner__media img { object-position: 88% 25%; }
  .about-banner__actions .btn { width: 100%; }
}

/* ── Approach: темна секція з фото-картками кроків ─────── */
.approach { background: #141414; color: var(--fg-inverse); padding: clamp(36px, 6vh, 56px) 0; }
.approach .overline { margin-bottom: 12px; }
.approach__title { font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); color: var(--fg-inverse); margin-bottom: clamp(20px, 3vh, 28px); }
.approach__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.approach__step { position: relative; overflow: hidden; border-radius: var(--radius-1); background: var(--tira-ink-800); isolation: isolate; }
.approach__step img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(.45) brightness(.92);
  transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out);
}
.approach__step::after { /* затемнення знизу під текст */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 12, 12, .95) 0%, rgba(12, 12, 12, .78) 32%, rgba(12, 12, 12, 0) 64%);
}
.approach__step::before { /* червоний відблиск знизу-зліва при наведенні */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 100%, rgba(237, 36, 25, .38), rgba(237, 36, 25, 0) 60%);
  opacity: 0; transition: opacity 600ms var(--ease-out);
}
.approach__body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 14px; padding: 0 28px 24px;
}
.approach__name { font: 700 clamp(24px, 2.3vw, 32px)/1.1 var(--font-display); letter-spacing: var(--ls-display); color: var(--fg-inverse); }
.approach__text { min-height: 4.5em; font: 400 clamp(15px, 1.1vw, 16px)/1.5 var(--font-text); color: rgba(255, 255, 255, .82); } /* назви всіх карток на одній лінії */
.approach__step .tick { width: 28px; }
.approach__step:hover img { transform: scale(1.06); filter: none; }
.approach__step:hover::before { opacity: 1; }
.approach__step:hover .tick { width: 64px; }
@media (max-width: 900px) {
  .approach__steps { grid-template-columns: 1fr; gap: 12px; }
  .approach__step img { aspect-ratio: 16 / 10; }
  .approach__text { min-height: 0; }
}
@media (max-width: 560px) {
  .approach__body { gap: 10px; padding: 0 18px 16px; }
  .approach__step img { aspect-ratio: 4 / 3; filter: none; }
  .approach__text { font-size: 14px; }
}

/* нумерований список (результати в кейсах) */
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 16px 0; border-bottom: var(--rule-hair); }
.steps__num { font: 600 18px/1.3 var(--font-mono); color: var(--accent); }
.steps__title { font: 500 18px/1.3 var(--font-text); }
.steps__text { margin-top: 6px; font: 400 14px/1.5 var(--font-text); color: var(--fg-2); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.split__aside { border-left: 1px solid var(--border-2); padding-left: 48px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__aside { padding-left: 24px; }
}

/* ── CTA band ─────────────────────────────────────────── */
.cta-band { background: var(--bg-inverse); padding: 40px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.cta-band h2 { font: 700 clamp(30px, 4.2vw, 44px)/var(--lh-heading) var(--font-display); color: var(--fg-inverse); }
@media (max-width: 560px) { .cta-band .btn { width: 100%; } }

/* ── Stats: червоні цифри з відліком «барабаном», двоколірні іконки ──────
   Роздільник: тонка лінія «прокреслюється» зліва направо, над кожною цифрою —
   червона скошена мітка (як елемент над «І» в логотипі). */
:root { --stats-overlap: 104px; --stats-line: 24px; }
.stats { background: var(--bg-page); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 32px; padding-top: var(--stats-line); padding-bottom: 24px; }
.stats__grid::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: var(--stats-line); height: 1px; background: var(--border-2); transform-origin: left; }
.stat { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 22px; }
.stat::before { content: ''; position: absolute; top: -4px; left: 0; width: 26px; height: 9px; background: var(--accent); clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); }
.stat__head { display: flex; align-items: center; gap: 14px; }
.stat__icon { flex: none; display: flex; }
.stat__value { display: inline-flex; align-items: baseline; font: 700 56px/1 var(--font-display); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { font: 400 15px/1.4 var(--font-text); color: #3A3A3A; max-width: 230px; }

/* анімації: лінія → мітки → прорисовка іконок → відлік */
.stats.is-armed .stats__grid::before { transform: scaleX(0); }
.stats.is-armed .stats__grid.is-run::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.6, .1, .2, 1); }
.stats.is-armed .stat::before { transform: translateY(-6px) skewX(-20deg); opacity: 0; }
.stats.is-armed .stat.is-counted::before { transform: none; opacity: 1; transition: transform .45s var(--ease-out), opacity .45s var(--ease-out); transition-delay: var(--d, 0s); }

.duo path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.duo__ink { stroke: var(--tira-black); }
.duo__acc { stroke: var(--accent); }
.stats.is-armed .duo path { stroke-dashoffset: 1; }
.stats.is-armed .stat.is-counted .duo path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.6, .1, .2, 1); transition-delay: var(--d, 0s); }
.stats.is-armed .stat.is-counted .duo__acc { transition-delay: calc(var(--d, 0s) + .55s); }

.odo { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo__strip { display: flex; flex-direction: column; transform: translateY(0); transition: transform var(--t, 1.8s) cubic-bezier(.16, .84, .24, 1); transition-delay: var(--d, 0s); }
.odo__strip > span { height: 1em; }
.stat__num { display: inline-block; }
.stat__suffix { margin-left: .04em; opacity: 0; transform: translateY(.2em); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: var(--sd, 0s); }
.is-counted .stat__suffix { opacity: 1; transform: none; }

/* на головній: біла плашка на всю ширину «заходить» на банер — у першому екрані видно лінію, значки й цифри,
   підписи — після прокрутки */
.stats--overlap + .section { padding-top: 40px; }
.stats--overlap { position: relative; z-index: 2; margin-top: calc(-1 * var(--stats-overlap)); background: var(--bg-page); }

@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .stat:nth-child(n+3) { margin-top: 8px; }
}
@media (max-width: 560px) {
  :root { --stats-overlap: 74px; --stats-line: 18px; }
  .stats__grid { gap: 0 16px; padding-bottom: 16px; }
  .stat { gap: 8px; padding-top: 14px; }
  .stat__head { gap: 8px; }
  .stat__icon .duo { width: 22px; height: 22px; }
  .stat__value { font-size: 36px; }
  .stat__label { font-size: 13px; }
}

/* темна смуга на сторінці «Про компанію» */
.stats--dark { background: var(--bg-inverse); }
.stats--dark { --stats-line: 56px; }
.stats--dark .stats__grid { padding-bottom: 56px; }
.stats--dark .stats__grid::before { background: rgba(255, 255, 255, .2); }
.stats--dark .stat__label { color: #E6E6E6; }
.stats--dark .duo__ink { stroke: #fff; }
@media (prefers-reduced-motion: reduce) { .pillars__pin::before, .pillars__pin::after, .odo__strip, .stat__suffix, .duo path, .stat::before, .stats__grid::before { transition: none !important; } }

/* ── Grids, page tops, headings ───────────────────────── */
.grid { display: grid; gap: 32px; align-items: start; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid--gap-lg { row-gap: 48px; column-gap: 32px; }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3 { grid-template-columns: 1fr; row-gap: 40px; } }
.section__more { margin-top: 32px; }
.section--tight-top { padding-top: 32px; }

.page-top { padding-top: 64px; }
.page-top--detail { padding-top: 48px; padding-bottom: 48px; }
.page-top .sh h1 { font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.page-top .sh { margin-bottom: 40px; }
@media (max-width: 760px) { .page-top { padding-top: 48px; } .page-top--detail { padding-top: 36px; padding-bottom: 40px; } }
/* сторінка «Послуги»: блок послуг такий самий, як на головній — ті самі відступи, увесь уміщається в екран */
.page-top.section--svc { padding-top: clamp(24px, 4vh, 40px); }
.page-top.section--svc .sh { margin-bottom: clamp(16px, 2.6vh, 28px); }

.back-link { display: inline-block; margin-bottom: 32px; font: 600 var(--fs-overline)/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); } /* в одному стилі з червоними підписами розділів */
.back-link:hover { color: var(--accent-press); }
.h-display { font: 700 clamp(40px, 6vw, 72px)/.98 var(--font-display); letter-spacing: var(--ls-display); }
.h-display--article { font-size: clamp(36px, 5.2vw, 64px); line-height: 1; }
.lead { font: 400 19px/1.55 var(--font-text); color: #3A3A3A; }
.h-section { margin-bottom: 24px; font: 700 clamp(30px, 3.6vw, 40px)/1.02 var(--font-display); }
.h-section--lg { margin-bottom: 32px; font-size: clamp(34px, 4.6vw, 48px); }
.overline--link { display: inline-block; color: var(--accent); }
.overline--link:hover { color: var(--accent-hover); }
.prose { display: flex; flex-direction: column; gap: 20px; font: 400 18px/1.55 var(--font-text); }

/* ── Service detail ───────────────────────────────────── */
.detail-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.detail-head__text { display: flex; flex-direction: column; gap: 24px; }
.detail-head__text .overline { margin: 0; font-size: 14px; }
.scope { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.num-list { border-top: 1px solid var(--border-strong); }
.num-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-2); align-items: baseline; }
.num-list__n { font: 600 14px/1 var(--font-mono); color: var(--accent); }
.num-list__text { font: 400 19px/1.4 var(--font-text); }
.num-list--compact li { grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0; }
.num-list--compact .num-list__text { font-size: 17px; }
.facts { background: var(--bg-inverse); color: var(--fg-inverse); padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.facts__head { font: 400 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.facts__item { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.facts__label { font: 400 14px/1.3 var(--font-text); color: #BDBDBD; }
.facts__value { font: 700 24px/1.15 var(--font-display); }
@media (max-width: 900px) {
  .detail-head, .scope { grid-template-columns: 1fr; gap: 36px; }
  .facts { padding: 28px 24px; }
  .num-list__text { font-size: 17px; }
}

/* ── Photo frame with caption ─────────────────────────── */
.frame { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-1); background: var(--tira-ink-200); }
.frame img { width: 100%; height: auto; aspect-ratio: var(--ratio); object-fit: cover; }
.frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px;
  background: linear-gradient(0deg, rgba(12, 12, 12, .7), rgba(12, 12, 12, 0));
  display: flex; align-items: center; gap: 12px; color: var(--fg-inverse); font: 700 24px/1.1 var(--font-display);
}
.frame__caption::before { content: ''; flex: none; align-self: stretch; width: var(--accent-bar); background: var(--accent); }

/* ── Projects ─────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-2); }
[data-filter-list] > [hidden] { display: none; }
.project-head { display: grid; grid-template-columns: minmax(0, 1.6fr) 1px minmax(0, 1fr); gap: 40px; align-items: end; }
.project-head__title { display: flex; flex-direction: column; gap: 20px; }
.project-head__title .overline { margin: 0; font-size: 14px; }
.project-head__rule { align-self: stretch; background: var(--border-2); }
.project-head .lead { font-size: 18px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--border-2); }
.facts-row > div { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-right: 1px solid var(--border-2); }
.facts-row > div:first-child { padding-left: 0; }
.facts-row > div:last-child { border-right: 0; }
.facts-row dt { font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.facts-row dd { margin: 0; font: 700 24px/1.15 var(--font-display); }
.case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.case .overline { font-size: 14px; }
.case__text { font: 400 19px/1.6 var(--font-text); }
@media (max-width: 900px) {
  .project-head { grid-template-columns: 1fr; gap: 20px; }
  .project-head__rule { display: none; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row > div { padding: 18px 16px 18px 0; border-right: 0; border-top: 1px solid var(--border-2); }
  .facts-row dd { font-size: 20px; }
  .case { grid-template-columns: 1fr; gap: 40px; }
  .frame__caption { font-size: 18px; padding: 40px 16px 14px; }
}

/* ── Expert centre ────────────────────────────────────── */
/* навігаційний шлях */
.xcrumbs { margin-bottom: 28px; }
.xcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; font: 500 12px/1.4 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--fg-3); }
.xcrumbs li { min-width: 0; }
.xcrumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--accent); }
.xcrumbs a { color: var(--fg-2); transition: color var(--dur-fast) var(--ease-out); }
.xcrumbs a:hover { color: var(--accent); }
.xcrumbs [aria-current] { color: var(--fg-1); }

/* тематична категорія — червона риска + назва */
.xtag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.xtag::before { content: ""; flex: none; width: 14px; height: 3px; background: var(--accent); }
a.xtag:hover { color: var(--accent-press); }

/* головна центру: два рівнозначні блоки */
.xc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.xc-col { display: flex; flex-direction: column; padding: 32px 48px 0 0; }
.xc-col + .xc-col { padding: 32px 0 0 48px; border-left: 1px solid var(--border-2); }
.xc-col__head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.xc-col__title { font: 700 clamp(30px, 3.2vw, 40px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.xc-col__title a { transition: color var(--dur-fast) var(--ease-out); }
.xc-col__title a:hover { color: var(--accent); }
.xc-col__text { max-width: 46ch; font: 400 16px/1.5 var(--font-text); color: var(--fg-2); }
.xc-col__list { flex: 1; border-top: 1px solid var(--border-2); }
.xc-col__more { padding-top: 28px; }
.xcount { font: 600 12px/1 var(--font-mono); color: var(--accent); }
.btn:hover .xcount { color: var(--fg-inverse); }

/* рядок матеріалу (головна центру, сторінки послуг) */
.xrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta go" "title go" "text go"; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--border-2); color: var(--fg-1); }
.xrow:hover { color: var(--fg-1); }
.xrow__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 400 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.xrow__title { grid-area: title; font: 700 22px/1.15 var(--font-display); transition: color var(--dur-fast) var(--ease-out); }
.xrow:hover .xrow__title { color: var(--accent); }
.xrow__text { grid-area: text; font: 400 15px/1.5 var(--font-text); color: var(--fg-2); }
.xrow .btn-square { grid-area: go; align-self: center; }
.xrow:hover .btn-square { background: var(--accent-hover); }

/* перелік: картки матеріалів */
.xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.xgrid > [hidden] { display: none; }
.xcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--border-strong); }
.xcard::before { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 3px; background: var(--accent); transition: width 500ms var(--ease-out); }
.xcard:hover::before, .xcard:focus-within::before { width: 100%; }
.xcard__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font: 400 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.xcard__title { font: 700 26px/1.1 var(--font-display); letter-spacing: var(--ls-display); }
.xcard__title a { transition: color var(--dur-fast) var(--ease-out); }
.xcard__title a::after { content: ""; position: absolute; inset: 0; }
.xcard:hover .xcard__title a { color: var(--accent); }
.xcard__text { flex: 1; font: 400 15px/1.5 var(--font-text); color: var(--fg-2); }
.xcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; font: 400 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.xcard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.xcard__go .icon { transition: transform var(--dur-base) var(--ease-out); }
.xcard:hover .xcard__go .icon { transform: translateX(3px); }
.xempty { padding: 28px 0; font: 400 16px/1.5 var(--font-text); color: var(--fg-2); }
.xempty[hidden] { display: none; }

/* матеріал: шапка */
.xdemo { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--tira-red-50); font: 400 14px/1.5 var(--font-text); color: var(--fg-1); }
.xm-head { display: flex; flex-direction: column; gap: 22px; max-width: 900px; padding-bottom: 36px; }
.xm-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font: 400 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.xm-title { font: 700 clamp(36px, 5vw, 60px)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.xanswer { padding: 22px 26px; border-left: 4px solid var(--accent); background: var(--bg-alt); scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xanswer__label { margin-bottom: 10px; font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.xanswer__text { font: 400 19px/1.55 var(--font-text); color: #2A2A2A; }
.xm-meta { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0; }
.xm-meta > div { display: flex; flex-direction: column; gap: 6px; }
.xm-meta dt { font: 400 11px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--fg-3); }
.xm-meta dd { margin: 0; font: 600 15px/1.35 var(--font-text); }
.xm-meta dd span { display: block; font-weight: 400; font-size: 14px; color: var(--fg-2); }

/* матеріал: зміст + текст */
.xm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; padding-top: 40px; border-top: 1px solid var(--border-strong); }
.xm-aside { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + var(--header-top) + 24px); display: flex; flex-direction: column; gap: 20px; }
.xm-body { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 52px; min-width: 0; max-width: 800px; }
.xtoc__title { margin-bottom: 14px; font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.xtoc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--border-2); }
.xtoc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font: 400 14px/1.35 var(--font-text); color: var(--fg-2); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.xtoc a:hover { color: var(--fg-1); border-left-color: var(--accent); }
.xtoc__pdf { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.xtoc__pdf:hover { color: var(--accent-press); }

.xm-body h2 { font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--font-display); letter-spacing: var(--ls-display); scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xm-body h3 { scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xsec { scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xsec > h2 { margin-bottom: 22px; }

.prose > * + * { margin-top: 18px; }
.prose > h2 { margin-top: 48px; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 30px; font: 700 23px/1.2 var(--font-display); }
.prose p, .prose li { font: 400 18px/1.65 var(--font-text); color: #2A2A2A; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose a, .xsources a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover, .xsources a:hover { color: var(--accent); }
.prose__table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font: 400 15px/1.45 var(--font-text); }
.prose th { padding: 10px 16px 10px 0; border-bottom: 2px solid var(--fg-1); font: 600 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-align: left; color: var(--fg-2); }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.prose__figure { margin: 0; }
.prose__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-1); }
.prose__figure figcaption { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--accent); font: 400 14px/1.45 var(--font-text); color: var(--fg-3); }

/* списки з фірмовою рискою */
.xticks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.xticks li { position: relative; padding-left: 36px; font: 400 17px/1.55 var(--font-text); color: #2A2A2A; }
.xticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 3px; background: var(--accent); }
.xticks li::after { content: ""; position: absolute; left: 13px; top: calc(.72em - 3px); width: 9px; height: 9px; background: var(--accent); clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%); }
.xticks--sm li { font-size: 16px; }
.xsec--key { padding: 32px; background: var(--bg-inverse); color: var(--fg-inverse); }
.xsec--key .xticks li { color: var(--fg-inverse); }

/* покрокова інструкція: червоні скошені мітки етапів */
.xsteps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-2); }
.xsteps__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 24px; padding: 26px 0; border-bottom: 1px solid var(--border-2); scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xsteps__item > * { grid-column: 2; }
.xsteps__n { grid-column: 1; grid-row: 1 / span 3; align-self: start; justify-self: start; padding: 7px 16px 7px 10px; background: var(--accent); color: var(--fg-on-accent); font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.xsteps__title { font: 700 22px/1.2 var(--font-display); }
.xsteps__item p { font: 400 17px/1.6 var(--font-text); color: #2A2A2A; }
.xsteps__item .xticks { margin-top: 6px; }

/* типові помилки та ризики */
.xrisks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.xrisks li { padding: 18px 22px; border: 1px solid var(--border-2); border-left: 4px solid var(--fg-1); }
.xrisks h3 { margin-bottom: 6px; font: 700 19px/1.25 var(--font-display); }
.xrisks p { font: 400 16px/1.55 var(--font-text); color: var(--fg-2); }

/* поширені запитання, джерела */
.xfaq { border-top: 1px solid var(--border-2); }
.xfaq__item { padding: 20px 0; border-bottom: 1px solid var(--border-2); }
.xfaq__item h3 { font: 700 20px/1.25 var(--font-display); }
.xfaq__item p { margin-top: 8px; font: 400 17px/1.6 var(--font-text); color: #2A2A2A; }
.xsources { display: flex; flex-direction: column; gap: 14px; margin: 0; padding-left: 22px; }
.xsources li { font: 400 16px/1.5 var(--font-text); }
.xsources li::marker { font: 600 13px/1 var(--font-mono); color: var(--accent); }
.xsources__pub, .xsources__note { display: block; margin-top: 2px; font-size: 14px; color: var(--fg-3); }

/* підсумковий чек-лист */
.xchk { padding: 32px; border: 1px solid var(--border-strong); background: var(--tira-white); scroll-margin-top: calc(var(--header-h) + var(--header-top) + 24px); }
.xchk__print-title { display: none; }
.xchk__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; }
.xchk__progress { font: 600 13px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--accent); }
.xchk.is-complete .xchk__progress::before { content: "✓ "; }
.xchk__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.xchk__tools .btn { gap: 10px; }
.xchk__tools .btn[hidden] { display: none; }
.xchk__tools .btn:hover .icon { transform: none; }
.xchk__note { margin-top: 12px; font: 400 13px/1.5 var(--font-text); color: var(--fg-3); }
.xchk__groups { display: grid; gap: 26px; margin-top: 26px; }
.xchk__group-title { padding-bottom: 10px; border-bottom: 1px solid var(--border-2); font: 700 19px/1.2 var(--font-display); }
.xchk__list { margin: 0; padding: 0; list-style: none; }
.xchk__item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #EDEDEB; font: 400 16px/1.5 var(--font-text); cursor: pointer; }
.xchk__box { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid var(--fg-1); border-radius: var(--radius-1); background: var(--tira-white); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.xchk__box::after { content: ""; width: 11px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translate(0, -1px) rotate(-45deg) scale(0); transition: transform 160ms var(--ease-out); }
.xchk__box:checked { border-color: var(--accent); background: var(--accent); }
.xchk__box:checked::after { transform: translate(0, -1px) rotate(-45deg) scale(1); }
.xchk__box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xchk__item:hover .xchk__box:not(:checked) { border-color: var(--accent); }
.xchk__box:checked + span { color: var(--fg-3); text-decoration: line-through; text-decoration-color: rgba(18, 18, 18, .35); }

/* матеріал: послуга за темою + пов’язані матеріали */
.xservice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; margin-top: 72px; padding: 36px 40px; background: var(--bg-inverse); color: var(--fg-inverse); }
.xservice .overline { margin-bottom: 12px; }
.xservice__title { font: 700 clamp(26px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: var(--ls-display); }
.xservice__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.xrel { margin-top: 72px; }
.xrel__head, .xsvc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.xrel__head h2 { font: 700 clamp(30px, 3.4vw, 40px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.xrel__head .back-link, .xsvc__head .back-link { margin: 0 0 4px; }

/* сторінка послуги: компактний блок матеріалів */
.xsvc .overline { margin-bottom: 12px; }
.xsvc__head h2 { font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.xsvc__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--border-strong); }

@media (max-width: 1024px) {
  .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xsvc__list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .xc-split { grid-template-columns: 1fr; }
  .xc-col, .xc-col + .xc-col { padding: 28px 0 0; border-left: 0; }
  .xc-col + .xc-col { margin-top: 48px; border-top: 1px solid var(--border-strong); }
  .xm-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  .xm-aside { position: static; grid-column: 1; grid-row: auto; padding: 22px 22px 18px; background: var(--bg-alt); }
  .xm-body { grid-column: 1; grid-row: auto; gap: 44px; }
  .xanswer__text { font-size: 18px; }
  .prose p, .prose li { font-size: 17px; }
}
@media (max-width: 640px) {
  .xgrid { grid-template-columns: 1fr; gap: 36px; }
  .xcard__title { font-size: 24px; }
  .xrow__title { font-size: 20px; }
  .xanswer { padding: 18px 18px; }
  .xm-meta { gap: 14px 28px; }
  .xsteps__item { grid-template-columns: 1fr; }
  .xsteps__item > *, .xsteps__n { grid-column: 1; grid-row: auto; }
  .xsteps__n { margin-bottom: 6px; }
  .xchk { padding: 22px 16px; }
  .xsec--key { padding: 24px 18px; }
  .xservice { padding: 28px 20px; }
  .xservice__actions, .xservice__actions .btn { width: 100%; }
}

/* друк: сторінка матеріалу без шапки й навігації; «Друкувати» в чек-листі — лише чек-лист */
@media print {
  .site-header, .site-end, .skip-link, .xcrumbs, .xm-aside, .xchk__tools, .xchk__note, .xservice, .xrel { display: none !important; }
  .xm-layout { display: block; padding: 0; border: 0; }
  .xm-body { max-width: none; gap: 28px; }
  .xsec--key { padding: 0; background: none; color: inherit; }
  .xsec--key .xticks li { color: inherit; }
  .xchk { padding: 0; border: 0; }
  .xchk__item, .xsteps__item, .xfaq__item { break-inside: avoid; }
  .xchk__box, .xsteps__n, .xticks li::before, .xticks li::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.is-printing-checklist .xm-head, html.is-printing-checklist .xdemo, html.is-printing-checklist .xm-body > :not(.xchk) { display: none !important; }
  html.is-printing-checklist .xchk__print-title { display: block; margin-bottom: 10px; font: 700 24px/1.15 var(--font-display); }
}

/* ── Forms ───────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--fg-2); }
.field__req { color: var(--accent); }
.field__input {
  width: 100%; height: 48px; padding: 0 14px; margin: 0;
  background: var(--tira-white); border: 1px solid var(--border-2); border-radius: var(--radius-1);
  font: 400 16px/1.2 var(--font-text); color: var(--fg-1); outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field__input:focus { border-color: var(--tira-black); box-shadow: inset 0 -2px 0 var(--accent); }
.field__input::placeholder { color: var(--fg-3); }
textarea.field__input { height: auto; padding: 14px; resize: vertical; line-height: 1.5; }
.field__select { position: relative; display: block; }
.field__select select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; }
.field__select select:invalid, .field__select select option[disabled] { color: var(--fg-3); }
.field__select .icon { position: absolute; right: 14px; top: 15px; pointer-events: none; }
.field__input[aria-invalid="true"], .form.was-validated .field__input:invalid { border-color: var(--danger, var(--accent)); }


.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form[hidden], .form__status[hidden] { display: none; }
.form__consent { align-self: center; }
.form__actions .form__status { flex-basis: 100%; }
.form__wide { grid-column: 1 / -1; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; }
.form__status { font: 400 14px/1.4 var(--font-text); color: var(--fg-2); }
.form__status.is-error { color: var(--accent); }
.form__thanks { padding-top: 24px; border-top: 4px solid var(--accent); font: 700 36px/1.05 var(--font-display); letter-spacing: var(--ls-display); outline: none; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font: 400 14px/1.45 var(--font-text); color: var(--fg-2); }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-1); background: #fff; color: transparent; transition: background var(--dur-fast); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.contact-list { border-top: 1px solid var(--border-strong); }
.contact-list__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--border-2); }
.contact-list__label { font: 400 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.contact-list__value { font: 700 28px/1.15 var(--font-display); overflow-wrap: anywhere; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } .contact-list__value { font-size: 24px; } .form__thanks { font-size: 28px; } }

/* ── Контакти: усе в одному банері на висоту екрана (кнопка «Обговорити проєкт» веде сюди) ── */
.request { display: flex; align-items: center; min-height: calc(100svh - var(--header-h) - var(--header-top)); padding: 16px 0 24px; scroll-margin-top: calc(var(--header-h) + var(--header-top)); }
.request > .container { width: 100%; }
.request__panel { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); border: 1px solid var(--border-2); border-radius: var(--radius-1); overflow: hidden; background: #fff; box-shadow: 0 18px 48px -28px rgba(20, 20, 20, .35); }
.request__main { padding: 36px 40px 32px; }
.request__head { margin-bottom: 24px; }
.request__head .overline { margin-bottom: 12px; }
.request__title { font: 700 clamp(30px, 3.2vw, 42px)/1.02 var(--font-display); letter-spacing: var(--ls-display); }
.request__lead { margin-top: 10px; max-width: 46ch; font: 400 16px/1.5 var(--font-text); color: var(--fg-2); }
.request .form { gap: 14px 16px; }
.request .field { gap: 6px; }
.request .field__input { height: 44px; }
.request .field__select .icon { top: 13px; }
.request textarea.field__input { height: auto; min-height: 92px; padding: 11px 14px; }
.request .btn--lg { height: 48px; }
.request__side { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 36px 40px 96px; background: #141414; color: #fff; }
.request__side::before { content: ''; position: absolute; left: 40px; top: 0; width: 56px; height: 4px; background: var(--accent); }
.request__side .contact-list { border-top: 0; }
.request__side .contact-list__item { padding: 18px 0; border-bottom-color: rgba(255, 255, 255, .14); }
.request__side .contact-list__item:last-child { border-bottom: 0; }
.request__side .contact-list__value { color: #fff; font-size: clamp(22px, 2vw, 28px); }
.request__side a.contact-list__value:hover { color: var(--accent); }
.request__mark { position: absolute; right: 32px; bottom: 28px; width: auto; height: 40px; opacity: .7; }
@media (max-width: 900px) {
  .request { min-height: 0; padding: 16px 0 40px; }
  .request__panel { grid-template-columns: 1fr; }
  .request__main, .request__side { padding: 28px 24px; }
  .request__side { padding-bottom: 88px; }
  .request__side::before { left: 24px; }
}
@media (max-width: 560px) { .request .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .request__main { padding: 24px 20px; } .form__consent { grid-column: 1 / -1; } .form__actions { grid-column: 1 / -1; justify-content: stretch; } }

/* ── About ────────────────────────────────────────────── */
/* «Команда / Компетенції / …»: панорама з червоними точками, від кожної — лінія вниз до своєї колонки */
.pillars { --drop: 60px; } /* лінія закінчується на рівні номера колонки */
.pillars__media { position: relative; }
.pillars__media picture img { display: block; width: 100%; height: auto; border-radius: var(--radius-1); }
.pillars__pin { position: absolute; z-index: 1; left: var(--x); top: var(--y); bottom: calc(var(--drop) * -1); width: 2px; margin-left: -1px; pointer-events: none; }
.pillars__pin::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--grow, 1)); transition: transform 700ms var(--ease-out) calc(250ms + var(--i) * 120ms); }
.pillars__pin::after { content: ''; position: absolute; top: -8px; left: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(225, 30, 38, .25), 0 2px 8px rgba(0, 0, 0, .35); transform: scale(var(--pop, 1)); transition: transform 400ms var(--ease-out) calc(var(--i) * 120ms); }
.pillars.is-waiting .pillars__pin { --grow: 0; --pop: 0; }
.pillars__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; }
.pillars__item { padding: 0 24px 8px; border-left: 1px solid var(--border-2); }
.pillars__item:first-child { padding-left: 0; border-left: 0; }
.pillars__n { display: block; margin-bottom: 14px; font: 600 14px/1 var(--font-mono); color: var(--accent); }
.pillars__title { font: 700 26px/1.05 var(--font-display); }
.pillars__text { margin-top: 16px; font: 400 16px/1.55 var(--font-text); color: #3A3A3A; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team__photo { position: relative; aspect-ratio: 4 / 5; margin-bottom: 14px; background: #EDEDEB; border-radius: var(--radius-1); overflow: hidden; }
.team__photo .team__mono { position: absolute; right: 16px; bottom: 16px; height: 28px; width: auto; opacity: .18; }
.team__photo picture img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.team__item:hover .team__photo picture img { filter: none; transform: scale(1.025); }
/* фірмовий знак «Ті» поверх фото: білий, 70 %, 28 px, відступ 16 px */
.team__photo .team__mark { position: absolute; z-index: 1; right: 16px; bottom: 16px; width: auto; height: 28px; opacity: .7; pointer-events: none; }
.team__photo::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 4px; background: var(--accent); transition: width var(--dur-slow) var(--ease-out); }
.team__item:hover .team__photo::after { width: 100%; }
.team__name { font: 700 22px/1.1 var(--font-display); }
.team__role { margin-top: 4px; font: 400 15px/1.4 var(--font-text); color: #6B6B6B; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
.tiles li { display: flex; align-items: center; min-height: 72px; padding: 24px; background: #fff; font: 600 16px/1.35 var(--font-text); }
@media (max-width: 900px) {
  .pillars__media picture img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 30% 50%; }
  .pillars__pin { display: none; }
  .pillars__list { grid-template-columns: 1fr; margin-top: 24px; border-top: 1px solid var(--border-strong); }
  .pillars__item, .pillars__item:first-child { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--border-2); }
  .pillars__n, .pillars__tick { margin: 12px 0 0; }
  .pillars__text { grid-column: 2; margin-top: 0; }
  .pillars__title { font-size: 24px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .two-col { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .team__name { font-size: 19px; } }

/* ── Сторінка «Про компанію» ──────────────────────────── */
.stat__note { font: 400 14px/1.45 var(--font-text); color: var(--fg-3); max-width: 300px; margin-top: -6px; }
.stats--dark .stat__label { font: 700 18px/1.2 var(--font-display); color: #fff; }
.stats--dark .stat__note { color: rgba(255, 255, 255, .62); }
.stats--dark .stat__value { font-size: clamp(40px, 3.8vw, 56px); }
.stats__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
/* цифри на сторінці «Про компанію»: світла смуга, рівні колонки з розділювачами, усе по центру */
.stats--center { background: var(--bg-alt); --stats-line: 0px; }
.stats--center .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 0; padding-bottom: 0; }
.stats--center .stats__grid::before { left: 0; right: 0; top: 0; background: var(--border-2); }
.stats--center .stat { align-items: center; text-align: center; gap: 10px; padding: clamp(32px, 5vh, 48px) 20px clamp(30px, 4.5vh, 44px); border-left: 1px solid var(--border-2); transition: background 400ms var(--ease-out); }
.stats--center .stat:first-child { border-left: 0; }
.stats--center .stat::before { top: -4px; left: 50%; margin-left: -13px; transition: width 400ms var(--ease-out), margin-left 400ms var(--ease-out); }
.stats--center .stat__head { flex-direction: column; gap: 14px; }
.stats--center .stat__icon .duo { width: 30px; height: 30px; }
.stats--center .stat__value { font-size: clamp(48px, 5vw, 72px); }
.stats--center .stat__label { max-width: none; font: 700 19px/1.2 var(--font-display); color: var(--fg-1); }
.stats--center .stat__note { max-width: 230px; margin-top: 0; }
.stats--center .stat:hover { background: #fff; }
.stats--center .stat:hover::before { width: 52px; margin-left: -26px; }
.stats--center .stat__value { transition: transform 400ms var(--ease-out); }
.stats--center .stat:hover .stat__value { transform: translateY(-3px); }
@media (max-width: 1100px) {
  .stats--center .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--center .stat:nth-child(n+3) { margin-top: 0; border-top: 1px solid var(--border-2); }
  .stats--center .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .stats--center .stat { padding: 24px 10px; }
  .stats--center .stat__value { font-size: 40px; }
  .stats--center .stat__label { font-size: 16px; }
  .stats--center .stat__note { font-size: 13px; }
}
@media (max-width: 1100px) { .stats__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats__grid--3 .stat:nth-child(n+3) { margin-top: 0; } }
@media (max-width: 760px) { .stats__grid--3 { grid-template-columns: 1fr; gap: 28px; } }

.ab-who__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-who__p { margin-top: 18px; font: 400 clamp(16px, 1.2vw, 18px)/1.65 var(--font-text); color: #3A3A3A; }
.ab-who__p:first-of-type { margin-top: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--fg-1); }
.ab-who__media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-1); }
.ab-who__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.ab-who__media:hover img { transform: scale(1.04); }
.ab-who__badge {
  position: absolute; left: 0; bottom: 28px; display: flex; flex-direction: column; gap: 14px;
  padding: 20px 28px 22px 24px; background: #141414; color: #fff; font: 700 clamp(20px, 1.8vw, 26px)/1.1 var(--font-display);
}
.ab-who__media:hover .tick { width: 64px; }
@media (max-width: 900px) {
  .ab-who__grid { grid-template-columns: 1fr; }
  .ab-who__media img { aspect-ratio: 4 / 3; }
}

/* бігучий рядок */
:root { --ticker-fs: clamp(22px, 2.4vw, 34px); --ticker-h: calc(var(--ticker-fs) + 36px); }
.ticker { overflow: hidden; background: var(--accent); color: #fff; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 var(--ticker-fs)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 18px; height: 12px; background: #fff; clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* що ми виконуємо */
.ab-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
.ab-works__item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 168px; padding: 28px 24px 26px; background: #fff; overflow: hidden;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out), opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: 0s, 0s, calc(var(--i) * 60ms), calc(var(--i) * 60ms);
}
.ab-works__text { font: 700 clamp(19px, 1.6vw, 23px)/1.15 var(--font-display); }
.ab-works__item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width 500ms var(--ease-out); }
.ab-works__item:hover { background: #141414; color: #fff; }
.ab-works__item:hover::after { width: 100%; }
.ab-works__item:hover .tick { width: 64px; }
.ab-works.is-waiting .ab-works__item { opacity: 0; transform: translateY(20px); }
@media (max-width: 1100px) { .ab-works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ab-works { grid-template-columns: 1fr; } .ab-works__item { min-height: 0; gap: 18px; } }

/* як ми працюємо: мітка замість номера */
.pillars__tick { margin-bottom: 18px; }
.pillars__item:hover .tick { width: 64px; }

/* повний цикл */
.ab-cycle { background: #141414; color: #fff; padding: clamp(48px, 8vh, 88px) 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ab-cycle .overline { margin-bottom: 12px; }
.ab-cycle__title { max-width: 820px; font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.ab-cycle__steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(36px, 6vh, 56px); padding-top: 34px; }
.ab-cycle__steps::before, .ab-cycle__steps::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; }
.ab-cycle__steps::before { background: rgba(255, 255, 255, .18); }
.ab-cycle__steps::after { background: var(--accent); transform-origin: left; transition: transform 1600ms cubic-bezier(.6, .1, .2, 1); }
.ab-cycle__step { position: relative; padding-right: 20px; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(200ms + var(--i) * 220ms); }
.ab-cycle__mark { position: absolute; top: -34px; left: 0; width: 26px; height: 12px; background: var(--accent); clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); }
.ab-cycle__name { display: block; font: 700 clamp(20px, 1.8vw, 26px)/1.15 var(--font-display); }
.ab-cycle__steps.is-waiting::after { transform: scaleX(0); }
.ab-cycle__steps.is-waiting .ab-cycle__step { opacity: 0; transform: translateY(16px); }
@media (max-width: 900px) {
  .ab-cycle__steps { grid-template-columns: 1fr; gap: 22px; padding: 0 0 0 40px; }
  .ab-cycle__steps::before, .ab-cycle__steps::after { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .ab-cycle__steps::after { transform-origin: top; }
  .ab-cycle__steps.is-waiting::after { transform: scaleY(0); }
  .ab-cycle__mark { top: 6px; left: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ab-works__item, .ab-cycle__step, .ab-cycle__steps::after { transition: none !important; }
}

/* банер «Про компанію» з фото без білого поля: фото праворуч, ліворуч плавно переходить у білий */
.about-banner--fade .about-banner__media { left: 34%; width: auto; }
.about-banner--fade .about-banner__title { font-size: clamp(42px, 4.6vw, 68px); }
.about-banner--fade .about-banner__media img { object-position: 70% 50%; }
.about-banner--fade .about-banner__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 12%, rgba(255, 255, 255, 0) 42%); }
@media (max-width: 1100px) {
  .about-banner--fade .about-banner__media { left: 0; width: 100%; }
  .about-banner--fade .about-banner__media::after { background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, 0) 80%); }
}
@media (max-width: 640px) {
  .about-banner--fade .about-banner__media img { object-position: 60% 50%; }
}

/* «Два напрямки» на сторінці «Про компанію» — рядки послуг у звичайному (не повноекранному) вигляді */
.ab-dirs .svc-row__media picture, .ab-dirs .svc-row__media img { position: static; display: block; width: 100%; }
.ab-dirs .svc-row__media img { aspect-ratio: 16 / 9; height: auto; }

/* анонс Relocation Audit */
.audit-teaser { background: var(--accent); color: #fff; padding: clamp(40px, 7vh, 72px) 0; }
.audit-teaser__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.audit-teaser .overline { color: #fff; opacity: .8; margin-bottom: 12px; }
.audit-teaser__title { max-width: 760px; font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.audit-teaser__text { max-width: 640px; margin-top: 16px; font: 400 clamp(16px, 1.25vw, 18px)/1.55 var(--font-text); color: rgba(255, 255, 255, .9); }

/* сторінка послуги */
.detail-head__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-intro__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.svc-points { display: grid; gap: 1px; background: var(--border-2); border: 1px solid var(--border-2); }
.svc-points__item { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; background: #fff; font: 700 clamp(20px, 1.7vw, 24px)/1.15 var(--font-display); transition: background 400ms var(--ease-out), color 400ms var(--ease-out); }
.svc-points__item:hover { background: #141414; color: #fff; }
.svc-points__item:hover .tick { width: 64px; }
@media (max-width: 900px) { .svc-intro__grid { grid-template-columns: 1fr; } }

/* етапи з описами: сітка по 4, у кожного — своя мітка й лінія */
.ab-cycle__lead { max-width: 860px; margin-top: 18px; font: 400 clamp(16px, 1.25vw, 18px)/1.6 var(--font-text); color: rgba(255, 255, 255, .78); }
.ab-cycle--rich .ab-cycle__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 0; padding-top: 0; }
.ab-cycle--rich .ab-cycle__steps::before, .ab-cycle--rich .ab-cycle__steps::after { display: none; }
.ab-cycle--rich .ab-cycle__step { padding: 34px 28px 0 0; border-top: 2px solid rgba(255, 255, 255, .18); }
.ab-cycle--rich .ab-cycle__step::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transition: transform 900ms var(--ease-out); transition-delay: calc(200ms + var(--i) * 160ms); }
.ab-cycle--rich .ab-cycle__steps.is-waiting .ab-cycle__step::after { transform: scaleX(0); }
.ab-cycle--rich .ab-cycle__mark { top: -7px; }
.ab-cycle__text { display: block; margin-top: 12px; font: 400 15px/1.55 var(--font-text); color: rgba(255, 255, 255, .72); }
@media (max-width: 1100px) { .ab-cycle--rich .ab-cycle__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ab-cycle--rich .ab-cycle__steps { grid-template-columns: 1fr; gap: 26px; padding-left: 0; }
  .ab-cycle--rich .ab-cycle__step { padding: 24px 0 0; }
  .ab-cycle--rich .ab-cycle__mark { top: -7px; left: 0; }
}

/* види демонтажу: 2×2 великі картки */
.cats-top { padding-bottom: clamp(40px, 6vh, 64px); }
.cats-top .back-link { margin-bottom: clamp(12px, 2vh, 20px); }
.cats-top .sh h1 { font: 700 var(--fs-h2)/var(--lh-heading) var(--font-display); letter-spacing: var(--ls-display); }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.cats .card__title { font-size: clamp(24px, 2.2vw, 32px); }
.cats .card__text { font-size: 15px; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; gap: 32px; } }

/* підсторінка виду демонтажу: опис у тому ж банері — колонки з мітками під фото й назвою */
.nobr { white-space: nowrap; }
.sub-hero { padding-bottom: clamp(40px, 7vh, 72px); }
.sub-hero__more { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: clamp(36px, 6vh, 60px); border-top: 1px solid var(--border-2); }
.sub-hero__more::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transition: transform 1200ms cubic-bezier(.6, .1, .2, 1); }
.sub-hero__col { padding: 28px 32px 0; border-left: 1px solid var(--border-2); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(150ms + var(--i) * 120ms); }
.sub-hero__col:first-child { padding-left: 0; border-left: 0; }
.sub-hero__col:last-child { padding-right: 0; }
.sub-hero__col .tick { margin-bottom: 18px; }
.sub-hero__col p { font: 400 clamp(15px, 1.1vw, 17px)/1.65 var(--font-text); color: #3A3A3A; }
.sub-hero__col:hover .tick { width: 64px; }
.sub-hero__col--lead p { font: 700 clamp(20px, 1.8vw, 26px)/1.15 var(--font-display); letter-spacing: var(--ls-display); color: var(--fg-1); }
.sub-hero__more.is-waiting::before { transform: scaleX(0); }
.sub-hero__more.is-waiting .sub-hero__col { opacity: 0; transform: translateY(16px); }
@media (max-width: 900px) {
  .sub-hero__more { grid-template-columns: 1fr; }
  .sub-hero__col, .sub-hero__col:first-child { padding: 24px 0 0; border-left: 0; }
  .sub-hero__col + .sub-hero__col { margin-top: 8px; }
}
.sub-objects { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sub-objects__lead { font: 400 clamp(16px, 1.2vw, 18px)/1.6 var(--font-text); color: #3A3A3A; }
.sub-objects__list { columns: 2; column-gap: 32px; border-top: 1px solid var(--border-strong); }
.sub-objects__list li { break-inside: avoid; }
@media (max-width: 900px) { .sub-objects { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sub-objects__list { columns: 1; } }

/* банер сторінки послуги: переваги з мітками й фото з плашкою */
.hero-points { display: grid; gap: 10px; margin-top: -4px; }
.hero-points li { display: flex; align-items: center; gap: 16px; font: 600 16px/1.3 var(--font-text); }
.hero-points .tick { width: 22px; }
.frame--hero img { transition: transform 1200ms var(--ease-out); animation: hero-in 1400ms var(--ease-out) both; }
.frame--hero:hover img { transform: scale(1.035); }
@keyframes hero-in { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.frame__badge {
  position: absolute; left: 0; top: 28px; display: flex; flex-direction: column; gap: 12px;
  padding: 18px 26px 20px 22px; background: #141414; color: #fff; font: 700 clamp(18px, 1.6vw, 24px)/1.1 var(--font-display);
}
.frame--hero:hover .frame__badge .tick { width: 64px; }
@media (max-width: 560px) { .frame__badge { top: 16px; padding: 14px 18px 16px 16px; } }
@media (prefers-reduced-motion: reduce) { .frame--hero img { animation: none; } }

/* банер сторінки послуги з великим фото: на ПК займає екран над бігучим рядком — рядок видно повністю */
@media (min-width: 901px) {
  .page-top--hero { display: flex; min-height: calc(100svh - var(--header-h) - var(--header-top) - var(--ticker-h)); padding-top: clamp(16px, 2.5vh, 28px); padding-bottom: clamp(20px, 3.5vh, 36px); }
  .page-top--hero > .container { display: flex; flex-direction: column; width: 100%; }
  .page-top--hero .back-link { margin-bottom: clamp(10px, 2vh, 20px); }
  .page-top--hero .detail-head { flex: 1; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 56px); align-items: stretch; }
  .page-top--hero .detail-head__text { justify-content: center; gap: clamp(14px, 2.4vh, 24px); }
  .page-top--hero .h-display { font-size: clamp(40px, 5vw, 72px); }
  .page-top--hero .frame--hero { align-self: center; height: 100%; min-height: 340px; max-height: 540px; } /* кадр не стає вертикальним на високих екранах */
  .page-top--hero .frame--hero picture, .page-top--hero .frame--hero img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
}

/* «Повний цикл» (короткий варіант без описів) — фірмова червона смуга */
.ab-cycle:not(.ab-cycle--rich) { background: var(--accent); color: #fff; border-bottom: 0; }
.ab-cycle:not(.ab-cycle--rich) .overline { color: #fff; opacity: .8; }
.ab-cycle:not(.ab-cycle--rich) .ab-cycle__steps::before { background: rgba(255, 255, 255, .35); }
.ab-cycle:not(.ab-cycle--rich) .ab-cycle__steps::after { background: #fff; }
.ab-cycle:not(.ab-cycle--rich) .ab-cycle__mark { background: #141414; transition: width 300ms var(--ease-out); }
.ab-cycle:not(.ab-cycle--rich) .ab-cycle__step { padding-right: 16px; }
.ab-cycle:not(.ab-cycle--rich) .ab-cycle__step:hover .ab-cycle__mark { width: 40px; }

/* заголовок блоку з червоною скісною рискою між назвою й описом */
.section--pillars { padding-top: clamp(32px, 5vh, 48px); }
.sh--compact { grid-template-columns: auto minmax(0, 660px); justify-content: space-between; align-items: end; gap: 24px 56px; margin-bottom: clamp(20px, 3vh, 32px); }
.sh--compact .overline { margin-bottom: 10px; }
.sh--compact h2 { font-size: clamp(30px, 3.2vw, 44px); }
.sh--compact .sh__aside { padding-bottom: 2px; font-size: 15px; line-height: 1.55; } /* опис — у 3 рядки, на висоту заголовка ліворуч */
@media (max-width: 900px) { .sh--compact { grid-template-columns: 1fr; } }
.sh--slash { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 32px; margin-bottom: clamp(20px, 3vh, 32px); }
.sh--slash .overline { margin-bottom: 10px; }
.sh--slash h2 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.05; }
.sh--slash .sh__aside { padding-bottom: 0; font-size: 15px; line-height: 1.5; }
.sh--slash .sh__aside { position: relative; border-left: 0; padding-left: 56px; }
.sh--slash .sh__aside::before { content: ""; position: absolute; left: 18px; top: -4px; bottom: -4px; width: 2px; background: var(--accent); transform: skewX(-24deg); }
@media (max-width: 900px) { .sh--slash { grid-template-columns: 1fr; gap: 16px; } .sh--slash .sh__aside { padding-left: 40px; } .sh--slash .sh__aside::before { left: 12px; top: 0; bottom: auto; height: 30px; } }

/* об’єкти з кресленнями: 9 будівель у два рядки (5 + 4 по центру) */
.bgrid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.bgrid__item { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 20px; border-left: 1px solid var(--border-2); transition: background 400ms var(--ease-out), opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: 0s, calc(var(--i) * 70ms), calc(var(--i) * 70ms); }
.bgrid__item:nth-child(-n+5) { border-bottom: 1px solid var(--border-2); }
.bgrid__item:nth-child(1), .bgrid__item:nth-child(6) { border-left: 0; }
.bgrid__item:nth-child(6) { grid-column: 2 / span 2; }
.bgrid__art { overflow: hidden; }
.bgrid__art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
/* наведення: червоні деталі споруди загоряються яскраво-червоним (рівне світіння, без мерехтіння) */
.bgrid__art { position: relative; }
.bgrid__glow {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; opacity: 0;
  filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 3px rgba(255, 40, 20, .7));
  transition: opacity 300ms var(--ease-out), transform 600ms var(--ease-out);
}
.bgrid__item:hover .bgrid__glow { opacity: 1; transform: scale(1.04); }
.bgrid__label { position: relative; padding-left: 36px; font: 700 clamp(15px, 1.25vw, 18px)/1.2 var(--font-display); } /* мітка росте у своєму місці — текст не зсувається */
.bgrid__label .tick { position: absolute; left: 0; top: .5em; width: 22px; }
.bgrid__item:hover { background: var(--bg-alt); }
.bgrid__item:hover .bgrid__art img { transform: scale(1.04); }
.bgrid__item:hover .tick { width: 30px; }
.bgrid.is-waiting .bgrid__item { opacity: 0; transform: translateY(18px); }
@media (max-width: 900px) {
  .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid__item, .bgrid__item:nth-child(6) { grid-column: auto; border-left: 0; border-bottom: 1px solid var(--border-2); }
  .bgrid__item:nth-child(2n) { border-left: 1px solid var(--border-2); }
}
/* «окремі картинки» (усі види демонтажу): без клітинок і ліній — кожна споруда стоїть сама на білому, з м’якою тінню-«землею»;
   при наведенні піднімається, червоні деталі світяться, тінь розходиться */
.bgrid--free { row-gap: clamp(28px, 4vw, 48px); column-gap: clamp(16px, 2.4vw, 36px); padding-top: 8px; }
.bgrid.bgrid--free .bgrid__item:nth-child(n) { padding: 0; border: 0; gap: 14px; background: none; } /* сильніший селектор — перекриває лінії сітки 2×6 і в медіазапитах */
.bgrid--free .bgrid__item:hover { background: none; }
.bgrid--free .bgrid__art { overflow: visible; }
.bgrid--free .bgrid__art::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 4%; z-index: -1; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 18, 18, .13), transparent); transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); }
.bgrid--free .bgrid__art { isolation: isolate; }
.bgrid--free .bgrid__art img, .bgrid--free .bgrid__glow { transition: transform 600ms var(--ease-out), opacity 300ms var(--ease-out); }
.bgrid--free .bgrid__item:hover .bgrid__art img, .bgrid--free .bgrid__item:hover .bgrid__glow { transform: translateY(-8px) scale(1.03); }
.bgrid--free .bgrid__item:hover .bgrid__art::after { transform: scaleX(.82); opacity: .7; }
.bgrid--free .bgrid__label { align-self: center; max-width: 100%; text-align: left; }
@media (max-width: 900px) {
  .bgrid--free { column-gap: 16px; }
}
/* сітка креслень 2 рядки по 6 (промислові об’єкти): креслення 1536×848, підписи — текстом */
.bgrid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bgrid--6 .bgrid__item { grid-column: auto; padding: 12px 12px 18px; }
.bgrid--6 .bgrid__item:nth-child(6) { grid-column: auto; border-left: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
.bgrid--6 .bgrid__item:nth-child(7) { border-left: 0; }
.bgrid--6 .bgrid__art img, .bgrid--6 .bgrid__glow { aspect-ratio: 1536 / 848; }
.bgrid--6 .bgrid__label { padding-left: 32px; font-size: clamp(14px, 1.1vw, 16px); }
.bgrid--6 .bgrid__label .tick { width: 20px; }
.bgrid--6 .bgrid__item:hover .bgrid__label .tick { width: 26px; } /* при наведенні риска подовжується вправо, як у сітці будівель */
@media (max-width: 1100px) and (min-width: 901px) {
  .bgrid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bgrid--6 .bgrid__item, .bgrid--6 .bgrid__item:nth-child(6), .bgrid--6 .bgrid__item:nth-child(7) { border-left: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
  .bgrid--6 .bgrid__item:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 900px) {
  .bgrid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid--6 .bgrid__item:nth-child(7) { border-left: 0; }
}
.sub-objects__list--wide { columns: 3; column-gap: 40px; }
@media (max-width: 900px) { .sub-objects__list--wide { columns: 2; } }
@media (max-width: 480px) { .sub-objects__list--wide { columns: 1; } }

/* що входить у послугу: три етапи */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.phase { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-2); overflow: hidden; transition: border-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out), opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: 0s, 0s, calc(var(--i) * 140ms), calc(var(--i) * 140ms); }
.phase:hover { border-color: #C9CBCE; box-shadow: 0 18px 40px rgba(18, 18, 18, .08); }
.phase__head { display: flex; align-items: center; gap: 18px; padding-right: 22px; border-bottom: 1px solid var(--border-2); }
.phase__tag { flex: none; padding: 14px 34px 14px 20px; background: var(--accent); color: #fff; font: italic 700 clamp(26px, 2.4vw, 34px)/1 var(--font-display); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.phase__title { flex: 1; font: 700 clamp(24px, 2.2vw, 32px)/1 var(--font-display); letter-spacing: var(--ls-display); }
.phase__arrow { color: var(--accent); transition: transform 400ms var(--ease-out); }
.phase:hover .phase__arrow { transform: translateX(6px); }
.phase__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 18px; padding: 18px 22px; border-bottom: 1px solid var(--border-2); }
.phase__list li:last-child { border-bottom: 0; }
.phase__n { padding-right: 18px; border-right: 1px solid var(--border-2); font: 700 clamp(24px, 2vw, 30px)/1 var(--font-display); color: var(--accent); }
.phase__text { font: 600 clamp(16px, 1.3vw, 19px)/1.25 var(--font-display); }
.phase__media { margin-top: auto; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 22%); }
.phase__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.phase:hover .phase__media img { transform: scale(1.05); }
.phases.is-waiting .phase { opacity: 0; transform: translateY(24px); }
@media (max-width: 1000px) { .phases { grid-template-columns: 1fr; } .phase__media img { aspect-ratio: 21 / 9; } }
@media (prefers-reduced-motion: reduce) { .bgrid__item, .phase { transition: none !important; } }

.section--inc { padding-top: clamp(28px, 4.5vh, 44px); }
.section--inc-white { padding-top: clamp(8px, 1.5vh, 16px); padding-bottom: clamp(28px, 4.5vh, 44px); } /* білий, як блок вище — без зайвих відступів */
.phase-art__drawing:first-child { margin-top: 0; }
/* що входить у послугу — варіант із кресленнями: три колонки з розділювачами */
.phases-intro { margin: -6px 0 clamp(20px, 3vh, 28px); font: 500 18px/1.4 var(--font-text); }
.phases-art { --phase-gap: clamp(20px, 2.6vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(2 * var(--phase-gap)); } /* колонки однакові: відступ — проміжком сітки, розділювач — лінією посередині */
.phase-art { position: relative; display: flex; flex-direction: column; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 140ms); }
.phase-art + .phase-art::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--phase-gap)); width: 1px; background: var(--border-2); }
.phase-art__title { display: flex; align-items: center; gap: 14px; font: 700 clamp(28px, 2.8vw, 40px)/1 var(--font-display); letter-spacing: var(--ls-display); }
.phase-art__no { font: 700 clamp(24px, 2.3vw, 32px)/1 var(--font-display); color: var(--accent); }
.phase-art__slash { flex: none; width: 2px; height: .9em; background: var(--accent); transform: skewX(-22deg); }
.phase-art__drawing { position: relative; margin: clamp(14px, 2vh, 22px) 0 clamp(10px, 1.6vh, 18px); }
.phase-art__drawing img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.phase-art__glow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: normal !important;
  filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 3px rgba(255, 40, 20, .7));
  transition: opacity 300ms var(--ease-out), transform 600ms var(--ease-out) !important;
}
.phase-art:hover .phase-art__drawing img { transform: scale(1.03); }
.phase-art:hover .phase-art__glow { opacity: 1; }
.phase-art__list li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--border-2); font: 500 clamp(16px, 1.2vw, 18px)/1.35 var(--font-text); }
.phase-art__list li:last-child { border-bottom: 0; }
.phase-art__list .tick { position: absolute; left: 0; top: calc(14px + .55em); width: 22px; }
.phase-art__list li:hover .tick { width: 30px; }
.phases-art.is-waiting .phase-art { opacity: 0; transform: translateY(24px); }
@media (max-width: 900px) {
  .phases-art { grid-template-columns: 1fr; gap: 28px; }
  .phase-art + .phase-art::before { display: none; }
  .phase-art + .phase-art { padding-top: 24px; border-top: 1px solid var(--border-2); }
}
@media (prefers-reduced-motion: reduce) { .phase-art { transition: none !important; } }

/* банер-«атлас» (Демонтаж будівель): велике креслення, тексти поруч, виноски з червоними лініями.
   Позиції — у % від блоку з пропорціями макета 1280×800 */
.atlas-hero { padding-top: clamp(8px, 1.4vh, 16px); padding-bottom: clamp(32px, 5vh, 56px); }
.atlas-hero .back-link { margin-bottom: clamp(8px, 1.2vh, 14px); }
.atlas { position: relative; aspect-ratio: 1280 / 577; } /* назва + блок уміщаються в екран під шапкою */
.atlas__drawing { position: absolute; left: 30%; top: 0; width: 48.7%; margin: 0; }
.atlas__drawing img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.atlas__glow { position: absolute; inset: 0; opacity: 0; pointer-events: none; filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 3px rgba(255, 40, 20, .7)); transition: opacity 300ms var(--ease-out); }
.atlas__drawing:hover .atlas__glow { opacity: 1; }
.atlas__head { position: absolute; left: 0; top: 2%; width: 34%; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.6vw, 34px); }
.atlas__title { margin-bottom: clamp(10px, 1.8vh, 22px); font: 700 clamp(30px, 3.4vw, 50px)/1 var(--font-display); letter-spacing: var(--ls-display); } /* назва — окремим рядком зверху */
.atlas__lead { font: 400 clamp(13px, 1.1vw, 16px)/1.5 var(--font-text); color: #2B2B2B; }
.atlas__head, .atlas__note, .atlas__title { text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 12px #fff; } /* текст читається поверх ліній креслення */
.atlas__head .btn { text-shadow: none; }
.atlas__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas__lines polyline { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: none; stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms cubic-bezier(.6, .1, .2, 1) 400ms; }
.atlas__pin { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--accent); transition: transform 400ms var(--ease-out) 200ms; }
.atlas__mark { position: absolute; width: 26px; }
.atlas__mark--1 { left: 0; top: 66.5%; }
.atlas__mark--2 { left: 46.1%; top: 69.5%; }
.atlas__mark--3 { left: 80%; top: 4.6%; }
.atlas__note { position: absolute; z-index: 2; }
.atlas__note--1 { left: 0; top: 73%; width: 36%; }
.atlas__note--2 { left: 46.1%; top: 76%; width: 37%; }
.atlas__note--3 { left: 80%; top: 12%; width: 20%; }
.atlas__note-title { margin-bottom: 8px; font: 700 clamp(18px, 1.7vw, 24px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.atlas__note-tick { display: none; }
.atlas__note p { font: 400 clamp(12.5px, 1vw, 14.5px)/1.45 var(--font-text); color: #2B2B2B; }
.atlas__note, .atlas__mark { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.atlas__note--1 { transition-delay: 500ms; } .atlas__note--2 { transition-delay: 650ms; } .atlas__note--3 { transition-delay: 800ms; }
.atlas.is-waiting .atlas__lines polyline { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.atlas.is-waiting .atlas__pin { transform: scale(0); }
.atlas.is-waiting .atlas__note { opacity: 0; transform: translateY(12px); }
@media (max-width: 1100px) {
  .atlas { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .atlas__head, .atlas__drawing, .atlas__note { position: static; width: auto; }
  .atlas__head, .atlas__drawing { grid-column: 1 / -1; }
  .atlas__head { order: -1; }
  .atlas__lead { max-width: none; }
  .atlas__lines, .atlas__pin, .atlas__mark { display: none; }
  .atlas__note-tick { display: inline-block; width: 22px; margin: 0 12px 4px 0; vertical-align: middle; }
}
@media (max-width: 640px) { .atlas { grid-template-columns: 1fr; } }

/* «атлас», широкий варіант (бетон) — як на макеті: креслення на всю ширину банера, тексти в білих полях.
   Сцена 1200×730: позиції в %, шрифти в cqw (масштабуються разом із кресленням) */
.atlas-hero:has(.atlas--wide) { padding-top: 6px; } /* банер вище — нижні тексти в екрані */
.atlas-hero:has(.atlas--wide) .back-link { margin-bottom: 6px; }
.atlas--wide { aspect-ratio: 1200 / 730; container-type: inline-size; }
.atlas--wide .atlas__title { position: absolute; left: 0; top: 0; z-index: 2; width: 48%; margin: 0; font-size: clamp(30px, 4cqw, 48px); }
.atlas--wide .atlas__drawing { left: .583%; top: .386%; width: 99.38%; aspect-ratio: 1531 / 770; overflow: hidden; }
.atlas--wide .atlas__drawing picture { display: contents; }
.atlas--wide .atlas__drawing img, .atlas--wide .atlas__glow { position: absolute; inset: auto; left: 0; top: -10.39%; width: 100.33%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.atlas--wide .atlas__head { left: 0; top: 14.52%; width: 43.33%; gap: 16px; }
.atlas--wide .atlas__lead { max-width: none; font-size: clamp(12.5px, 1.125cqw, 13.5px); }
.atlas--wide .atlas__note--1 { left: 11.25%; top: 83%; width: 36.67%; }
.atlas--wide .atlas__note--2 { left: 53.33%; top: 83%; width: 36.67%; }
.atlas--wide .atlas__note--3 { left: 75%; top: 0; width: 25%; }
.atlas--wide .atlas__note-title { font-size: clamp(18px, 1.833cqw, 22px); }
.atlas--wide .atlas__note p { font-size: clamp(12px, 1.083cqw, 13px); line-height: 1.45; }
@media (max-width: 1100px) {
  .atlas--wide { aspect-ratio: auto; container-type: normal; }
  .atlas--wide .atlas__title { position: static; grid-column: 1 / -1; order: -2; width: auto; }
  .atlas--wide .atlas__head, .atlas--wide .atlas__note { width: auto; }
  .atlas--wide .atlas__drawing { position: relative; left: auto; top: auto; width: auto; }
}
/* «атлас» з колонкою праворуч (промислові об’єкти, будівлі) — як на макеті: назва в один рядок; вступ і кнопка зліва;
   креслення по центру; третя виноска — колонкою праворуч; дві виноски знизу.
   Над кожною виноскою — фірмова риска, під нею проходить червона лінія від маркера */
.atlas--wide.atlas--side .atlas__title { width: 100%; }
.atlas--wide.atlas--side .atlas__drawing { aspect-ratio: auto; overflow: visible; }
.atlas--wide.atlas--side .atlas__drawing picture img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.atlas--wide.atlas--side .atlas__glow { position: absolute; inset: 0; top: 0; width: 100%; height: 100%; }
.atlas--wide.atlas--side .atlas__head { width: 24%; }
.atlas--wide.atlas--side .atlas__lead { font-size: clamp(12px, 1.083cqw, 13px); }
.atlas--wide.atlas--side .atlas__note--1 { left: 0; width: 30.33%; }
.atlas--wide.atlas--side .atlas__note--2 { left: 44.25%; width: 39%; }
.atlas--wide.atlas--side .atlas__note--3 { left: 80.83%; width: 19.17%; }
.atlas--wide.atlas--side .atlas__note-title { margin-bottom: 8px; font-size: clamp(18px, 1.75cqw, 21px); }
.atlas--wide.atlas--side .atlas__note-tick { display: block; margin: 0 0 37px; }
/* промислові об’єкти: сцена 1200×670, креслення в масштабі 0.5377, зсув (152, 25) */
.atlas--wide.atlas--industrial { aspect-ratio: 1200 / 670; }
.atlas--wide.atlas--industrial .atlas__drawing { left: 12.667%; top: 3.731%; width: 68.83%; }
.atlas--wide.atlas--industrial .atlas__head { top: 10.75%; }
.atlas--wide.atlas--industrial .atlas__note--1 { top: 71.64%; }
.atlas--wide.atlas--industrial .atlas__note--2 { top: 73.43%; }
.atlas--wide.atlas--industrial .atlas__note--3 { top: 9.55%; }
/* будівлі: сцена 1200×720, креслення в масштабі 0.53, зсув (160, 47) — антена на даху нижче назви */
.atlas--wide.atlas--buildings { aspect-ratio: 1200 / 720; }
.atlas--wide.atlas--buildings .atlas__drawing { left: 13.333%; top: 6.528%; width: 67.84%; }
.atlas--wide.atlas--buildings .atlas__head { top: 10%; }
.atlas--wide.atlas--buildings .atlas__note--1 { top: 75%; }
.atlas--wide.atlas--buildings .atlas__note--2 { top: 76.67%; }
.atlas--wide.atlas--buildings .atlas__note--3 { top: 8.889%; }
/* металоконструкції: сцена 1200×685, креслення в масштабі 0.52, зсув (182, 25) */
.atlas--wide.atlas--steel-structures { aspect-ratio: 1200 / 685; }
.atlas--wide.atlas--steel-structures .atlas__drawing { left: 15.167%; top: 3.65%; width: 66.56%; }
.atlas--wide.atlas--steel-structures .atlas__head { top: 10.51%; width: 19.67%; }
.atlas--wide.atlas--steel-structures .atlas__note--1 { top: 72.99%; }
.atlas--wide.atlas--steel-structures .atlas__note--2 { top: 74.74%; }
.atlas--wide.atlas--steel-structures .atlas__note--3 { top: 9.343%; }
@media (max-width: 1100px) {
  .atlas--wide.atlas--side { aspect-ratio: auto; }
  .atlas--wide.atlas--side .atlas__drawing { left: auto; top: auto; width: auto; }
  .atlas--wide.atlas--side .atlas__head, .atlas--wide.atlas--side .atlas__note { width: auto; }
  .atlas--wide.atlas--side .atlas__note-tick { display: inline-block; width: 22px; margin: 0 12px 4px 0; vertical-align: middle; }
}
/* «атлас» релокації — як на макеті. Сцена 1200×740: назва у два рядки; вступ, пункти й кнопка зліва;
   креслення 1752×897 у масштабі 0.5858 зі зсувом (212, 48), обрізане по правому краю сцени; три виноски знизу з фірмовими рисками */
.atlas--wide.atlas--relocation { aspect-ratio: 1200 / 740; }
.atlas--wide.atlas--relocation .atlas__title { width: 100%; font-size: clamp(30px, 4cqw, 48px); white-space: nowrap; } /* назва в один рядок — як на сторінках видів демонтажу */
.atlas--wide.atlas--relocation .atlas__drawing { left: 17.7%; top: 6.486%; width: 82.3%; aspect-ratio: 987.6 / 525.5; overflow: hidden; }
.atlas--wide.atlas--relocation .atlas__drawing img, .atlas--wide.atlas--relocation .atlas__glow { top: 0; left: 0; width: 103.92%; aspect-ratio: 1752 / 897; }
.atlas--wide.atlas--relocation .atlas__head { top: 10%; width: 26%; gap: 22px; } /* текст одразу під назвою — як на сторінках видів демонтажу */
.atlas__since { display: flex; align-items: center; gap: 12px; font: 700 clamp(15px, 1.4cqw, 18px)/1.2 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--fg-1); }
.atlas__since .tick { width: 28px; }
.atlas--wide.atlas--relocation .atlas__lead { font-size: clamp(12.5px, 1.125cqw, 13.5px); }
.atlas--wide.atlas--relocation .hero-points { margin: 0; }
.atlas--wide.atlas--relocation .hero-points li { font-size: clamp(12.5px, 1.125cqw, 13.5px); }
.atlas--wide.atlas--relocation .atlas__note--1 { left: 0; top: 78.78%; width: 30.5%; }
.atlas--wide.atlas--relocation .atlas__note--2 { left: 36.47%; top: 78.78%; width: 28.6%; }
.atlas--wide.atlas--relocation .atlas__note--3 { left: 69.16%; top: 78.78%; width: 29.84%; }
.atlas--wide.atlas--relocation .atlas__note-title { margin-bottom: 8px; font-size: clamp(18px, 1.833cqw, 22px); }
.atlas--wide.atlas--relocation .atlas__note-tick { display: block; margin: 0 0 37px; }
@media (max-width: 1100px) {
  .atlas--wide.atlas--relocation { aspect-ratio: auto; }
  .atlas--wide.atlas--relocation .atlas__title { white-space: normal; }
  .atlas--wide.atlas--relocation .atlas__head, .atlas--wide.atlas--relocation .atlas__note { width: auto; }
  .atlas--wide.atlas--relocation .atlas__note-tick { display: inline-block; width: 22px; margin: 0 12px 4px 0; vertical-align: middle; }
}
/* «Як відбувається релокація» з кресленнями — як сітка об’єктів на сторінках демонтажу: білий фон, без червоних ліній,
   4 етапи в першому ряду і 3 по центру в другому, тонкі розділювачі; назва з фірмовою міткою, під нею опис */
.ab-cycle--art { background: #fff; color: var(--fg-1); border-bottom: 0; padding: clamp(28px, 4vh, 48px) 0; }
.ab-cycle--art .sh { margin-bottom: clamp(12px, 1.8vh, 20px); }
.ab-cycle--art .ab-cycle__steps { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin-top: 0; padding: 0; }
.ab-cycle--art .ab-cycle__step { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; border-top: 0; border-left: 1px solid var(--border-2); transition: background 400ms var(--ease-out), opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: 0s, calc(var(--i) * 70ms), calc(var(--i) * 70ms); }
.ab-cycle--art .ab-cycle__step::after, .ab-cycle--art .ab-cycle__mark { display: none; }
.ab-cycle--art .ab-cycle__step:nth-child(1), .ab-cycle--art .ab-cycle__step:nth-child(5) { border-left: 0; }
.ab-cycle--art .ab-cycle__step:nth-child(-n+4) { border-bottom: 1px solid var(--border-2); }
.ab-cycle--art .ab-cycle__step:nth-child(5) { grid-column: 2 / span 2; }
.ab-cycle--art .ab-cycle__step:hover { background: var(--bg-alt); }
.ab-cycle__art { position: relative; display: block; overflow: hidden; }
.ab-cycle__art img { display: block; width: 100%; height: auto; aspect-ratio: 17 / 9; object-fit: cover; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.ab-cycle__art .ab-cycle__glow, .checklist__art .checklist__glow, .audit__art .audit__glow, .stg__art .stg__glow {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; mix-blend-mode: normal;
  filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 3px rgba(255, 40, 20, .7)); transition: opacity 300ms var(--ease-out), transform 600ms var(--ease-out);
}
.ab-cycle--art .ab-cycle__step:hover .ab-cycle__art img, .ab-cycle--art .ab-cycle__step:hover .ab-cycle__glow { transform: scale(1.03); }
.ab-cycle--art .ab-cycle__step:hover .ab-cycle__glow { opacity: 1; }
.ab-cycle--art .ab-cycle__name { position: relative; padding-left: 32px; font-size: clamp(17px, 1.35vw, 20px); } /* мітка росте у своєму місці — текст не зсувається */
.ab-cycle--art .ab-cycle__name .tick { position: absolute; left: 0; top: .5em; width: 20px; }
.ab-cycle--art .ab-cycle__step:hover .ab-cycle__name .tick { width: 26px; }
.ab-cycle--art .ab-cycle__text { margin-top: 0; font-size: 14px; line-height: 1.5; color: #3A3A3A; }
@media (max-width: 1100px) {
  .ab-cycle--art .ab-cycle__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-cycle--art .ab-cycle__step, .ab-cycle--art .ab-cycle__step:nth-child(5) { grid-column: auto; border-left: 0; border-bottom: 1px solid var(--border-2); }
  .ab-cycle--art .ab-cycle__step:nth-child(2n) { border-left: 1px solid var(--border-2); }
}
@media (max-width: 760px) { .ab-cycle--art .ab-cycle__steps { grid-template-columns: 1fr; } .ab-cycle--art .ab-cycle__step:nth-child(2n) { border-left: 0; } }
/* чеклісти: оцінка й підготовка майданчика */
.checklists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.checklist { padding: clamp(28px, 3vw, 44px); background: #fff; border: 1px solid var(--border-2); }
.checklist .overline { margin-bottom: 12px; }
.checklist__title { font: 700 clamp(26px, 2.4vw, 34px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.checklist__text { margin-top: 14px; font: 400 16px/1.6 var(--font-text); color: #3A3A3A; }
.checklist__head { margin-top: 26px; padding-bottom: 12px; border-bottom: 1px solid var(--border-strong); font: 600 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.checklist__list li { position: relative; padding: 13px 0 13px 34px; border-bottom: var(--rule-hair); font: 500 16px/1.4 var(--font-text); transition: color 300ms var(--ease-out); }
.checklist__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 9px; margin-top: -4px; background: var(--accent); clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); transition: width 300ms var(--ease-out); }
.checklist__list li:hover::before { width: 26px; }
.checklist__list li:hover { color: var(--accent); }
@media (max-width: 900px) { .checklists { grid-template-columns: 1fr; } }

/* чеклісти з кресленнями — як «Що входить у послугу» в демонтажі: білий фон, дві колонки з розділювачем;
   креслення зверху на одному рівні, далі мітка, заголовок, опис і список з фірмовими рисками — рядки обох колонок вирівняні (subgrid) */
.checklists--art { gap: 0 clamp(48px, 6vw, 96px); grid-template-rows: repeat(6, auto); }
.checklists--art .checklist { position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding: 0; background: none; border: 0; }
.checklists--art .checklist + .checklist::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * clamp(24px, 3vw, 48px)); width: 1px; background: var(--border-2); }
.checklist__art { position: relative; margin-bottom: 22px; overflow: hidden; }
.checklist__art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.checklists--art .checklist:hover .checklist__art img, .checklists--art .checklist:hover .checklist__glow { transform: scale(1.03); }
.checklists--art .checklist:hover .checklist__glow { opacity: 1; }
.checklists--art .checklist__head { align-self: end; }
.checklists--art .checklist__list li { padding-left: 36px; font: 500 clamp(16px, 1.2vw, 18px)/1.35 var(--font-text); }
.checklists--art .checklist__list li::before { display: none; }
.checklists--art .checklist__list .tick { position: absolute; left: 0; top: calc(13px + .55em); width: 22px; }
.checklists--art .checklist__list li:hover { color: inherit; }
.checklists--art .checklist__list li:hover .tick { width: 30px; }
@media (max-width: 900px) {
  .checklists--art { grid-template-rows: none; }
  .checklists--art .checklist { display: block; grid-row: auto; }
  .checklists--art .checklist + .checklist { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-2); }
  .checklists--art .checklist + .checklist::before { display: none; }
}
/* Relocation Audit */
.audit { position: relative; background: #141414; color: #fff; padding: clamp(56px, 9vh, 96px) 0; overflow: hidden; scroll-margin-top: calc(var(--header-h) + var(--header-top)); }
.audit::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: var(--accent); }
.audit__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.audit .overline { margin-bottom: 12px; }
.audit__title { font: 700 clamp(36px, 4.6vw, 60px)/.98 var(--font-display); letter-spacing: var(--ls-display); }
.audit__text p { font: 400 clamp(16px, 1.2vw, 18px)/1.6 var(--font-text); color: rgba(255, 255, 255, .78); }
.audit__text p + p { margin-top: 12px; }
.audit__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 6vh, 56px); }
.audit__step {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 28px 24px;
  background: #1E1E1E; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden;
  transition: background 400ms var(--ease-out), border-color 400ms var(--ease-out), opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: 0s, 0s, calc(var(--i) * 100ms), calc(var(--i) * 100ms);
}
.audit__step::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.audit__step:hover { background: #262626; border-color: rgba(255, 255, 255, .2); }
.audit__step:hover::after { transform: none; }
.audit__step:hover .tick { width: 64px; }
.audit__name { margin-top: auto; font: 700 clamp(22px, 2vw, 28px)/1.05 var(--font-display); }
.audit__desc { font: 400 15px/1.5 var(--font-text); color: rgba(255, 255, 255, .72); }
.audit__steps.is-waiting .audit__step { opacity: 0; transform: translateY(20px); }
.audit__cta { margin-top: 36px; }
@media (max-width: 1100px) { .audit__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .audit__head { grid-template-columns: 1fr; } .audit__steps { grid-template-columns: 1fr; } .audit__step { min-height: 0; } }

/* довгий текст у смузі заклику */
.cta-band--long h2 { max-width: 860px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }

.notfound .container { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 48px; }
.notfound .overline { margin: 0; }

/* ── Низ сторінки (заклик + футер); «Контакти» в шапці ведуть сюди ── */
.site-end { background: var(--bg-inverse); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--bg-inverse); color: var(--fg-inverse); padding: 64px 0 28px; }
/* підвал одразу після темної стрічки (сторінка «Про компанію»): тонка лінія на всю ширину + фірмова червона риска зліва — блоки не зливаються */
main:has(> .capx:last-child) + .site-end > .site-footer:first-child { position: relative; border-top: var(--rule-inverse); }
main:has(> .capx:last-child) + .site-end > .site-footer:first-child::before { content: ""; position: absolute; top: -2px; left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); width: 64px; height: 3px; background: var(--accent); }
.cta-band + .site-footer { border-top: var(--rule-inverse); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.site-footer__brand img { height: 28px; width: auto; align-self: flex-start; }
.site-footer__tag { display: flex; align-items: center; gap: 12px; font: 500 13px/1.3 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-inverse-2); }
.site-footer__tag::before { content: ''; flex: none; width: var(--accent-bar); height: 28px; background: var(--accent); }
.site-footer__head { margin-bottom: 18px; font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--fg-inverse-2); }
.site-footer a, .site-footer__item { color: var(--fg-inverse); font: 400 15px/1.3 var(--font-text); }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__contacts { display: flex; gap: 16px; }
.site-footer__contacts > img { width: 50px; height: auto; flex: none; align-self: flex-start; }
.site-footer__item { display: flex; gap: 10px; align-items: center; }
.site-footer__item .icon { color: var(--accent); }
.site-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: var(--rule-inverse); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; font: 400 13px/1.4 var(--font-text); color: var(--fg-inverse-2); }
/* соцмережі в правому нижньому куті футера */
.social { display: flex; gap: 8px; }
.social__link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-inverse); border-radius: var(--radius-1); color: var(--fg-inverse); transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.site-footer a.social__link:hover { background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent); }
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 48px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}
/* Relocation Audit з кресленнями — білий фон: картки з тонкою рамкою, мітка, креслення, назва, опис */
.audit--art { background: #fff; color: var(--fg-1); }
.audit--art::before { display: none; }
.audit--art .audit__text p { color: #3A3A3A; }
.audit--art .audit__steps { gap: 0; border: 1px solid var(--border-2); }
.audit--art .audit__step { gap: 10px; min-height: 0; padding: 22px 22px 26px; background: #fff; border: 0; }
.audit--art .audit__step + .audit__step { border-left: 1px solid var(--border-2); }
.audit--art .audit__step:hover { background: var(--bg-alt); border-color: var(--border-2); }
.audit--art .audit__name { margin-top: 6px; }
.audit--art .audit__desc { color: #3A3A3A; }
.audit__art { position: relative; display: block; overflow: hidden; }
.audit__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.audit--art .audit__step:hover .audit__art img, .audit--art .audit__step:hover .audit__glow { transform: scale(1.03); }
.audit--art .audit__step:hover .audit__glow { opacity: 1; }
@media (max-width: 1100px) { .audit--art .audit__step:nth-child(3) { border-left: 0; } .audit--art .audit__step:nth-child(n+3) { border-top: 1px solid var(--border-2); } }
@media (max-width: 760px) { .audit--art .audit__step + .audit__step { border-left: 0; border-top: 1px solid var(--border-2); } }
/* сторінка «Релокація»: невеликі однакові проміжки між блоками (~50px між сусідніми) */
.atlas-hero:has(.atlas--relocation) { padding-bottom: 8px; }
.ab-cycle--art { padding: 24px 0; }
.section:has(> .checklists--art) { padding: 24px 0 48px; }
.audit--art { padding: 24px 0 48px; }
/* шапка аудиту — компактна, як у блоках демонтажу: заголовок у два рядки, опис вузький і дрібніший (у ~3 рази нижча за картки) */
.audit__sh { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.audit__sh .sh__aside { max-width: 560px; justify-self: end; }
.audit__sh .sh__aside p { font: 400 14px/1.5 var(--font-text); color: var(--fg-2); }
.audit__sh .sh__aside p + p { margin-top: 6px; }
.audit--art .audit__steps { margin-top: 0; }
/* ── Сторінка проєкту: результат з фірмовими рисками, фотозвіт і відеозвіт ── */
.pcase { padding-bottom: clamp(24px, 4vh, 40px); }
.case__results li { position: relative; padding: 16px 0 16px 36px; border-bottom: var(--rule-hair); font: 500 clamp(16px, 1.25vw, 18px)/1.35 var(--font-text); }
.case__results .tick { position: absolute; left: 0; top: calc(16px + .55em); width: 22px; }
.case__results li:hover .tick { width: 30px; }
.pmedia { padding: clamp(24px, 4vh, 40px) 0; }
.pgallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pgallery li:first-child { grid-column: span 2; grid-row: span 2; }
.pgallery__item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--tira-ink-200); overflow: hidden; cursor: zoom-in; }
.pgallery__item picture, .pgallery__item img { display: block; width: 100%; height: 100%; }
.pgallery__item img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.pgallery__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pgallery__item:hover img, .pgallery__item:focus-visible img { transform: scale(1.04); }
.pgallery__item:hover .pgallery__zoom, .pgallery__item:focus-visible .pgallery__zoom { opacity: 1; transform: none; }
.pvideo { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #0E0E0E; }
.pvideo picture, .pvideo img { display: block; width: 100%; height: 100%; }
.pvideo img { object-fit: cover; }
.pvideo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, .05), rgba(14, 14, 14, .45)); pointer-events: none; }
.pvideo__play { position: absolute; left: 50%; top: 50%; z-index: 1; display: inline-flex; align-items: center; gap: 16px; padding: 0 28px 0 0; height: 64px; border: 0; background: var(--accent); color: #fff; font: 600 16px/1 var(--font-text); transform: translate(-50%, -50%); cursor: pointer; transition: background 300ms var(--ease-out); }
.pvideo__icon { position: relative; width: 64px; height: 64px; background: rgba(0, 0, 0, .16); }
.pvideo__icon::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-left: 16px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.pvideo__play:hover { background: var(--accent-hover, #C41E14); }
.pvideo.is-playing::after, .pvideo.is-playing .pvideo__play, .pvideo.is-playing picture { display: none; }
.pvideo video, .pvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0E0E0E; }
@media (max-width: 760px) {
  .pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pvideo { aspect-ratio: 16 / 9; }
  .pvideo__play { height: 52px; padding-right: 20px; } .pvideo__icon { width: 52px; height: 52px; }
}
/* перегляд фото на весь екран */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 64px 88px; background: rgba(14, 14, 14, .95); }
.lightbox.is-open { display: flex; }
.lightbox__fig { display: flex; margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__fig picture { display: contents; }
.lightbox__fig img { max-width: calc(100vw - 176px); max-height: calc(100vh - 128px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; border: 0; color: #fff; cursor: pointer; }
.lightbox__close { top: 16px; right: 16px; width: 48px; height: 48px; background: var(--accent); }
.lightbox__nav { top: 50%; width: 56px; height: 56px; margin-top: -28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25) !important; transition: background 300ms var(--ease-out); }
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font: 600 13px/1 var(--font-mono); letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) { .lightbox { padding: 64px 12px; } .lightbox__fig img { max-width: calc(100vw - 24px); } .lightbox__nav { top: auto; bottom: 12px; margin: 0; } .lightbox__count { bottom: 32px; } }
/* банер «Про компанію» на головній: текст у три абзаци замість одного ліда */
.about-banner__lead--multi p { font: 400 clamp(15px, 1.1vw, 17px)/1.55 var(--font-text); }
.about-banner__lead--multi p + p { margin-top: 12px; }
/* банер «Про компанію» на головній — рівно на висоту екрана під шапкою: при переході «Про компанію» видно весь блок з кнопкою */
@media (min-width: 901px) {
  .about-banner--cta:has(.about-banner__lead--multi) { aspect-ratio: auto; min-height: 0; height: max(600px, calc(100svh - var(--header-h) - var(--header-top))); }
  .about-banner--cta:has(.about-banner__lead--multi) .about-banner__inner { padding-top: clamp(20px, 3vh, 40px); padding-bottom: clamp(20px, 3vh, 40px); }
  .about-banner--cta:has(.about-banner__lead--multi) .overline { margin-bottom: clamp(10px, 1.6vh, 18px); }
  .about-banner--cta:has(.about-banner__lead--multi) .about-banner__title { font-size: clamp(40px, min(4.4vw, 8vh), 72px); }
  .about-banner--cta .about-banner__lead--multi { margin-top: clamp(12px, 2vh, 20px); max-width: 540px; }
  .about-banner--cta .about-banner__lead--multi p { font-size: clamp(14px, min(1.1vw, 2.1vh), 17px); line-height: 1.5; }
  .about-banner--cta .about-banner__lead--multi p + p { margin-top: clamp(6px, 1.2vh, 12px); }
  .about-banner--cta:has(.about-banner__lead--multi) .about-banner__call { margin-top: clamp(16px, 2.6vh, 28px); padding-top: clamp(14px, 2.2vh, 22px); }
  .about-banner--cta:has(.about-banner__lead--multi) .about-banner__actions { margin-top: clamp(10px, 1.6vh, 16px); }
}
/* послуги (головна й «Послуги»): активна — остання послуга під курсором (клас is-active ставить скрипт і знімає лише,
   коли мишка виходить з блоку) — межа між рядками не «смикається»; анімація коротша й чіткіша: швидкий старт, м’яке гальмування */
@media (min-width: 1001px) and (hover: hover) {
  .section--svc { --ease-svc: cubic-bezier(.22, .8, .24, 1); }
  .section--svc .svc { transition: grid-template-rows 650ms var(--ease-svc); }
  .section--svc .svc-row { transition: grid-template-columns 650ms var(--ease-svc); }
  .section--svc .svc-row__media img { transition: transform 800ms var(--ease-svc), filter 500ms var(--ease-svc), object-position 650ms var(--ease-svc); }
  .section--svc .svc-row__title { transition: opacity 420ms var(--ease-svc), transform 650ms var(--ease-svc); }
  .section--svc .svc-row__text { transition: opacity 360ms var(--ease-svc), transform 650ms var(--ease-svc); }
  .section--svc .svc-row .tick { transition: opacity 420ms var(--ease-svc), transform 650ms var(--ease-svc), width 500ms var(--ease-svc); }
  .section--svc .svc-row__go { transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), opacity 450ms var(--ease-svc), transform 650ms var(--ease-svc); }
  .section--svc .svc-row__title-sm { transition: opacity 420ms var(--ease-svc), transform 650ms var(--ease-svc); }
  .svc:has(.svc-row.is-active) .svc-row:not(.is-active) .svc-row__title-sm { transition-delay: 120ms, 0s; }
  /* лінія, риска й кнопка — за активною послугою (а не лише за курсором) */
  .section--svc .svc-row.is-active .svc-row__line { width: 100%; }
  .section--svc .svc-row.is-active .svc-row__line::after { opacity: 1; transition-delay: 0s; }
  .section--svc .svc-row.is-active .tick { width: 72px; }
  .section--svc .svc-row.is-active .svc-row__go { background: var(--accent); border-color: var(--accent); color: var(--fg-on-accent); }
  .section--svc .svc-row.is-active .svc-row__go .icon { transform: translateX(4px); }
  .section--svc .svc-row:hover:not(.is-active) .svc-row__line { width: 0; }
}
/* підпис розробника в правому нижньому куті підвалу: «Produced by» у стилі сайту + фірмовий логотип lunko */
.site-footer__end { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.credit { display: flex; align-items: center; gap: 12px; padding-left: 28px; border-left: var(--rule-inverse); }
.credit__label { font: 600 11px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--fg-inverse-2); }
.credit__logo { display: block; width: auto; height: 22px; }
@media (max-width: 760px) { .site-footer__end { width: 100%; justify-content: space-between; } .credit { padding-left: 0; border-left: 0; } }
/* соцмережі під контактами — з відступом на ширину знака «Ті», рівно з текстом контактів */
.site-footer__social { margin-top: 22px; padding-left: 66px; }
.credit { padding-left: 0; border-left: 0; }
@media (max-width: 760px) { .site-footer__end { width: auto; } }
/* сторінка проєкту: назва гармонійно — в один рядок, розмір як у заголовків блоків; опис праворуч на рівні назви */
@media (min-width: 1101px) {
  .project-head { grid-template-columns: minmax(0, 1.9fr) 1px minmax(0, 1fr); align-items: center; gap: 48px; }
  .project-head__title { gap: 14px; }
  .project-head .h-display { font-size: clamp(32px, 3vw, 44px); line-height: 1.05; white-space: nowrap; }
  .project-head .lead { font-size: 16px; line-height: 1.55; }
}
/* перший екран проєкту — назва, фото й показники видно одразу: блок на висоту екрана, фото забирає решту місця */
@media (min-width: 761px) {
  .phero { --phero-pt: clamp(12px, 2.2vh, 28px); padding-top: var(--phero-pt); padding-bottom: 0; }
  .phero__inner { display: flex; flex-direction: column; height: calc(100svh - var(--header-h) - var(--header-top) - var(--phero-pt)); min-height: 560px; padding-bottom: clamp(8px, 1.6vh, 16px); }
  .phero .back-link { margin-bottom: clamp(10px, 2vh, 22px); }
  .phero .project-head { flex: none; margin-bottom: clamp(14px, 2.6vh, 28px); }
  .phero__photo { flex: 1 1 auto; min-height: 200px; }
  .phero__photo picture, .phero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .phero__photo img { aspect-ratio: auto; object-fit: cover; object-position: 50% 55%; }
  .phero .facts-row { flex: none; }
  .phero .facts-row > div { padding-top: clamp(12px, 2vh, 22px); padding-bottom: clamp(12px, 2vh, 22px); }
  .phero .facts-row dd { font-size: clamp(20px, 1.7vw, 24px); }
}
@media (max-width: 760px) { .phero .project-head { margin-bottom: 20px; } .phero__photo img { aspect-ratio: 4 / 3; } }
/* сторінка «Проєкти»: акуратна шапка (як у блоках сайту) і фільтри-вкладки з кількістю */
.projects-top { padding-top: clamp(24px, 4vh, 48px); }
.projects-top .sh--slash { margin-bottom: clamp(18px, 3vh, 28px); }
.projects-top .sh--slash h1 { font: 700 clamp(32px, 3.2vw, 46px)/1.05 var(--font-display); letter-spacing: var(--ls-display); }
.filters--tabs { gap: 0 32px; margin: 0 0 clamp(24px, 4vh, 40px); padding: 0; border-bottom: 1px solid var(--border-2); }
.filter-tab { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding: 0 0 14px; border: 0; background: none; font: 600 16px/1 var(--font-text); color: var(--fg-2); cursor: pointer; transition: color 300ms var(--ease-out); }
.filter-tab__n { font: 600 12px/1 var(--font-mono); color: var(--fg-3); transition: color 300ms var(--ease-out); }
.filter-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease-out); }
.filter-tab:hover { color: var(--fg-1); }
/* без рамки фокусу після кліку; з клавіатури фокус видно за кольором тексту й підкресленням */
.filter-tab:focus, .filter-tab:focus-visible { outline: none; }
.filter-tab:focus-visible { color: var(--fg-1); }
.filter-tab:focus-visible::after { transform: none; opacity: .35; }
.filter-tab[aria-pressed="true"]:focus-visible::after { opacity: 1; }
.filter-tab[aria-pressed="true"] { color: var(--fg-1); }
.filter-tab[aria-pressed="true"] .filter-tab__n { color: var(--accent); }
.filter-tab[aria-pressed="true"]::after { transform: none; }
/* фотозвіт: у сітці 5 фото, на п’ятому — «+N фото»; у перегляді на весь екран — стрічка мініатюр усіх фото */
.pgallery__more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(14, 14, 14, .6); color: #fff; font: 600 12px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; transition: background 400ms var(--ease-out); }
.pgallery__more b { font: 700 clamp(34px, 3.2vw, 48px)/1 var(--font-display); letter-spacing: var(--ls-display); text-transform: none; }
.pgallery__item:hover .pgallery__more { background: rgba(218, 41, 28, .78); }
.lightbox { padding-bottom: 120px; }
.lightbox__fig img { max-height: calc(100vh - 200px); }
.lightbox__count { top: 24px; bottom: auto; left: 24px; transform: none; }
.lightbox__strip { position: absolute; left: 50%; bottom: 18px; display: flex; gap: 6px; max-width: calc(100vw - 32px); padding: 3px; overflow-x: auto; scrollbar-width: none; transform: translateX(-50%); }
.lightbox__strip::-webkit-scrollbar { display: none; }
.lightbox .lightbox__thumb { position: relative; flex: none; width: 92px; height: 64px; padding: 0; border: 0; background: #222; opacity: .45; outline: 2px solid transparent; outline-offset: 1px; transition: opacity 300ms var(--ease-out), outline-color 300ms var(--ease-out); }
.lightbox__thumb picture, .lightbox__thumb img { display: block; width: 100%; height: 100%; }
.lightbox__thumb img { object-fit: cover; }
.lightbox .lightbox__thumb:hover { opacity: .8; }
.lightbox .lightbox__thumb.is-active { opacity: 1; outline-color: var(--accent); }
@media (max-width: 760px) { .lightbox .lightbox__thumb { width: 64px; height: 46px; } .lightbox__nav { bottom: 86px; } }

/* відеозвіт з кількома роликами — «кінозал»: темна панель, велике вікно зліва, плейлист праворуч без ліній-розділювачів */
.pvlist { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); background: var(--tira-ink-900); color: #fff; border-radius: var(--radius-1); overflow: hidden; box-shadow: 0 34px 70px -40px rgba(14, 14, 14, .6); }
.pvlist__main { min-width: 0; }
.pvideo.pvideo--16x9 { aspect-ratio: 16 / 9; }
.pvlist__now { display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 22px; }
.pvlist__count { flex: none; font: 500 13px/1 var(--font-mono); letter-spacing: .06em; color: var(--tira-ink-500); }
.pvlist__count b { font-weight: 600; color: var(--accent); }
.pvlist__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 clamp(18px, 1.5vw, 22px)/1.2 var(--font-display); letter-spacing: var(--ls-display); }
.pvlist__dur { flex: none; font: 500 13px/1 var(--font-mono); color: var(--tira-ink-400); }
.pvlist__nav { flex: none; display: flex; gap: 4px; }
.pvlist__step { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--radius-1); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background 300ms var(--ease-out); }
.pvlist__step:hover { background: var(--accent); }
.pvlist__step:disabled { opacity: .3; cursor: default; background: rgba(255, 255, 255, .08); }
.pvlist__step--prev svg { transform: rotate(180deg); }

.pvlist__side { contain: size; display: flex; flex-direction: column; min-width: 0; padding: 20px 10px 0; background: var(--tira-ink-800); }
.pvlist__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 0 10px 14px; font: 600 11px/1 var(--font-mono); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--tira-ink-400); }
.pvlist__head span:first-child { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.pvlist__head span:first-child::before { content: ""; width: 4px; height: 14px; background: var(--accent); transform: skewX(-20deg); }
.pvlist__list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0 0 48px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); }
.pvlist__item { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-1); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background 300ms var(--ease-out); }
.pvlist__item:hover { background: rgba(255, 255, 255, .05); }
.pvlist__item.is-active { background: rgba(255, 255, 255, .09); }
.pvlist__thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius-1); background: var(--tira-ink-700); }
.pvlist__thumb picture, .pvlist__thumb img { display: block; width: 100%; }
.pvlist__thumb img { aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.55) brightness(.78); transition: transform 600ms var(--ease-out), filter 400ms var(--ease-out); }
.pvlist__item:hover .pvlist__thumb img { transform: scale(1.06); filter: none; }
.pvlist__item.is-active .pvlist__thumb img { filter: none; }
.pvlist__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity 300ms var(--ease-out); }
.pvlist__item.is-active .pvlist__thumb::after { opacity: 1; }
/* «зараз грає»: червоний квадрат з еквалайзером + смужка прогресу внизу мініатюри */
.pvlist__eq { position: absolute; left: 6px; bottom: 9px; display: flex; align-items: flex-end; gap: 2px; width: 22px; height: 22px; padding: 5px; background: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pvlist__eq i { flex: 1; height: 35%; background: #fff; animation: pvlist-eq 900ms ease-in-out infinite alternate; animation-play-state: paused; }
.pvlist__eq i:nth-child(2) { animation-delay: -300ms; } .pvlist__eq i:nth-child(3) { animation-delay: -600ms; } .pvlist__eq i:nth-child(4) { animation-delay: -150ms; }
.pvlist.is-playing .pvlist__eq i { animation-play-state: running; }
@keyframes pvlist-eq { from { height: 25%; } to { height: 100%; } }
.pvlist__item.is-active .pvlist__eq { opacity: 1; transform: none; }
.pvlist__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--accent); opacity: 0; }
.pvlist__item.is-active .pvlist__bar { opacity: 1; }
.pvlist__info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pvlist__name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 14px/1.3 var(--font-text); color: rgba(255, 255, 255, .7); transition: color 300ms var(--ease-out); }
.pvlist__item:hover .pvlist__name, .pvlist__item.is-active .pvlist__name { color: #fff; }
.pvlist__meta { display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; color: var(--tira-ink-500); }
.pvlist__num { color: var(--tira-ink-400); }
.pvlist__now-tag { display: none; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.pvlist__item.is-active .pvlist__now-tag { display: inline; }
@media (prefers-reduced-motion: reduce) { .pvlist__eq i { animation: none; height: 70%; } }
@media (max-width: 900px) {
  .pvlist { grid-template-columns: minmax(0, 1fr); }
  .pvlist__side { contain: none; padding: 18px 0 0; }
  .pvlist__head { padding: 0 16px 12px; }
  .pvlist__list { flex-direction: row; gap: 8px; padding: 0 16px 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .pvlist__list li { flex: none; width: min(62vw, 240px); scroll-snap-align: start; }
  .pvlist__item { grid-template-columns: 1fr; gap: 10px; height: 100%; align-items: start; }
  .pvlist__now { gap: 12px; padding: 10px 10px 10px 16px; }
  .pvlist__title { font-size: 16px; }
  .pvlist__dur { display: none; }
  .pvlist__step { width: 38px; height: 38px; }
}
