/* Merxio · merxio.ba
   Koncept: "od kaosa do reda" – tamni, mirni okviri (skladište u zoru) izmjenjuju se sa svijetlim, preglednim
   radnim površinama (program). Boja se koristi kao u programu: plava = Merxio, crvena / žuta / zelena = hitnost. */
:root {
  --ink-950: #060b16;
  --ink-900: #0a1222;
  --ink-850: #0d172b;
  --ink-800: #111d34;
  --ink-700: #1b2a45;
  --line-d: rgba(148, 163, 184, .16);
  --line-d2: rgba(148, 163, 184, .28);
  --paper: #f1f4f9;
  --paper-2: #e6ebf3;
  --card: #ffffff;
  --line-l: #d9e0ea;
  --line-l2: #c4cedc;
  --t-dark: #0f172a;
  --t-dark-2: #475569;
  --t-dark-3: #64748b;
  --t-light: #e8edf5;
  --t-light-2: #a3b1c6;
  --t-light-3: #7d8ca3;
  --blue: #2563eb;
  --blue-h: #1d4ed8;
  --blue-2: #60a5fa;
  --blue-soft: #dbe7ff;
  --red: #e5484d;
  --red-soft: #fde4e4;
  --amber: #e29a2d;
  --amber-soft: #fdf0d8;
  --green: #22a06b;
  --green-soft: #dcf3e8;
  --beam: #d9782f;
  --font: "Archivo Variable", "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --gutter: 20px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--t-light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.dark { background: var(--ink-900); color: var(--t-light); color-scheme: dark; }
.light { background: var(--paper); color: var(--t-dark); color-scheme: light; }
.band { padding-block: clamp(76px, 11vw, 144px); position: relative; }

/* ---------- tipografija */
.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.light .eyebrow { color: var(--blue); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.h1 {
  font-size: clamp(2.35rem, 5.7vw, 4.7rem);
  line-height: .98;
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -.025em;
}
.h2 {
  font-size: clamp(1.95rem, 4.4vw, 3.45rem);
  line-height: 1.04;
  font-weight: 740;
  font-stretch: 110%;
  letter-spacing: -.02em;
}
.h3 { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.25; font-weight: 680; font-stretch: 104%; letter-spacing: -.005em; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--t-light-2); max-width: 60ch; margin: 22px 0 0; }
.light .lead { color: var(--t-dark-2); }
.muted { color: var(--t-light-2); }
.light .muted { color: var(--t-dark-2); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- gumbi */
.btn {
  --b: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  font-stretch: 104%;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -12px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--blue-h); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-d2); color: var(--t-light); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(148, 163, 184, .45); }
