:root {
  --bg: #0a0a11;
  --bg-2: #0f1019;
  --surface: #15161f;
  --surface-2: #1b1c28;
  --surface-3: #212233;
  --ink: #ececf3;
  --ink-2: #c4c4d4;
  --muted: #8e8ea6;
  /* --faint підняли з #5c5c73: оригінал давав 3.04:1 на фоні (треба >=4.5).
     #84849e = 5.43:1 на bg, 4.95:1 на surface, 4.65:1 на surface-2. */
  --faint: #84849e;
  --v: #7b6cff;
  --v-2: #9a8cff;
  --v-3: #5b4be8;
  --c: #3be5d4;
  --c-2: #16b5a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.2);
  --r-s: 11px;
  --r-m: 16px;
  --r-l: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* Градієнти — на самому body, БЕЗ position:fixed.
   Раніше вони жили у body::before{position:fixed}: при скролі композитор
   скидав окремий шар і на кадр проступав чорний фон. */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 40% at 10% 0%, rgba(123, 108, 255, 0.2), transparent 70%),
    radial-gradient(45% 35% at 90% 15%, rgba(59, 229, 212, 0.1), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(91, 75, 232, 0.16), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 1400px;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 88px 0;
}
.kick {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 14px;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 {
  font-weight: 800;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}
h2 {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  margin-bottom: 14px;
}
h2 em,
h1 em {
  font-style: normal;
  color: var(--v-2);
}
h3 {
  font-weight: 700;
  font-size: 19px;
}
.lead {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 640px;
}
p {
  margin: 0;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: 'JetBrains Mono', monospace;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn-p {
  background: var(--v);
  color: #fff;
  box-shadow: 0 8px 28px rgba(123, 108, 255, 0.35);
}
.btn-p:hover {
  background: var(--v-2);
  transform: translateY(-2px);
}
.btn-s {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-s:hover {
  border-color: var(--line-3);
  transform: translateY(-2px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.35);
}
.grid {
  display: grid;
  gap: 16px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--surface-2);
}
.tag.c {
  border-color: rgba(59, 229, 212, 0.4);
  color: var(--c);
  background: rgba(59, 229, 212, 0.08);
}
.est {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Посилання всередині абзацу мають відрізнятись не лише кольором. */
p a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* фокус-стани — однакові для всього інтерактиву */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.dot:focus-visible {
  outline: 2px solid var(--v-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* nav */
/* backdrop-filter на sticky-елементі — друга причина чорних кадрів.
   Замість блюру — щільніший фон і власний шар композитора. */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 17, 0.92);
  transform: translateZ(0);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.logo span {
  color: var(--v-2);
}
nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-2);
}
nav ul a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn.sm {
  padding: 10px 16px;
  font-size: 14px;
}

/* Перемикач мови — той самий візуальний рід, що й ₴/$ у прайсі. */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 3px;
  background: var(--surface-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.lang a,
.lang span {
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--muted);
  text-decoration: none;
}
.lang a:hover {
  color: var(--text);
}
.lang .on {
  background: var(--v);
  color: #fff;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}
.burger span::before {
  top: -5px;
}
.burger span::after {
  top: 5px;
}

/* hero */
.hero {
  padding: 110px 0 70px;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.hero-note span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--c);
  margin-right: 8px;
  vertical-align: 2px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-art svg {
  width: 100%;
  height: 100%;
}

/* лого */
.logo-mark {
  flex: none;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(123, 108, 255, 0.35);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* numbers */
.nums {
  padding: 0 0 60px;
}
.nums-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.nums .grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.num {
  padding: 28px 8px;
}
.num b {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.num small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* хто за нами */
.holding {
  padding: 0 0 30px;
}
.holding-card {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  border-left: 2px solid var(--v);
}
.holding-text {
  flex: 1;
  min-width: 280px;
}
.holding-text h3 {
  font-family: Manrope, sans-serif;
  font-size: 21px;
  margin: 0 0 8px;
}
.holding-text p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
}
.holding-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.holding-stats b {
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 800;
}
.holding-stats small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}

/* why now */
.why .grid {
  margin-top: 32px;
}
.why .card b {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c);
}
.why .card p {
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 14.5px;
}

/* network */
.net-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-top: 32px;
}
.map {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  padding: 18px;
}
.map svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Контур областей. Підсвічування на hover — суто візуальне, кліків немає. */
#ua-map path {
  fill: #1b1c28;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 0.6;
  stroke-linejoin: round;
  transition: fill 0.3s;
}
#ua-map path:hover {
  fill: #212233;
}
.map .dot {
  cursor: pointer;
}
.map .dot circle {
  transition: r 0.2s;
}
.map .dot:hover circle.core {
  r: 7;
}
/* paint-order:stroke малює обводку під текстом — підпис читається поверх контуру. */
.map .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  fill: var(--ink-2);
  paint-order: stroke;
  stroke: #15161f;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.net-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filters button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
}
.filters button.on {
  border-color: var(--v);
  color: var(--v-2);
  background: rgba(123, 108, 255, 0.12);
}
.node-list {
  max-height: 330px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
}
.node .mono {
  color: var(--muted);
  font-size: 12px;
}
.node.hl {
  border-color: rgba(59, 229, 212, 0.5);
}

