/* ─────────────────────────────────────────────────────────────
   Лінії гранулювання · ФОП Швачка
   Один адаптивний лендінг. Значення взяті з макета буквально:
   мобільний стан ≤767px, десктопний ≥1024px, планшет — між ними.
   Заголовки, що в макеті мають два розміри, задані через clamp()
   так, щоб на 390px і на ≥1024px давати точне значення макета.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #07090C;
  --ink: #E4E2DD;
  --white: #FFFFFF;
  --mute: #8C949C;
  /* Три найтихіші кольори взяті з макета як є, але на темному тлі вони не
     дотягують до WCAG AA 4.5:1 для дрібного тексту:
       --dim     #6C757E → 4.26:1   (підписи специфікацій, лічильники)
       --dimmer  #5A646E → 3.31:1   (заголовки колонок підвалу)
       --dimmest #4A545E → 2.58:1   (нижній рядок підвалу)
     Мінімум, який дає 4.5:1 і на #07090C, і на #0A0D11 — це #727B84.
     Якщо замовник погодиться освітлити, досить замінити три значення нижче
     на #767F88 / #737C85 / #727B84 — але тоді три рівні тиші майже
     зіллються: AA для дрібного тексту не лишає місця на градацію.        */
  --dim: #6C757E;
  --dimmer: #5A646E;
  --dimmest: #4A545E;
  --body: #A8B0B8;
  --link: #B4BCC2;
  --acc: #FF5C00;
  --acc-hi: #FF8340;
  --acc-paper: #C24A00;
  --blue: #4E9BE0;

  --line: #161C23;
  --line2: #1B2229;
  --line3: #2A333C;
  --dash: #3A444E;
  --dash2: #4C5860;

  --surf: #0A0D11;
  --surf2: #0C1014;
  --surf3: #0B0F13;
  --unit-on: #141A20;

  --paper: #EDEAE3;
  --paper-ink: #14181C;
  --paper-body: #4A5158;
  --paper-line: #C9C5BB;
  --paper-key: #8A867C;

  --gut: 20px;
  --ease: cubic-bezier(.16, .84, .32, 1);
  --shot-ease: cubic-bezier(.2, .75, .2, 1);
}

@media (min-width: 768px)  { :root { --gut: 40px; } }
@media (min-width: 1024px) { :root { --gut: 80px; } }

*, *::before, *::after { box-sizing: border-box; }

/* У макеті немає box-sizing-ресету, тому там, де елементу задано і розмір,
   і рамку, рамка додається зверху: посилання height:52 + border:1px = 54 px.
   (<button> у браузерах уже border-box, тому стрілки галереї — рівно 52.)
   Точково повертаємо цю поведінку, щоб висоти сходилися з еталоном. */
.hdr, .btn-ghost, .btn-outline-dark,
.line-card, .unit-thumb--none, .gal-frame--none { box-sizing: content-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg,  rgba(120,160,200,.055) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(120,160,200,.055) 0 1px, transparent 1px 64px);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, figcaption, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hi); }
img { display: block; max-width: 100%; }
svg { display: block; }
/* <picture> потрібен лише як обгортка для <source>; з layout він виходить,
   тож розміри й object-fit застосовуються прямо до <img>. */
