/* ============================================================
   Helios Aggregator — cinematic scroll site
   Brand tokens copied 1:1 from the original ../styles.css
   ============================================================ */
:root {
  --bg-base:      #10161B;
  --bg-surface:   #1A232A;
  --bg-card:      #28323C;
  --bg-elevated:  #313D48;

  --accent:       #CC181B;
  --accent-hover: #E62629;
  --accent-soft:  rgba(204, 24, 27, 0.12);
  --accent-glow:  rgba(204, 24, 27, 0.28);

  --text-primary:   #F2F5F7;
  --text-secondary: #A8B4BF;
  --text-muted:     #6C7A87;

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --positive: #3DD68C;
  --warning:  #F2A93B;

  --font-display: "Muller", "Unbounded", sans-serif;
  --font-body: "Onest", sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* Єдиний розмір червоних слешів біля заголовків — щоб не розповзався
     по секціях; збігається з розміром основного h2. */
  --slash-size: clamp(30px, 3.2vw, 46px);
  /* Розмір ролі Caption (типографічний стандарт) — один спільний
     токен, щоб не переправляти кожне значення окремо. */
  --fs-caption: 14.5px;
  --cinema-bg: #050505;
}

/* ============================================================
   MULLER — заголовковий шрифт
   Ліцензійний шрифт, лежить локально в assets/fonts/ (сконвертований
   з ttf у woff2: 190КБ → 40КБ на накреслення).
   font-display: swap — текст видно одразу, без невидимої паузи.
   Medium заявлений на діапазон 500–600, щоб вага 600 брала саме його,
   а не перестрибувала на Bold.
   ============================================================ */
@font-face {
  font-family: "Muller";
  src: url("assets/fonts/Muller-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Muller";
  src: url("assets/fonts/Muller-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Muller";
  src: url("assets/fonts/Muller-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: var(--cinema-bg); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  /* Стандарт шрифту: Body 16px / line-height 1.6 / letter-spacing 0. */
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }

/* Стандарт: H3 — Muller Medium(500), H1/H2 лишаються Bold(700). */
h1, h2 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
/* h2 — заголовок розділу: усі літери великі, керується стилем, а не
   написанням у тексті, щоб залишалось читабельно в коді й нормально
   озвучувалось скрін-рідерами. h3 — заголовки блоків усередині розділу:
   лише перша літера, звичайний регістр тексту. */
h2 { font-size: 36px; line-height: 1.2; text-transform: uppercase; }
@media (max-width: 768px) { h2 { font-size: 26px; } }
h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.3; }
@media (max-width: 768px) { h3 { font-size: 20px; } }
/* Точковий виняток: цей конкретний h2 просили зробити такого ж вигляду,
   як заголовки карток (h3) — без капсу, звичайним регістром тексту,
   і того ж розміру (19px), бо за змістом це радше підзаголовок, а не
   заголовок рівня розділу. Шрифт і вага в h2/h3 і так однакові
   (Muller 700), тут прибираємо капс і зменшуємо розмір до h3. */
.h2--sentence-case { font-size: 24px; line-height: 1.3; text-transform: none; }
/* Точковий виняток — просили лише розмір як у .h2--sentence-case,
   капс (text-transform: uppercase) від базового h2 тут лишається. */
.h2--small { font-size: 24px; line-height: 1.3; }
@media (max-width: 768px) { .h2--sentence-case, .h2--small { font-size: 20px; } }
/* Коротка червона риска під кожним основним заголовком розділу (h2).
   Підзаголовки (.h2--sentence-case, .h2--small) та компактний
   .cta-block__title її не отримують — вона лише для заголовків
   рівня розділу. */
h2:not(.h2--sentence-case):not(.h2--small):not(.cta-block__title)::after {
  content: ''; display: block;
  width: 64px; height: 2px; background: var(--accent);
  margin-top: 16px;
}
p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
/* Клас .small був у розмітці в кількох місцях, але без власного правила
   тут — фактично нічого не робив, текст лишався звичайного розміру. */
.small { font-size: var(--fs-caption); }
/* Точковий виняток: цей конкретний текст просили лишити розміром Body. */
#ems-detail .small { font-size: 16px; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.7s var(--ease-out-expo), visibility 0.7s;
}
.loader__mark img { width: 220px; height: auto; opacity: 0.92; }
.loader__bar {
  width: 280px; height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden;
}
.loader__bar-fill {
  height: 100%; width: 0%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.15s linear;
}
.loader__pct {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; color: var(--text-secondary);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px 0;
  transition: padding 0.35s var(--ease-out-expo), background 0.35s var(--ease-out-expo), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  padding: 14px 0;
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.navbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar__logo img { height: 60px; width: auto; display: block; }
.navbar__menu { display: flex; gap: 28px; }
.navbar__menu a {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.25s;
}
.navbar__menu a:hover { color: var(--text-primary); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 16px; line-height: 1; letter-spacing: 0.04em;
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease-out-expo);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 0 24px var(--accent-glow); }
.btn--secondary { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }
/* Кнопка в навбарі — компактніша за звичайну .btn і завжди в один рядок,
   бо це не самостійний CTA-блок, а вузький елемент шапки. */
.navbar__cta { padding: 9px 18px; font-size: 12px; white-space: nowrap; }
@media (max-width: 860px) { .navbar__menu { display: none; } }

/* ============================================================
   SCRUB — один суцільний екран на всі чотири сюжети
   ============================================================ */
.scrub-mega {
  position: relative;
  height: var(--cinema-vh, 760vh);   /* JS підставляє суму CHAPTERS[].vh */
  background: var(--cinema-bg);
}
.scrub-sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; background: var(--cinema-bg);
}
/* Кожен сюжет — окремий canvas один над одним; який зараз видно і як
   сильно — вирішує JS через opacity щотика, синхронно зі скролом.
   Тому тут нема transition: перехрещення саме має йти строго за
   позицією скролу, а не своєю окремою анімацією. */
.scrub-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0;
}
.scrub-fallback-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none;
}
.scrub-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.55) 100%);
  transition: background 0.5s var(--ease-out-expo);
}
.scrub-vignette.is-dark {
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.7) 100%);
}

/* Hero copy — над сюжетом "clouds" */
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 14vh; z-index: 5;
  text-align: center; padding: 0 24px;
}
.hero-copy__kicker {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 18px; opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.hero-copy__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px;
  color: var(--text-primary);
  white-space: nowrap;
}
.hero-copy__title .letters span {
  display: inline-block; opacity: 0; transform: translateY(0.4em);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.hero-copy__sub {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-muted);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s var(--ease-out-expo) 0.3s, transform 0.8s var(--ease-out-expo) 0.3s;
}
/* Разовий "виїзд" тексту при вході в кадр — окремо від безперервного
   opacity контейнера, яким JS керує при переході в наступний сюжет. */
