/* ============================================================
   PANCORE — дизайн-система
   Темна індустріальна тема: графіт + одна сигнальна червона.
   Шрифти: Montserrat (дисплей), Manrope (текст), JetBrains Mono
   (технічні підписи). Логотип — векторний (символи #pc-logo і #pc-word
   у кожній сторінці, файли assets/logo.svg, logo-mark.svg), шрифтом не набирається.
   ============================================================ */

:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --bg-3: #12151c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef0f4;
  --text-2: #b6bcc8;
  --text-3: #7f8697;
  --accent: #ff3d4f;
  --accent-2: #ff8a7a;
  --accent-deep: #7a1526;
  --accent-glow: rgba(255, 61, 79, 0.35);
  --accent-soft: rgba(255, 61, 79, 0.12);
  --ok: #6fe3a0;

  --f-display: "Montserrat", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-brand: "Michroma", "Montserrat", sans-serif;

  --r: 18px;
  --r-s: 12px;
  --pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --head-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* інтерфейс і поява при прокрутці (29.10.2026, як на faradagroup.com): наведення, меню, блоки нижче першого екрана */
  --ease-brand: cubic-bezier(0.58, 0.18, 0.44, 0.94);
  /* шкала шрифтів (редизайн 23.10.2026): 9 ступенів замість ~25 довільних розмірів */
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-s: 14px;
  --fs-m: 16px;
  --fs-body: clamp(16px, 0.2vw + 15.3px, 17px);
  --fs-l: clamp(17px, 0.3vw + 16px, 19px);
  --fs-h4: 20px;
  --fs-h3: clamp(19px, 0.8vw + 16px, 24px);
  --fs-h2: clamp(26px, 2.2vw + 18px, 44px);
  --fs-h1: clamp(32px, 4.2vw + 16px, 64px);
  --fs-num: clamp(28px, 2.4vw + 18px, 44px);
}
/* китайська: латиниця лишається у фірмових шрифтах, ієрогліфи беруться із системних CJK-шрифтів */
:root:lang(zh) {
  --f-display: "Montserrat", "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --f-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* місце під смугу прокрутки зарезервоване: коли шухляда чи попап блокують прокрутку, сторінка не з'їжджає вбік */
  scrollbar-gutter: stable;
  /* Відступ для якорів: без нього перехід по #id ставить ціль під фіксовану шапку.
     Діє і на нативні переходи, і на Element.scrollIntoView().
     --scroll-pad рахує site.js за реальною висотою шапки + липкої панелі каталогу. */
  scroll-padding-top: var(--scroll-pad, calc(var(--head-h) + 8px));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-l);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #120306; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-3); }

/* ---------- фон: WebGL-полотно + серпанок + зерно ---------- */
.mesh-stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--bg);
}
.mesh-stage.is-band { position: absolute; }
/* паралакс першого екрана: канва відстає від прокрутки на 30 % (серпанок і віньєтка лишаються на місці, тож нижній край
   гасне як і раніше). Де є scroll-driven animations — на композиторі; інакше те саме робить site.js (JS-фолбек). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero, .band { view-timeline: --first-screen block; }
    .mesh-stage.is-band canvas { animation: mesh-parallax linear both; animation-timeline: --first-screen; animation-range: exit 0% exit 100%; will-change: transform; }
  }
}
@keyframes mesh-parallax { to { transform: translate3d(0, 30%, 0); } }
.mesh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesh-fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(255, 61, 79, 0.14), transparent 70%),
    radial-gradient(50% 40% at 12% 82%, rgba(255, 61, 79, 0.08), transparent 70%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.72) 0%, rgba(7, 8, 11, 0.35) 38%, rgba(7, 8, 11, 0) 62%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.45) 0%, rgba(7, 8, 11, 0) 28%, rgba(7, 8, 11, 0) 62%, rgba(7, 8, 11, 0.9) 100%);
}
.is-band .mesh-fog {
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(255, 61, 79, 0.14), transparent 70%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.7) 0%, rgba(7, 8, 11, 0.3) 45%, rgba(7, 8, 11, 0) 70%),
    linear-gradient(180deg, rgba(7, 8, 11, 0.6) 0%, rgba(7, 8, 11, 0) 35%, rgba(7, 8, 11, 0.2) 70%, var(--bg) 100%);
}
.mesh-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(7, 8, 11, 0.75) 100%);
}
/* зерно без mix-blend-mode: змішування поверх WebGL-полотна змушувало
   композитор перераховувати весь екран щокадру */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page { position: relative; z-index: 2; }

/* ---------- шапка ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--head-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.72), rgba(7, 8, 11, 0.35));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-brand), background 0.3s var(--ease-brand);
}
.head.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 11, 0.82); }
.head__in { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* логотип: знак + слово PANCORE (векторні символи #pc-logo / #pc-word у кожній сторінці), завжди в один рядок.
   Пропорції — як в оригінальному логотипі: діаметр знака = 2,36 висоти слова, проміжок = 0,41 висоти слова.
   Розмір задає одна змінна --logo (діаметр знака). */
