/* ============================================================
   Ejektoinženjering — moderni statički sajt
   ============================================================ */
:root {
  --navy: #0b1f33;
  --navy-2: #12304d;
  --ink: #17202a;
  --muted: #5b6875;
  --line: #dde3ea;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --amber: #f4b400;
  --amber-2: #ffd45c;
  --sky: #2f80ed;
  --sky-2: #7cc4ff;
  --ok: #1b8f5a;
  --warn: #b26a00;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .08);
  --font-head: "Sora", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf3; --muted: #a2adb9; --line: #26364a; --bg: #0b1622; --surface: #10202f; --surface-2: #162a3d;
    --navy: #06121e; --navy-2: #0e2436; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8edf3; --muted: #a2adb9; --line: #26364a; --bg: #0b1622; --surface: #10202f; --surface-2: #162a3d;
  --navy: #06121e; --navy-2: #0e2436; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.hidden { display: none !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--amber); margin-bottom: .6rem; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand > svg { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.brand small { display: block; font-weight: 400; font-size: .7rem; letter-spacing: .12em; opacity: .75; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
nav.main a { color: rgba(255, 255, 255, .85); padding: .55rem .8rem; border-radius: 8px; font-weight: 500; font-size: .95rem; display: block; white-space: nowrap; }
@media (max-width: 1240px) { .topbar .brand small { display: none; } }
nav.main a:hover, nav.main a.active { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
nav.main a.cta { background: var(--amber); color: var(--navy); font-weight: 700; }
nav.main a.cta:hover { background: var(--amber-2); }
.lang { display: flex; gap: .2rem; margin-left: .3rem; padding-left: .8rem; border-left: 1px solid rgba(255, 255, 255, .2); flex: none; }
.lang a { font-size: .8rem; font-weight: 700; padding: .35rem .5rem; color: rgba(255, 255, 255, .7); border-radius: 6px; }
.lang a.on { color: var(--navy); background: #fff; }
.lang a:hover { text-decoration: none; color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 8px; padding: .4rem .6rem; font-size: 1.2rem; cursor: pointer; }
.brand { min-width: 0; }
.brand span { min-width: 0; overflow: hidden; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body { overflow-x: hidden; }
.grid > *, .split > *, .two-col > *, .calc-grid > * { min-width: 0; }
@media (max-width: 600px) { .topbar .brand small { display: none; } .brand { font-size: .95rem; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; flex: none; }
  nav.main { position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); padding: .6rem 4vw 1rem; display: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  nav.main.open { display: flex; flex-direction: column; align-items: stretch; }
  nav.main ul { flex-direction: column; align-items: stretch; }
  .lang { margin: .6rem 0 0; padding: .6rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #1b4a78 0%, var(--navy) 55%), var(--navy); color: #fff; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 54ch; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .stats { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero .stats div { border-left: 2px solid var(--amber); padding-left: .8rem; }
.hero .stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.hero .stats span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ejector animation */
.ej-flow { stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.ej-flow.slow { animation-duration: 2.2s; stroke-dasharray: 4 12; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .ej-flow { animation: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #0b1f33; }
.btn.primary:hover { background: var(--amber-2); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: inherit; }
.hero .btn.ghost { color: #fff; }

/* ---------- Sections ---------- */
section.block { padding: clamp(2.5rem, 6vw, 5rem) 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.2rem; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num { font-family: var(--font-head); font-weight: 700; color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.card h3 { margin-top: .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
.card.type { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.card.type .thumb { aspect-ratio: 16/9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card.type .thumb img { width: 100%; height: 100%; object-fit: contain; padding: .8rem; mix-blend-mode: multiply; }
:root[data-theme="dark"] .card.type .thumb img { mix-blend-mode: normal; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.type .thumb img { mix-blend-mode: normal; background: #fff; } }
.card.type .body { padding: 1.1rem 1.3rem 1.3rem; }
.card.type .more { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--sky); font-size: .9rem; }
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.adv li { padding-left: 1.8rem; position: relative; color: var(--ink); }
.adv li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { background: var(--navy); color: #fff; padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.page-head h1 { margin-bottom: .3rem; }
.page-head p { color: rgba(255, 255, 255, .75); max-width: 70ch; margin: 0; }
.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .6); margin-bottom: .8rem; }
.crumbs a { color: rgba(255, 255, 255, .8); }

/* ---------- Prose (sadržaj sa starog sajta) ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.prose img { display: block; margin: 1.2rem auto; background: #fff; border-radius: 10px; padding: .4rem; border: 1px solid var(--line); width: auto; max-width: 100%; max-height: 440px; }
.prose p:has(> img:only-child) { text-align: center; }

.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.prose table td, .prose table th { border: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; text-align: center; }
.prose table[width] td { text-align: center; }
.prose td:has(> img) { border: 0; }
.prose td:has(> img) img { margin: .4rem auto; }
.prose .table-wrap { overflow-x: auto; }
.prose dfn { font-style: normal; font-weight: 700; color: var(--sky); }
.prose p:has(> strong > dfn) { margin-top: 1.4rem; background: var(--surface-2); padding: .5rem .8rem; border-left: 4px solid var(--amber); border-radius: 6px; font-family: var(--font-head); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.prose .accordion details { border: 1px solid var(--line); border-radius: 10px; margin: .5rem 0; background: var(--surface); }
.prose .accordion summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; font-family: var(--font-head); }
.prose .accordion details div { padding: 0 1rem 1rem; color: var(--muted); }
.typenav { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem auto 0; max-width: 860px; }
.typenav a { font-size: .85rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.typenav a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.typenav a:hover { text-decoration: none; border-color: var(--sky); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
table.std { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
table.std th, table.std td { padding: .55rem .7rem; text-align: center; border-bottom: 1px solid var(--line); }
table.std thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.std tbody tr:hover { background: var(--surface-2); }

/* ---------- Forms ---------- */
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.field .unit { font-weight: 400; opacity: .8; }
.field input, .field select, .field textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--sky) 45%, transparent); border-color: var(--sky); }
.field input:disabled { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.field.is-unknown label::after { content: " = ?"; color: var(--amber); font-weight: 800; }
.field .inl { display: grid; grid-template-columns: 1fr 110px; gap: .4rem; }
.hint { font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .3rem; margin: 0 0 1rem; min-width: 0; }
legend { font-family: var(--font-head); font-weight: 600; font-size: .9rem; padding: 0 .4rem; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.msg { padding: .7rem 1rem; border-radius: 10px; font-size: .92rem; margin-bottom: .7rem; border: 1px solid; }
.msg.ok { background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.msg.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); }
.msg.err { background: color-mix(in srgb, var(--err) 10%, var(--surface)); border-color: color-mix(in srgb, var(--err) 40%, transparent); color: var(--err); }

/* ---------- Kalkulator ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 1000px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-form .cstep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem .4rem; margin-bottom: 1rem; }
.calc-form .cstep h3 { font-size: 1rem; color: var(--sky); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.calc-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.calc-form .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 700px) { .calc-form .two, .calc-form .three { grid-template-columns: 1fr; } }
.calc-form .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.calc-out { position: sticky; top: 84px; scroll-margin-top: 90px; }
.calc-out .placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.res h3 { margin-top: .3rem; }
.res h4 { margin: 1.3rem 0 .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.res .sub { color: var(--muted); font-size: .9rem; }
.res table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.res table th, .res table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.res table th { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.res table.dims th { font-size: 1.15rem; color: var(--sky); width: 2.5rem; }
.res table.dims td:nth-child(2) { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.res table.dims td.d { color: var(--muted); font-size: .85rem; }
.res .tag { display: inline-block; font-size: .7rem; background: var(--amber); color: #0b1f33; border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; font-weight: 700; vertical-align: middle; }
.res .std { margin-top: 1rem; font-size: .9rem; background: var(--surface-2); border-radius: 10px; padding: .7rem .9rem; }
.res .actions { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
figure.draw { margin: .8rem 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
figure.draw svg { width: 100%; height: auto; display: block; }
figure.draw figcaption { font-size: .78rem; color: #5b6875; text-align: center; padding: .3rem 0 .2rem; }
/* SVG klase */
.draw .body { fill: #9fd0ff; stroke: #0b1f33; stroke-width: 1.4; }
.draw .pipe { fill: #cfe6ff; stroke: #0b1f33; stroke-width: 1.2; }
.draw .fl { fill: #6fb3f2; stroke: #0b1f33; stroke-width: 1.4; }
.draw .thr { fill: #d9c27a; stroke: #0b1f33; stroke-width: 1.2; }
.draw .thrl { fill: none; stroke: #0b1f33; stroke-width: .6; }
.draw .hose { fill: #b9d9f5; stroke: #0b1f33; stroke-width: 1; }
.draw .weld { fill: #333; }
.draw .axis { stroke: #0b1f33; stroke-width: .8; stroke-dasharray: 14 4 2 4; opacity: .7; }
.draw .ext { stroke: #333; stroke-width: .7; }
.draw .dim { stroke: #b3261e; stroke-width: 1; }
.draw .arh { fill: #b3261e; }
.draw .dl { font: 600 15px var(--font-head); fill: #b3261e; }
.draw .pl { font: 700 14px var(--font-head); fill: #0b1f33; }
.draw .fl-t { font: 12px var(--font-body); fill: #12304d; }

/* ---------- Contact ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.contact-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card a { font-weight: 600; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 3rem 0 2rem; margin-top: 3rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
footer.site h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
footer.site a { color: rgba(255, 255, 255, .8); display: block; padding: .15rem 0; }
footer.site .copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.2rem; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .topbar, footer.site, .calc-form, .page-head p, .actions, .typenav { display: none !important; }
  body { background: #fff; color: #000; }
  .calc-grid { display: block; }
  .res { box-shadow: none; border: 0; }
}


/* ============================================================
   Dopune: tema, logo, interaktivni elementi, nove sekcije
   ============================================================ */
.theme-btn { flex: none; margin-left: .4rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { background: rgba(255,255,255,.16); }
.theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }
:root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="light"] .theme-btn .sun { display: block; } :root[data-theme="light"] .theme-btn .moon { display: none; }
@media (max-width: 960px) { .theme-btn { margin: .6rem 0 0; } }
footer.site .brand small { display: block !important; }
.hero-scheme { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.about-logo { width: 100%; max-width: 420px; margin-top: 1.5rem; }
.dark-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.dark-stats div { border-left: 2px solid var(--amber); padding-left: .8rem; }
.dark-stats b { display: block; font-family: var(--font-head); font-size: 1.6rem; }
.dark-stats span { font-size: .8rem; color: var(--muted); }
.ph-grid { display: flex; align-items: center; gap: 1.6rem; }
.ph-icon { flex: none; width: 96px; height: 96px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 22px; }
.ph-icon svg { width: 100%; height: 100%; }
@media (max-width: 600px) { .ph-icon { width: 64px; height: 64px; padding: 9px; border-radius: 16px; } }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 auto 2rem; max-width: 1100px; }
.strip div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.strip span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .2rem; }
.strip b { font-size: .95rem; font-weight: 600; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }
/* kartice tipova sa ikonicama */
.card.type .thumb { aspect-ratio: 16/8; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.card.type .thumb { color: var(--ink); }
.card.type .thumb svg { width: 112px; height: 112px; transition: transform .25s; }
.card.type:hover .thumb svg { transform: scale(1.08) rotate(-2deg); }
.card.type.mini { display: grid; grid-template-columns: 90px 1fr; grid-template-rows: auto; }
.card.type.mini .thumb { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.card.type.mini .thumb svg { width: 56px; height: 56px; }
.card.type.mini .body { padding: .9rem 1rem; }
.card.type.mini .body h3 { font-size: 1rem; }
.card.type.mini .body p { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.type.mini .num { display: none; }
/* pojavljivanje */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* čipovi i filter */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; cursor: pointer; user-select: none; color: var(--ink); text-decoration: none; }
.chip:hover { border-color: var(--sky); text-decoration: none; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.static { cursor: default; }
.chip.tiny { padding: .1rem .55rem; font-size: .72rem; font-family: inherit; }
.filter { margin: 1.2rem 0 1.6rem; display: grid; gap: .6rem; }
.filter .frow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter .frow b { font-size: .85rem; color: var(--muted); min-width: 5.5rem; }
.filter input[type=search] { flex: 1; min-width: 200px; max-width: 360px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; }
/* istraživač šeme + animacija */
.explorer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; --flow-dur: 2.2s; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }
.ex-canvas { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; color: var(--ink); }
.ex-canvas svg { width: 100%; height: auto; display: block; }
.explorer .part { cursor: pointer; transition: filter .2s; }
.explorer .part:hover, .explorer .part.on { filter: drop-shadow(0 0 6px var(--amber)) brightness(1.15); }
.explorer .part.on rect, .explorer .part.on path { stroke: var(--amber); stroke-width: 3; }
.ex-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ex-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; }
.ex-btn.on { background: var(--amber); border-color: var(--amber); color: #0b1f33; font-weight: 700; }
.ex-info { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; padding: 1rem 1.2rem; min-height: 140px; }
.ex-info h3 { margin-bottom: .4rem; }
.ex-info p { margin: 0; color: var(--muted); }
.ex-slider { display: block; margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.ex-slider input { width: 100%; margin-top: .4rem; accent-color: var(--amber); }
.pt { fill: var(--amber); offset-rotate: 0deg; animation: ej-move var(--flow-dur) linear infinite; }
.pt-m { offset-path: path("M78 200 H286 C340 194 380 194 470 200 S640 206 705 200"); }
.pt-s { fill: var(--sky-2); offset-path: path("M250 330 V270 C250 246 288 236 330 232 S420 214 470 205 S640 208 705 203"); animation-duration: calc(var(--flow-dur) * 1.9); }
.pt-s2 { fill: var(--sky-2); offset-path: path("M262 330 V272 C262 250 300 242 340 236 S420 220 470 210 S640 212 705 205"); animation-duration: calc(var(--flow-dur) * 2.1); }
@keyframes ej-move { from { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pt { animation: none; display: none; } }
/* čarobnjak */
.wz-opts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.wz-opt { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: .7rem 1rem; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, border-color .15s; }
.wz-opt:hover { border-color: var(--sky); transform: translateY(-2px); }
.wz-opt.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.wz-out:empty { display: none; }
.wz-out.in { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* CFD blok */
.cfd { display: grid; gap: 1.5rem; }
.cfd-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 800px) { .cfd-imgs { grid-template-columns: 1fr; } }
.cfd-points { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cfd-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cfd-points { grid-template-columns: 1fr; } }
figure.cfdfig { background: var(--surface) !important; border-color: var(--line) !important; padding: .6rem !important; }
figure.cfdfig figcaption { color: var(--muted) !important; }
figure.cfdfig img.dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) figure.cfdfig img.light { display: none; } :root:not([data-theme="light"]) figure.cfdfig img.dark { display: block; } }
:root[data-theme="dark"] figure.cfdfig img.light { display: none; } :root[data-theme="dark"] figure.cfdfig img.dark { display: block; }
:root[data-theme="light"] figure.cfdfig img.light { display: block; } :root[data-theme="light"] figure.cfdfig img.dark { display: none; }
.cfd-imgs figure, figure.zoom { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .4rem; }
.cfd-imgs img, figure.zoom img { width: 100%; height: auto; border-radius: 8px; display: block; }
.cfd-imgs figcaption, figure.zoom figcaption { font-size: .8rem; color: #5b6875; text-align: center; padding: .4rem 0 .1rem; }
.cfd-points { list-style: none; padding: 0; margin: 0; counter-reset: c; display: grid; gap: .6rem; }
.cfd-points li { counter-increment: c; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem .8rem 3.2rem; position: relative; }
.cfd-points li::before { content: counter(c); position: absolute; left: .9rem; top: .8rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--amber); color: #0b1f33; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.cfd-points b { display: block; font-family: var(--font-head); }
.cfd-points span { color: var(--muted); font-size: .9rem; }
/* vremenska linija */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--amber), var(--sky)); }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 1.6rem; align-items: start; }
.timeline .yr { font-family: var(--font-head); font-weight: 700; color: var(--amber); text-align: right; position: relative; }
.timeline .yr::after { content: ""; position: absolute; right: -24px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--amber); }
.timeline p { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
/* koraci */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; position: relative; }
.steps .n { position: absolute; top: -14px; left: 1.2rem; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #0b1f33; font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }
.steps h3 { margin-top: .4rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }
/* tabela standardnih veličina – pogodak */
table.std tbody tr.hit { background: color-mix(in srgb, var(--amber) 28%, var(--surface)); font-weight: 700; }
/* lightbox */
.prose img.zoomable, figure.zoom img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 20, .9); display: none; place-items: center; z-index: 100; padding: 2rem; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 94vw; max-height: 84vh; background: #fff; border-radius: 10px; padding: .4rem; }
.lightbox img.dark-src { background: #10202f; }
.lightbox .lb-cap { color: #fff; margin-top: .8rem; font-size: .9rem; text-align: center; max-width: 80ch; }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.lightbox > * { grid-row: 1; }
.lightbox { grid-template-rows: 1fr; }
.lightbox img, .lightbox .lb-cap { grid-column: 1; }
.lightbox { display: none; flex-direction: column; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }

.about-brand { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; color: var(--ink); }
.about-brand svg { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.about-brand b { display: block; font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .06em; }
.about-brand small { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }

/* O nama */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text { margin: 0; max-width: none; }
.about-text h2:first-child { border: 0; margin-top: 0; padding-top: 0; }
.about-text h3 { margin-top: 1.2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.company-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.company-card .about-brand { margin-top: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.3rem 0; }
.tile { background: var(--surface-2); border-radius: 12px; padding: .9rem 1rem; border-left: 3px solid var(--amber); }
.tile b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; }
.tile span { font-size: .78rem; color: var(--muted); }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .92rem; }
.kv dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .15rem; }
.kv dd { margin: 0; }
.company-card .chips { margin-top: 1.2rem; }
.company-card .chip { font-size: .78rem; padding: .25rem .65rem; }

/* slike sa natpisima */
.prose figure.fig { margin: 1.6rem auto; text-align: center; max-width: 100%; }
.prose figure.fig img { margin: 0 auto; }
.prose figure.fig figcaption { margin-top: .55rem; font-size: .88rem; font-weight: 600; color: var(--muted); font-family: var(--font-head); line-height: 1.35; max-width: 60ch; margin-left: auto; margin-right: auto; }
.prose .figgrid { display: grid; gap: 1rem 1.4rem; align-items: end; margin: 1.4rem 0; }
.prose .figgrid.c1 { grid-template-columns: 1fr; }
.prose .figgrid.c2 { grid-template-columns: 1fr 1fr; }
.prose .figgrid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .prose .figgrid.c2, .prose .figgrid.c3 { grid-template-columns: 1fr; } }
.prose .figgrid figure.fig { margin: 0; }
.prose .fignote { text-align: center; font-size: .88rem; color: var(--muted); margin: .2rem 0 .8rem; grid-column: 1 / -1; }

table.gloss { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: .6rem; }
table.gloss th { text-align: left; font-family: var(--font-head); color: var(--sky); white-space: nowrap; padding: .5rem .8rem .5rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
table.gloss td { padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }

video.anim { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--line); background: #0b1f33; display: block; box-shadow: var(--shadow); }