picture { display: contents; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Нижні секції не рахуються, поки не наблизяться до екрана: це знімає з
   першого кадру стиль і розкладку ~900 елементів і сорока шарів з
   mix-blend-mode. На слабкому телефоні це вдвічі коротший Style & Layout,
   на десктопі виграшу нема — тому лише до 1023px.
   Розміри-заглушки взяті з реальних висот мобільного стану, щоб не стрибав
   скролбар; `auto` дозволяє браузеру запам'ятати справжню висоту. */
@media (max-width: 1023px) {
  .value, .fire, .raw, .lines, .flow, .steps, .why, .faq, .cta-band, .foot {
    content-visibility: auto;
  }
  .value    { contain-intrinsic-size: auto 747px; }
  .fire     { contain-intrinsic-size: auto 200px; }
  .raw      { contain-intrinsic-size: auto 520px; }
  .lines    { contain-intrinsic-size: auto 801px; }
  .flow     { contain-intrinsic-size: auto 1963px; }
  .steps    { contain-intrinsic-size: auto 758px; }
  .why      { contain-intrinsic-size: auto 1142px; }
  .faq      { contain-intrinsic-size: auto 798px; }
  .cta-band { contain-intrinsic-size: auto 462px; }
  .foot     { contain-intrinsic-size: auto 571px; }
}

.disp {
  font-family: "Fira Sans Extra Condensed", "Oswald", "Arial Narrow", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
}
.mono {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.acc { color: var(--acc); }

/* Два стани макета місцями розходяться не лише розкладкою, а й текстом:
   на вузькому екрані копія коротша. .w / .m — для фрагментів усередині
   рядка, .only-w / .only-m — для цілих блоків. */
.w { display: none; }
.m { display: inline; }
.only-w { display: none; }
.only-m { display: block; }
@media (min-width: 768px) {
  .w { display: inline; }
  .m { display: none; }
  .only-w { display: block; }
  .only-m { display: none; }
}

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* текстури */
.paper-dots {
  background-color: var(--paper);
  color: var(--paper-ink);
  background-image: radial-gradient(rgba(20,40,70,.16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
}
/* синій шар, що зводить різні знімки до одного кольору обладнання */
.tint { position: absolute; inset: 0; mix-blend-mode: color; pointer-events: none; }
.tint-10 { background: rgba(31,95,158,.10); }
.tint-12 { background: rgba(31,95,158,.12); }
.tint-14 { background: rgba(31,95,158,.14); }
.tint-16 { background: rgba(31,95,158,.16); }

/* одна оркестрована поява при завантаженні */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.r1, .r2, .r3, .r4, .r5 { animation: riseIn .75s var(--ease) both; }
.r1 { animation-delay: .05s; }
.r2 { animation-delay: .16s; }
.r3 { animation-delay: .27s; }
.r4 { animation-delay: .38s; }
.r5 { animation-delay: .5s; }
.wipe { animation: wipeIn 1.1s var(--ease) .1s both; }
.rule { transform-origin: left; animation: ruleGrow .9s var(--ease) .3s both; }

/* стрічка кадрів: перемикання через transform, без підміни src */
.gal-strip {
  display: flex; height: 100%; width: 100%;
  transition: transform .5s var(--shot-ease);
}
.gal-frame { position: relative; flex: 0 0 100%; height: 100%; }
.gal-frame img { width: 100%; height: 100%; object-fit: cover; }

.rail { scrollbar-width: none; -ms-overflow-style: none; }
.rail::-webkit-scrollbar { display: none; }

.leader   { flex-grow: 1; border-bottom: 1px dotted #3A4550; margin: 0 10px 5px; }
.leader-u { flex-grow: 1; border-bottom: 1px dotted #2A3238; margin: 0 8px 5px; }

.ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ── кнопки ─────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 600; white-space: nowrap;
}
.btn-acc    { background: var(--acc);  color: var(--bg); }
.btn-light  { background: var(--ink);  color: var(--bg); }
.btn-dark   { background: var(--bg);   color: var(--acc); }
.btn-ghost  { border: 1px solid var(--line3); color: var(--ink); }
.btn-outline-dark { border: 1px solid rgba(7,9,12,.4); color: var(--bg); }
.btn-acc:hover, .btn-light:hover, .btn-dark:hover, .btn-ghost:hover, .btn-outline-dark:hover { color: inherit; }
.btn-acc:hover, .btn-light:hover { color: var(--bg); }
.btn-dark:hover { color: var(--acc); }

.cta { transition: transform .18s ease, box-shadow .18s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -4px rgba(255,92,0,.35); }

.btn-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(228,226,221,.45);
  background: rgba(7,9,12,.62);
  color: var(--ink); z-index: 2;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-nav svg { width: 18px; height: 18px; }
.btn-nav:hover { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.btn-nav:active { transform: translateY(-50%) scale(.94); }
.gal-prev { left: 8px; }
.gal-next { right: 8px; }

/* ── службова смуга ─────────────────────────────────────────── */
.bar {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; height: 30px; padding: 0 var(--gut);
  background: var(--acc); color: var(--bg);
}
.bar .mono { font-size: 9px; font-weight: 700; }
.bar-2 { display: none; }

/* ── шапка ──────────────────────────────────────────────────── */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 66px; padding: 0 var(--gut);
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,12,.94);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { width: 28px; height: 28px; flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: clamp(21px, 2.344vw, 24px); color: var(--ink); line-height: 1; }
.brand-sub { display: none; font-size: 9px; color: var(--dim); }
.hdr-nav { display: none; }
.hdr-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 46px; height: 46px; flex-shrink: 0;
  background: var(--acc); color: var(--bg); font-weight: 600;
}
.hdr-cta .ico { width: 19px; height: 19px; }
.hdr-cta-txt { display: none; }

/* ── герой ──────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; top: -60px; left: -80px;
  width: 520px; height: 420px; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(255,92,0,.16) 0%, rgba(255,92,0,0) 62%);
}
.hero-shot { position: relative; height: 250px; overflow: hidden; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #07090C 4%, rgba(7,9,12,.25) 70%);
}
.slot {
  position: absolute; left: 14px; top: 14px;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; border: 1px dashed #5A6670;
  background: rgba(7,9,12,.72);
  font-size: 8px; color: var(--mute);
}
.slot svg { width: 11px; height: 11px; }
.hero-txt {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 20px;
  padding: 26px var(--gut) 36px;
}
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker .mono { font-size: 9px; font-weight: 700; color: var(--acc); }
.hero-kicker .rule { display: block; width: 34px; height: 1px; background: var(--acc); flex-shrink: 0; }
.hero h1 { font-size: clamp(50px, 8.985vw, 92px); color: var(--white); }
.hero-br { display: none; }
.hero-lead {
  font-weight: 300; font-size: clamp(16px, 2.051vw, 21px);
  line-height: 1.6; color: var(--body); text-wrap: pretty;
}
.hero-btns { display: flex; flex-direction: column; gap: 9px; }
.hero-btns .btn-acc { height: 58px; font-size: 17px; }
.hero-msg { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hero-msg .btn { height: 52px; font-size: 15px; gap: 8px; }
.hero-msg .ico { width: 17px; height: 17px; }

/* ── смуга характеристик ────────────────────────────────────── */
.specs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.spec { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.spec:nth-child(1), .spec:nth-child(3) { border-right: 1px solid var(--line); }
.spec:nth-child(1), .spec:nth-child(2) { border-bottom: 1px solid var(--line); }
.spec-k { font-size: 8px; color: var(--dim); }
.spec-v { font-size: clamp(30px, 4.492vw, 46px); color: var(--ink); white-space: nowrap; }
.spec-u { font-size: 8px; color: var(--dim); }

/* ── світла смуга: відходи вже мають ціну ───────────────────── */
.value { padding: 48px var(--gut) 44px; }
.value-head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 26px; }
.value-head h2 { font-size: clamp(40px, 5.469vw, 56px); color: var(--paper-ink); }
.value .lead, .value p { color: var(--paper-body); }
.lead { font-weight: 300; font-size: clamp(15px, 1.66vw, 17px); line-height: 1.6; color: var(--mute); }
.value-list { display: flex; flex-direction: column; }
.vitem { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--paper-line); }
.vitem > div { display: flex; flex-direction: column; gap: 6px; }
.vitem-k { font-size: 10px; color: var(--acc); padding-top: 5px; flex-shrink: 0; }
.vitem-k--a { color: var(--paper-key); }
.vitem h3 { font-size: clamp(24px, 2.93vw, 30px); color: var(--paper-ink); }
.vitem p { font-size: clamp(14px, 1.563vw, 16px); line-height: 1.6; }

/* ── повноширинна смуга з топкою ────────────────────────────── */
.fire { position: relative; height: 200px; overflow: hidden; }
.fire > img { width: 100%; height: 100%; object-fit: cover; }
.fire-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,12,.86) 0%, rgba(7,9,12,.2) 70%);
}
.fire-txt {
  position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; max-width: 460px;
}
.fire-txt .mono { font-size: clamp(9px, .977vw, 10px); color: var(--acc); }
.fire-txt h2 { font-size: clamp(28px, 4.102vw, 42px); color: var(--white); }