.brand, .foot__brand { --logo: 32px; display: inline-flex; align-items: center; gap: calc(var(--logo) * 0.1737); flex: none; color: var(--text); }
.brand__mark { width: var(--logo); height: var(--logo); flex: none; display: block; }
.brand__word { width: calc(var(--logo) * 3.8085); height: calc(var(--logo) * 0.4237); flex: none; display: block; }
/* PANCORE + рядок GROUP (Michroma, як на візитках) на ширину слова: той самий масштаб, вища рамка */
.brand__word--group { height: calc(var(--logo) * 0.7756); }
.brand { transition: opacity 0.2s var(--ease-brand); }
.brand:hover { opacity: 0.82; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; white-space: nowrap;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); border-radius: var(--pill);
  transition: color 0.2s var(--ease-brand), background 0.2s var(--ease-brand);
}
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 10px var(--accent-glow);
}
.head__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--text); position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease-brand);
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 40; display: none;
  background: rgba(7, 8, 11, 0.94); backdrop-filter: blur(20px);
  padding: calc(var(--head-h) + 32px) var(--gutter) 40px;
  flex-direction: column; gap: 6px;
}
body.menu-open .mnav { display: flex; }
.mnav a { font-family: var(--f-display); font-size: var(--fs-h2); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mnav a.is-active { color: var(--accent); }
.mnav__foot { margin-top: auto; color: var(--text-3); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--pill);
  font-size: var(--fs-s); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.3s var(--ease-brand), background 0.3s var(--ease-brand), color 0.2s var(--ease-brand), border-color 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: #fff; color: #0b0c10; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.btn--primary:hover { background: var(--accent); color: #fff; box-shadow: 0 10px 34px var(--accent-glow); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #ff5566; box-shadow: 0 10px 34px var(--accent-glow); }
.btn--sm { padding: 10px 18px; font-size: var(--fs-xs); }
.btn i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- типографіка ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
/* підзаголовки секцій без червоної риски зліва — на всіх сторінках однаково (раніше риску прибирали інлайн лише на головній і «Про нас») */
.eyebrow::before { content: none; }
.h-display { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; }
.h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.0; }
.h2 { font-size: var(--fs-h2); font-weight: 500; }
.h3 { font-family: var(--f-body); font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: var(--fs-l); color: var(--text-2); max-width: 60ch; line-height: 1.6; }
/* рівні рядки: заголовки врівноважені, абзаци без одного слова в останньому рядку (сучасні браузери; старі ігнорують) */
.h1, .h2, .h3, h4, .card .h3 { text-wrap: balance; }
p, .lead, li, dd, .stage span, .card p { text-wrap: pretty; }
.metal { background: linear-gradient(180deg, #fff 0%, #d6dbe3 55%, #8a93a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hot { background: linear-gradient(120deg, #fff 0%, var(--accent-2) 45%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sec { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.sec--tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head .lead { margin-top: 18px; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- герой ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--head-h) + 48px) 0 96px;
}
.hero__in { width: 100%; }
.hero__grid { display: block; }
/* 13.10: поле граней лише в першому екрані головної (як смуга на внутрішніх сторінках), праворуч — виріб */
.hero { overflow: hidden; }
.hero > .mesh-stage { z-index: 0; }
.hero__in { position: relative; z-index: 2; }
.hero__grid:has(.hero__art) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__art { margin: 0; display: flex; justify-content: center; }
.hero__art img { display: block; width: auto; height: min(62vh, 580px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.65)); }
@media (max-width: 880px) {
  .hero__grid:has(.hero__art) { grid-template-columns: 1fr; gap: 28px; }
  .hero__art img { height: 280px; }
}
.hero__title { text-shadow: 0 0 60px rgba(255, 61, 79, 0.18); text-wrap: wrap; }   /* рядки героя задані розміткою — не перебалансовуємо */
.hero__title b { font-weight: inherit; display: block; }
.hero__lead { margin-top: 28px; max-width: 54ch; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__side { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgba(7, 8, 11, 0.4); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 32px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3);
}
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(180deg, var(--accent), transparent); animation: scroll-line 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scroll-line { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* компактна смуга-герой (внутрішні сторінки) */
.band { position: relative; min-height: 62svh; display: flex; align-items: flex-end; padding: calc(var(--head-h) + 64px) 0 56px; overflow: hidden; }
.band .mesh-stage { z-index: 0; }
.band .wrap { position: relative; z-index: 2; width: 100%; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }

/* ---------- статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.stat { padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: 0.7; }
.stat__v { display: block; font-family: var(--f-display); font-size: var(--fs-num); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.stat__v small { font-size: 0.5em; margin-left: 4px; color: var(--text-2); }
.stat__k { display: block; margin-top: 12px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); line-height: 1.5; }

/* ---------- картки ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel);
  transition: transform 0.3s var(--ease-brand), border-color 0.3s var(--ease-brand), background 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 61, 79, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease-brand);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 61, 79, 0.45); background: var(--panel-2); box-shadow: 0 24px 50px -30px rgba(255, 61, 79, 0.35); }
.card:hover::after { opacity: 1; }
.card__code { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.18em; color: var(--accent); }
.card__icon { width: 40px; height: 40px; color: var(--text); opacity: 0.9; }
.card__icon svg { width: 100%; height: 100%; }
.card .h3 { margin-top: 2px; }
.card p { color: var(--text-2); font-size: var(--fs-m); line-height: 1.6; }
.card__go { margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s var(--ease-brand); }
.card:hover .card__go { color: var(--accent-2); }
.card--link { cursor: pointer; }
.card--num { padding-top: 24px; }
/* номер картки — як у карток напрямів (моно, акцент), щоб нумерація була однаковою на всьому сайті */
.card__n { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.18em; color: var(--accent); }

/* ---------- напрями (головна) ---------- */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- виробництво: спліт ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split--one { grid-template-columns: minmax(0, 860px); }
.split .lead { margin-top: 18px; }
.split .btn { margin-top: 30px; }

.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg-3); }
.mosaic figure:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption, .ph__cap {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(7, 8, 11, 0.65); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
}

.ph { position: relative; overflow: hidden; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg-3); margin: 0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--sq { aspect-ratio: 1; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- список процесів (головна, замість фото) ---------- */
.proc { display: grid; border-top: 1px solid var(--line); }
.proc__row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 6px; border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-brand), padding-left 0.3s var(--ease);
}
.proc__row:hover { background: var(--panel); padding-left: 12px; }
.proc__n { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--accent); }
.proc__row b { display: block; font-size: var(--fs-l); font-weight: 700; }
.proc__row small { display: block; margin-top: 3px; font-size: var(--fs-s); color: var(--text-3); }
.proc__go { color: var(--text-3); transition: color 0.2s var(--ease-brand), transform 0.3s var(--ease); }
.proc__row:hover .proc__go { color: var(--accent-2); transform: translateX(3px); }