#heroCopy.is-in-view .hero-copy__kicker,
#heroCopy.is-in-view .hero-copy__sub { opacity: 1; transform: translateY(0); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 5;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  opacity: 0.8;
}
.scroll-cue span {
  width: 1px; height: 32px; background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* Callouts in transform chapter */
.callout {
  position: absolute; display: flex; align-items: center; gap: 14px; z-index: 5;
  opacity: 0; transition: opacity 0.6s var(--ease-out-expo);
  max-width: 340px;
}
.callout.is-visible { opacity: 1; }
.callout__line { width: 46px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--positive)); flex-shrink: 0; }
.callout__text {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-primary);
  line-height: 1.5;
}
.callout--1 { top: 22%; left: 6%; }
.callout--2 { top: 68%; right: 6%; text-align: right; flex-direction: row-reverse; }
.callout--3 { top: 42%; left: 8%; }
@media (max-width: 768px) {
  .callout { max-width: 220px; font-size: 12px; }
  .callout--1 { left: 4%; top: 18%; }
  .callout--2 { right: 4%; top: 66%; }
  .callout--3 { left: 4%; top: 40%; }
}

/* Logo copy */
.logo-copy {
  position: absolute; left: 0; right: 0; bottom: 10vh; z-index: 5; text-align: center;
}
.logo-copy__tag {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted);
}

/* ============================================================
   REVEAL SECTIONS (Intersection Observer)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

.section { padding: 120px 0; position: relative; }
/* НАВМИСНО ВИДАЛЕНО: лінія-розділювач між сусідніми секціями сторінки. */
/* Точковий виняток: лінія саме між «Наша EMS» і «Калькулятор ціни»,
   обрізана по ширині .container (не на весь екран). */
/* Лінія по центру порожнього проміжку між кнопкою вище і калькулятором
   нижче — не на межі секцій (там вона притискалась до контенту знизу),
   а власним ::before з точним відступом від верху секції. */
#calculator::before {
  content: ''; position: absolute; top: -1px; left: 50%;
  width: 1180px; max-width: calc(100% - 64px); transform: translateX(-50%);
  border-top: 1px solid var(--border);
}
/* Та сама лінія по центру проміжку — між «Чому ми з'явилися» і
   «Управління СЕС». */
#approach::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 1180px; max-width: calc(100% - 64px); transform: translateX(-50%);
  border-top: 1px solid var(--border);
}
.section--tight { padding: 90px 0; }
.section--surface { background: var(--bg-surface); }
.eyebrow { font-size: 13px; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
@media (max-width: 768px) { .eyebrow { font-size: 12px; } }
.lead { font-size: var(--fs-caption); color: var(--text-secondary); max-width: 640px; margin-top: 16px; }
/* Точковий виняток: цей конкретний лід просили лишити розміром Body,
   а не Caption, як решту .lead по сайту. */
#aggregation .section-head .lead { font-size: 16px; }
#become-client .section-head .lead { font-size: 16px; }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Маніфест-стиль для заголовків секцій ----------
   Спільна мова декору з блоком «Хто ми»: червоний слеш біля заголовка,
   градієнтна лінія-розділювач під ним і сітка крапок як акцент.
   Класи-модифікатори, щоб не чіпати базовий .section-head. */
.section-head--manifesto {
  max-width: none; position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 26px; align-items: start;
  padding-bottom: 30px; margin-bottom: 44px;
}
/* Слеш стоїть у власній колонці зліва, вирівняний по перший рядок тексту */
.section-head--manifesto::before {
  content: '/'; grid-row: 1 / span 3;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--slash-size); line-height: 1;
  color: var(--accent); transform: skewX(-12deg);
  user-select: none; margin-top: 2px;
}
/* НАВМИСНО ВИДАЛЕНО: градієнтна лінія-розділювач під заголовками секцій. */
.section-head--manifesto > * { grid-column: 2; }
@media (max-width: 760px) {
  .section-head--manifesto { grid-template-columns: 1fr; gap: 12px; }
  .section-head--manifesto::before { display: none; }
  .section-head--manifesto > * { grid-column: 1; }
}

/* Здвоєний слеш — для другорядних заголовків усередині секції */
.section-head--slash2::before { content: '//'; letter-spacing: -0.04em; }

/* Декоративна сітка крапок — та сама, що в блоці «Хто ми».
   Ставиться окремим елементом там, де є вільне поле праворуч. */
.deco-dots {
  width: 120px; height: 116px;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.55; flex: none;
}
@media (max-width: 1100px) { .deco-dots { display: none; } }
/* Список-галочки з сіткою крапок у вільному полі праворуч */
.checks-wrap { display: flex; align-items: center; gap: 48px; }
.checks-wrap .checks { flex: 1; min-width: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-top: 20px; }
.text-link:hover { color: var(--accent-hover); }
.arrow { transition: transform 0.3s var(--ease-out-expo); }
.text-link:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }

/* ---------- Хто ми: маніфест-стиль ----------
   Заголовок, короткий текст і метрики стоять в один горизонтальний ряд,
   розділені червоним слешем; уся типографіка — Muller (--font-display). */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 1.5fr);
  gap: 0 34px; align-items: start;
  padding-bottom: 34px; position: relative;
}
/* НАВМИСНО ВИДАЛЕНО: та сама градієнтна лінія-розділювач, тепер під «Хто ми». */
/* Слеш стоїть у власному рядку разом із заголовком, а не окремою
   колонкою грід-сітки — так він завжди лишається біля заголовка,
   а не «пливе» посередині висоти сусідньої колонки. */
.manifesto__title-row { display: flex; align-items: flex-start; gap: 18px; margin-top: 10px; }
.manifesto__title {
  /* розмір не перевизначаємо — усі основні заголовки однакові (базовий h2) */
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.manifesto__title .accent { color: var(--accent); }
/* Слеш-розділювач — суто декоративний, тому нахил і колір, без семантики */
.manifesto__slash {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--slash-size); line-height: 1;
  color: var(--accent); transform: skewX(-12deg);
  user-select: none; flex-shrink: 0;
}
.manifesto__aside { padding-top: 34px; }
.manifesto__aside p { font-size: var(--fs-caption); line-height: 1.6; color: var(--text-secondary); }
.manifesto__aside .ext-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--accent);
}
.manifesto__aside .ext-link:hover { color: var(--accent-hover); }
@media (max-width: 1100px) {
  .manifesto { grid-template-columns: 1fr; gap: 26px; }
  .manifesto__slash { display: none; }
  .manifesto__aside { padding-top: 0; }
}

/* Metrics — горизонтальний ряд великих червоних чисел (Muller),
   під кожним одиниця виміру й пояснення дрібним текстом. */
.metrics__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 20px; }
.metric__value {
  /* Muller Medium (500), а не Bold — у референсі цифри легші, з повітрям */
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 2.9vw, 40px); line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.metric__unit-label {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-caption); color: var(--text-secondary);
  margin-top: 10px; padding-bottom: 14px;
  position: relative;
}
/* Червона лінія-індикатор під одиницею виміру, що закінчується крапкою —
   ::before — сама лінія, ::after — крапка на її правому кінці. */
/* Товщина й розмір крапки — ті самі, що в таймлайні секції послуг,
   щоб однакові за змістом елементи не відрізнялись візуально. */
.metric__unit-label::before {
  content: ''; position: absolute; left: 0; bottom: 4px;
  width: 78%; height: 3px; border-radius: 2px; background: var(--accent);
}
.metric__unit-label::after {
  content: ''; position: absolute; left: 78%; bottom: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent-glow);
}
.metric__label { margin-top: 10px; font-size: var(--fs-caption); line-height: 1.45; color: var(--text-muted); }
@media (max-width: 1100px) { .metrics__row { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) { .metrics__row { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; } }

/* ---------- Чому ми з'явилися ----------
   Підпис ліворуч, здвоєний червоний слеш як візуальний акцент,
   основний текст — широкою колонкою праворуч. */
.manifesto-why {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 3fr) auto;
  gap: 0 34px; align-items: start; padding-top: 34px;
}
/* Здвоєний слеш у власному рядку разом із підзаголовком — той самий
   прийом, що й у .manifesto__title-row, щоб він не «пливсь» до тексту. */