/* ── спільна розкладка «заголовок + список» ─────────────────── */
.sec-split { display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-size: clamp(40px, 5.469vw, 56px); color: var(--white); }
.eyebrow { font-size: 10px; color: var(--acc); }
.eyebrow--paper { color: var(--acc-paper); }

/* ── сировина ───────────────────────────────────────────────── */
.raw { padding: 52px var(--gut) 0; }
.raw-list { display: flex; flex-direction: column; }
.raw-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 15px 0; border-top: 1px solid var(--line2);
}
.raw-list li:last-child { border-bottom: 1px solid var(--line2); }
.raw-list .disp { font-size: clamp(22px, 3.125vw, 32px); color: var(--ink); }
.raw-tag { font-size: clamp(9px, 1.074vw, 11px); color: var(--acc); white-space: nowrap; text-align: right; }
.raw-tag--feed { color: var(--blue); }
.raw-other .disp, .raw-other .raw-tag { color: var(--dim); }

/* ── лінії, які ми зробили ──────────────────────────────────── */
.lines { display: flex; flex-direction: column; gap: 18px; padding: 56px 0 0; }
.lines-head { display: flex; flex-direction: column; gap: 12px; padding: 0 var(--gut); }

.chips { display: flex; gap: 8px; padding: 0 var(--gut); overflow-x: auto; }
.chip {
  flex-shrink: 0; padding: 11px 15px;
  border: 1px solid var(--line3); color: var(--mute);
  font-size: 10px; font-weight: 700;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--acc); background: var(--acc); color: var(--bg); }

.lines-rail { display: none; }
.lines-track {
  display: flex; gap: 14px; padding: 4px var(--gut) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.rail-pad { flex: 0 0 4px; }
.line-card {
  position: relative;
  flex: 0 0 320px; scroll-snap-align: center; scroll-margin-left: var(--gut);
  display: flex; flex-direction: column;
  border: 1px solid var(--line2); background: var(--surf);
}
.gal { position: relative; height: 250px; overflow: hidden; background: var(--surf3); }
.gal-count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 6px 9px; background: rgba(7,9,12,.8);
  color: var(--ink); font-size: 10px; font-weight: 700;
}
.gal-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2;
  display: flex; justify-content: center; gap: 5px;
}
.gal-dot {
  position: relative; width: 8px; height: 8px; padding: 0;
  background: rgba(228,226,221,.28);
  transition: width .25s var(--shot-ease), background .25s ease;
}
/* мінімальна площа дотику 46px по висоті, без перекриття сусідів */
.gal-dot::before { content: ""; position: absolute; inset: -19px -2px; }
.gal-dot[aria-current="true"] { width: 26px; background: var(--acc); }