/* ---------- карта світу ---------- */
.wm-wrap {
  position: relative; padding: 18px 18px 16px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%), rgba(7, 8, 11, 0.55);
  backdrop-filter: blur(6px);
}
.wm-host { position: relative; width: 100%; min-height: 120px; }
.wm { width: 100%; height: auto; display: block; overflow: visible; }
.wm__dots { fill: none; stroke: rgba(214, 219, 227, 0.2); stroke-width: 2.6; stroke-linecap: round; }
.wm--crop .wm__dots { stroke-width: 2.1; }
.wm--narrow .wm__dots { stroke-width: 1.4; }
/* країни-учасниці яскравіше за решту світу */
.wm__hi path { fill: none; stroke-width: 2.8; stroke-linecap: round; }
.wm--crop .wm__hi path { stroke-width: 2.3; }
.wm--narrow .wm__hi path { stroke-width: 1.8; }
.wm__hi--eu { stroke: var(--accent); }
.wm__hi--ua, .wm__hi--tr { stroke: rgba(255, 255, 255, 0.85); }
.wm__hi--cn { stroke: rgba(214, 219, 227, 0.62); }
.wm__route { transition: opacity 0.35s var(--ease-brand); }
.wm__base { fill: none; stroke-width: 1.1; stroke-linecap: round; opacity: 0.32; }
.wm__flow { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0; transition: opacity 0.6s var(--ease-brand); }
.is-visible .wm__flow { opacity: 0.95; animation: wm-flow 3.6s linear infinite; }   /* 13.10: утричі повільніше */
.wm__flow.is-static { stroke-dasharray: none; animation: none; opacity: 0.9; }
.wm__pkt { opacity: 0; }
.is-visible .wm__pkt { opacity: 1; }
/* колір «пакета» = колір дуги */
/* усі зв’язки одним кольором */
.wm__base, .wm__flow { stroke: #fff; }
.wm__pkt { fill: #fff; }
.wm__dot { fill: #fff; }
.wm__node--eu .wm__dot { fill: var(--accent); }
.wm__pulse { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wm__node:not(.wm__node--eu) .wm__pulse { stroke: #fff; }
.is-visible .wm__node--eu .wm__pulse { animation: wm-pulse 3.6s ease-out infinite; }   /* 13.10: пульсує лише вузол у ЄС */
@keyframes wm-flow { to { stroke-dashoffset: -14; } }
@keyframes wm-pulse { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
/* підписи поверх карти */
.wm__labels { position: absolute; inset: 0; pointer-events: none; }
.wm__lbl {
  position: absolute; white-space: nowrap; padding: 4px 8px; border-radius: 6px;
  background: rgba(7, 8, 11, 0.8); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  transform: translate(14px, calc(-50% + var(--dy, 0px)));
}
.wm__lbl::before { content: ""; position: absolute; top: 50%; left: -14px; width: 14px; height: 1px; background: var(--line-2); }
.wm__lbl--l { transform: translate(calc(-100% - 14px), calc(-50% + var(--dy, 0px))); }
.wm__lbl--l::before { left: auto; right: -14px; }
.wm__lbl--b { transform: translate(-50%, 14px); }
.wm__lbl--b::before { left: 50%; top: -14px; width: 1px; height: 14px; }
.wm__lbl--eu { border-color: rgba(255, 61, 79, 0.55); }
/* цифри над картою, легенда-вкладки, картки маршрутів, абзац-історія */
.wm-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-bottom: 18px; }
.wm-stat b { display: block; font-family: var(--f-display); font-size: var(--fs-h3); font-weight: 500; line-height: 1.1; }
.wm-stat span { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.wm-story { margin-top: 18px; max-width: 72ch; font-size: var(--fs-m); line-height: 1.6; color: var(--text-2); }
@media (max-width: 640px) {
  .wm-wrap { padding: 10px 10px 14px; }
  .wm__lbl { font-size: var(--fs-2xs); padding: 3px 6px; letter-spacing: 0.1em; }
}

/* ---------- пошук у шапці, перемикач мови, плаваюча панель запиту ---------- */
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch input {
  width: 172px; padding: 9px 14px 9px 34px; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: inherit; font-size: var(--fs-s); outline: none; transition: width 0.3s var(--ease), border-color 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand);
}
.hsearch input::placeholder { color: var(--text-3); }
.hsearch input:focus { width: 260px; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hsearch svg { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.lang { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; padding: 7px 11px; border-radius: var(--pill); border: 0; background: transparent; color: var(--text-3); transition: color 0.2s var(--ease-brand), background 0.2s var(--ease-brand); cursor: pointer; }
.lang:hover { color: #fff; }
/* перемикач мови: у шапці (desktop) і в мобільному меню */
.langs { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(255, 255, 255, 0.03); }
.lang.is-on { color: #fff; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.mnav .langs { margin-top: 18px; }
/* у шапці — одна кнопка з поточною мовою, решта в меню (13.10: шапка була перевантажена) */
.langs--drop { position: relative; padding: 0; border: 0; background: none; }
.langs__cur {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text-2);
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; cursor: pointer; transition: color 0.2s var(--ease-brand), border-color 0.2s var(--ease-brand);
}
.langs__cur::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease); }
.langs__cur:hover, .langs--drop.is-open .langs__cur { color: #fff; border-color: var(--text-3); }
.langs--drop.is-open .langs__cur::after { transform: rotate(-135deg) translateY(-1px); }
.langs__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; display: grid; min-width: 104px; padding: 6px; gap: 2px;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(12, 14, 19, 0.97); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s var(--ease-brand), transform 0.18s var(--ease-brand), visibility 0.18s var(--ease-brand);
}
.langs--drop.is-open .langs__menu { opacity: 1; visibility: visible; transform: none; }
.langs__menu .lang { text-align: left; padding: 9px 12px; border-radius: 10px; }
.langs__menu .lang.is-on { box-shadow: none; }
@media (max-width: 880px) { .head__cta .langs { display: none; } }
.fab-bar { display: none; }
@media (max-width: 1100px) { .hsearch { display: none; } }
/* телефон: одна кнопка «Зв’язатися» внизу праворуч, з’являється після першого екрана (.is-on ставить site.js) */
@media (max-width: 880px) {
  .fab-bar {
    position: fixed; right: 14px; bottom: 14px; z-index: 45; display: flex;
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .fab-bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .fab-bar .btn { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
  body.menu-open .fab-bar { display: none; }
  .foot { padding-bottom: 76px; }
}


/* ---------- характеристики (моно-таблиця) ---------- */
.specs { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.specs div { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr); gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-m); }
.specs dt { color: var(--text-3); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; align-self: center; white-space: nowrap; }
.specs dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; line-height: 1.45; }
.specs dd em { font-style: normal; color: var(--accent-2); }
/* вузькі колонки: підпис над значенням */
.specs--stack div { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
.specs--stack dd { text-align: left; }

/* ---------- кроки процесу ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; color: var(--accent); }
.step h4 { margin-top: 12px; font-size: var(--fs-m); font-weight: 700; }
.step p { margin-top: 8px; font-size: var(--fs-s); color: var(--text-2); }

/* ---------- чипи / фільтри ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--text-2);
  transition: border-color 0.2s var(--ease-brand), color 0.2s var(--ease-brand), background 0.2s var(--ease-brand);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-on { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.chip b { font-weight: 500; color: var(--text-3); }
.chip.is-on b { color: var(--accent-2); }

/* ---------- 3D-дрон у блоці «Асортимент» (головна): велика сцена three.js, виноски 1–6 з лініями → категорії ---------- */
.drone { margin: 6px 0 30px; }
.drone__stage {
  position: relative; isolation: isolate; height: clamp(360px, 40vw, 560px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(55% 70% at 50% 52%, rgba(255, 61, 79, 0.09), transparent 72%), rgba(7, 8, 11, 0.55);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.drone__stage.is-drag { cursor: grabbing; }
.drone__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.drone__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transition: opacity 0.5s var(--ease); }
.drone__stage.is-live .drone__poster { opacity: 0; }
.drone__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.drone__ln { stroke: rgba(255, 61, 79, 0.8); stroke-width: 1.2; }
.drone__dot { fill: var(--accent); }
.drone__halo { fill: rgba(255, 61, 79, 0.45); transform-box: fill-box; transform-origin: center; opacity: 0; }   /* ореол пульсує лише в наведеної виноски */
.drone__co.is-on .drone__ln { stroke: var(--accent); stroke-width: 1.7; }
.drone__co.is-on .drone__halo { animation: drone-pulse 1.2s var(--ease) infinite; }
@keyframes drone-pulse { 0% { transform: scale(0.6); opacity: 0.75; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drone__halo { animation: none; opacity: 0.4; } }
.drone__marks { position: absolute; inset: 0; pointer-events: none; }
.drone__mark { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: auto; will-change: transform; }
.drone__mark i, .drone__parts i {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--f-mono); font-style: normal; font-weight: 500; line-height: 1; color: var(--text);
  background: rgba(7, 8, 11, 0.82); border: 1px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 61, 79, 0.16), 0 0 18px rgba(255, 61, 79, 0.25); transition: background 0.2s var(--ease-brand), color 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand);
}
.drone__mark i { width: 100%; height: 100%; font-size: var(--fs-s); }
.drone__parts i { width: 26px; height: 26px; font-size: var(--fs-xs); box-shadow: 0 0 0 3px rgba(255, 61, 79, 0.14); }
.drone__mark span {
  position: absolute; left: 38px; top: 50%; transform: translateY(-50%); padding: 7px 12px; border-radius: var(--pill);
  background: rgba(7, 8, 11, 0.88); border: 1px solid var(--line-2); white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  opacity: 0; transition: opacity 0.2s var(--ease-brand);
}
.drone__mark.is-left span { left: auto; right: 38px; }
.drone__mark:hover span, .drone__mark:focus-visible span, .drone__mark.is-on span { opacity: 1; }
.drone__mark:hover i, .drone__mark:focus-visible i, .drone__mark.is-on i, .drone__parts a:hover i, .drone__parts a.is-on i {
  background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(255, 61, 79, 0.22), 0 0 26px rgba(255, 61, 79, 0.45);
}
.drone__cap { position: absolute; left: 22px; top: 18px; z-index: 1; margin: 0; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }
.drone__hint { position: absolute; right: 18px; bottom: 14px; font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); opacity: 0.75; pointer-events: none; }
.drone__parts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.drone__parts a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); color: var(--text-2); transition: border-color 0.2s var(--ease-brand), color 0.2s var(--ease-brand), background 0.2s var(--ease-brand);
}
.drone__parts a:hover, .drone__parts a.is-on { border-color: var(--accent); color: var(--text); background: rgba(255, 61, 79, 0.05); }
.drone__parts b { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 900px) { .drone__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .drone__stage { height: 340px; }
  .drone__mark { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .drone__mark i { font-size: var(--fs-xs); }
  .drone__parts { grid-template-columns: 1fr; }
  .drone__cap { left: 14px; top: 12px; font-size: var(--fs-2xs); }
  .drone__hint, .drone__mark span { display: none; }
}

/* ---------- каталог ---------- */
.toolbar { position: sticky; top: var(--head-h); z-index: 20; padding: 14px 0; background: rgba(7, 8, 11, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.toolbar__in { display: grid; gap: 12px; }
.toolbar__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; max-width: 480px; }
.search input {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: inherit; font-size: var(--fs-m); outline: none; transition: border-color 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.toolbar__count { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--text-3); white-space: nowrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--scroll .chip { flex: none; }

.cat-group { padding-top: 40px; }
.cat-group__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-group__head h2 { font-size: var(--fs-h3); }
.cat-group__head span { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.1em; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.item {
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel);
  transition: border-color 0.3s var(--ease-brand), background 0.3s var(--ease-brand);
}
.item:hover, .item.is-open { border-color: rgba(255, 61, 79, 0.4); background: var(--panel-2); }
.item__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: 100%; padding: 16px 16px 14px; text-align: left; cursor: pointer;
}
.item__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.item__name { font-size: var(--fs-m); font-weight: 600; line-height: 1.4; }
.item__chev {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); flex: none;
  display: grid; place-items: center; color: var(--text-2);
  transition: transform 0.35s var(--ease), border-color 0.2s var(--ease-brand), color 0.2s var(--ease-brand);
}
.item__chev svg { width: 14px; height: 14px; }
.item.is-open .item__chev { transform: rotate(180deg); border-color: var(--accent); color: var(--accent-2); }
.item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.item.is-open .item__body { grid-template-rows: 1fr; }
.item__body > div { overflow: hidden; }
.item__inner { margin: 0 16px; padding: 4px 0 16px; border-top: 1px solid var(--line); }
.item__desc { padding: 12px 0 6px; color: var(--text-2); font-size: var(--fs-s); line-height: 1.55; }
.spec { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); margin: 0; }
.spec dt { color: var(--text-3); font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.spec dd { margin: 0; color: var(--text); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.item__note { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.5; }
.item__src { margin-top: 10px; font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.06em; color: var(--text-3); }
.item__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; }
.item__empty { padding: 12px 0 4px; font-size: var(--fs-s); color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); color: var(--text-3); }
.badge--yes { color: var(--ok); border-color: rgba(111, 227, 160, 0.35); }
.badge--analog { color: var(--accent-2); border-color: rgba(255, 138, 122, 0.35); }
.item__req { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding: 6px 0; transition: color 0.2s var(--ease-brand); }
.item__req:hover { color: var(--accent); }
.empty { padding: 64px 0; text-align: center; color: var(--text-3); font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.08em; }

/* ---------- контакт / форма ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__info { display: grid; gap: 26px; }
.contact__info .lead { margin-top: 18px; }
.contact__lines { display: grid; gap: 14px; }
.contact__lines a, .contact__lines span { font-size: var(--fs-l); font-weight: 600; }
.contact__lines small { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.contact__lines a:hover { color: var(--accent-2); }

.form { display: grid; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: inherit; font-size: var(--fs-m); outline: none;
  transition: border-color 0.2s var(--ease-brand), box-shadow 0.2s var(--ease-brand), background 0.2s var(--ease-brand);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: rgba(255, 255, 255, 0.06); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent); }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: var(--fs-s); min-height: 22px; color: var(--text-3); }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--accent); }
.form__note { font-size: var(--fs-s); color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- CTA-смуга ---------- */
.cta {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: calc(var(--r) + 6px);
  background: linear-gradient(120deg, rgba(255, 61, 79, 0.14), rgba(255, 255, 255, 0.03) 55%);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 61, 79, 0.28), transparent); pointer-events: none; }
.cta .lead { margin-top: 12px; }

/* ---------- підвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 30px 0 28px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__tag { margin-top: 16px; color: var(--text-3); font-size: var(--fs-s); max-width: 34ch; }
.foot h4 { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot ul a { color: var(--text-2); font-size: var(--fs-m); }
.foot ul a:hover { color: var(--accent-2); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--text-3); }
/* логотип у підвалі: менший і приглушений, праворуч від нього — копірайт */
.foot__brand { --logo: 30px; color: var(--text-2); transition: color 0.2s var(--ease-brand); }
.foot__brand:hover { color: var(--text); }
.foot__bottom .foot__brand + span { margin-right: auto; }

/* ---------- анімація появи ---------- */
/* Ховаємо блоки лише поки .js-anim висить на <html>: клас ставить інлайн-скрипт
   у <head>, і він же знімає його, якщо site.js не запустився. Без цього будь-яка
   аварія JS (не згенеровано env.js, недоступний CDN) лишала б сторінку порожньою. */
.rise { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-anim .rise { opacity: 0; transform: translateY(22px); }
.js-anim .rise.is-in { opacity: 1; transform: none; }
.js-anim .rise.rise--now { transition: none; }
.rise[data-delay="1"] { transition-delay: 0.08s; }
.rise[data-delay="2"] { transition-delay: 0.16s; }
.rise[data-delay="3"] { transition-delay: 0.24s; }
.rise[data-delay="4"] { transition-delay: 0.32s; }
.rise[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- лінія-розділювач з міткою ---------- */
.rule { display: flex; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- креслення (SVG-ілюстрації) ---------- */
.draw { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent); }
.draw svg { width: 100%; height: auto; display: block; }
.draw .ln { stroke: #d6dbe3; stroke-width: 1.1; fill: none; }
.draw .ln2 { stroke: rgba(214, 219, 227, 0.45); stroke-width: 0.8; fill: none; }
.draw .hair { stroke: rgba(214, 219, 227, 0.25); stroke-width: 0.6; fill: none; stroke-dasharray: 3 4; }
.draw .dim { stroke: var(--accent); stroke-width: 0.8; fill: none; }
.draw .lbl { font-family: var(--f-mono); font-size: 9px; fill: var(--accent-2); letter-spacing: 0.08em; }
.draw .lbl2 { font-family: var(--f-mono); font-size: 8.5px; fill: var(--text-3); letter-spacing: 0.08em; }
.draw__cap { position: absolute; left: 20px; top: 16px; font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }

/* креслення обладнання (білі лінії на прозорому) */
.blue { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.blue figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 22px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); min-height: 240px; }
.blue img { max-height: 150px; width: auto; opacity: 0.85; filter: drop-shadow(0 0 12px rgba(255, 61, 79, 0.25)); }
.blue figcaption { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); text-align: center; line-height: 1.5; }

/* ---------- статус-бейдж ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .dirs, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, 1fr); }
  .blue { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav, .head__cta .btn { display: none; }
  .burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { justify-items: start; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .gallery, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
    .form__foot .btn { width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: var(--fs-m); }
  .hero { padding-top: calc(var(--head-h) + 24px); padding-bottom: 88px; }
  .hero__title { max-width: none; }
  .stats, .dirs, .grid--2, .grid--3, .grid--4, .items, .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .mosaic { aspect-ratio: 4 / 5; }
  .blue { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .js-anim .rise { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after, .status::before { animation: none; }
  .card, .btn, .item, .mosaic img { transition: none; }
  .appear, .swap-in { animation: none; }
}

/* ---------- смуга прокрутки над шапкою (лише де є розмітка .progress); на телефоні не показується ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); box-shadow: 0 0 10px var(--accent-glow); }
@media (max-width: 880px) { .progress { display: none; } }

/* ---------- плаваюча кнопка «Зв’язатися» на десктопі (після прокрутки); на телефоні є .fab-bar ---------- */

/* ---------- плавна заміна вмісту (swapIn у site.js): коротка поява після перемикання ---------- */
/* заміна вмісту: лише короткий перехід непрозорості, без зсуву і без провалу в «порожньо» */
.swap-in { animation: swap-in 0.24s ease-out both; }
@keyframes swap-in { from { opacity: 0.45; } to { opacity: 1; } }
/* поява нового (картки після фільтра, пошуку, «Показати ще»): тільки fade, те, що вже на екрані, не рухається */
.appear { animation: appear 0.26s ease-out both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }


/* ---------- виправлення 07.09: меню в один рядок на середніх ширинах; телефон — компактні герої, кнопки з переносом, картки напрямів ---------- */
@media (max-width: 1240px) { .nav a { padding: 10px 9px; letter-spacing: 0.08em; } }
/* планшет до появи бургер-меню: щільніше, щоб і польське «STRONA GŁÓWNA … KONTAKT» вміщалось в один рядок */
@media (max-width: 1000px) {
  .head__in { gap: 14px; }
  .nav { gap: 0; }
  .nav a { padding: 10px 7px; font-size: var(--fs-xs); letter-spacing: 0.04em; }
  .nav a.is-active::after { left: 7px; right: 7px; }
  .head__cta { gap: 8px; }
  .head__cta .btn { padding: 10px 14px; }
}
@media (max-width: 700px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.3; }   /* «Специфікація котушки в асортименті» не влазила і розтягувала сторінку */
  /* заглавні блоки: без порожнього екрана — висота за вмістом, заголовок одразу під шапкою */
  .hero { min-height: 0; padding: calc(var(--head-h) + 36px) 0 52px; align-items: flex-start; }
  .hero__cta { margin-top: 28px; }
  .band, .band--cat { min-height: 0; padding: calc(var(--head-h) + 30px) 0 34px; align-items: flex-start; }
  /* перемикач мови в мобільному меню: три рівні сегменти на всю ширину */
  .mnav .langs { display: flex; width: 100%; }
  .mnav .lang { flex: 1; text-align: center; padding: 11px 0; }
  /* картки напрямів: одна колонка */
  .grid--3 { grid-template-columns: 1fr; }
}
/* довгий опис у картці напряму згорнутий (6 рядків), кнопка «Розгорнути» — картки одного ряду рівні */
.card--link p.is-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card__more { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: -4px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); cursor: pointer; }
.card__more:hover { color: #fff; }
.card__more::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.card__more.is-open::after { transform: rotate(-135deg) translateY(-1px); }
@media (max-width: 700px) { .card--link p.is-clamp { -webkit-line-clamp: 4; } }

/* ---------- шапка: чотири мови (UA · EN · PL · 中文), меню, пошук і «Зв’язатися» в один рядок.
   Вміст шапки обмежений шириною .wrap (1240 px), тож перемикач мов щільніший і на широких екранах ---------- */
.lang { padding: 7px; white-space: nowrap; }   /* «中文» не розривається між ієрогліфами, коли в шапці тісно */
@media (max-width: 1280px) {
  .head__in { gap: 12px; }
  .nav a { padding: 10px 6px; }
  .head__cta { gap: 8px; }
}
@media (max-width: 1140px) { .hsearch { display: none; } }   /* до ~1130 px українське й польське меню разом із пошуком не вміщаються */
@media (max-width: 1000px) { .head__in { gap: 10px; } .lang { padding: 7px 6px; } }   /* запас для українського меню біля 881 px */

/* ---------- 13.10: спокійніша типографіка. Моно лишається для кодів і чисел; підписи — основним шрифтом,
   без капсу й розрядки; червоний — лише акценти (активні стани, наведення, позначка надрядка).
   «Асортимент» не змінюється: правила обмежено body:not([data-page="catalog"]) ---------- */
body:not([data-page="catalog"]) .eyebrow { font-family: var(--f-body); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--text-2); gap: 10px; }
body:not([data-page="catalog"]) .eyebrow::before { content: ""; flex: none; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
body:not([data-page="catalog"]) .eyebrow a { color: inherit; transition: color 0.2s var(--ease-brand); }
body:not([data-page="catalog"]) .eyebrow a:hover { color: #fff; }
body:not([data-page="catalog"]) :is(.tag, .stat__k, .card__go, .card__more, .specs dt, .contact__lines small, .field label, .draw__cap, .blue figcaption, .status, .drone__cap, .drone__hint, .wm-stat span, .foot h4, .rule) {
  font-family: var(--f-body); letter-spacing: 0.01em; text-transform: none;
}
body:not([data-page="catalog"]) :is(.tag, .status, .drone__cap, .drone__hint, .draw__cap, .blue figcaption) { font-size: var(--fs-xs); }
body:not([data-page="catalog"]) :is(.stat__k, .specs dt, .contact__lines small, .field label, .wm-stat span) { font-size: var(--fs-s); }
body:not([data-page="catalog"]) :is(.card__go, .card__more) { font-size: var(--fs-s); font-weight: 600; }
body:not([data-page="catalog"]) :is(.foot h4, .rule) { font-size: var(--fs-s); font-weight: 600; }
body:not([data-page="catalog"]) :is(.card__code, .card__n, .proc__n) { color: var(--text-3); }
body:not([data-page="catalog"]) .step::before { color: var(--text-3); }
body:not([data-page="catalog"]) .specs dd em { color: var(--text); font-weight: 600; }

/* ---------- інтро першого заходу, лише телефон (js/intro.js) ---------- */
html.intro-wait .head, html.intro-wait .hero__in { visibility: hidden; }
.intro { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.intro__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.intro__panels i { display: block; background: #0f1117; border-right: 1px solid rgba(255, 255, 255, 0.04); box-shadow: 0 2px 0 rgba(255, 61, 79, 0.55); will-change: transform; }
.intro__logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 18px; color: var(--text); }
.intro__mark { width: 96px; height: 96px; will-change: transform; }
.intro__word { width: 150px; height: 30.5px; color: var(--text-2); }
.intro__meta { position: absolute; left: var(--gutter); bottom: 30px; display: flex; align-items: baseline; gap: 18px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.intro__count { font-family: var(--f-display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.intro__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent-glow); }
.l-mask { display: block; overflow: hidden; }
.intro-sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 42%, rgba(255, 61, 79, 0.2) 50%, transparent 58%); mix-blend-mode: screen; }
@media (max-width: 600px) { .intro__mark { width: 72px; height: 72px; } .intro__count { font-size: 40px; } .intro__tag { display: none; } }

/* ============================================================
   Редизайн 23.10.2026: мобільна верстка в пріоритеті, мінімум плашок, єдина шкала шрифтів (--fs-*).
   Тут: футер, головна (цифри, напрями, покажчик асортименту, легенда дрона), фон першого екрана на телефоні.
   ============================================================ */

/* ---------- футер: опис і «Зв’язатися», розділи, виробничі лінії, контакти, мова ---------- */
.foot { padding: clamp(40px, 6vw, 72px) 0 calc(24px + env(safe-area-inset-bottom)); }
.foot__grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__about { display: grid; gap: 16px; align-content: start; justify-items: start; }
.foot__about .foot__brand { --logo: 34px; color: var(--text); }
.foot__tag { margin: 0; font-size: var(--fs-s); line-height: 1.55; color: var(--text-2); max-width: 32ch; }
.foot h4 { margin-bottom: 14px; color: var(--text); }
.foot ul { gap: 2px; }
.foot ul a, .foot ul span { display: inline-block; padding: 5px 0; color: var(--text-2); font-size: var(--fs-s); line-height: 1.45; }
.foot ul a:hover { color: #fff; }
.foot__langs { display: inline-flex; gap: 4px; margin-top: 16px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.foot__langs .lang { padding: 9px 12px; border-radius: var(--pill); font-size: var(--fs-xs); color: var(--text-2); }
.foot__langs .lang.is-on, .foot__langs .lang[aria-pressed="true"] { background: var(--panel-2); color: #fff; }
.foot__bottom { padding-top: 20px; color: var(--text-3); }
@media (max-width: 1100px) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot__about { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__grid > .foot__col:last-child { grid-column: 1 / -1; }
}

/* ---------- головна: цифри без карток - число й підпис, тонка червона лінія зверху ---------- */
.stats { gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 22px 20px 4px 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.stat::before { width: 48px; height: 2px; top: -1px; opacity: 1; background: var(--accent); }
.stat__v { font-size: var(--fs-num); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 32px; }
  .stat { padding: 18px 0 14px; }
  body:not([data-page="catalog"]) .stat__k { font-size: var(--fs-xs); margin-top: 8px; }
}

/* ---------- головна: напрями. Телефон - компактні рядки: номер, іконка, назва й один рядок опису ---------- */
@media (max-width: 600px) {
  .dirs { gap: 10px; }
  .dirs .card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico title go" "ico text go"; align-items: start; gap: 4px 14px; padding: 16px; }
  .dirs .card__code { display: none; }
  .dirs .card__icon { grid-area: ico; width: 32px; height: 32px; margin-top: 2px; }
  .dirs .card .h3 { grid-area: title; margin: 0; font-size: var(--fs-l); }
  .dirs .card p { grid-area: text; font-size: var(--fs-s); line-height: 1.5; }
  body .dirs .card__go, body .dirs .card__more { display: none; }
  .dirs .card p.is-clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .dirs .card { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "ico title" "ico text"; }
}

/* ---------- головна: покажчик асортименту замість 20 плашок ---------- */
.cgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 8px; border-top: 1px solid var(--line); }
.cg { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.cg__title { display: flex; align-items: baseline; min-height: 40px; padding: 8px 0; justify-content: space-between; gap: 12px; font-family: var(--f-display); font-size: var(--fs-l); font-weight: 600; color: var(--text); transition: color 0.2s var(--ease-brand); }
.cg__title b { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 500; color: var(--accent-2); }
.cg__title:hover { color: var(--accent-2); }
.cg__sub { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 0; }
.cg__sub a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--fs-s); color: var(--text-2); transition: color 0.2s var(--ease-brand); }
.cg__sub a b { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); margin-left: 2px; }
.cg__sub a:hover { color: #fff; }
@media (max-width: 1100px) { .cgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cgroups { grid-template-columns: 1fr; } .cg { padding: 8px 0; } }

/* легенда дрона: рядки без рамок, на телефоні у дві колонки */
.drone__parts { gap: 0 24px; }
.drone__parts a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding-left: 0; padding-right: 0; }
.drone__parts a:hover, .drone__parts a.is-on { background: none; }
@media (max-width: 600px) {
  .drone__parts { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .drone__parts a { gap: 8px; font-size: var(--fs-s); }
  .drone__stage { height: 260px; }
}

/* ---------- фон першого екрана на телефоні: затемнення зверху вниз (текст на всю ширину), а не зліва направо ---------- */
@media (max-width: 700px) {
  .mesh-fog, .is-band .mesh-fog {
    background:
      radial-gradient(80% 45% at 85% 8%, rgba(255, 61, 79, 0.16), transparent 70%),
      linear-gradient(180deg, rgba(7, 8, 11, 0.55) 0%, rgba(7, 8, 11, 0.4) 40%, rgba(7, 8, 11, 0.55) 70%, var(--bg) 100%);
  }
  .mesh-vignette { background: radial-gradient(140% 80% at 50% 35%, transparent 60%, rgba(7, 8, 11, 0.6) 100%); }
}

/* ---------- поява при прокрутці (29.10.2026, тайминги faradagroup.com): 0,45 с, зсув 20 px, крива --ease-brand,
   спрацьовує за 15 % висоти екрана до кадру (site.js); затримки за data-delay по 70 мс ---------- */
.js-anim .rise.rise--scroll { transform: translateY(20px); transition: opacity 0.45s var(--ease-brand), transform 0.45s var(--ease-brand); }
.js-anim .rise.rise--scroll.is-in { transform: none; }
.rise--scroll[data-delay="1"] { transition-delay: 0.07s; }
.rise--scroll[data-delay="2"] { transition-delay: 0.14s; }
.rise--scroll[data-delay="3"] { transition-delay: 0.21s; }
.rise--scroll[data-delay="4"], .rise--scroll[data-delay="5"] { transition-delay: 0.28s; }
/* заголовки розділів по рядках: рядок у масці, текст виїжджає знизу 0,75 с (непрозорість 0,6 с), крок 90 мс задає site.js */
.js-anim .rise.rise--split { opacity: 1; transform: none; transition: none; }
.rise--split .sl { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rise--split .sl > span { display: block; transform: translateY(105%); opacity: 0; transition: transform 0.75s var(--ease-brand), opacity 0.6s var(--ease-brand); will-change: transform; }
.rise--split.is-in .sl > span { transform: none; opacity: 1; }
/* перший екран: одна послідовність (затримка --rd, тривалість --rdur, зсув --ry задає site.js), крива power4.out = --ease */
.js-anim .rise.rise--hero { transform: translateY(var(--ry, 20px)); transition: opacity var(--rdur, 0.45s) var(--ease) var(--rd, 0s), transform var(--rdur, 0.45s) var(--ease) var(--rd, 0s), clip-path var(--rdur, 0.45s) var(--ease) var(--rd, 0s); }
.js-anim .rise.rise--hero.is-in { transform: none; }
/* заголовок героя відкривається маскою знизу вгору (з запасом на виносні елементи літер) */
.js-anim .rise.rise--clip { opacity: 1; clip-path: inset(-12% -6% 112% -6%); }
.js-anim .rise.rise--clip.is-in { clip-path: inset(-12% -6% -12% -6%); }
/* шапка опускається зверху на старті сторінки: 0,55 с */
.js-anim .head { transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), border-color 0.3s var(--ease-brand), background 0.3s var(--ease-brand); }
.js-anim .head:not(.is-in) { opacity: 0; transform: translateY(-80px); }
.js-anim .head.head--now { transition: border-color 0.3s var(--ease-brand), background 0.3s var(--ease-brand); }
/* мобільне меню розкривається згори вниз: 0,5 с */
body.menu-open .mnav { animation: mnav-in 0.5s var(--ease-brand) both; }
@keyframes mnav-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* плавна прокрутка Lenis (vendor/lenis-1.3.26): правила з lenis.css; CSS-плавність вимкнена, бо прокрутку веде Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .head, .js-anim .head:not(.is-in) { opacity: 1; transform: none; transition: none; }
  .js-anim .rise.rise--clip { clip-path: none; }
  body.menu-open .mnav { animation: none; }
}
/* лічильники: цифри однакової ширини, щоб рядок не смикався під час докручування; «до 80 км» не переноситься */
[data-count] { font-variant-numeric: tabular-nums; }
.stat__v { white-space: nowrap; }
@media (max-width: 600px) { .stat__v { font-size: clamp(24px, 7.4vw, 28px); } }
/* ============================================================
   Правові сторінки 27.10.2026 (privacy.html, cookies.html): вміст UA й EN, видимий за <html lang>; на PL і ZH - EN
   ============================================================ */
.legal { padding-top: calc(var(--head-h) + clamp(32px, 5vw, 64px)); }
.legal__wrap { max-width: 860px; }
.lg[lang="en"], html:not([lang="uk"]) .lg[lang="uk"] { display: none; }
html:not([lang="uk"]) .lg[lang="en"] { display: block; }
.legal__langnote { display: none; }
html[lang="pl"] .legal__langnote, html[lang="zh"] .legal__langnote { display: block; margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-s); color: var(--text-2); }
.legal__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.legal__tabs a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--fs-s); color: var(--text-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.legal__tabs a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.legal__tabs a.is-on { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.legal__doc { font-size: var(--fs-body); line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; }
.legal__h1 { font-size: clamp(28px, 3vw + 14px, 44px); line-height: 1.15; color: #fff; margin: 0 0 10px; }
.legal__meta { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 24px; }
.legal__doc h2 { font-size: var(--fs-h3); line-height: 1.3; color: #fff; margin: 44px 0 14px; scroll-margin-top: calc(var(--head-h) + 16px); }
.legal__doc h3 { font-size: var(--fs-l); color: #fff; margin: 28px 0 10px; scroll-margin-top: calc(var(--head-h) + 16px); }
.legal__doc p { margin: 0 0 14px; }
.legal__doc ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal__doc li::marker { color: var(--accent); }
.legal__doc li { margin: 0 0 8px; }
.legal__doc a { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal__doc a:hover { color: var(--accent-2); }
.legal__doc code { font-family: var(--f-mono); font-size: 0.9em; color: #fff; }
.legal__sum { margin: 0 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--bg-2); }
.legal__sum ul { margin: 0; }
.legal__sumh { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px !important; }
.legal__card { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text-2); }
.legal__card b { color: #fff; }
.legal__dl { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 10px 20px; margin: 0 0 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; }
.legal__dl dt { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.legal__dl dd { margin: 0; }
.legal__tw { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.legal__t { width: 100%; border-collapse: collapse; font-size: var(--fs-s); line-height: 1.5; }
.legal__t th { text-align: left; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
.legal__t th, .legal__t td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__t tr:last-child td { border-bottom: 0; }
.legal__t td:first-child { color: #fff; }
@media (max-width: 640px) {
  .legal__dl { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .legal__dl dd { margin-bottom: 10px; }
  .legal__sum { padding: 16px 16px; }
  /* таблиці на телефоні: кожен рядок - окрема картка, перша колонка (назва) зверху жирним */
  .legal__t, .legal__t tbody, .legal__t tr, .legal__t td { display: block; width: 100%; }
  .legal__t thead { display: none; }
  .legal__t tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .legal__t tr:last-child { border-bottom: 0; }
  .legal__t td { padding: 2px 0; border: 0; }
  .legal__t td:first-child { font-weight: 600; margin-bottom: 2px; }
}
/* футер: посилання на політики */
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__legal a { color: inherit; text-decoration: none; }
.foot__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Заголовки розділів 30.10.2026: не зливаються зі сторінкою й текстом. Надзаголовок - плашка з червоною точкою,
   на початку розділу світліша смуга й більше повітря, між заголовком і текстом - відступ
   ============================================================ */
body:not([data-page="catalog"]) .eyebrow {
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); color: var(--text); margin-bottom: 22px; line-height: 1.35;
}
body:not([data-page="catalog"]) .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 10px var(--accent-glow); }
.sec--line { border-top-color: var(--line-2); }
.sec--line::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(360px, 60%); pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
body:not([data-page="catalog"]) .blk__head--row .eyebrow { margin-bottom: 0; }
body .sec__head .lead, body .blk__head .lead { margin-top: 20px; }
@media (max-width: 600px) {
  .sec.sec--line { padding-top: 76px; }
  body .sec__head, body .blk__head { margin-bottom: 36px; }
  body:not([data-page="catalog"]) .eyebrow { margin-bottom: 18px; font-size: var(--fs-xs); }
  body .sec__head .lead, body .blk__head .lead { margin-top: 16px; }
  /* мобільне меню трохи менше */
  .mnav { padding-top: calc(var(--head-h) + 20px); gap: 2px; }
  .mnav a { font-size: 22px; padding: 12px 0; }
  .mnav .lang { padding: 9px 0; }
}