.manifesto-why__head-row { display: flex; align-items: flex-start; gap: 16px; }
/* Декоративна сітка червоних крапок праворуч — суто графічний акцент,
   тому малюється фоном (radial-gradient), а не окремими елементами. */
.manifesto-why__dots {
  width: 120px; height: 116px; align-self: center;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.7px);
  background-size: 24px 24px;
  opacity: 0.55;
}
.eyebrow--accent { color: var(--accent); }
.manifesto-why__slashes {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--slash-size); line-height: 1;
  color: var(--accent); transform: skewX(-12deg);
  letter-spacing: -0.04em; user-select: none;
}
.manifesto-why__body p { font-size: var(--fs-caption); line-height: 1.7; }
.manifesto-why__body p + p { margin-top: 16px; }
@media (max-width: 1100px) {
  .manifesto-why { grid-template-columns: 1fr; gap: 20px; }
  .manifesto-why__slashes, .manifesto-why__dots { display: none; }
}

/* Chain */
.chain { display: flex; align-items: center; gap: 18px; margin: 32px 0 40px; }
.chain__node { display: flex; align-items: center; gap: 10px; opacity: 0.4; }
.chain__node.is-active { opacity: 1; }
.chain__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.chain__node.is-active .chain__dot { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.chain__label { font-size: 14px; letter-spacing: 0.04em; }
.cols-8 { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.cols-8 p { font-size: var(--fs-caption); }
/* Точковий виняток для одного конкретного блоку — просили розтягнути
   текст на всю ширину контейнера, а не тримати у вузькій колонці 760px. */
.cols-8--full { max-width: none; }
.section-head--full { max-width: none; }
.lead--full { max-width: none; }
/* Не просто розмір, а весь вигляд заголовка h2--sentence-case — той
   самий шрифт (Muller), жирність, колір і регістр, а не сірий підпис.
   Розмір синхронізований з поточним .h2--sentence-case (24px) —
   раніше тут лишалось старе значення 19px від попереднього стандарту. */
.lead--as-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  line-height: 1.3; color: var(--text-primary); margin-top: 0;
}
@media (max-width: 768px) { .lead--as-heading { font-size: 20px; } }
/* Здвоєний слеш поруч із підзаголовком — той самий прийом, що й
   у .manifesto-why__head-row. Відступ зверху переносимо на рядок-
   обгортку (був на самому <p> через базовий .lead), щоб слеш і текст
   лишались вирівняні по верху одне з одним. */
.lead--as-heading-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 16px; }
.lead--as-heading-slash {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--slash-size); line-height: 1;
  color: var(--accent); transform: skewX(-12deg);
  letter-spacing: -0.04em; user-select: none; flex-shrink: 0;
}
@media (max-width: 760px) { .lead--as-heading-slash { display: none; } }

/* Compare table */
/* ---------- Секція «Управління СЕС» у маніфест-стилі ----------
   Великий слеш ліворуч від заголовка, сітка крапок праворуч і коротка
   червона риска під заголовком.
   position: relative потрібен для абсолютно позиційованих дітей
   (напр. .side-rail). overflow тут навмисно НЕ ставимо: він був
   потрібен лише для обрізання декоративних діагоналей, а hidden ще й
   ламає position:sticky у нащадків — через це кадр MacBook свого часу
   випадав із пінінгу. */
.approach-manifesto { position: relative; }

.approach-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; margin-bottom: 34px;
}
.approach-head__main {
  position: relative; padding-left: 58px; flex: 1; min-width: 0;
}
/* Великий слеш ліворуч — той самий прийом, що й у .section-head--manifesto,
   але масштабніший, під великий заголовок секції. */
.approach-head__main::before {
  content: '/'; position: absolute; left: 0; top: -4px;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--slash-size); line-height: 1;
  color: var(--accent); transform: skewX(-12deg); user-select: none;
}
/* Коротка червона риска під заголовком — тепер спільна для всіх
   основних заголовків через h2::after нижче, тут окремо не дублюємо. */
.approach-head__title {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .approach-head__main { padding-left: 0; }
  .approach-head__main::before { display: none; }
  .approach-head__main::after { left: 0; }
}

.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare thead th { font-family: var(--font-display); font-size: var(--fs-caption); letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }
/* Заголовок колонки «Геліос Агрегатор» — акцентний, щоб читалась перевага */
.compare thead th.compare__helios { color: var(--accent); }
.compare__helios { color: var(--text-primary); }
.compare__typical { color: var(--text-muted); }
.compare__label { color: var(--text-secondary); font-weight: 500; }

/* Нумерована версія — червоні номери 01–04 з підкресленням, і вертикальні
   розділювачі між колонками, як у зразку. */