.line-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 6px 9px; background: var(--acc); color: var(--bg);
  font-size: 9px; font-weight: 700; white-space: nowrap;
}
.line-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 22px; }
.line-head h3 { font-size: clamp(26px, 3.711vw, 38px); color: var(--white); }
.line-spec { display: flex; flex-direction: column; gap: 9px; }
.line-spec > div { display: flex; align-items: baseline; }
/* рядок «Сировина» є лише в широкому стані макета */
.line-spec > .w { display: none; }
.line-spec dt { font-size: 9px; color: var(--dim); flex-shrink: 0; }
.line-spec dd { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.line-foot { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line2); }
.line-price { display: flex; align-items: baseline; gap: 10px; }
.line-price .disp { font-size: clamp(32px, 4.102vw, 42px); color: var(--acc); }
.line-price .mono { font-size: 9px; color: var(--dim); }
.line-ask { display: none; }

.rail-hint { display: flex; align-items: center; gap: 10px; padding: 0 var(--gut); }
.rail-hint .mono { font-size: 9px; color: var(--dim); }
.rail-hint-line { flex-grow: 1; height: 1px; background: var(--line2); }

/* ── склад лінії ────────────────────────────────────────────── */
.flow { display: flex; flex-direction: column; gap: 18px; padding: 52px var(--gut) 0; }
.flow .lines-head { padding: 0; }

.stages { display: flex; flex-direction: column; }
.stage {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 18px 20px;
  background: var(--surf2); border-left: 2px solid var(--acc);
}
.stage + .stage { position: relative; margin-top: 18px; }
/* конектор між ділянками: вертикальна риска на мобільному,
   стрілка в 28-піксельному просвіті на десктопі */
.stage + .stage::before {
  content: ""; position: absolute; left: 26px; top: -18px;
  width: 1px; height: 18px; background: var(--line3);
}
.stage-no { font-size: 10px; color: var(--acc); font-weight: 700; flex-shrink: 0; padding-top: 4px; }
/* у вузькому стані номер стоїть збоку, у широкому — над назвою */
.stage-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stage-t { font-size: clamp(22px, 2.344vw, 24px); color: var(--white); }
.stage-d { display: flex; flex-direction: column; gap: 6px; }
.stage-d .mono { font-size: 9px; line-height: 1.7; color: var(--mute); }

.units-grid { display: block; }
.units { display: flex; flex-direction: column; }
.units-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 4px 0 10px;
}
.units-hint { font-size: 9px; color: var(--dim); }
.units-list { display: flex; flex-direction: column; }
.unit {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line2);
}
.units-list .unit:last-child { border-bottom: 1px solid var(--line2); }
.unit-thumb {
  position: relative; flex: 0 0 68px; height: 68px;
  overflow: hidden; background: var(--surf3);
}
.unit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.unit-thumb--none {
  display: flex; align-items: center; justify-content: center;
  background: var(--surf2); border: 1px dashed var(--dash); color: var(--dash2);
}
.unit-thumb--none svg { width: 20px; height: 20px; }
.unit-txt { display: flex; flex-direction: column; gap: 3px; }
.unit-no { font-size: 9px; color: var(--dim); }
.unit-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.leader-u, .unit-nophoto { display: none; }
.units-note {
  display: flex; align-items: center; gap: 12px; padding-top: 16px;
  font-size: 12px; line-height: 1.55; color: var(--dim);
}
.units-note svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.units-media { display: none; }

/* ── як працюємо ────────────────────────────────────────────── */
.steps { margin-top: 52px; padding: 48px var(--gut) 44px; }
.steps .sec-head { padding-bottom: 22px; }
.steps .sec-head h2 { color: var(--paper-ink); }
.steps-list { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--paper-line); }
.step:first-child { border-top: 2px solid var(--paper-ink); }
.step-no { font-size: clamp(38px, 5.469vw, 56px); line-height: 1; color: var(--acc); flex-shrink: 0; }
.step-body { display: flex; flex-direction: column; gap: 5px; }
.step-body h3 { font-size: clamp(21px, 2.344vw, 24px); color: var(--paper-ink); }
.step-body p { font-size: 14px; line-height: 1.55; color: var(--paper-body); }

/* ── чому до нас ────────────────────────────────────────────── */
.why { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.why-shot { position: relative; height: 300px; overflow: hidden; }
.why-shot img { width: 100%; height: 100%; object-fit: cover; }
.why-fade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7,9,12,.94) 0%, rgba(7,9,12,.05) 60%);
}
.why-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 7px; padding: 20px;
}
.why-name { font-size: clamp(26px, 3.32vw, 34px); color: var(--white); }
.why-role { font-size: clamp(14px, 1.465vw, 15px); line-height: 1.5; color: var(--body); max-width: 440px; }
.why-body { display: flex; flex-direction: column; gap: 16px; padding: 36px var(--gut) 0; }
.why-body .sec-head h2 { font-size: clamp(40px, 5.078vw, 52px); }
.why-list { display: flex; flex-direction: column; }
.why-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line2); }
.why-list li:last-child { border-bottom: 1px solid var(--line2); }
.why-list li > div { display: flex; flex-direction: column; gap: 4px; }
.dash { width: 14px; height: 2px; background: var(--acc); margin-top: 10px; flex-shrink: 0; }
.why-t { font-size: clamp(16px, 1.66vw, 17px); font-weight: 600; color: var(--ink); }
.why-d { font-size: clamp(14px, 1.465vw, 15px); line-height: 1.55; color: var(--mute); }