.light .btn-ghost { background: #fff; border-color: var(--line-l2); color: var(--t-dark); }
.light .btn-ghost:hover { border-color: var(--t-dark-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--blue-2); text-decoration: none; }
.light .link-arrow { color: var(--blue); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- zaglavlje */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 61; background: var(--ink-900); }
.site-head {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--head-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-head.solid { background: rgba(10, 18, 34, .84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-d); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--t-light-2); font-size: .94rem; font-weight: 520; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--t-light); background: rgba(255, 255, 255, .05); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; align-items: center; border: 1px solid var(--line-d2); border-radius: 9px; padding: 3px; font-family: var(--mono); font-size: .75rem; }
.lang a { text-decoration: none; padding: 5px 8px; border-radius: 6px; color: var(--t-light-2); letter-spacing: .06em; }
.lang a[aria-current="true"] { background: rgba(96, 165, 250, .16); color: var(--t-light); }
.head-cta { display: none; min-height: 42px; padding: 0 16px; font-size: .92rem; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-d2); background: transparent; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 11, 22, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.menu nav { display: flex; flex-direction: column; margin-top: 28px; }
.menu nav a { text-decoration: none; font-size: 1.6rem; font-weight: 700; font-stretch: 110%; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.menu .btn { margin-top: auto; width: 100%; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .head-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding: calc(var(--head-h) + clamp(36px, 7vw, 80px)) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 75% 35%, rgba(10, 18, 34, .25), rgba(10, 18, 34, .82) 70%),
    linear-gradient(180deg, rgba(10, 18, 34, .55) 0%, rgba(10, 18, 34, .35) 35%, rgba(10, 18, 34, .92) 82%, var(--ink-900) 100%);
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero .h1 .ln { display: block; }
.hero .h1 .ln:nth-child(2) { color: var(--t-light-2); }
.hero .h1 .ln:nth-child(3) em { font-style: normal; color: var(--blue-2); }
.hero .lead { color: #c3cddb; }
.hero .btn-row { margin-top: 30px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .86rem; color: var(--t-light-2); }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { width: 15px; height: 15px; color: var(--green); }

.hero-stage { position: relative; height: clamp(400px, 112vw, 500px); margin-inline: calc(-1 * var(--gutter)); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 52% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 52% 50%, #000 62%, transparent 100%); }
.stage-glow { position: absolute; inset: 10% 5% 0; background: radial-gradient(50% 50% at 50% 55%, rgba(37, 99, 235, .22), transparent 70%); pointer-events: none; }
.cards { position: absolute; inset: 0; pointer-events: none; }
.ncard {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: min(360px, calc(100% - 32px));
  transform: translate(-50%, 14px) scale(.98);
  opacity: 0;
  background: rgba(13, 23, 43, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  padding: 13px 15px 13px 19px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
.ncard::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--sev, var(--blue-2)); }
.ncard.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ncard.off { opacity: 0; transform: translate(-50%, -12px) scale(.98); }
.ncard-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t-light-3); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.chip-red { background: rgba(229, 72, 77, .16); color: #ff8c8f; }
.chip-amber { background: rgba(226, 154, 45, .16); color: #f5bd67; }
.chip-green { background: rgba(34, 160, 107, .16); color: #5fd3a0; }
.chip-blue { background: rgba(96, 165, 250, .16); color: #93c2ff; }
.ncard-title { font-weight: 680; font-size: .98rem; margin-top: 5px; line-height: 1.3; }
.ncard-body { font-size: .84rem; color: var(--t-light-2); margin-top: 3px; line-height: 1.45; }
.ncard-body b { color: var(--t-light); font-weight: 620; }

.benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(30px, 5vw, 56px);
  background: var(--line-d);
  border: 1px solid var(--line-d);
  border-radius: var(--r-l);
  overflow: hidden;
}
.benefit { background: rgba(10, 18, 34, .9); padding: 16px 14px 18px; min-width: 0; transition: background .35s; }
.benefit.lit { background: rgba(23, 42, 76, .95); }
.benefit svg { width: 22px; height: 22px; color: var(--blue-2); }
.benefit h3 { font-size: .94rem; font-weight: 680; font-stretch: 104%; margin: 10px 0 4px; line-height: 1.25; }
.benefit p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--t-light-2); }
.hero-foot { height: clamp(40px, 6vw, 72px); }

@media (min-width: 720px) {
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit { padding: 20px 18px 22px; }
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 24px; }
  .hero-stage { height: 600px; margin: 0 -40px 0 0; }
  .benefits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ncard { width: 300px; left: auto; bottom: auto; transform: translate(0, 14px) scale(.98); }
  .ncard.on { transform: translate(0, 0) scale(1); }
  .ncard.off { transform: translate(0, -12px) scale(.98); }
  .ncard[data-slot="0"] { left: 2%; top: 7%; }
  .ncard[data-slot="1"] { right: 2%; top: 38%; }
  .ncard[data-slot="2"] { left: 8%; bottom: 6%; }
}

/* ---------- reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- iz prakse */
.practice-top { display: grid; gap: 32px; align-items: center; }
.media-card { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--ink-800); aspect-ratio: 16 / 10; box-shadow: 0 30px 70px -40px rgba(15, 23, 42, .55); }
.media-card video, .media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card .tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(10, 18, 34, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
.stat { background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-m); padding: 18px 16px 20px; min-width: 0; }
.stat-v { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; color: var(--t-dark); }
.stat-v small { font-size: .45em; font-weight: 650; letter-spacing: 0; margin-left: 4px; color: var(--t-dark-2); }
.stat-v.q { font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.1; }
.stat p { margin: 10px 0 0; font-size: .9rem; line-height: 1.45; color: var(--t-dark-2); }
.stat.red .stat-v { color: var(--red); }
@media (min-width: 900px) {
  .practice-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat { padding: 24px 22px 26px; }
}

.compare { margin-top: clamp(48px, 7vw, 90px); }
.compare-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 4px; background: var(--paper-2); border-radius: 12px; border: 1px solid var(--line-l); }
.seg button { border: 0; background: transparent; padding: 10px 16px; border-radius: 9px; font-weight: 640; font-size: .95rem; cursor: pointer; color: var(--t-dark-2); transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--t-dark); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.seg button[data-m="with"][aria-selected="true"] { background: var(--blue); color: #fff; }
.ctable { border: 1px solid var(--line-l); border-radius: var(--r-l); background: var(--card); overflow: hidden; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 18px 20px; border-top: 1px solid var(--line-l); }
.crow:first-child { border-top: 0; }
.ctopic { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t-dark-3); }
.cwo, .cw { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.5; }
.cwo svg, .cw svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.cwo svg { color: var(--red); }
.cw svg { color: var(--green); }
.compare[data-mode="with"] .cwo, .compare[data-mode="without"] .cw { display: none; }
.compare .crow > div:not(.ctopic) { animation: swapin .45s var(--ease); }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chead { display: none; }
@media (min-width: 900px) {
  .seg { display: none; }
  .crow, .chead { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 18px 26px; align-items: start; }
  .chead { display: grid; background: var(--paper); font-weight: 680; border-bottom: 1px solid var(--line-l); }
  .chead span:last-child { color: var(--blue); }
  .compare[data-mode] .cwo, .compare[data-mode] .cw { display: flex; }
  .cw { background: linear-gradient(90deg, rgba(37, 99, 235, .06), transparent); margin: -8px -12px; padding: 8px 12px; border-radius: 8px; }
  .ctopic { padding-top: 3px; }
}