.compare--numbered thead th:first-child, .compare--numbered .compare__num { display: none; }
.compare--numbered .compare__num::after {
  content: ''; display: block; width: 38px; height: 2px;
  background: var(--accent); margin-top: 8px;
}
.compare--numbered td.compare__helios, .compare--numbered thead th.compare__helios,
.compare--numbered td.compare__typical, .compare--numbered thead th.compare__typical {
  border-left: 1px solid var(--border);
}
.compare--numbered tbody td, .compare--numbered tbody th { padding-top: 22px; padding-bottom: 22px; }
.compare-cards { display: none; }
@media (max-width: 760px) {
  .compare-wrap table { display: none; }
  .compare-cards { display: block; }
  .compare-card { background: var(--bg-surface); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
  .compare-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .compare-card li { font-size: 14px; color: var(--text-secondary); }
  .compare-card li b { display: block; color: var(--text-muted); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
}

/* Grid / cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
.grid--services-row2 { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
/* Шоста картка — червоний акцентний заклик, замінює колишню окрему
   стрічку .accent-strip під сіткою послуг. */
.card.card--accent {
  background: var(--accent); border-color: var(--accent);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.card--accent p { color: #fff; font-size: 16px; font-weight: 600; }
/* Слеш усередині червоної картки — світлий, щоб читався на акценті */
.card--accent__slash {
  font-family: var(--font-display); font-weight: 700;
  font-size: 42px; line-height: 1; color: rgba(255,255,255,0.75);
  transform: skewX(-12deg); user-select: none; align-self: flex-start;
}
.card--accent .btn--primary { background: #fff; color: var(--accent); }
.card--accent .btn--primary:hover { background: var(--bg-base); color: #fff; box-shadow: none; }
.card {
  background: var(--bg-card); border-radius: 20px; padding: 32px;
  border: 1px solid var(--border);
}
.card__icon { color: var(--accent); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
/* .calc теж має клас card, але всередині нього діють власні розміри
   з оригінального сайту (сума, дисклеймер, підписи). Без цього винятку
   правило перебивало їх за специфічністю і калькулятор виглядав інакше. */
.card:not(.calc) p { font-size: 16px; }
.card--static { padding: 48px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
/* Проміжний розмір між текстом у картці (14.5px) і звичайним абзацом
   поза карткою (16px) — на прохання зробити щось середнє між ними. */
.card:not(.calc) p.card__lead-text { font-size: 16px; }
.formula { font-size: 20px; color: var(--text-primary); }
.formula .accent { color: var(--accent); }
@media (max-width: 900px) { .grid--3, .grid--4, .grid--services-row2 { grid-template-columns: 1fr; } }

.mock-dash { margin-top: 24px; background: var(--bg-elevated); border-radius: 14px; padding: 18px; }
.mock-dash__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dash__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock-dash__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mock-dash__tile { background: var(--bg-surface); border-radius: 10px; padding: 12px; }
.mock-dash__tile b { display: block; font-family: var(--font-display); font-size: 16px; }
.mock-dash__tile span { font-size: var(--fs-caption); color: var(--text-muted); }

.accent-strip {
  margin-top: 32px; padding: 28px 32px; border-radius: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-glow);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.accent-strip p { color: var(--text-primary); font-size: 16px; margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.pill { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; color: var(--text-secondary); }
.pill.accent { border-color: var(--accent); color: var(--accent); }

/* Замість окремих карток — грід з вертикальними лініями-розділювачами
   між колонками (border-left), без фону й рамки навколо кожної плашки. */
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 28px 0 20px; }
.badge-tile {
  text-align: center; padding: 4px 16px; border-left: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  line-height: 1.3;
}
.badge-tile:first-child { border-left: none; }
.badge-tile svg { color: var(--accent); flex: none; }
.badge-tile--accent { color: var(--accent); }
.badge-tile--accent svg { color: var(--accent); }
@media (max-width: 768px) {
  .badges { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .badge-tile { border-left: none; padding: 16px 12px 0; }
  .badge-tile:nth-child(2n) { border-left: 1px solid var(--border); }
}

/* Попередня секція вже дає 120px нижнього падінгу — власний верхній
   падінг тут подвоював би розрив, тому знімаємо його. */
.cta { text-align: center; padding-top: 0; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta__contacts { font-size: 14px; color: var(--text-secondary); }
.cta__contacts a:hover { color: var(--accent); }

/* ============================================================
   CTA-БЛОКИ — єдина структура для чотирьох CTA сайту
   ("Відкрита ціна", "Як стати клієнтом", "EMS платформа",
   футерний CTA): іконка → заголовок → опис → meta-рядок → кнопка.
   Без картки: ані фону, ані рамки — текст лежить просто на сторінці.
   Заголовок — той самий шрифт, що й у підзаголовків (.h2--sentence-case).
   ============================================================ */
.cta-block { text-align: center; margin-top: 56px; }
.cta-block__icon { color: var(--accent); margin-bottom: 18px; }
.cta-block__title {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  line-height: 1.3; text-transform: none; color: var(--text-primary);
  margin-bottom: 12px;
}
/* max-width + auto-margin — щоб довгий опис лишався вузькою колонкою
   по центру, а не розтягувався на всю ширину контейнера */
.cta-block__desc { color: var(--text-secondary); margin: 0 auto 16px; max-width: 520px; font-size: 16px; }
/* без обмеження ширини — текст іде на всю ширину контейнера */
.cta-block__desc--wide { max-width: none; }
.cta-block__meta { font-size: 14px; color: var(--text-secondary); margin-bottom: 26px; }
/* крапки-роздільники в meta-рядку — фірмовим червоним, як у шаблоні */
.cta-block__meta i { font-style: normal; color: var(--accent); margin: 0 8px; }

.btn--outline-accent { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline-accent:hover { background: var(--accent); color: #fff; box-shadow: 0 0 24px var(--accent-glow); }

/* Варіант зі списком (CTA внизу секції) — за референсом це окремі
   горизонтальні картки: іконка ліворуч, текст посередині, кнопка
   праворуч. Раніше тут була центрована колонка, через що блок зовсім
   не збігався зі зразком. */
/* Той самий центрований стиль, що й у базового .cta-block (іконка/
   заголовок/опис/кнопка одне під одним по центру) — картки лишаються,
   але вміст усередині вирівняний вертикально по центру, а не рядком. */
.cta-block:has(.cta-block__item) { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .cta-block:has(.cta-block__item) { grid-template-columns: 1fr; } }
.cta-block__item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 28px;
}
.cta-block__item .cta-block__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px; flex: none;
}
.cta-block__body { width: 100%; }
.cta-block__item .cta-block__title { margin-bottom: 8px; font-size: 16px; }
.cta-block__item .cta-block__desc { font-size: 16px; margin: 0 0 20px; max-width: none; }
.cta-block__item .btn { white-space: nowrap; }

/* Footer */
.footer { background: var(--bg-surface); padding: 70px 0 28px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo img { height: 26px; margin-bottom: 14px; }
.footer__tag { font-size: 14px; color: var(--text-secondary); }
.footer__legal { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.footer nav ul, .footer div ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer nav ul li a, .footer div ul li { font-size: 14px; color: var(--text-secondary); }
.footer nav ul li a:hover { color: var(--accent); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: color 200ms, border-color 200ms;
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE / REDUCED MOTION — swap canvas for looping video
   ============================================================ */
@media (max-width: 768px) {
  .scrub-canvas { display: none; }
  .scrub-fallback-video { display: block; }
  .hero-copy__title { font-size: 34px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .scrub-canvas { display: none; }
  .scrub-fallback-video { display: block; }
  .scrub-mega { height: 100vh; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   КОМПОНЕНТИ, ПЕРЕНЕСЕНІ ЗІ СТАРОГО САЙТУ
   Цілі секції оригінального styles.css під розмітку, яку перенесено
   в index.html: акордеони, ланцюг, кроки, форми, віджети EMS,
   перемикач модулів, калькулятор, плитки, пронумеровані блоки.
   Базове, навбар, футер і типографіку не чіпаємо — у cinematic вони свої.
   ============================================================ */

/* ---------- Акордеон ---------- */
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 22px 4px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 44px;
}
/* Варіант із номером: червоний номер 01–06 ліворуч, за ним питання,
   плюс праворуч (за референсом секції «Питання і відповіді»). */
.accordion__btn--num { justify-content: flex-start; gap: 0; }
.accordion__num {
  flex: none; width: 46px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1.4; color: var(--accent);
}
.accordion__q { flex: 1; min-width: 0; padding-right: 20px; }
.accordion__btn--num .accordion__plus { margin-left: auto; }
/* Текст відповіді вирівнюємо по питанню, а не по номеру.
   50px = 46px колонки номера + 4px власного padding кнопки. */
.accordion__item:has(.accordion__btn--num) .accordion__panel-inner { padding-left: 50px; }

/* Заголовок секції FAQ із сіткою крапок праворуч */
.faq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.faq-head .section-head { flex: 1; min-width: 0; }
.deco-dots--tall { height: 190px; }

/* Варіант із іконкою: іконка ліворуч, за нею вертикальна риска-роздільник,
   далі назва розділу і плюс праворуч (за референсом секції «Інформація»). */
.accordion__btn--icon { justify-content: flex-start; gap: 0; }
.accordion__btn--icon > span:not(.accordion__icon):not(.accordion__plus) {
  flex: 1; min-width: 0; padding-left: 20px;
  border-left: 1px solid var(--border); margin-left: 20px;
}
.accordion__btn--icon .accordion__plus { margin-left: auto; }
.accordion__icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; color: var(--accent);
}
.accordion__plus {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
  transition: transform 300ms;
}
.accordion__plus::before, .accordion__plus::after {
  content: "";
  position: absolute;
  background: var(--text-secondary);
  top: 50%; left: 50%;
}
.accordion__plus::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.accordion__plus::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.accordion__btn[aria-expanded="true"] .accordion__plus { transform: rotate(45deg); }
.accordion__btn[aria-expanded="true"] .accordion__plus::before,
.accordion__btn[aria-expanded="true"] .accordion__plus::after { background: var(--accent-hover); }
.accordion__panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease;
}
.accordion__panel-inner { padding: 0 4px 24px; color: var(--text-secondary); }

/* ---------- Контент розділу «Інформація для клієнтів» ----------
   Перенесено з heliosaggregate.com/info; вигляд адаптований під
   темну тему сайту: картки на bg-card, червоний акцент на ховері. */
.accordion__panel-inner p { margin: 0 0 14px; line-height: 1.65; }
.accordion__panel-inner p:last-child { margin-bottom: 0; }
.info-subhead {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--text-primary); margin-top: 22px !important; margin-bottom: 10px !important;
}
.accordion__panel-inner > .info-subhead:first-child { margin-top: 0 !important; }

/* Перелік нормативних документів — пункти-картки з червоним маркером */
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list li {
  position: relative; padding: 12px 16px 12px 32px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 200ms;
}
.doc-list li::before {
  content: ''; position: absolute; left: 14px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.doc-list li:hover { border-color: var(--accent); }
.doc-list a { color: var(--text-secondary); line-height: 1.55; display: block; }
.doc-list li:hover a { color: var(--text-primary); }

/* Державні органи — сітка карток із посиланнями */
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.org-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  color: var(--text-secondary); line-height: 1.5;
  transition: border-color 200ms, color 200ms;
}
.org-card svg { color: var(--accent); flex: none; margin-top: 1px; }
.org-card:hover { border-color: var(--accent); color: var(--text-primary); }
@media (max-width: 760px) { .org-grid { grid-template-columns: 1fr; } }

/* Нумеровані та марковані переліки всередині розділів */
.num-list, .bullet-list { margin: 0 0 14px; padding-left: 0; list-style: none; }
.num-list { counter-reset: num-item; }
.num-list li, .bullet-list li {
  position: relative; padding-left: 34px; margin-bottom: 12px; line-height: 1.65;
}
.num-list li::before {
  counter-increment: num-item; content: counter(num-item);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.bullet-list li::before {
  content: ''; position: absolute; left: 10px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.num-list li:last-child, .bullet-list li:last-child { margin-bottom: 0; }
.bullet-list a { color: var(--accent); }
.bullet-list a:hover { color: var(--accent-hover); }

/* Картка файлу для завантаження */
.file-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  color: var(--text-secondary); transition: border-color 200ms;
}
.file-card svg { color: var(--accent); flex: none; }
.file-card__name { flex: 1; min-width: 200px; color: var(--text-primary); }
.file-card__action {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.file-card:hover { border-color: var(--accent); }

/* ---------- Ланцюг-конвеєр ---------- */
.chain {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.chain__node {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.chain__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 1px;
  background: var(--border);
}
.chain__node:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 23.5px;
  right: calc(-50% + 36px);
  border: 4px solid transparent;
  border-left-color: var(--border-strong);
  z-index: 1;
}
.chain__dot {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 200ms, color 200ms, box-shadow 200ms;
}
.chain__dot svg { width: 22px; height: 22px; }
.chain__label { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.chain__node.is-active .chain__dot {
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}
.chain__node.is-active .chain__label { color: var(--text-primary); }
.chain--animated .chain__node {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
}
.chain--animated.is-revealed .chain__node { opacity: 1; transform: translateY(0); }

.formula {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
}
.formula .accent { color: var(--accent-hover); }

/* ---------- Доріжка кроків ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step__num {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: var(--fs-caption); margin: 0; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* ---------- «Як стати учасником»: без карток, номер + іконка + текст,
   між кроками червона стрілка-роздільник ---------- */
.steps--flow { gap: 56px; }
.steps--flow .step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: start; }
.steps--flow .step__num { display: none; }
.steps--flow .step__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--accent);
  margin-top: -6px;
}
.steps--flow .step p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
/* Стрілка між кроками — тільки на широких екранах, де вони в один ряд */
.steps--flow .step + .step::before {
  content: '→'; position: absolute; left: -38px; top: 2px;
  font-size: 22px; color: var(--accent); line-height: 1;
}
@media (max-width: 768px) {
  .steps--flow { gap: 28px; }
  .steps--flow .step + .step::before { display: none; }
}

/* ---------- Форми ---------- */
.form-card { max-width: 880px; }
#lead-form { display: flex; flex-direction: column; gap: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field--full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-note { margin: 0; }
.form-success p { font-size: var(--fs-caption); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Секція заявки: заголовок ліворуч, форма праворуч ---------- */
.lead-layout {
  display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px; align-items: start;
}
.lead-layout__aside .section-head { max-width: none; margin-bottom: 34px; }
/* розмір не перевизначаємо — усі основні заголовки однакові (базовий h2) */
.lead-layout__aside h2 { line-height: 1.06; }
.lead-layout__aside .lead { font-size: 14px; line-height: 1.65; }
.lead-layout__aside .deco-dots { margin-top: 20px; }
/* Форма тут без картки — поля лежать прямо на фоні секції */
.lead-layout .form-card { max-width: none; background: none; border: none; padding: 0; }
/* Кнопка й примітка в один ряд, як у зразку */
.form-actions--row { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-actions--row .btn { flex: none; }
.form-actions--row .form-note { flex: 1; min-width: 260px; font-size: var(--fs-caption); line-height: 1.55; }
@media (max-width: 1000px) {
  .lead-layout { grid-template-columns: 1fr; gap: 36px; }
  .lead-layout__aside .deco-dots { display: none; }
}

/* Альтернативний контакт під формою — іконка ліворуч, текст праворуч */
.alt-contact {
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0 0; padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: var(--fs-caption); line-height: 1.5;
}
.alt-contact__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--accent); flex: none;
}
.alt-contact a { color: var(--accent); font-weight: 600; }
.alt-contact a:hover { color: var(--accent-hover); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 13px 16px;
  min-height: 44px;
  width: 100%;
  transition: border-color 200ms;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8B4BF' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.field__error {
  display: none;
  font-size: var(--fs-caption);
  color: var(--accent-hover);
}
.field.has-error .field__error { display: block; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 16px;
  min-height: 44px;
}
.radio input {
  appearance: none;
  width: 20px; height: 20px;
  min-height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: border-color 200ms;
  position: relative;
}
.radio input:checked { border-color: var(--accent); }
.radio input:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- EMS-платформа: віджети/макети ---------- */
.mock-dash {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}
.mock-dash__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.mock-dash__bar i {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  display: block;
}
.mock-dash__bar i:first-child { background: var(--accent); }
.mock-dash__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mock-dash__tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.mock-dash__tile b {
  display: block;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  color: var(--text-primary);
}
.mock-dash__tile span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* Повноширинний віджет платформи (ems.html) */
.platform-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.platform-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.kpi__label {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.kpi__value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 26px;
  color: var(--text-primary);
  white-space: nowrap;
}
.kpi__value small { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.kpi__dot-lime {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #B8E62E;
  box-shadow: 0 0 8px rgba(184, 230, 46, 0.8);
  display: inline-block;
  flex: none;
}
.platform-widget__chart { margin-bottom: 22px; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.chart-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.hours-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.hours-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
}
.hours-table th, .hours-table td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.hours-table th:first-child, .hours-table td:first-child { text-align: left; }
.hours-table thead th {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-card);
}
.hours-table td { color: var(--text-secondary); font-family: var(--font-num); }
.hours-table td:first-child { color: var(--text-primary); }
.hours-table .pos { color: var(--positive); }
.hours-table .neg { color: var(--accent-hover); }
.hours-table tbody tr:last-child td { border-bottom: none; }

/* Реveal «випливання» віджета, як Live Dashboard Preview у Cyberix */
.float-in {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}
.float-in.is-revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Перемикач модулів (tablist) ---------- */
.modules { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; }
.modules__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface);
}
.modules__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 13px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.modules__tab:last-child { border-bottom: none; }
.modules__tab:hover { color: var(--text-primary); }
.modules__tab[aria-selected="true"] {
  background: var(--bg-card);
  border-left-color: var(--accent);
  color: var(--text-primary);
}
.modules__panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 40px;
  min-height: 320px;
}
.modules__panel .card__icon { margin-bottom: 24px; }
.modules-accordion { display: none; }

/* ---------- Калькулятор ---------- */
.calc {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Секція калькулятора: заголовок ліворуч, калькулятор праворуч ---------- */
.calc-layout {
  display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 44px; align-items: start;
}
.calc-layout__aside .section-head { max-width: none; margin-bottom: 34px; }
.calc-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; }
.calc-note__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--accent);
}
.calc-note__body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  text-transform: none; color: var(--text-primary); margin-bottom: 10px;
}
.calc-note__body p { font-size: var(--fs-caption); line-height: 1.6; color: var(--text-muted); }
.calc-note + .calc-note { margin-top: 30px; }
.calc-note__cta { margin-top: 18px; }
@media (max-width: 1000px) { .calc-layout { grid-template-columns: 1fr; gap: 36px; } }

/* Панель калькулятора — простий акуратний прямокутник (без зрізаних
   кутів і без кругової шкали з референсу). Базовий --bg-card (#28323C)
   читався як світло-сірий і вибивався з темної секції, тому беремо
   глибший тон із ледь помітним градієнтом. */
.calc--panel {
  padding: 44px 40px;
  border-radius: 18px;
  background: linear-gradient(150deg, #1A2129 0%, #141A20 100%);
  border: 1px solid var(--border);
}
/* Усе в один центрований стовпець, як у зразку */
.calc__stack { display: block; max-width: 420px; margin: 0 auto; text-align: center; }
.calc--panel .calc__label { text-align: center; }
.calc--panel .calc__block { margin-bottom: 32px; }
.calc--panel .range-wrap { padding-top: 2px; }
.calc--panel .range-value {
  position: static; transform: none; left: auto !important;
  display: block; margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
}
.calc--panel .toggle { justify-content: center; }
/* Довгу примітку про УЗЕ тут не показуємо — вона ламала ритм колонки */
.calc--panel .toggle-note { display: none !important; }

/* Блок результату — без власної картки: базовий .calc__result має фон,
   рамку й радіус, і всередині панелі це виглядало як коробка в коробці. */
.calc--panel .calc__result {
  background: none; border: none; border-radius: 0; padding: 0;
  border-top: 1px solid var(--border); padding-top: 28px;
  align-items: center;
}
.calc--panel .calc__result-label { margin-bottom: 10px; }
/* word-break: keep-all тут був помилкою — він забороняв перенос узагалі,
   і сума виїжджала за межі панелі. Перенос дозволений між числом і
   одиницею, а нерозривність «грн/міс» тримає span нижче. */
.calc--panel .calc__total {
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; min-width: 0;
}
.calc__total-unit { white-space: nowrap; }
.calc--panel .calc__disclaimer {
  margin: 22px 0 0; font-size: var(--fs-caption); line-height: 1.6;
}
.calc__label { font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 14px; display: block; }
.calc__block { margin-bottom: 34px; }
.calc__block:last-child { margin-bottom: 0; }

.range-wrap { position: relative; padding-top: 44px; }
.range-value {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  white-space: nowrap;
}
.range-value small { font-size: var(--fs-caption); color: var(--text-secondary); }
input[type="range"].mw-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
input[type="range"].mw-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill, 30%), var(--bg-elevated) var(--fill, 30%));
}
input[type="range"].mw-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--text-primary);
  border: 3px solid var(--accent);
  margin-top: -9px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
input[type="range"].mw-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
}
input[type="range"].mw-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
input[type="range"].mw-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--text-primary);
  border: 3px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.toggle { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle__track {
  width: 52px; height: 30px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: background 200ms, border-color 200ms;
  flex: none;
}
.toggle__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--text-secondary);
  transition: transform 200ms, background 200ms;
}
.toggle input:checked + .toggle__track { background: var(--accent-soft); border-color: var(--accent); }
.toggle input:checked + .toggle__track::after { transform: translateX(22px); background: var(--accent-hover); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle__label { color: var(--text-primary); font-weight: 500; }
.toggle-note { font-size: 14px; color: var(--text-secondary); margin-top: 12px; display: none; }
.toggle-note.is-visible { display: block; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.seg__btn {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 44px;
  min-width: 64px;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.seg__btn:last-child { border-right: none; }
.seg__btn:hover { color: var(--text-primary); }
.seg__btn[aria-pressed="true"] { background: var(--accent); color: #fff; }

.calc__result {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.calc__result-label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 14px; }
.calc__total {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: var(--text-primary);
  min-height: 60px;
  transition: opacity 300ms;
}
.calc__total.is-updating { opacity: 0.35; }
.calc__total--placeholder { font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.4; color: var(--text-secondary); }
.calc__disclaimer { color: var(--text-muted); margin: 20px 0; }
.calc__result .calc__disclaimer:first-child { margin-top: 0; }
.calc__result .btn { margin-top: auto; }

/* ---------- Верхній ряд секції «Управління СЕС» ----------
   Три колонки: великий заголовок / вступний текст / блок
   «Ми зібрали все в один контракт» з чотирма рядками. */
.services-top {
  display: grid;
  /* НАВМИСНА ПЕРЕВЕРСТКА (референс "Editorial"): було 3 окремі grid-колонки
     поруч (заголовок / лід / список) — лід не стояв ПІД заголовком, тому
     під заголовком лишалась порожнеча. Спроба через grid-row: 1/3 для
     списку теж не підійшла: row-span розтягує висоту 1-го рядка гріда під
     список, і між заголовком і лідом (обидва в тому самому рядку 1)
     з'являвся такий самий розрив. Тому — HTML-обгортка .services-top__left
     (заголовок+лід у природному потоці, без розділення на рядки гріда) і
     проста 2-колонкова сітка без row-span. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 60px; align-items: start;
}
.services-top__left { display: flex; flex-direction: column; gap: 20px; }
.services-top .section-head { max-width: none; margin-bottom: 0; }
/* Ширина заголовка й ліду підібрані так, щоб текст переносився рівно
   на 4 рядки кожен (пораховано через canvas.measureText з урахуванням
   caps/letter-spacing) — не довільні числа. */
.services-top__head .section-head h2 { line-height: 1.06; letter-spacing: -0.02em; max-width: 240px; }
.services-top__lead { font-size: 16px; line-height: 1.65; color: var(--text-muted); padding-top: 6px; max-width: 430px; }
.services-top__ones .section-head { margin-bottom: 22px; }

/* НАВМИСНА ПЕРЕВЕРСТКА (композиція «Editorial»): було — 4-колонковий
   грід, іконка НАД текстом у кожній колонці; вузькі колонки змушували
   короткий текст переноситись на багато рядків і роздували висоту
   блоку та порожнечу під ним. Стало — один стовпчик, 4 рядки, іконка
   ПОРУЧ із текстом (як на референсі) — компактно, без зайвої висоти. */
.ones-row { display: flex; flex-direction: column; gap: 22px; }
.one-line { display: flex; align-items: flex-start; gap: 16px; padding: 0; border-left: none; }
.one-line__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--accent);
  margin-bottom: 0; flex-shrink: 0;
}
.one-line__body { padding-top: 4px; }
.one-line__body b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: var(--text-primary);
  margin-right: 4px;
}
.one-line__body span { font-size: 16px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 1100px) {
  .services-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .services-top__ones { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .services-top { grid-template-columns: 1fr; }
}
/* НАВМИСНО ВИДАЛЕНО: .ones-row/.one-line override на 760/520px — грід
   (repeat(4,1fr)/1fr 1fr/1fr) більше не існує, .ones-row тепер один
   стовпчик за замовчуванням на всіх ширинах. */

/* ---------- Послуги як горизонтальний таймлайн ----------
   Номер 01–06 стоїть угорі кожної колонки, а червона лінія з крапкою
   тягнеться від нього до наступного номера — тобто лінія йде МІЖ
   номерами, а не під ними. Іконка — просто червона, без кола.
   Остання колонка — акцентна рамка з CTA. */
/* Зменшено padding-top: 34 -> 18, щоб підтягнути нумерований список ближче до верхнього блоку (менше порожнечі). */
.timeline-flow { position: relative; border-top: 1px solid var(--border); padding-top: 18px; }
.timeline-flow__row {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
}
.tl-step { position: relative; padding: 0 24px 0 0; }

/* Номер */
.tl-step__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 30px; line-height: 1; color: var(--text-muted);
  opacity: 0.5; letter-spacing: -0.02em; margin-bottom: 34px;
}
/* Відрізок лінії з крапкою на початку — від номера до наступної колонки.
   top: 15px ≈ половина висоти номера, щоб лінія йшла крізь його середину. */
.tl-step::after {
  content: ''; position: absolute; top: 15px; left: 46px; right: 0; height: 1px;
  background: var(--accent); opacity: 0.75;
}
.tl-step::before {
  content: ''; position: absolute; top: 12px; left: 46px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); z-index: 1;
}
/* Останній крок лінії вже не тягне — до нього приходить стрілка */
.tl-step--final::after, .tl-step--final::before { display: none; }
/* Вістря стрілки перед фінальною колонкою */
.tl-step:nth-last-child(2)::after {
  background: linear-gradient(90deg, var(--accent) 0 calc(100% - 9px), transparent calc(100% - 9px));
}
.tl-step:nth-last-child(2) .tl-step__num::after {
  content: ''; position: absolute; top: 11px; right: 0;
  width: 0; height: 0;
  border-left: 9px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.tl-step__icon { display: block; color: var(--accent); margin-bottom: 20px; }
.tl-step h3 { font-size: 15px; line-height: 1.35; margin-bottom: 14px; }
.tl-step p { font-size: var(--fs-caption); line-height: 1.6; color: var(--text-muted); }
.tl-step__link { margin-top: 12px; font-size: 12px; }

/* Фінальна колонка — акцентна рамка зі світінням */
/* Фінальна колонка — залита червона картка на всю висоту ряду. */
.tl-step--final {
  position: relative; overflow: hidden;
  padding: 22px 26px 30px;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(255,255,255,0.08), transparent 58%),
    linear-gradient(150deg, #C4171A 0%, #8E1013 100%);
  box-shadow: 0 0 46px rgba(204,24,27,0.45);
}
.tl-step--final .tl-step__num {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.62); opacity: 1; margin-bottom: 30px;
}
.tl-step__slash {
  position: relative; z-index: 1;
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1; color: #fff;
  transform: skewX(-12deg); margin-bottom: 18px;
}
.tl-step__cta {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px !important; line-height: 1.5;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .timeline-flow__row { grid-template-columns: repeat(3, 1fr); gap: 40px 0; }
  .tl-step::after, .tl-step::before,
  .tl-step:nth-last-child(2) .tl-step__num::after { display: none; }
  .tl-step { padding-right: 20px; }
}
@media (max-width: 640px) {
  .timeline-flow__row { grid-template-columns: 1fr; }
  .tl-step { padding-right: 0; }
}

/* Вступний текст EMS — 2 картки на всю ширину контейнера замість
   вузької колонки .cols-8 (760px). */
/* Вступні блоки EMS — без карток, із великим червоним номером ліворуч
   і вертикальною лінією-розділювачем між колонками. */
.ems-intro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.ems-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 22px; }
/* Лінія-розділювач стояла впритул до тексту лівої колонки (весь
   48px-проміжок з'їдений праворуч від неї). Тепер по 24px симетрично
   з обох боків — і в лівій колонці, і перед правою є дихання. */