/* how */
.how .card {
  position: relative;
  padding-top: 28px;
}
.how .card .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 12px;
}
.how .card b.big {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 2px;
}
.how .card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

/* price */
.price .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 28px;
  border-radius: var(--r-l);
}
.price table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}
.price th,
.price td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.price th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-2);
}
.price td.v {
  font-family: 'JetBrains Mono', monospace;
  color: var(--c);
  white-space: nowrap;
}
.price td.u {
  color: var(--muted);
  font-size: 13px;
}
.price tr:last-child td {
  border-bottom: 0;
}
.price-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cur {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 3px;
  background: var(--surface-2);
}
.cur button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cur button.on {
  background: var(--v);
  color: #fff;
}

/* calc */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  color: var(--ink-2);
}
.field input[type='number'],
.field select {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--v);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
}
.toggle input {
  accent-color: var(--v);
  width: 16px;
  height: 16px;
}
.result {
  background: var(--bg-2);
  border: 1px solid rgba(59, 229, 212, 0.25);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(59, 229, 212, 0.15);
}
.result .total {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 4px;
}
.result .total small {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.lines {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.lines div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}
.lines .mono {
  color: var(--ink-2);
}
.result .note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: auto;
  line-height: 1.5;
}

/* insurance */
.ins .grid {
  margin-top: 32px;
}
.ins .card h3 {
  margin-bottom: 8px;
}
.ins .card p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.ins .logos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* who */
.who .card {
  border-left: 2px solid var(--v);
}
.who .card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* hybrid */
.hyb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.hyb .card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.hyb .card li {
  margin-bottom: 6px;
}
.hyb .card.bad {
  opacity: 0.75;
}

/* form */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.lead-form .card {
  padding: 28px;
}
.lead-form input[type='text'],
.lead-form input[type='tel'],
.lead-form input[type='email'],
.lead-form input[type='number'],
.lead-form select,
.lead-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
}
.lead-form textarea {
  min-height: 90px;
  resize: vertical;
}
.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-side .card p {
  color: var(--ink-2);
  font-size: 14.5px;
}
.ok {
  display: none;
  padding: 18px;
  border-radius: var(--r-s);
  border: 1px solid rgba(59, 229, 212, 0.4);
  background: rgba(59, 229, 212, 0.08);
  color: var(--c);
  margin-top: 14px;
}
/* Повідомлення під конкретним полем. Банер .err лишається для випадків,
   коли ми не знаємо, що саме не так (5xx, мережа). */
.field-err {
  display: none;
  font-size: 13px;
  line-height: 1.4;
  color: #ff9b9b;
}
.field-err.on {
  display: block;
}
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #ff7b7b;
}
.err {
  display: none;
  padding: 18px;
  border-radius: var(--r-s);
  border: 1px solid rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.08);
  color: #ff9b9b;
  margin-top: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* hero art */
.mh.dead {
  animation: mhdead 6s ease-in-out infinite;
}
@keyframes mhdead {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.3;
  }
}
.hit {
  animation: hit 6s ease-in-out infinite;
}
@keyframes hit {
  0%,
  35% {
    opacity: 0;
  }
  45%,
  100% {
    opacity: 1;
  }
}

/* ---- flow ---- */
.flow-box {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.35);
}
#flowsvg {
  width: 100%;
  height: auto;
  display: block;
}
#flowsvg .cap {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 14px;
  fill: var(--ink);
}
#flowsvg .cap2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  fill: var(--muted);
  letter-spacing: 0.06em;
}
#flowsvg .zl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  fill: var(--muted);
  letter-spacing: 0.08em;
}
#flowsvg .hubname {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: var(--c);
  letter-spacing: 0.14em;
}
.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--bg-2);
  border: 1px solid rgba(123, 108, 255, 0.35);
  font-size: 12.5px;
  color: var(--ink-2);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  animation: pulse 1.4s ease-in-out infinite;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.flow-steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-s);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.flow-steps b {
  font-family: Manrope, sans-serif;
  color: var(--ink);
  font-size: 14px;
}