/* ---------- kako radi */
.steps { display: grid; gap: 14px; position: relative; }
.step { position: relative; background: linear-gradient(180deg, rgba(23, 37, 64, .7), rgba(13, 23, 43, .7)); border: 1px solid var(--line-d); border-radius: var(--r-l); padding: 24px 22px 26px; min-width: 0; }
.step-n { font-family: var(--mono); font-size: .75rem; color: var(--blue-2); letter-spacing: .12em; }
.step-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .25); margin: 16px 0 18px; }
.step-ic svg { width: 26px; height: 26px; color: var(--blue-2); }
.step p { margin: 8px 0 0; color: var(--t-light-2); font-size: .97rem; }
.flow { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .flow { display: block; position: absolute; left: 0; right: 0; top: 66px; height: 4px; pointer-events: none; z-index: 0; }
  .flow line { stroke: rgba(96, 165, 250, .5); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; animation: flow 1.6s linear infinite; }
  .step { z-index: 1; }
}
@keyframes flow { to { stroke-dashoffset: -24; } }
.proof { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-d); border-radius: var(--r-l); overflow: hidden; }
.proof > div { padding: 20px 18px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); min-width: 0; }
.proof .pv { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 760; font-stretch: 112%; line-height: 1; letter-spacing: -.02em; }
.proof .pl { font-size: .86rem; color: var(--t-light-2); margin-top: 8px; }
.proof .plabel { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-light-2); padding: 14px 18px; background: rgba(255, 255, 255, .02); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 160, 107, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); } }
@media (min-width: 900px) {
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof > div { padding: 26px 26px; border-bottom: 0; }
  .proof .plabel { border-bottom: 1px solid var(--line-d); }
  .proof > div:last-child { border-right: 0; }
}