.ems-note + .ems-note { padding-left: 24px; border-left: 1px solid var(--border); margin-left: -24px; }
.ems-note__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; line-height: 1;
  color: var(--accent); align-self: start;
}
.ems-note__num::after {
  content: ''; display: block; width: 34px; height: 2px;
  background: var(--accent); margin-top: 10px;
}
.ems-note__body p { font-size: var(--fs-caption); line-height: 1.65; margin-bottom: 14px; }
.ems-note__body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .ems-intro-cards { grid-template-columns: 1fr; gap: 32px; }
  /* Блоки стають одна під одним — вертикальна лінія-розділювач тут не
     працює (border-left між колонками), тому замінюємо на горизонтальну
     сіру смужку зверху другого блоку. */
  .ems-note + .ems-note {
    padding-left: 0; border-left: none; margin-left: 0;
    padding-top: 28px; border-top: 1px solid var(--border);
  }
}

/* Заголовок секції EMS із сіткою крапок праворуч */
.ems-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.ems-head .section-head { flex: 1; min-width: 0; }

/* Те саме для секції «Інформація для клієнтів» */
.info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.info-head .section-head { flex: 1; min-width: 0; }

/* ---------- Вертикальний рейл біля лівого краю секції ----------
   Тонка риска, повернутий на 180° підпис бренду (знизу вгору) і сітка
   крапок під ним. Абсолютне позиціювання в лівому полі, поза
   .container, тому на вузьких екранах просто ховається. */