/* ---- таймлайн 14s ---- */
.dash {
  stroke-dasharray: 6 8;
  animation: dash 1.2s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -14;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.smoke {
  animation: smoke 2.4s ease-out infinite;
}
.smoke.s2 {
  animation-delay: 1.2s;
}
@keyframes smoke {
  0% {
    opacity: 0.6;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
.dock-stack {
  animation: dock 14s infinite;
}
@keyframes dock {
  0%,
  8% {
    opacity: 1;
  }
  12%,
  86% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.truck.t1 {
  animation: t1 14s ease-in-out infinite;
}
@keyframes t1 {
  0% {
    transform: translate(200px, 262px);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  12% {
    transform: translate(200px, 262px);
  }
  34% {
    transform: translate(400px, 262px);
  }
  40% {
    transform: translate(400px, 262px);
    opacity: 1;
  }
  44% {
    opacity: 0;
  }
  100% {
    transform: translate(400px, 262px);
    opacity: 0;
  }
}
.cargo1 {
  animation: cargo1 14s infinite;
}
@keyframes cargo1 {
  0%,
  8% {
    opacity: 0;
  }
  12%,
  34% {
    opacity: 1;
  }
  38%,
  100% {
    opacity: 0;
  }
}
.inbound {
  animation: inbound 14s infinite;
}
@keyframes inbound {
  0%,
  34% {
    opacity: 0;
  }
  38%,
  60% {
    opacity: 1;
  }
  64%,
  100% {
    opacity: 0;
  }
}
.beam {
  animation: beam 14s infinite;
  opacity: 0;
}
@keyframes beam {
  0%,
  40% {
    opacity: 0;
    transform: translateY(0);
  }
  42% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translateY(60px);
  }
  52%,
  100% {
    opacity: 0;
  }
}
.zone {
  opacity: 0.45;
  animation: zone 14s infinite;
}
.zone.z1 {
  animation-name: zone1;
}
.zone.z2 {
  animation-name: zone2;
}
.zone.z3 {
  animation-name: zone3;
}
@keyframes zone1 {
  0%,
  38% {
    opacity: 0.45;
  }
  40%,
  52% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0.45;
  }
}
@keyframes zone2 {
  0%,
  52% {
    opacity: 0.45;
  }
  54%,
  64% {
    opacity: 1;
  }
  68%,
  100% {
    opacity: 0.45;
  }
}
@keyframes zone3 {
  0%,
  64% {
    opacity: 0.45;
  }
  66%,
  76% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0.45;
  }
}
.worker {
  transform-origin: 20px 46px;
  animation: work 14s infinite;
}
@keyframes work {
  0%,
  52% {
    transform: rotate(0);
  }
  56% {
    transform: rotate(-8deg);
  }
  60% {
    transform: rotate(8deg);
  }
  64% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(0);
  }
}
.rp3 {
  animation: rp 14s infinite;
}
@keyframes rp {
  0%,
  54% {
    transform: translate(0, 0);
  }
  62% {
    transform: translate(-12px, -16px);
  }
  100% {
    transform: translate(-12px, -16px);
  }
}
.picked {
  animation: picked 14s infinite;
}
@keyframes picked {
  0%,
  64% {
    opacity: 0.25;
  }
  68%,
  74% {
    opacity: 1;
  }
  78%,
  100% {
    opacity: 0.25;
  }
}
.flash {
  opacity: 0;
  animation: flash 14s infinite;
}
@keyframes flash {
  0%,
  72% {
    opacity: 0;
  }
  73% {
    opacity: 0.9;
  }
  75%,
  100% {
    opacity: 0;
  }
}
.truck.t2 {
  animation: t2 14s ease-in-out infinite;
}
@keyframes t2 {
  0%,
  74% {
    transform: translate(690px, 262px);
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  92% {
    transform: translate(880px, 262px);
    opacity: 1;
  }
  96% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.cargo2 {
  animation: cargo2 14s infinite;
}
@keyframes cargo2 {
  0%,
  76% {
    opacity: 0;
  }
  78%,
  90% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}
.fly {
  opacity: 0;
}
.fly.f1 {
  animation: f1 14s infinite;
}
.fly.f2 {
  animation: f2 14s infinite;
}
.fly.f3 {
  animation: f3 14s infinite;
}
@keyframes f1 {
  0%,
  90% {
    transform: translate(880px, 262px);
    opacity: 0;
  }
  91% {
    opacity: 1;
  }
  97% {
    transform: translate(1060px, 110px);
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes f2 {
  0%,
  91% {
    transform: translate(880px, 262px);
    opacity: 0;
  }
  92% {
    opacity: 1;
  }
  97.5% {
    transform: translate(1060px, 262px);
    opacity: 1;
  }
  98.5%,
  100% {
    opacity: 0;
  }
}
@keyframes f3 {
  0%,
  92% {
    transform: translate(880px, 262px);
    opacity: 0;
  }
  93% {
    opacity: 1;
  }
  98% {
    transform: translate(1060px, 330px);
    opacity: 1;
  }
  99%,
  100% {
    opacity: 0;
  }
}
.shop {
  opacity: 0.4;
  animation: shopg 14s infinite;
}
.shop.sh2 {
  animation-delay: 0.1s;
}
.shop.sh3 {
  animation-delay: 0.2s;
}
@keyframes shopg {
  0%,
  95% {
    opacity: 0.4;
  }
  97%,
  100% {
    opacity: 1;
  }
}
.tick {
  opacity: 0;
  animation: tick 14s infinite;
}
.sh2 .tick {
  animation-delay: 0.1s;
}
.sh3 .tick {
  animation-delay: 0.2s;
}
@keyframes tick {
  0%,
  96% {
    opacity: 0;
  }
  98%,
  100% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero .wrap,
  .net-wrap,
  .calc,
  .lead-form,
  .hyb {
    grid-template-columns: 1fr;
  }
  /* На вузькому екрані карта ~342 px: 23 підписи або нечитабельні (5 px),
     або накладаються один на одного. Лишаємо саму карту, а назви вузлів
     читаються у списку одразу під нею. */
  .map .lbl {
    display: none;
  }
  .g3,
  .g4 {
    grid-template-columns: 1fr 1fr;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 70px 0 40px;
  }
  .burger {
    display: inline-flex;
  }
  nav ul {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(10, 10, 17, 0.97);
    border-bottom: 1px solid var(--line);
  }
  nav ul.open {
    display: flex;
  }
  nav ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  nav ul li:last-child {
    border-bottom: 0;
  }
  .nav-cta .btn.sm {
    display: none;
  }
  .nav-cta .btn.sm.keep {
    display: inline-flex;
  }
  /* Шапка на мобільному: лого + перемикач + CTA + бургер. Повнорозмірний
     перемикач додає 79 px і виштовхує бургер за екран — тут він компактний. */
  .lang {
    font-size: 11px;
    padding: 2px;
  }
  .lang a,
  .lang span {
    padding: 4px 7px;
  }
  /* калькулятор: картка результату йде під форму */
  .calc .result {
    order: 2;
  }
}
@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .g3,
  .g4,
  .g2,
  .lead-form .row {
    grid-template-columns: 1fr;
  }
  .num b {
    font-size: 34px;
  }
  .price th,
  .price td {
    padding: 12px;
  }
}
@media (max-width: 560px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .flow-box {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  #flowsvg *,
  .hero-art * {
    animation: none !important;
    opacity: 1 !important;
  }
  .pulse-dot {
    animation: none !important;
  }
  .truck.t1 {
    transform: translate(300px, 262px);
  }
  .truck.t2 {
    transform: translate(780px, 262px);
  }
  .fly {
    opacity: 0 !important;
  }
}

/* iPhone SE і вужчі: у шапці не лишається місця на дві мови одразу, тому
   показуємо лише перехід на іншу — активну людина й так бачить по сторінці. */
@media (max-width: 400px) {
  .lang {
    border: 0;
    background: transparent;
    padding: 0;
  }
  .lang .on {
    display: none;
  }
  .lang a {
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    border-radius: 99px;
    padding: 8px 10px;
  }
  /* Компенсуємо ширину перемикача, щоб шапка на найвужчих екранах лишалась
     не гіршою, ніж була до нього. */
  nav .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .nav-cta {
    gap: 8px;
  }
  .nav-cta .btn.sm {
    padding: 9px 12px;
  }
}