/* ---------- funkcije (priča uz scroll) */
.feat-grid { display: grid; gap: 0; }
.chapter { padding-block: 34px; border-top: 1px solid var(--line-l); min-width: 0; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.chapter h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 730; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.12; margin: 10px 0 12px; }
.chapter p { margin: 0; color: var(--t-dark-2); max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.ticks svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }
.see-real { margin-top: 16px; background: none; border: 0; padding: 0; cursor: pointer; font-weight: 620; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.see-real svg { width: 16px; height: 16px; }
.frag-slot { margin-top: 22px; }
.feature-stage { display: none; }
@media (min-width: 1080px) {
  .feat-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .chapter { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding-block: 40px; opacity: .35; transition: opacity .5s; }
  .chapter.cur { opacity: 1; }
  .chapter:first-child { padding-top: 40px; }
  .frag-slot { display: none; }
  .feature-stage { display: block; position: sticky; top: calc(var(--head-h) + 40px); height: min(620px, calc(100vh - var(--head-h) - 80px)); align-self: start; margin-top: 8vh; }
  .feature-stage .appwin { height: 100%; }
}

/* okvir programa */
.appwin { position: relative; border-radius: 16px; background: #f1f5f9; border: 1px solid var(--line-l2); box-shadow: 0 50px 100px -50px rgba(15, 23, 42, .55), 0 20px 40px -30px rgba(15, 23, 42, .35); overflow: hidden; display: grid; grid-template-columns: 44px minmax(0, 1fr); color: var(--t-dark); }
.appwin .side { background: #0f172a; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0; }
.appwin .side img { width: 24px; height: 24px; }
.appwin .side i { width: 18px; height: 3px; border-radius: 2px; background: #334155; display: block; }
.appwin .side i.a { background: var(--blue-2); }
.appwin .main { min-width: 0; display: flex; flex-direction: column; }
.appwin .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-l); background: #fff; font-size: .8rem; color: var(--t-dark-3); }
.appwin .bar b { color: var(--t-dark); font-weight: 680; font-size: .92rem; }
.appwin .bar .co { margin-left: auto; font-family: var(--mono); font-size: .68rem; }
.stage-body { position: relative; flex: 1; min-height: 0; }
.feature-stage .frag { position: absolute; inset: 0; padding: 18px; overflow: hidden; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.feature-stage .frag.active { opacity: 1; transform: none; pointer-events: auto; }
.frag-slot .appwin { grid-template-columns: minmax(0, 1fr); }
.frag-slot .appwin .side { display: none; }
.frag-slot .frag { padding: 14px; }

/* fragmenti sučelja */
.f-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f-kpi { background: #fff; border: 1px solid var(--line-l); border-radius: 10px; padding: 10px 11px; border-bottom: 3px solid var(--c, var(--blue)); min-width: 0; }
.f-kpi b { display: block; font-size: 1.25rem; font-weight: 760; line-height: 1.1; color: var(--c, var(--t-dark)); font-variant-numeric: tabular-nums; }
.f-kpi b.sm { font-size: .98rem; color: var(--t-dark); }
.f-kpi span { font-size: .72rem; color: var(--t-dark-3); line-height: 1.3; display: block; margin-top: 3px; }
.f-list { display: grid; gap: 8px; margin-top: 12px; }
.sup { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line-l); border-left: 3px solid var(--c); border-radius: 10px; padding: 9px 12px 9px 10px; }
.ring { width: 44px; height: 44px; position: relative; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: #e2e8f0; }
.ring .fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 1.2s var(--ease); }
.frag.active .ring .fg, .frag.go .ring .fg { stroke-dashoffset: var(--off); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 760; font-size: .82rem; font-variant-numeric: tabular-nums; }
.sup .nm { min-width: 0; }
.sup .nm small { display: inline-block; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; background: var(--cs); color: var(--c); font-weight: 500; }
.sup .nm b { display: block; font-size: .93rem; margin-top: 2px; }
.sup .nm em { display: block; font-style: normal; font-size: .72rem; color: var(--t-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup .val { text-align: right; font-size: .8rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.sup .val .ob { display: block; margin-top: 4px; background: var(--blue); color: #fff; font-size: .66rem; padding: 4px 8px; border-radius: 6px; font-weight: 620; white-space: nowrap; }
.red-c { --c: var(--red); --cs: var(--red-soft); }
.amb-c { --c: var(--amber); --cs: var(--amber-soft); }
.grn-c { --c: var(--green); --cs: var(--green-soft); }

.ord-banner { display: flex; gap: 8px; align-items: center; background: #fffbea; border: 1px solid #f6e3a1; color: #7a5b07; font-size: .76rem; padding: 8px 10px; border-radius: 8px; }
.ord-banner svg { width: 15px; height: 15px; flex: none; }
.ord-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.ord-photo { background: #fff; border: 1px solid var(--line-l); border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.ord-photo img { width: 100%; height: auto; border-radius: 6px; }
.ord-photo span { font-family: var(--mono); font-size: .62rem; color: var(--t-dark-3); margin-top: 4px; }
.mini-t { width: 100%; border-collapse: collapse; font-size: .74rem; background: #fff; border: 1px solid var(--line-l); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.mini-t th { text-align: left; font-weight: 620; color: var(--t-dark-3); background: #f8fafc; padding: 6px 8px; border-bottom: 1px solid var(--line-l); white-space: nowrap; }
.mini-t td { padding: 6px 8px; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.mini-t tr:last-child td { border-bottom: 0; }
.mini-t .r { text-align: right; }
.ord-row { margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ord-row div { background: #fff; border: 1px solid var(--line-l); border-radius: 8px; padding: 7px 8px; min-width: 0; }
.ord-row span { display: block; font-size: .64rem; color: var(--t-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-row b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.ord-row .q { background: #fff8e1; border-color: #f2d37a; }
.ord-sum { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line-l); border-radius: 10px; padding: 9px 12px; font-size: .8rem; }
.ord-sum b { color: var(--blue); font-size: 1.02rem; font-variant-numeric: tabular-nums; }

.nlist { display: grid; gap: 8px; }
.nitem { background: #fff; border: 1px solid var(--line-l); border-left: 3px solid var(--c); border-radius: 10px; padding: 10px 12px; }
.nitem .t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 680; font-size: .88rem; }
.nitem .t small { font-family: var(--mono); font-size: .58rem; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-l); color: var(--t-dark-3); font-weight: 500; }
.nitem .t small.s { background: var(--cs); color: var(--c); border-color: transparent; }
.nitem p { margin: 3px 0 0; font-size: .78rem; color: var(--t-dark-2); line-height: 1.4; }
.mailto-row { margin-top: 10px; font-family: var(--mono); font-size: .7rem; color: var(--t-dark-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mailto-row span { background: #fff; border: 1px solid var(--line-l); padding: 3px 7px; border-radius: 6px; color: var(--t-dark); }

.obrt-kpi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.obrt-kpi .big { background: #fff; border: 1px solid var(--line-l); border-radius: 10px; padding: 12px; border-bottom: 3px solid var(--red); }
.obrt-kpi .big b { font-size: 1.55rem; font-weight: 780; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.05; display: block; }
.obrt-kpi span { font-size: .72rem; color: var(--t-dark-3); }
.bars { background: #fff; border: 1px solid var(--line-l); border-radius: 10px; padding: 10px 12px; margin-top: 8px; display: grid; gap: 5px; }
.bars .h { font-size: .72rem; font-weight: 640; color: var(--t-dark-2); margin-bottom: 2px; }
.brow { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; gap: 8px; align-items: center; font-size: .7rem; font-variant-numeric: tabular-nums; }
.brow .tr { height: 7px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.brow .tr i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width 1.1s var(--ease); }
.brow.dead .tr i { background: var(--red); }
.frag.active .brow .tr i, .frag.go .brow .tr i { width: var(--w); }
.brow .v { text-align: right; color: var(--t-dark-2); }
.recs { display: grid; gap: 6px; margin-top: 8px; }
.rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; background: #fff; border: 1px solid var(--line-l); border-radius: 8px; padding: 7px 10px; font-size: .74rem; }
.rec small { font-family: var(--mono); font-size: .58rem; padding: 2px 6px; border-radius: 4px; background: var(--cs); color: var(--c); font-weight: 500; letter-spacing: .04em; }
.blu-c { --c: var(--blue); --cs: var(--blue-soft); }

.pdf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #0f172a; color: #fff; border-radius: 10px 10px 0 0; padding: 9px 12px; font-size: .8rem; }
.pdf-head b { font-weight: 680; }
.pdf-head span { font-family: var(--mono); font-size: .65rem; color: #94a3b8; }
.pdf-sum { display: flex; flex-wrap: wrap; gap: 6px; background: #fff; border: 1px solid var(--line-l); border-top: 0; padding: 8px 10px; }
.pdf-sum span { font-size: .66rem; background: #f1f5f9; border-radius: 5px; padding: 2px 7px; color: var(--t-dark-2); }
.pdf-sum span b { color: var(--t-dark); }
.pdf-sum span.r { background: var(--red-soft); color: #b42318; }
.pdf-rows { position: relative; background: #fff; border: 1px solid var(--line-l); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; }
.pdf-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 11px; border-top: 1px solid #eef2f7; background: #fffbeb; font-size: .76rem; }
.pdf-row:first-child { border-top: 0; }
.pdf-row .c { font-family: var(--mono); font-size: .68rem; color: var(--t-dark-2); }
.pdf-row .n { min-width: 0; }
.pdf-row .n b { display: block; font-size: .78rem; }
.pdf-row .n span { color: var(--t-dark-3); font-size: .7rem; }
.pdf-row .d { text-align: right; font-variant-numeric: tabular-nums; font-weight: 680; white-space: nowrap; }
.pdf-row .d s { color: var(--t-dark-3); font-weight: 500; text-decoration: none; }
.pdf-row .d em { display: block; font-style: normal; font-size: .64rem; padding: 1px 6px; border-radius: 4px; margin-top: 3px; text-align: center; }
.pdf-row.pr .d em { background: var(--red); color: #fff; }
.pdf-row.q .d em { background: var(--amber); color: #fff; }
.pdf-row.x .d em { background: #64748b; color: #fff; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .18), transparent); transform: translateY(-50px); pointer-events: none; }
.frag.active .scanline, .frag.go .scanline { animation: scan 2.4s var(--ease) .2s 1 both; }
@keyframes scan { 0% { transform: translateY(-50px); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }

.log-t td:first-child b { display: block; }
.log-t td small { color: var(--t-dark-3); font-size: .66rem; }
.pill { display: inline-block; font-size: .62rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.pill.late { background: var(--red-soft); color: #b42318; }
.pill.ok { background: var(--green-soft); color: #126b45; }
.pill.way { background: var(--blue-soft); color: #1d4ed8; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6, 11, 22, .94); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); color: var(--t-light); }
.lb-top p { margin: 0; font-size: .9rem; color: var(--t-light-2); }
.lb-close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-d2); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; }
.lb-close svg { width: 20px; height: 20px; }
.lb-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px); display: flex; align-items: flex-start; justify-content: center; }
.lb-scroll img { width: 100%; max-width: 1600px; border-radius: 10px; }
@media (max-width: 760px) { .lb-scroll img { width: 1400px; max-width: none; } }

/* ---------- logistika 3D */
.load-grid { display: grid; gap: 28px; align-items: center; }
.load-stage { position: relative; height: clamp(450px, 128vw, 540px); border-radius: var(--r-l); background: radial-gradient(80% 70% at 50% 60%, rgba(37, 99, 235, .14), transparent 70%), var(--ink-850); border: 1px solid var(--line-d); overflow: hidden; }
.load-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.load-labels { position: absolute; inset: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.load-labels .dl { position: absolute; transform: translate(-50%, 0); font-family: var(--mono); font-size: .66rem; color: var(--t-light-2); text-align: center; white-space: nowrap; line-height: 1.25; }
.load-labels .dl b { display: block; color: var(--t-light); font-family: var(--font); font-size: .8rem; }
.load-labels .cnt { position: absolute; transform: translate(-50%, -100%); font-weight: 720; font-size: .9rem; color: var(--t-light); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); transition: color .4s; }
.load-labels .cnt.over { color: #ff8c8f; }
.load-labels .cap { position: absolute; left: 12px; transform: translateY(-100%); font-family: var(--mono); font-size: .64rem; color: #ff8c8f; letter-spacing: .04em; padding-bottom: 4px; }
.load-note { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.load-note .ncard { position: relative; left: auto; bottom: auto; transform: translateY(8px); width: min(100%, 380px); }
.load-note .ncard.on { transform: none; }
.replay { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d2); color: var(--t-light); border-radius: 8px; padding: 7px 11px; font-size: .8rem; cursor: pointer; }
.replay svg { width: 14px; height: 14px; }
.load-facts { display: grid; gap: 10px; margin-top: 24px; }
.load-facts div { display: flex; gap: 12px; align-items: flex-start; color: var(--t-light-2); font-size: .97rem; }
.load-facts svg { width: 20px; height: 20px; color: var(--blue-2); flex: none; margin-top: 2px; }
.load-facts b { color: var(--t-light); font-weight: 650; }
@media (min-width: 1000px) {
  .load-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; }
  .load-stage { height: 520px; }
}

/* ---------- asistent */
.ai-grid { display: grid; gap: 28px; align-items: start; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.qchip { border: 1px solid var(--line-l2); background: #fff; border-radius: 999px; padding: 10px 15px; font-size: .92rem; font-weight: 560; cursor: pointer; text-align: left; transition: border-color .2s, background .2s, color .2s; color: var(--t-dark); }
.qchip:hover { border-color: var(--blue); color: var(--blue); }
.qchip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.ai-note { margin-top: 16px; font-size: .84rem; color: var(--t-dark-3); display: flex; gap: 8px; align-items: flex-start; }
.ai-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.chat { background: #fff; border: 1px solid var(--line-l2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .5); display: flex; flex-direction: column; min-width: 0; }
.chat-head { background: #0f172a; color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 650; font-size: .95rem; }
.chat-head img { width: 22px; height: 22px; }
.chat-head span { margin-left: auto; font-family: var(--mono); font-size: .64rem; color: #94a3b8; font-weight: 400; letter-spacing: .06em; }
.chat-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; min-height: 380px; background: #f8fafc; }
.msg { max-width: 92%; font-size: .92rem; line-height: 1.5; border-radius: 14px; padding: 10px 13px; animation: swapin .35s var(--ease); }
.msg.u { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: #fff; border: 1px solid var(--line-l); border-bottom-left-radius: 4px; color: var(--t-dark); }
.msg.a table { margin-top: 8px; }
.msg .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.msg .tags span { font-family: var(--mono); font-size: .62rem; background: var(--blue-soft); color: var(--blue-h); padding: 2px 7px; border-radius: 4px; }
.msg details { margin-top: 8px; font-size: .8rem; }
.msg summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.msg details p { margin: 6px 0 0; color: var(--t-dark-2); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-foot { border-top: 1px solid var(--line-l); padding: 10px 12px; display: flex; gap: 8px; align-items: center; background: #fff; }
.chat-foot div { flex: 1; border: 1px solid var(--line-l); border-radius: 10px; padding: 9px 12px; color: var(--t-dark-3); font-size: .88rem; }
.chat-foot button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; }
.chat-foot svg { width: 18px; height: 18px; }
@media (min-width: 980px) { .ai-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }

/* ---------- video */
.vid-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-d2); border-radius: 12px; margin-bottom: 18px; }
.vid-tabs button { border: 0; background: transparent; color: var(--t-light-2); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 620; font-size: .9rem; }
.vid-tabs button[aria-selected="true"] { background: rgba(96, 165, 250, .16); color: var(--t-light); }
.vid-tabs button:disabled { opacity: .45; cursor: default; }
.player { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-d); box-shadow: 0 60px 120px -60px rgba(37, 99, 235, .45); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(10, 18, 34, .1), rgba(10, 18, 34, .5)); border: 0; cursor: pointer; color: #fff; }
.play span { width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%; background: rgba(37, 99, 235, .92); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(37, 99, 235, .2); transition: transform .3s var(--ease), box-shadow .3s; }
.play:hover span { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(37, 99, 235, .18); }
.play svg { width: 34%; height: 34%; margin-left: 6%; }
.play em { position: absolute; left: 16px; bottom: 14px; font-style: normal; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(10, 18, 34, .6); padding: 5px 9px; border-radius: 6px; }

/* ---------- kalkulator */
.calc { display: grid; gap: 18px; align-items: start; }
.calc-card { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r-l); padding: 22px 18px; min-width: 0; }
.cur-sw { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 10px; border: 1px solid var(--line-l); }
.cur-sw button { border: 0; background: transparent; padding: 7px 13px; border-radius: 8px; font-weight: 650; font-size: .86rem; cursor: pointer; color: var(--t-dark-2); }
.cur-sw button[aria-pressed="true"] { background: #fff; color: var(--t-dark); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.field { padding: 16px 0; border-top: 1px solid #edf1f6; }
.field:first-of-type { border-top: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .field .lbl { font-weight: 620; font-size: .97rem; }
.field output { font-weight: 720; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--blue); white-space: nowrap; }
.field small { display: block; color: var(--t-dark-3); font-size: .8rem; margin-top: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin-top: 6px; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--p, 50%), #e2e8f0 var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #e2e8f0; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); margin-top: -10px; box-shadow: 0 2px 8px rgba(15, 23, 42, .2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); box-shadow: 0 2px 8px rgba(15, 23, 42, .2); }
.switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tg { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; margin-top: 2px; }
.switch .tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + .tg { background: var(--blue); }
.switch input:checked + .tg::after { transform: translateX(18px); }
.switch input:focus-visible + .tg { outline: 2px solid var(--blue); outline-offset: 2px; }
.adv { margin-top: 6px; border-top: 1px solid #edf1f6; }
.adv summary { cursor: pointer; padding: 16px 0 6px; font-weight: 650; color: var(--blue); list-style: none; display: flex; align-items: center; gap: 8px; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary svg { width: 16px; height: 16px; transition: transform .2s; }
.adv[open] summary svg { transform: rotate(90deg); }
.adv .grid2 { display: grid; gap: 0 22px; }
.adv .field:first-of-type { border-top: 0; }
@media (min-width: 640px) { .adv .grid2 { grid-template-columns: 1fr 1fr; } .adv .field { border-top: 1px solid #edf1f6 !important; } }
.res { background: var(--ink-900); color: var(--t-light); border-radius: var(--r-l); padding: 24px 20px; position: relative; overflow: hidden; min-width: 0; }
.res::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 65%); pointer-events: none; }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.res-top .eyebrow { margin: 0; }
.res .cur-sw { background: rgba(255, 255, 255, .06); border-color: var(--line-d2); }
.res .cur-sw button { color: var(--t-light-2); }
.res .cur-sw button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.total { position: relative; margin-top: 18px; }
.total b { display: block; font-size: clamp(2.4rem, 7vw, 3.8rem); font-weight: 790; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.total span { color: var(--t-light-2); font-size: .95rem; }
.once { position: relative; margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 160, 107, .12); border: 1px solid rgba(34, 160, 107, .3); }
.once span { font-size: .86rem; color: #a7e3c6; }
.once b { font-variant-numeric: tabular-nums; font-size: 1.15rem; color: #5fd3a0; white-space: nowrap; }
.brk { position: relative; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.brk li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .9rem; }
.brk li span { color: var(--t-light-2); min-width: 0; }
.brk li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.brk li i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.brk li i::after { content: ""; display: block; height: 100%; width: var(--w, 0); background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 4px; transition: width .6s var(--ease); }
.brk li.off { opacity: .4; }
.hours { position: relative; margin-top: 18px; font-size: .88rem; color: var(--t-light-2); display: flex; gap: 8px; align-items: flex-start; }
.hours svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue-2); }
.res .btn { position: relative; width: 100%; margin-top: 20px; }
.res-note { position: relative; font-size: .78rem; color: var(--t-light-3); margin: 12px 0 0; }
@media (min-width: 980px) {
  .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; }
  .calc-card { padding: 28px 30px; }
  .res { position: sticky; top: calc(var(--head-h) + 24px); padding: 30px 28px; }
}

/* ---------- industrije */
.ind-tabs { display: none; }
.inds { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.inds::-webkit-scrollbar { display: none; }
.ind { scroll-snap-align: center; background: var(--ink-800); border: 1px solid var(--line-d); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ind-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.ind-media video, .ind-media img { width: 100%; height: 100%; object-fit: cover; }
.ind-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17, 29, 52, .95)); }
.ind-media h3 { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-size: 1.45rem; font-weight: 740; font-stretch: 110%; }
.ind-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ind-q { font-size: 1.04rem; font-weight: 620; line-height: 1.4; margin: 0; }
.ind ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--t-light-2); }
.ind li { display: flex; gap: 10px; }
.ind li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--blue-2); }
.ind-diag { margin-top: auto; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); border-radius: 12px; padding: 12px 14px; }
.ind-diag .lbl { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t-light-3); }
.ind-diag .row { display: flex; flex-direction: column; gap: 0; margin-top: 6px; }
.ind-diag .row b { font-size: 1.3rem; font-weight: 760; font-variant-numeric: tabular-nums; color: #ff8c8f; }
.ind-diag .row span { font-size: .8rem; color: var(--t-light-2); }
.stack { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin-top: 10px; gap: 2px; }
.stack i { display: block; height: 100%; }
.stack .s1 { background: var(--green); }
.stack .s2 { background: var(--amber); }
.stack .s3 { background: var(--red); }
.stack-l { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; font-size: .72rem; color: var(--t-light-2); }
.stack-l span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); vertical-align: 0; }
.ind .link-arrow { font-size: .92rem; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-d2); padding: 0; cursor: pointer; transition: background .2s, width .2s; }
.dots button[aria-current="true"] { background: var(--blue-2); width: 22px; border-radius: 4px; }
@media (min-width: 980px) {
  .inds { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 20px; }
  .dots { display: none; }
}

/* ---------- povjerenje */
.trust { display: grid; gap: 14px; }
.tcard { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r-l); padding: 24px 22px; min-width: 0; }
.tcard svg { width: 28px; height: 28px; color: var(--blue); }
.tcard h3 { margin-top: 16px; }
.tcard p { margin: 8px 0 0; color: var(--t-dark-2); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* ---------- dijagnoza */
.diag { overflow: hidden; }
.diag::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 80%; background: radial-gradient(50% 60% at 50% 100%, rgba(37, 99, 235, .3), transparent 70%); pointer-events: none; }
.diag-grid { display: grid; gap: 36px; align-items: center; position: relative; }
.get { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.get li { display: flex; gap: 12px; align-items: flex-start; }
.get svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.pages { position: relative; height: clamp(300px, 80vw, 440px); perspective: 1400px; }
.page { position: absolute; left: 50%; top: 50%; width: min(64%, 300px); aspect-ratio: 210 / 297; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); transform: translate(-50%, -50%); transition: transform 1.1s var(--ease); }
.page img { width: 100%; height: 100%; object-fit: cover; }
.pages.in .page:nth-child(1) { transform: translate(-92%, -50%) rotate(-9deg) rotateY(14deg); }
.pages.in .page:nth-child(2) { transform: translate(-50%, -54%) rotate(0deg); }
.pages.in .page:nth-child(3) { transform: translate(-8%, -50%) rotate(9deg) rotateY(-14deg); }
.path { position: relative; margin-top: clamp(44px, 6vw, 80px); display: grid; gap: 12px; }
.pstep { border: 1px solid var(--line-d); background: rgba(13, 23, 43, .6); border-radius: var(--r-l); padding: 20px; min-width: 0; }
.pstep.hl { border-color: rgba(96, 165, 250, .5); background: rgba(37, 99, 235, .12); }
.pstep .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.pstep h3 { margin-top: 8px; }
.pstep p { margin: 6px 0 0; color: var(--t-light-2); font-size: .95rem; }
@media (min-width: 960px) {
  .diag-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

/* ---------- kontakt */
.contact { display: grid; gap: 28px; align-items: start; }
.c-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.c-points li { display: flex; gap: 12px; }
.c-points svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 3px; }
.mailbox { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-l); border-radius: 12px; padding: 12px 14px; }
.mailbox span { font-family: var(--mono); font-size: .95rem; user-select: all; }
.mailbox button { margin-left: auto; border: 1px solid var(--line-l2); background: #fff; border-radius: 8px; padding: 7px 11px; font-size: .84rem; cursor: pointer; }
form.card { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r-l); padding: 22px 18px; box-shadow: 0 40px 80px -60px rgba(15, 23, 42, .45); min-width: 0; }
.fgrid { display: grid; gap: 14px; }
.fi label { display: block; font-weight: 620; font-size: .9rem; margin-bottom: 6px; }
.fi label i { font-style: normal; color: var(--red); }
.fi input, .fi select, .fi textarea { width: 100%; border: 1px solid var(--line-l2); border-radius: 10px; background: #fff; padding: 12px 13px; font-size: 1rem; color: var(--t-dark); min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.fi textarea { min-height: 110px; resize: vertical; }
.fi input:focus, .fi select:focus, .fi textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.fi .err { display: none; color: #b42318; font-size: .8rem; margin-top: 5px; }
.fi.bad input, .fi.bad select { border-color: var(--red); }
.fi.bad .err { display: block; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-l2); border-radius: 10px; padding: 11px 13px; cursor: pointer; font-weight: 560; font-size: .95rem; margin: 0; }
.radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.radios label:has(input:checked) { border-color: var(--blue); background: #f5f8ff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--t-dark-2); }
.consent input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form .btn { width: 100%; margin-top: 4px; }
.form-ok { text-align: center; padding: 30px 10px; }
.form-ok svg { width: 52px; height: 52px; color: var(--green); margin: 0 auto 14px; }
.form-msg { font-size: .88rem; color: #b42318; margin: 0; }
@media (min-width: 640px) { .fgrid .half { grid-column: span 1; } .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .full { grid-column: 1 / -1; } .radios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; } form.card { padding: 30px; } }

/* ---------- FAQ */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-l); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 650; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--blue); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--t-dark-2); max-width: 68ch; }

/* ---------- podnožje */
.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-d); background: var(--ink-950); }
.foot-grid { display: grid; gap: 28px; }
.foot img { height: 26px; width: auto; }
.foot p { color: var(--t-light-2); font-size: .92rem; margin: 12px 0 0; max-width: 40ch; }
.foot h4 { margin: 0 0 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-light-3); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--t-light-2); }
.foot a:hover { color: var(--t-light); }
.foot-bot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; color: var(--t-light-3); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- mobilni CTA */
.mcta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(10, 18, 34, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-d);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.mcta.show { transform: none; }
.mcta .btn { min-height: 48px; padding: 0 14px; font-size: .94rem; }
.mcta .btn-primary { flex: 1; }
@media (min-width: 1080px) { .mcta { display: none; } }

.preview-note { position: fixed; left: 50%; top: calc(var(--head-h) + 10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 58; background: #fff7d6; color: #6b4e00; font-size: .8rem; padding: 6px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); text-align: center; }

/* pravna stranica */
.legal { padding-top: calc(var(--head-h) + 60px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 760; font-stretch: 110%; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--t-dark-2); }
.ind-diag .row2 { font-size: .84rem; color: var(--t-light-2); margin-top: 4px; }
.ind-diag .row2 b { color: #f5bd67; font-weight: 700; }
.mini-t th, .mini-t td { white-space: normal; }
.mini-t .r, .mini-t td:first-child { white-space: nowrap; }
.log-t td:first-child { white-space: normal; }
@media (max-width: 520px) {
  .mini-t { font-size: .7rem; }
  .mini-t th, .mini-t td { padding: 5px 6px; }
  .frag-slot .frag { padding: 10px; }
  .ord-top { grid-template-columns: 96px minmax(0, 1fr); }
  .page { width: 52%; }
  .pages.in .page:nth-child(1) { transform: translate(-86%, -50%) rotate(-8deg) rotateY(12deg); }
  .pages.in .page:nth-child(3) { transform: translate(-14%, -50%) rotate(8deg) rotateY(-12deg); }
}