.side-rail {
  position: absolute; left: 40px; top: 12%;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  pointer-events: none; user-select: none;
}
.side-rail__line { width: 1px; height: 190px; background: var(--border); }
.side-rail__text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-body); font-size: var(--fs-caption);
  letter-spacing: 0.22em; text-transform: uppercase;
}
.side-rail__text b { font-weight: 600; color: var(--accent); }
.side-rail__text i { font-style: normal; color: var(--text-muted); }
.side-rail__dots {
  width: 62px; height: 150px;
  background-image: radial-gradient(var(--text-muted) 1.4px, transparent 1.5px);
  background-size: 20px 24px;
  opacity: 0.35;
}
/* Рейл живе в лівому полі сторінки — щойно воно зникає, ховаємо його,
   щоб не наїжджав на контент. */
@media (max-width: 1380px) { .side-rail { display: none; } }

/* Технології та безпека — 4 колонки без карток, розділені вертикальними
   лініями; іконка й великий номер стоять поруч в один рядок. */
.tech-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tech-item { padding: 0 26px; border-left: 1px solid var(--border); }
.tech-item:first-child { padding-left: 0; border-left: none; }
.tech-item__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tech-item__icon { display: inline-flex; color: var(--accent); }
.tech-num { display: none; }
.tech-item h3 { font-size: 17px; margin-bottom: 10px; }
.tech-item p { font-size: var(--fs-caption); line-height: 1.55; color: var(--text-muted); }
@media (max-width: 900px) {
  .tech-row { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .tech-item:nth-child(odd) { padding-left: 0; border-left: none; }
}
@media (max-width: 560px) {
  .tech-row { grid-template-columns: 1fr; }
  .tech-item { padding-left: 0; border-left: none; }
}

/* ---------- Широкі рядки послуг ---------- */
.service-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row__head { display: flex; gap: 20px; align-items: flex-start; }
.service-row__head .card__icon { margin-bottom: 0; flex: none; }
.service-row p { margin-bottom: 0; }

/* ---------- Пронумеровані блоки 01–04 ---------- */
/* ---------- Переваги участі: без карток, 3 в ряд ---------- */
.benefit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.benefit__icon { color: var(--accent); margin-bottom: 16px; }
.benefit h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--text-primary); margin-bottom: 10px;
}
.benefit p { font-size: var(--fs-caption); line-height: 1.55; color: var(--text-muted); }
@media (max-width: 900px) { .benefit-row { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 560px) { .benefit-row { grid-template-columns: 1fr; } }

/* ---------- Що робить агрегатор: 4 колонки з великими номерами ---------- */
.agg-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.agg-item { padding: 0 24px; border-left: 1px solid var(--border); }
.agg-item:first-child { padding-left: 0; border-left: none; }
.agg-item__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; line-height: 1; color: var(--accent);
  margin-bottom: 12px;
}
.agg-item__num::after {
  content: ''; display: block; width: 34px; height: 2px;
  background: var(--accent); margin-top: 10px;
}
.agg-item h3 { font-size: 15px; line-height: 1.3; margin-bottom: 14px; }
.agg-item ul { list-style: none; margin: 0; padding: 0; }
.agg-item li {
  position: relative; padding-left: 15px; margin-bottom: 10px;
  font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted);
}
.agg-item li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.agg-item li:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .agg-row { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .agg-item:nth-child(odd) { padding-left: 0; border-left: none; }
}
@media (max-width: 560px) {
  .agg-row { grid-template-columns: 1fr; }
  .agg-item { padding-left: 0; border-left: none; }
}