/* ── питання ────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 16px; padding: 52px var(--gut) 0; }
.faq-list { display: flex; flex-direction: column; }
.qa { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line2); }
.qa:last-child { border-bottom: 1px solid var(--line2); }
.qa h3 { font-size: clamp(22px, 2.539vw, 26px); color: var(--ink); }
.qa p { font-size: clamp(14px, 1.465vw, 15px); line-height: 1.6; color: var(--mute); }

/* ── заклик ─────────────────────────────────────────────────── */
.cta-band {
  margin-top: 52px; padding: 44px var(--gut);
  background: var(--acc); color: var(--bg);
}
.cta-txt { display: flex; flex-direction: column; gap: 16px; }
.cta-txt .mono { font-size: 9px; font-weight: 700; opacity: .65; }
.cta-txt h2 { font-size: clamp(44px, 6.445vw, 66px); color: var(--bg); }
.cta-txt p { font-size: clamp(16px, 1.758vw, 18px); line-height: 1.55; color: rgba(7,9,12,.78); text-wrap: pretty; }
/* у макеті кнопки й підпис — сусіди в колонці з gap: 16px, тому 16 + 4 */
.cta-acts { position: relative; display: flex; flex-direction: column; gap: 9px; padding-top: 20px; }
.cta-acts .btn-dark { height: 62px; font-size: 18px; gap: 10px; }
.cta-acts .ico { width: 19px; height: 19px; }
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cta-pair .btn { height: 52px; font-size: 15px; }
.cta-note { font-size: 9px; color: rgba(7,9,12,.72); padding-top: 11px; }

/* ── підвал ─────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-direction: column; gap: 22px; padding: 36px var(--gut) 0; }
.foot-about { display: flex; flex-direction: column; gap: 12px; }
.foot-about .brand-name { font-size: 19px; }
.foot-about .brand-mark { width: 26px; height: 26px; }
.foot-about p { font-size: clamp(13px, 1.367vw, 14px); line-height: 1.62; color: var(--mute); }
.foot-legal { font-size: 9px; line-height: 1.9; color: var(--dimmer); }
.foot-k { font-size: 9px; color: var(--dimmer); }
/* у вузькому стані макета навігація стоїть після блоку зв'язку */
.foot-nav { order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot-nav .foot-k { display: none; }
.foot-nav a { padding: 12px 14px; border: 1px solid var(--line2); font-size: 13px; color: var(--link); }
.foot-nav a:hover { color: var(--acc); }
.foot-contact { display: flex; flex-direction: column; gap: 12px; }
.foot-tel { font-size: clamp(28px, 3.125vw, 32px); color: var(--ink); }
.foot-tel:hover { color: var(--acc); }
.foot-msg { display: none; }
.foot-mail { font-size: 14px; color: var(--link); }
.foot-hours { font-size: 13px; line-height: 1.6; color: var(--dim); }
.foot-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin: 22px var(--gut) 0;
  padding: 16px 0 96px; border-top: 1px solid var(--line);
}
.foot-bar .mono { font-size: 9px; line-height: 1.8; color: var(--dimmest); }

/* ── липка кнопка дзвінка ───────────────────────────────────── */
.callbar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; gap: 9px;
  padding: 11px var(--gut) calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line2); background: rgba(7,9,12,.97);
}
.callbar-tel { flex-grow: 1; height: 52px; font-size: 16px; gap: 9px; }
.callbar-msg { width: 52px; height: 52px; flex-shrink: 0; }
.callbar-msg .ico { width: 19px; height: 19px; }