/* ---------- Рядки з галочками ---------- */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
}
.checks li:last-child { border-bottom: none; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--accent-hover); margin-top: 3px; }

/* ---------- Часова доріжка (become-client) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline__item { position: relative; padding-top: 30px; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 8px; left: 0; right: -24px;
  height: 1px;
  background: var(--border);
}
.timeline__item:last-child::before { right: 0; }
.timeline__mark {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--bg-base);
  padding-right: 14px;
}
.section--surface .timeline__mark { background: var(--bg-surface); }

/* ВИПРАВЛЕННЯ ДЕФЕКТУ ОРИГІНАЛУ.
   У старому styles.css .accordion__panel має opacity:0, і жодне правило
   не повертає її до 1 — тому на оригінальному сайті акордеони
   розкриваються на повну висоту, але текст усередині лишається
   повністю прозорим. Повертаємо видимість розкритій панелі;
   анімація появи зберігається (transition на opacity уже описано вище). */
.accordion__btn[aria-expanded="true"] + .accordion__panel { opacity: 1; }

/* Підзаголовок героя — переніс речення з головної старого сайту.
   Стилізуємо під наявний .hero-copy__sub, лише світліше й вужчою колонкою,
   бо це вже речення, а не короткий рядок капсом. */
.hero-copy__lead {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 768px) { .hero-copy__lead { font-size: var(--fs-caption); } }


/* ============================================================
   MACBOOK SCENE (Three.js) — справжня 3D-геометрія на canvas.
   Кришка обертається навколо реального шарніра, екран — текстура
   з assets/dash.jpg, тож dashboard живе всередині 3D.

   .dash-image      — високий контейнер, дає запас прокрутки на сцену.
   .dash-image__pin — sticky-екран, тримає сцену по центру viewport.
   .mac-canvas      — полотно Three.js; розмір ставить JS під DPR.
   .mac-fallback    — звичайна картинка; показується, коли WebGL
                      недоступний, увімкнено prefers-reduced-motion
                      або це мобільний (там 3D навмисно не вмикаємо).
   ============================================================ */
.dash-image { position: relative; height: 300vh; margin-top: 24px; }
.dash-image__pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.dash-image__scene { position: relative; width: 100%; height: 100%; }

.mac-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.6s var(--ease-out-expo);
}
.mac-canvas.is-ready { opacity: 1; }

/* Fallback-картинка: за замовчуванням прихована, JS вмикає її,
   якщо 3D не запускається. */
.mac-fallback {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: 880px; height: auto;
  border-radius: 12px; border: 1px solid var(--border);
  display: none;
}
.mac-fallback.is-shown { display: block; }

/* Мобільні та reduced-motion: 3D не вмикаємо — на touch-скролі
   покадровий WebGL дає ривки й садить батарею. Показуємо картинку
   у звичайному потоці, без sticky й без запасу висоти. */
@media (max-width: 768px) {
  .dash-image { height: auto; margin-top: 16px; }
  .dash-image__pin { position: static; height: auto; padding: 8px 0; }
  .dash-image__scene { height: auto; }
  .mac-canvas { display: none; }
  .mac-fallback { position: static; transform: none; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-image { height: auto; }
  .dash-image__pin { position: static; height: auto; }
  .dash-image__scene { height: auto; }
  .mac-canvas { display: none; }
  .mac-fallback { position: static; transform: none; display: block; }
}
/* Посилання всередині кроку таймлайну — компактніше за типовий text-link */
.tl-step__link { margin-top: 12px; font-size: 12px; }

/* Вертикальна червона риска ліворуч від заголовка секції та сітка
   крапок під ним — той самий декор, що вже є в інших секціях. */
.services-top__head { position: relative; }
/* НАВМИСНО ПРИХОВАНО: користувач попросив прибрати смужку біля заголовка. */
.services-top__bar { display: none; }
/* НАВМИСНО ПРИХОВАНО (композиція «Editorial»): у 2-колонковій верстці
   лід стоїть одразу ПІД заголовком у тій самій колонці — крапкова
   сітка тут опинилась би МІЖ заголовком і лідом, чого немає на
   референсі. */
.services-top__head .deco-dots { display: none; }
@media (max-width: 760px) {
  .services-top__head { padding-left: 0; }
  .services-top__bar { display: none; }
}