/* ═══ ПЛАНШЕТ: 768px і вище ══════════════════════════════════ */
@media (min-width: 768px) {
  .bar { justify-content: space-between; }
  .bar-2 { display: block; }

  /* на планшеті вже є місце під номер у шапці й довший рядок тексту */
  .hdr-cta { width: auto; height: 50px; padding: 0 20px; font-size: 15px; }
  .hdr-cta .ico { width: 16px; height: 16px; }
  .hdr-cta-txt { display: inline; }
  .hdr-cta .vh { display: none; }
  .lead, .hero-lead, .vitem p, .why-d, .step-body p { max-width: 620px; }
  .hero-shot { height: 340px; }

  .specs { grid-template-columns: repeat(4, 1fr); }
  .spec { padding: 24px 22px 26px; }
  .spec:nth-child(2) { border-bottom: 0; }
  .spec:nth-child(2), .spec:nth-child(3) { border-right: 1px solid var(--line); }
  .spec:nth-child(1) { border-bottom: 0; }
  .spec-k, .spec-u { font-size: 9px; }

  .value { padding: 64px var(--gut) 60px; }
  .fire { height: 250px; }

  .sec-split { gap: 22px; }
  .raw { padding: 68px var(--gut) 0; }
  .raw-list li { padding: 18px 0; }

  .lines { padding: 68px 0 0; }
  .flow { padding: 68px var(--gut) 0; }
  .line-spec > .w { display: flex; }

  /* схема лінії: 2 колонки замість вертикального стеку */
  .stages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .stage + .stage { margin-top: 0; }
  .stage + .stage::before { display: none; }

  .steps { margin-top: 68px; padding: 64px var(--gut) 60px; }
  .steps-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .step { border-top: 1px solid var(--paper-line); }
  .step:first-child, .step:nth-child(2) { border-top: 2px solid var(--paper-ink); }

  .why-shot { height: 380px; }
  .why-body { padding: 48px var(--gut) 0; }

  .faq { padding: 68px var(--gut) 0; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
  .qa:nth-last-child(2) { border-bottom: 1px solid var(--line2); }

  .cta-band { margin-top: 68px; padding: 60px var(--gut); }

  .foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px var(--gut) 0; }
  .foot-about { grid-column: 1 / -1; }
  .foot-nav { order: 0; display: flex; flex-direction: column; gap: 12px; }
  .foot-nav .foot-k { display: block; }
  .foot-nav a { padding: 0; border: 0; font-size: 14px; }
  .foot-msg { display: flex; gap: 8px; }
  .foot-msg a {
    display: flex; align-items: center; gap: 7px; padding: 9px 14px;
    border: 1px solid var(--line3); color: var(--ink); font-size: 13px; font-weight: 600;
  }
  .foot-msg a:hover { color: var(--acc); border-color: var(--acc); }
  .foot-msg .ico { width: 15px; height: 15px; }
  .foot-bar { padding: 16px 0 26px; }

  .callbar { display: none; }
}

/* ═══ ДЕСКТОП: 1024px і вище ═════════════════════════════════ */
@media (min-width: 1024px) {

  html { scroll-padding-top: 96px; }

  .bar { height: 38px; }
  .bar .mono { font-size: 10px; }

  /* шапка */
  .hdr { position: sticky; top: 0; z-index: 20; height: 84px; gap: 40px; }
  .brand { gap: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-sub { display: block; }
  .hdr-nav { display: flex; align-items: center; gap: 34px; }
  .hdr-nav a { font-size: 11px; color: var(--mute); }
  .hdr-nav a:hover { color: var(--acc); }
  .hdr-cta {
    width: auto; height: 50px; padding: 0 24px;
    background: var(--ink); color: var(--bg); font-size: 15px;
  }
  .hdr-cta .ico { width: 16px; height: 16px; }
  .hdr-cta-txt { display: inline; }
  .hdr-cta .vh { display: none; }

  /* герой */
  .hero {
    display: grid; grid-template-columns: 1fr 620px;
    min-height: 620px;
  }
  .hero-glow { top: -220px; left: -120px; width: 900px; height: 700px; }
  .hero-txt {
    grid-column: 1; grid-row: 1;
    justify-content: center; gap: 30px;
    padding: 76px 64px 76px var(--gut);
  }
  .hero-shot { grid-column: 2; grid-row: 1; height: auto; }
  .hero-fade { background: linear-gradient(90deg, #07090C 0%, rgba(7,9,12,.15) 46%, rgba(7,9,12,.55) 100%); }
  .hero-shot .tint-16 { background: rgba(31,95,158,.16); }
  .slot { left: 26px; top: auto; bottom: 24px; padding: 8px 12px; font-size: 9px; gap: 8px; }
  .slot svg { width: 12px; height: 12px; }
  .hero-kicker { gap: 14px; }
  .hero-kicker .mono { font-size: 10px; }
  .hero-kicker .rule { width: 56px; }
  .hero h1 { max-width: 700px; }
  .hero-br { display: block; }
  .hero-lead { line-height: 1.55; max-width: 540px; }
  .hero-btns { flex-direction: row; align-items: center; gap: 0; padding-top: 8px; }
  .hero-btns .btn-acc { height: 66px; padding: 0 34px; font-size: 18px; gap: 12px; }
  .hero-btns .btn-acc .ico { width: 19px; height: 19px; }
  .hero-msg { display: flex; }
  .hero-msg .btn { height: 66px; padding: 0 24px; font-size: 16px; border-left: 0; }

  /* характеристики */
  .spec { gap: 8px; padding: 30px 32px 32px; border-bottom: 0; border-right: 1px solid var(--line); }
  .spec:first-child { padding-left: var(--gut); }
  .spec:last-child { padding-right: var(--gut); border-right: 0; }
  .spec-u { margin-top: -2px; font-size: 10px; }

  /* світла смуга */
  .value {
    display: grid; grid-template-columns: 460px 1fr; gap: 72px;
    padding: 88px var(--gut) 76px;
  }
  .value-head { gap: 22px; padding-bottom: 0; }
  .value .lead { max-width: 400px; }
  .vitem { gap: 28px; border-top: 0; border-bottom: 1px solid var(--paper-line); }
  .vitem:first-child { padding: 0 0 26px; }
  .vitem:nth-child(2) { padding: 26px 0; }
  .vitem:last-child { padding: 26px 0 0; border-bottom: 0; }
  .vitem > div { gap: 8px; }
  .vitem-k { font-size: 11px; padding-top: 6px; }
  .vitem p { max-width: 620px; }

  /* топка */
  .fire { height: 300px; }
  .fire-fade { background: linear-gradient(90deg, rgba(7,9,12,.82) 0%, rgba(7,9,12,.1) 55%, rgba(7,9,12,.5) 100%); }
  .fire-txt { gap: 10px; }

  /* сировина */
  .sec-split {
    display: grid; grid-template-columns: 460px 1fr; gap: 72px;
    align-items: start;
  }
  .raw { padding: 88px var(--gut) 80px; border-bottom: 1px solid var(--line); }
  .raw .sec-head { gap: 20px; }
  .raw .lead { max-width: 380px; }
  .raw-list li {
    display: grid; grid-template-columns: 1fr 200px; gap: 24px;
    padding: 20px 0;
  }

  /* лінії */
  .lines { display: block; padding: 88px var(--gut) 80px; border-bottom: 1px solid var(--line); }
  .lines-head {
    flex-direction: row; align-items: flex-end; justify-content: space-between;
    gap: 60px; padding: 0 0 40px;
  }
  .lines-head .sec-head { gap: 18px; }
  .lines-head .lead { max-width: 400px; }
  .chips, .rail-hint { display: none; }

  .lines-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
  .lines-rail { display: flex; flex-direction: column; border-top: 1px solid var(--line2); }
  .rail-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    width: 100%; text-align: left; padding: 18px 14px;
    border-bottom: 1px solid var(--line2);
    background: transparent; color: var(--mute);
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
  }
  .rail-item .disp { font-size: 26px; color: inherit; }
  .rail-n { font-size: 9px; color: inherit; opacity: .7; }
  .rail-item[aria-pressed="true"] { padding-left: 20px; background: var(--acc); color: var(--bg); }

  .lines-track { display: block; padding: 0; overflow: visible; }
  .rail-pad { display: none; }
  .line-card { display: none; flex: none; border: 0; background: none; }
  .line-card.is-on { display: flex; }
  .gal { height: 540px; }
  .gal-count { top: 16px; right: 16px; padding: 7px 11px; background: rgba(7,9,12,.78); font-size: 11px; }
  .gal-dots { bottom: 16px; gap: 6px; }
  .btn-nav { width: 52px; height: 52px; background: rgba(7,9,12,.6); }
  .gal-prev { left: 16px; }
  .gal-next { right: 16px; }
  .line-body {
    gap: 14px; padding: 30px 34px 34px;
    border: 1px solid var(--line2); border-top: 0;
  }
  .line-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  }
  .line-badge {
    position: static; top: auto; left: auto;
    padding: 6px 10px; font-size: 10px; flex-shrink: 0;
  }
  .line-spec { gap: 11px; padding-top: 4px; }
  .line-spec dt { font-size: 10px; }
  .line-spec dd { font-size: 15px; }
  .line-foot { align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 18px; }
  .line-price { flex-direction: column; align-items: flex-start; gap: 2px; }
  .line-price .mono { font-size: 10px; }
  .line-ask { display: flex; height: 52px; padding: 0 24px; font-size: 15px; }

  /* склад лінії */
  .flow { display: block; padding: 84px var(--gut) 78px; border-bottom: 1px solid var(--line); }
  .flow .lines-head { padding: 0 0 40px; }
  .flow .lines-head .sec-head { gap: 16px; }
  .flow .sec-head h2 { max-width: 640px; }
  .flow .lines-head .lead { max-width: 380px; }

  .stages { display: flex; flex-direction: row; align-items: stretch; gap: 0; }
  .stage {
    flex: 1 1 0; min-width: 0;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 22px 16px 24px;
    border-left: 0; border-top: 2px solid var(--acc);
  }
  .stage-no { padding-top: 0; }
  .stage-body { display: contents; }
  .stage-d { gap: 3px; padding-top: 2px; }
  .stage + .stage { margin-left: 28px; }
  .stage + .stage::before {
    left: -28px; top: 0; bottom: 0;
    width: 28px; height: auto; background: center / 16px 16px no-repeat
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A333C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m13 6 6 6-6 6'/></svg>");
  }

  .units-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 500px;
    gap: 44px; align-items: start; padding-top: 36px;
  }
  /* у макеті колонка вузлів — flex із gap: 2px між усіма рядками */
  .units, .units-list { gap: 2px; }
  .units-head { gap: 20px; padding: 0 0 12px; }
  .unit {
    align-items: baseline; gap: 14px;
    padding: 13px 14px;
    border-top: 0; border-left: 2px solid var(--line2);
    background: transparent; color: var(--mute);
    transition: background .24s ease, color .24s ease, padding .24s ease, border-color .24s ease;
  }
  .units-list .unit:last-child { border-bottom: 0; }
  .unit.is-on {
    padding: 13px 20px; border-left-color: var(--acc);
    background: var(--unit-on); color: var(--white);
  }
  .unit-thumb { display: none; }
  .unit-txt { display: contents; }
  .unit-no { font-size: 10px; color: inherit; opacity: .6; flex-shrink: 0; }
  .unit-name { font-size: 15px; color: inherit; }
  .leader-u { display: block; }
  .unit-nophoto { display: block; font-size: 8px; color: var(--dim); flex-shrink: 0; }
  .units-note { gap: 14px; padding: 20px 20px 0; font-size: 13px; }
  .units-note svg { width: 20px; height: 20px; }

  .units-media {
    display: flex; flex-direction: column; gap: 12px;
    position: sticky; top: 116px;
  }
  .units-shot { position: relative; height: 460px; overflow: hidden; background: var(--surf3); }
  .unit-fade {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(7,9,12,.88) 0%, rgba(7,9,12,0) 52%);
  }
  .unit-cap {
    position: absolute; left: 22px; right: 22px; bottom: 18px;
    font-size: 9px; color: var(--ink);
  }
  .gal-frame--none {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; background: var(--surf2);
    border: 1px dashed var(--dash); color: var(--dash2);
  }
  .gal-frame--none svg { width: 30px; height: 30px; }
  .gal-frame--none .mono { font-size: 9px; color: var(--dim); }
  .gal-frame--none .unit-empty-n { color: var(--dash2); }
  .units-bar { display: flex; align-items: center; gap: 12px; }
  .units-bar .mono { font-size: 10px; color: var(--dim); }
  .units-track { position: relative; flex-grow: 1; height: 2px; background: var(--line2); }
  .units-fill {
    position: absolute; left: 0; top: 0; height: 2px; width: 9.0909%;
    background: var(--acc); transition: width .45s var(--shot-ease);
  }

  /* як працюємо */
  .steps { margin-top: 0; padding: 84px var(--gut) 78px; }
  .steps .sec-head { gap: 16px; padding-bottom: 44px; }
  .steps-list {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0; border-top: 2px solid var(--paper-ink);
  }
  .step {
    flex-direction: column; gap: 12px;
    padding: 24px 26px 30px;
    border-top: 0; border-right: 1px solid var(--paper-line);
  }
  .step:first-child { border-top: 0; padding-left: 0; }
  .step:nth-child(2) { border-top: 0; }
  .step:last-child { padding-right: 0; border-right: 0; }
  .step-body { gap: 12px; }
  .step-body p { line-height: 1.6; }

  /* чому до нас */
  .why { display: grid; grid-template-columns: 620px 1fr; }
  .why-shot { height: auto; min-height: 560px; border-right: 1px solid var(--line); }
  .why-shot figcaption { gap: 10px; padding: 34px 40px; }
  .why-body { gap: 24px; padding: 84px var(--gut) 80px 60px; }
  .why-body .sec-head { gap: 16px; }
  .why-list li { gap: 22px; padding: 20px 0; }
  .why-list li > div { gap: 5px; }
  .dash { width: 18px; margin-top: 12px; }

  /* питання */
  .faq { display: block; padding: 84px var(--gut) 80px; border-bottom: 1px solid var(--line); }
  .faq .sec-head { gap: 16px; padding-bottom: 40px; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
  .qa { gap: 10px; padding: 26px 0; }
  .qa:nth-child(3), .qa:nth-child(4) { border-bottom: 1px solid var(--line2); }
  .qa:last-child { border-bottom: 1px solid var(--line2); }
  .qa p { line-height: 1.62; }

  /* заклик */
  .cta-band {
    display: grid; grid-template-columns: 1fr 420px; gap: 60px;
    align-items: center; margin-top: 0; padding: 76px var(--gut);
  }
  .cta-txt { gap: 18px; }
  .cta-txt .mono { font-size: 10px; }
  .cta-txt p { max-width: 560px; }
  .cta-acts { gap: 10px; padding-top: 0; }
  .cta-note { padding-top: 6px; }
  .cta-acts .btn-dark { height: 70px; font-size: 21px; gap: 12px; }
  .cta-acts .ico { width: 20px; height: 20px; }
  .cta-pair { gap: 10px; }
  .cta-pair .btn { height: 56px; }
  .cta-note { text-align: center; padding-top: 6px; }

  /* підвал */
  .foot-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 60px;
    padding: 56px var(--gut) 44px;
  }
  .foot-about { grid-column: auto; gap: 16px; }
  .foot-about .brand { gap: 12px; }
  .foot-about .brand-mark { width: 30px; height: 30px; }
  .foot-about .brand-name { font-size: 22px; }
  .foot-about p { max-width: 340px; }
  .foot-contact { gap: 14px; }
  .foot-bar { margin: 0; padding: 18px var(--gut) 26px; }
  .foot-bar .mono { line-height: normal; }
}

/* ═══ доступність: без анімацій ══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r1, .r2, .r3, .r4, .r5, .wipe, .rule { animation: none; }
  .gal-strip, .gal-dot, .units-fill, .unit, .rail-item, .cta, .btn-nav, .chip { transition: none; }
  .cta:hover { transform: none; }
}
