/* =============================================================
   TEGRAD — katalog betonskih elemenata
   Identitet: beton (topla siva) · grafit · hrđava armatura (narančasta)
   Tipografija: Archivo (široki rez za naslove) · JetBrains Mono (šifre)
   Motivi: oplata s rupama za vezače, presjek T-grede s armaturom,
           šrafura presjeka, kotne linije, sastavnica crteža
   ============================================================= */

:root {
  color-scheme: light;

  --bg: #EEECE7;
  --bg-2: #E4E1DA;
  --surface: #FFFFFF;
  --surface-2: #F7F5F1;
  --surface-3: #F1EEE8;
  --line: #DDD9D0;
  --line-2: #C8C3B8;
  --ink: #1C1F23;
  --ink-2: #464B52;
  --ink-3: #6F747B;
  --steel: #8B929B;

  /* Tegrad plava */
  --accent: #3A53A4;
  --accent-600: #2F4590;
  --accent-bright: #4561C2;
  --accent-light: #9DB0EA;
  --accent-50: #EFF2FA;
  --accent-100: #DCE3F4;

  --ok: #2F7A4E;

  /* klase nosivosti — plava skala, lakše → teže */
  --lc-A15: #E5EAF6;  --lc-A15-t: #253872;
  --lc-B125: #C6D2EE; --lc-B125-t: #1E2F63;
  --lc-C250: #96AADC; --lc-C250-t: #15224B;
  --lc-D400: #3A53A4; --lc-D400-t: #FFFFFF;
  --lc-E600: #25367A; --lc-E600-t: #FFFFFF;
  --lc-F900: #121A3F; --lc-F900-t: #FFFFFF;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(28, 31, 35, .06);
  --shadow-2: 0 18px 34px -18px rgba(28, 31, 35, .3), 0 2px 6px rgba(28, 31, 35, .05);
  --shadow-3: 0 34px 70px -28px rgba(28, 31, 35, .42);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 72px;

  --hatch: repeating-linear-gradient(135deg, rgba(28,31,35,.10) 0 1px, transparent 1px 7px);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .22  0 0 0 0 .2  0 0 0 0 .17  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.3'/></svg>");
  --noise-soft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .22  0 0 0 0 .2  0 0 0 0 .17  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.12'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg) var(--noise-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); transition: top .15s; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- tipografija ---------- */
h1 {
  font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.015em;
}
h2 {
  font-stretch: 118%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
}
h3 { font-size: 1.05rem; font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .tick { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px var(--accent-100); flex: none; }
.mono-label {
  display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* šipka armature (rebrasti čelik) */
.rebar {
  display: block; width: 150px; height: 9px; border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 45%, rgba(0,0,0,.22)),
    repeating-linear-gradient(104deg, #5E646C 0 2px, #A3A9B1 2px 7px);
}

/* kanalska rešetka — razdjelnik */
.grate {
  height: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, #23272C 0 7px, #9EA4AC 7px 10px);
  border-top: 2px solid #4C5259; border-bottom: 2px solid #4C5259;
}

/* ---------- gumbi ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font); font-stretch: 108%; font-weight: 700; font-size: .84rem;
  letter-spacing: .07em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  user-select: none;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(28,31,35,.06); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-50); color: var(--accent-600); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: .74rem; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-text { background: none; border: 0; padding: 0; color: var(--accent-600); font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-stretch: 108%; font-weight: 700; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 2px; border-bottom: 2px solid var(--accent-bright);
}
.link-arrow:hover { color: var(--accent-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- zaglavlje ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.62); font-size: .78rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.88); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-links svg { width: 14px; height: 14px; color: var(--accent-light); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-word { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.36rem; letter-spacing: .04em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.main-nav > a, .nav-item > a {
  display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; position: relative;
  font-stretch: 108%; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.main-nav > a::after, .nav-item > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
  background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.main-nav > a:hover::after, .nav-item:hover > a::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--accent-600); }
.nav-item { position: static; height: 100%; display: flex; }
.nav-item > a svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-item:hover > a svg { transform: rotate(180deg); }

.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.nav-item.suppress .mega { opacity: 0; visibility: hidden; }
.mega-in { display: grid; grid-template-columns: repeat(5, 1fr) 220px; padding-top: 22px; padding-bottom: 26px; }
.mega-col { padding: 0 18px; border-right: 1px solid var(--line); }
.mega-col:first-child { padding-left: 0; }
.mega-cat { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); margin-bottom: 12px; }
.mega-cat:hover { color: var(--accent-600); }
.mega-cat .ill { width: 54px; height: 40px; flex: none; color: var(--ink); }
.mega-cat b { display: block; font-stretch: 112%; font-weight: 800; font-size: .92rem; text-transform: uppercase; line-height: 1.15; }
.mega-cat small { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); }
.mega-col li a { display: block; padding: 5px 0; font-size: .9rem; color: var(--ink-2); }
.mega-col li a:hover { color: var(--accent-600); }
.mega-aside { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.mega-aside a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; color: var(--ink); }
.mega-aside a svg { width: 16px; height: 16px; }
.mega-aside a:hover { border-color: var(--accent-bright); color: var(--accent-600); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; width: 300px; }
.search > svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 40px 0 38px; -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .93rem;
}
.search input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--accent-100); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; background: #fff; }
.search input:focus ~ kbd { display: none; }

.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; text-align: left; }
.sg-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: var(--ink); }
.sg-item:hover, .sg-item.active { background: var(--accent-50); color: var(--ink); }
.sg-thumb { width: 46px; height: 34px; display: grid; place-items: center; background: var(--surface-3); border-radius: 3px; color: var(--ink); overflow: hidden; }
.sg-thumb svg { width: 38px; height: 28px; }
.sg-item b { font-stretch: 112%; font-weight: 800; font-size: .95rem; text-transform: uppercase; }
.sg-item small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-empty { padding: 14px; color: var(--ink-3); font-size: .92rem; }
.sg-all { display: block; padding: 10px 8px 6px; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; font-size: .88rem; }

.btn-inquiry {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  font-stretch: 108%; font-weight: 700; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase;
}
.btn-inquiry:hover, .btn-inquiry.active { background: var(--accent-600); color: #fff; }
.btn-inquiry svg { width: 18px; height: 18px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: #fff; color: var(--accent-600); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.badge.zero { background: rgba(255,255,255,.22); color: #fff; }
.badge.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-sm); position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -6px; left: 0; right: 0; }
.burger span::after { top: 6px; left: 0; right: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- beton (oplata s rupama za vezače) ---------- */
.beton {
  background-color: #E9E6E0;
  background-image:
    radial-gradient(circle at center, rgba(48,46,42,.30) 0 2.3px, rgba(255,255,255,.7) 2.9px 3.8px, transparent 4.4px),
    linear-gradient(90deg, rgba(60,56,50,.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(60,56,50,.075) 1px, transparent 1px),
    var(--noise),
    radial-gradient(120% 100% at 30% 10%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%);
  background-size: 120px 120px, 480px 240px, 480px 240px, 220px 220px, 100% 100%;
}
.beton-soft {
  background-color: #ECE9E3;
  background-image:
    radial-gradient(circle at center, rgba(48,46,42,.2) 0 2px, rgba(255,255,255,.6) 2.6px 3.4px, transparent 4px),
    linear-gradient(90deg, rgba(60,56,50,.06) 1px, transparent 1px),
    var(--noise);
  background-size: 120px 120px, 480px 100%, 220px 220px;
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.5rem, 4.9vw, 4.15rem); line-height: .94; margin: 18px 0 18px; }
.hero h1 .u { color: var(--accent); display: block; }
.hero .rebar { margin: 0 0 22px; }
.hero .lead { margin-bottom: 26px; }

.hero-search { position: relative; max-width: 620px; }
.hs-row {
  display: flex; align-items: center; height: 62px; padding: 0 6px 0 16px; gap: 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 16px 34px -20px rgba(28,31,35,.5);
}
.hs-row > svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.hs-row input { flex: 1 1 auto; width: 0; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 1.04rem; -webkit-appearance: none; appearance: none; }
.hs-row input:focus { outline: none; }
.hs-row:focus-within { box-shadow: 0 0 0 4px var(--accent-100), 0 16px 34px -20px rgba(28,31,35,.5); }
.hs-row .btn { --h: 48px; }
.hs-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.hs-chips .mono-label { margin-right: 6px; }
.hs-chips a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 15px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line-2);
  font-stretch: 108%; font-weight: 700; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
}
.hs-chips a:hover { border-color: var(--accent-bright); color: var(--accent-600); background: #fff; }

/* sadržaj kataloga (desna strana heroja) */
.toc { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-3); overflow: hidden; }
.toc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1.5px solid var(--ink); }
.toc-head b { display: block; font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: .98rem; color: var(--ink); }
.toc-head small { display: block; font-family: var(--font-mono); font-size: .66rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.toc-head .mono { font-size: .74rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 3px; }
.toc-row {
  display: grid; grid-template-columns: 26px 58px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); transition: background .15s;
}
.toc-row:hover { background: var(--accent-50); color: var(--ink-2); }
.toc-idx { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; color: var(--accent); }
.toc-row .ill { width: 58px; height: 40px; color: var(--ink); }
.toc-name { min-width: 0; }
.toc-name b { display: block; font-stretch: 112%; font-weight: 800; font-size: .92rem; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.toc-name small { display: block; font-size: .76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-count { font-family: var(--font-mono); font-size: .76rem; color: var(--ink); white-space: nowrap; }
.toc-row > svg:last-child { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s, color .15s; }
.toc-row:hover > svg:last-child { transform: translateX(3px); color: var(--accent); }
.toc-foot { padding: 14px 18px 16px; }
.toc-foot .lc-meter { margin-top: 8px; }

/* ---------- statistika ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.stat { padding: 22px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-stretch: 125%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat b small { font-size: 1.05rem; color: var(--accent); margin-left: 2px; letter-spacing: 0; }
.stat span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- sekcije ---------- */
.section { padding-top: 84px; padding-bottom: 12px; }
.section.band { padding-bottom: 84px; margin-top: 84px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.band + .section { padding-top: 84px; }
.section-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 20px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1.5px solid var(--ink); }
.section-head .idx { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 3px; padding: 3px 7px; align-self: start; margin-top: 5px; }
.section-head p { margin-top: 8px; color: var(--ink-3); max-width: 70ch; }

/* ---------- primjena ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-tile { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); transition: border-color .15s, background .15s; }
.app-tile:hover { border-color: var(--ink); background: #fff; color: var(--ink-2); }
.app-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--accent); flex: none; }
.app-ico svg { width: 23px; height: 23px; }
.app-tile b { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.app-tile small { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.app-meta { text-align: right; max-width: 112px; }
.app-meta .pill { display: inline-block; font-family: var(--font-mono); font-size: .68rem; line-height: 1.35; padding: 2px 7px; border-radius: 3px; background: var(--ink); color: #fff; }
.app-meta small { margin-top: 5px; }

/* ---------- klase nosivosti ---------- */
.lc { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 7px; border-radius: 3px; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; background: var(--c, var(--lc-A15)); color: var(--t, var(--lc-A15-t)); white-space: nowrap; }
[data-lc="A15"]  { --c: var(--lc-A15);  --t: var(--lc-A15-t); }
[data-lc="B125"] { --c: var(--lc-B125); --t: var(--lc-B125-t); }
[data-lc="C250"] { --c: var(--lc-C250); --t: var(--lc-C250-t); }
[data-lc="D400"] { --c: var(--lc-D400); --t: var(--lc-D400-t); }
[data-lc="E600"] { --c: var(--lc-E600); --t: var(--lc-E600-t); }
[data-lc="F900"] { --c: var(--lc-F900); --t: var(--lc-F900-t); }
.lc-A15-border { box-shadow: inset 0 0 0 1px var(--line-2); }
.lc[data-lc="A15"] { box-shadow: inset 0 0 0 1px #C9D3EC; }
.lc-row { display: flex; flex-wrap: wrap; gap: 4px; }

.lc-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.lc-meter .seg { height: 30px; display: grid; place-items: center; background: #F6F5F2 var(--hatch); border: 1px solid var(--line); color: #A3A7AC; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; border-radius: 3px; }
.lc-meter .seg.on { background: var(--c); color: var(--t); border-color: transparent; }
.lc-meter .seg.on[data-lc="A15"] { border-color: #C9D3EC; }
.lc-meter.lg .seg { height: 42px; font-size: .76rem; text-align: center; line-height: 1.05; }
.lc-meter .seg small { display: block; font-weight: 400; font-size: .58rem; opacity: .8; }

.lc-scale { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lc-step { position: relative; padding: 22px 18px 18px; border-right: 1px solid var(--line); color: var(--ink-2); transition: background .15s; }
.lc-step:last-child { border-right: 0; }
.lc-step:hover { background: var(--surface-2); color: var(--ink-2); }
.lc-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--c); }
.lc-step .ico { width: 44px; height: 32px; color: var(--ink); margin-bottom: 14px; }
.lc-step b { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.lc-step .kn { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }
.lc-step p { font-size: .86rem; margin-top: 10px; line-height: 1.4; }
.lc-step .cnt { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--accent-600); font-weight: 600; }
.lc-step.none .cnt { color: var(--ink-3); font-weight: 400; }

/* ---------- kartice proizvoda ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.cards > .empty { grid-column: 1 / -1; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #EFEDE9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .img-fallback { width: 100%; height: 100%; }
.card-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.card-title { font-stretch: 115%; font-weight: 800; font-size: 1.22rem; letter-spacing: -.005em; line-height: 1.05; text-transform: uppercase; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-600); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-sub { font-size: .88rem; color: var(--ink-2); line-height: 1.35; min-height: 2.4em; }
.card-noclass { font-size: .76rem; color: var(--ink-3); font-style: italic; }
.card-facts { display: grid; grid-template-columns: 1fr; gap: 3px; margin-top: 6px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.card-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.card-facts dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-facts dd { font-family: var(--font-mono); font-size: .78rem; color: var(--ink); font-weight: 600; white-space: nowrap; flex: none; }
.card-match { margin-top: 4px; font-size: .8rem; background: var(--accent-50); color: var(--accent-600); padding: 4px 8px; border-radius: 3px; }
.card-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.card-foot .btn-primary { background: var(--ink); }
.card-foot .btn-primary:hover { background: var(--accent); }
.cmp-check { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); cursor: pointer; user-select: none; }
.cmp-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.cards.list { grid-template-columns: 1fr; gap: 10px; }
.cards.list .card { display: grid; grid-template-columns: 200px 1fr auto; }
.cards.list .card-media { aspect-ratio: auto; height: 100%; min-height: 150px; border-bottom: 0; border-right: 1px solid var(--line); }
.cards.list .card-sub { min-height: 0; }
.cards.list .card-facts { max-width: 520px; }
.cards.list .card-foot { flex-direction: column; justify-content: center; align-items: stretch; border-top: 0; border-left: 1px solid var(--line); min-width: 160px; }

/* ---------- koraci ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 26px 0 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: .78rem; margin-bottom: 16px; }
.step::after { content: ""; position: absolute; left: 46px; right: 16px; top: 17px; border-top: 1.5px dashed var(--line-2); }
.step:last-child::after { display: none; }
.step h3 { font-stretch: 118%; font-weight: 800; font-size: 1.12rem; text-transform: uppercase; margin-bottom: 8px; }
.step p { font-size: .94rem; }

/* ---------- o tvrtki (početna) ---------- */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.at-photo { position: relative; margin: 0; padding: 28px 0 0 22px; }
.photo { position: relative; overflow: hidden; background: #cfccc4; aspect-ratio: 870 / 483; border: 6px solid #fff; box-shadow: var(--shadow-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.dim { position: absolute; color: var(--ink-3); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.dim-top { left: 28px; right: 6px; top: 4px; height: 14px; border-left: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); }
.dim-top::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid var(--ink-3); }
.dim-top span { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); background: var(--bg); padding: 0 8px; white-space: nowrap; }
.dim-left { left: 2px; top: 34px; bottom: 6px; width: 14px; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.dim-left::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px solid var(--ink-3); }
.stamp {
  position: absolute; right: -8px; bottom: -18px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-2); transform: rotate(-9deg); border: 3px solid #fff;
}
.stamp b { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: .95; }
.stamp small { display: block; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; }
.at-copy .lead { margin-bottom: 20px; }
.at-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.at-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .94rem; }
.at-list b { font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: .82rem; color: var(--ink); letter-spacing: .03em; padding-top: 2px; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; align-items: center; }
.ref-chips .mono-label { width: 100%; margin-bottom: 4px; }
.ref-chips span:not(.mono-label) { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface); font-weight: 600; font-size: .84rem; color: var(--ink); }
.at-copy .link-arrow { margin-top: 22px; }

/* ---------- reference ---------- */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.ref { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ref b { display: block; font-stretch: 108%; font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.ref small { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.partners { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.partners .mono-label { margin-right: 6px; }
.partner { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 3px; font-stretch: 112%; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); }

/* ---------- CTA traka ---------- */
.cta-band {
  margin-top: 96px; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle, rgba(255,255,255,.13) 1.4px, transparent 1.8px),
    linear-gradient(120deg, #3A53A4, #2A3E86);
  background-size: 14px 14px, 100% 100%;
}
.cta-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 60ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* ---------- zaglavlje stranice ---------- */
.page-head { border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-600); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1; }
.page-head .lead { margin-top: 10px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tab { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(255,255,255,.75); font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.cat-tab:hover { border-color: var(--ink); color: var(--ink); }
.cat-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-tab small { font-family: var(--font-mono); font-size: .68rem; opacity: .7; }

/* ---------- katalog ---------- */
.catalog { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; padding-top: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scrollbar-width: thin; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1.5px solid var(--ink); position: sticky; top: 0; background: #fff; z-index: 2; }
.filters-head h2 { font-size: 1.05rem; }
.close-filters { display: none; }
.facet { padding: 14px 16px 16px; border-bottom: 1px solid var(--line); }
.facet:last-of-type { border-bottom: 0; }
.facet-title { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.facet input[type="search"] { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9rem; }
.facet input[type="search"]:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--accent-100); }
.chk { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .9rem; color: var(--ink); cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.chk .n { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.chk.zero { color: var(--ink-3); opacity: .5; }
.chk.parent { font-weight: 700; }
.subs { padding-left: 25px; margin: 0 0 6px 7px; border-left: 1px solid var(--line); }
.subs .chk { font-size: .85rem; color: var(--ink-2); }
.lc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lc-chip { height: 38px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); font-family: var(--font-mono); font-size: .76rem; font-weight: 700; color: var(--ink-2); display: grid; place-items: center; line-height: 1; }
.lc-chip small { display: block; font-size: .56rem; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.lc-chip:hover { border-color: var(--ink); }
.lc-chip[aria-pressed="true"] { background: var(--c); color: var(--t); border-color: transparent; }
.lc-chip[aria-pressed="true"][data-lc="A15"] { border-color: #B3C1E6; }
.lc-chip[aria-pressed="true"] small { color: inherit; opacity: .8; }
.lc-chip.zero { opacity: .45; }
.facet-note { font-size: .82rem; margin-top: 10px; }
.filters-foot { display: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.open-filters { display: none; }
.result-count { font-size: .92rem; color: var(--ink-3); }
.result-count b { color: var(--ink); font-family: var(--font-mono); }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: 14px; font-size: .8rem; color: var(--accent-600); font-weight: 600; }
.fchip button { width: 18px; height: 18px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; }
.fchip button:hover { background: rgba(47,69,144,.12); }
.fchip svg { width: 12px; height: 12px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-3); }
.sort select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-size: .86rem; color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { width: 34px; height: 32px; border: 0; background: #fff; color: var(--ink-3); display: grid; place-items: center; }
.view-toggle button + button { border-left: 1px solid var(--line-2); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 56px 24px; background: var(--surface) var(--hatch); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .ill { width: 140px; height: 90px; margin: 0 auto 14px; color: var(--ink-3); }
.empty h3 { font-stretch: 118%; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; }
.empty p { margin: 8px auto 18px; max-width: 46ch; color: var(--ink-3); }

/* ---------- stranica proizvoda ---------- */
.pd-head { padding-top: 22px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; padding-top: 6px; padding-bottom: 36px; align-items: start; }
.pd-media { position: sticky; top: calc(var(--header-h) + 24px); }
.pd-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #EFEDE9; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 14px; }
.pd-main .img-fallback { width: 100%; height: 100%; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-2); }
.zoom-hint svg { width: 14px; height: 14px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 84px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #EFEDE9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent-100); }
.pd-info .eyebrow { margin-top: 6px; }
.pd-title { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: .95; margin: 14px 0 6px; }
.pd-subtitle { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.pd-short { margin-top: 14px; font-size: 1.02rem; max-width: 58ch; }
.pd-lc { margin-top: 22px; }
.pd-lc .lc-meter { margin-top: 8px; }
.pd-noclass { display: block; margin-top: 6px; font-size: .9rem; color: var(--ink-2); padding: 10px 12px; background: var(--surface-2) var(--hatch); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); }
.facts div { padding: 12px 14px; border-right: 1px solid var(--line-2); min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { font-stretch: 104%; font-weight: 800; font-size: 1.06rem; color: var(--ink); line-height: 1.2; margin-top: 3px; overflow-wrap: break-word; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cmp-toggle input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.pd-apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pd-apps a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); font-size: .82rem; color: var(--ink-2); }
.pd-apps a:hover { border-color: var(--ink); color: var(--ink); }
.pd-apps svg { width: 15px; height: 15px; color: var(--accent); }

.pd-subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(238,236,231,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-subnav .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pd-subnav button { height: 46px; padding: 0 14px; border: 0; background: none; white-space: nowrap; font-stretch: 108%; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); border-bottom: 3px solid transparent; }
.pd-subnav button:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.pd-subnav button.on { color: var(--ink); border-bottom-color: var(--accent-bright); }

.pd-sec { padding-top: 44px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.sec-head p { color: var(--ink-3); font-size: .92rem; margin-top: 6px; }
.check-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; background: #FFF8EB; border: 1px solid #F0D9AE; border-radius: var(--radius-sm); font-size: .84rem; color: #6B4A10; }
.check-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 10px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #FBFAF8; }
.tbl tr.hl td { background: var(--accent-50) !important; }
.tbl tr.hl td:first-child { box-shadow: inset 4px 0 0 var(--accent-bright); }
.tbl .num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.tbl .t-pos { font-family: var(--font-mono); color: var(--ink-3); width: 48px; }
.tbl .t-name { font-weight: 700; }
.tbl .t-desc { color: var(--ink-2); }
.tbl .t-mono { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.tbl .t-add { width: 1%; white-space: nowrap; }
.code { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--surface-2); font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.code:hover { border-color: var(--accent-bright); color: var(--accent-600); background: #fff; }
.code svg { width: 12px; height: 12px; opacity: .5; }
.code-chip { display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.qty-add { display: inline-flex; gap: 6px; align-items: center; }
.qty-add input { width: 64px; height: 34px; padding: 0 6px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .88rem; background: #fff; }
.qty-add input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-100); }

/* kalkulator */
.calc { display: grid; grid-template-columns: 1fr 1.2fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.calc > div, .calc > form { padding: 22px; }
.calc-copy { background: var(--surface-2) var(--hatch); border-right: 1px solid var(--line-2); }
.calc-copy h2 { font-size: 1.35rem; margin-bottom: 8px; }
.calc-copy p { font-size: .93rem; }
.calc-copy .ill { width: 150px; height: 70px; color: var(--ink); margin-top: 18px; }
.calc-form { display: grid; gap: 12px; align-content: start; }
.field { display: grid; gap: 5px; }
.field > span, .field > label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-size: .94rem; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-100); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--accent); }
.field .err { font-size: .78rem; color: var(--accent-600); display: none; }
.field.invalid .err { display: block; }
.calc-out { border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.calc-res { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.calc-res dt { font-size: .86rem; color: var(--ink-2); }
.calc-res dd { font-family: var(--font-mono); font-weight: 700; color: var(--ink); text-align: right; }
.calc-big { font-stretch: 125%; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ink); }
.calc-big small { font-size: 1rem; color: var(--accent); margin-left: 4px; font-stretch: 100%; }
.calc-out .btn { margin-top: auto; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.spec-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spec-list div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { font-size: .86rem; color: var(--ink-3); }
.spec-list dd { font-size: .94rem; color: var(--ink); font-weight: 600; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.side-box + .side-box { margin-top: 14px; }
.side-box h3 { font-stretch: 118%; font-weight: 800; font-size: .98rem; text-transform: uppercase; margin-bottom: 10px; }
.side-box p { font-size: .9rem; }
.gloss { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .86rem; }
.gloss dt { font-family: var(--font-mono); font-weight: 700; color: var(--ink); font-size: .78rem; }
.gloss dd { color: var(--ink-2); }
.side-box.dark { background: var(--ink); color: rgba(255,255,255,.75); border-color: var(--ink); position: relative; overflow: hidden; }
.side-box.dark::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent-bright); }
.side-box.dark h3 { color: #fff; }
.side-box .btn { margin-top: 14px; }
.contact-lines { display: grid; gap: 8px; margin-top: 12px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.contact-lines a:hover { color: var(--accent-100); }
.contact-lines svg { width: 16px; height: 16px; color: var(--accent-light); }

/* ---------- presjek (klase) ---------- */
.xsec-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 0; overflow-x: auto; }
.xsec { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-mono); }
.xsec .zone { cursor: pointer; }
.xsec .zone-bg { fill: transparent; transition: fill .15s; }
.xsec .zone:hover .zone-bg { fill: rgba(58,83,164,.05); }
.xsec .zone.on .zone-bg { fill: rgba(58,83,164,.10); }
.xsec .zone:focus { outline: none; }
.xsec .zone:focus-visible .zone-bg { stroke: var(--accent-bright); stroke-width: 2; }
.xsec .zcode { font-family: var(--font); font-stretch: 125%; font-weight: 800; font-size: 24px; fill: var(--ink); }
.xsec .zone.on .zcode { fill: var(--accent); }
.xsec .zkn { font-size: 12px; fill: var(--ink-3); }
.xsec .zbar { fill: var(--line); }
.xsec .zone.on .zbar { fill: var(--accent-bright); }
.xsec .lbl { font-size: 11px; fill: var(--ink-3); }
.xsec-panel { display: grid; grid-template-columns: 240px 1fr; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.xsec-panel .xp-class { padding: 22px; background: var(--c); color: var(--t); }
.xp-class b { display: block; font-stretch: 125%; font-weight: 800; font-size: 2.8rem; line-height: .9; }
.xp-class span { font-family: var(--font-mono); font-size: .8rem; }
.xp-class p { margin-top: 14px; font-weight: 700; }
.xp-body { padding: 20px 22px; min-width: 0; }
.xp-body .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: left; }
.xp-body p { max-width: 70ch; }
.xp-prods { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.xp-prods a { padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-2); font-stretch: 112%; font-weight: 800; font-size: .78rem; text-transform: uppercase; color: var(--ink); }
.xp-prods a:hover { border-color: var(--accent-bright); color: var(--accent-600); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.note-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.note-card .mono-label { color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.note-card h3 { font-stretch: 118%; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.note-card p { font-size: .92rem; }

/* ---------- primjena (stranica) ---------- */
.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.app-card .app-ico { margin-bottom: 12px; }
.app-card h3 { font-stretch: 118%; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; }
.app-card p { font-size: .9rem; margin-top: 6px; }
.app-card .rec { margin-top: 12px; font-size: .82rem; color: var(--ink-3); }
.app-card .rec b { font-family: var(--font-mono); color: var(--ink); }
.app-card ul { margin: 14px 0 16px; display: grid; gap: 4px; }
.app-card li a { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--ink); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.app-card li a:hover { color: var(--accent-600); }
.app-card li span { color: var(--ink-3); font-size: .8rem; text-align: right; }
.app-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- upit ---------- */
.inq { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; padding-top: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1.5px solid var(--ink); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.1rem; }
.panel-body { padding: 18px; }
.inq-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 90px 36px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.inq-item:last-child { border-bottom: 0; }
.inq-thumb { width: 72px; height: 56px; background: #EFEDE9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.inq-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.inq-thumb .img-fallback { width: 100%; height: 100%; }
.inq-name { font-stretch: 115%; font-weight: 800; font-size: 1rem; text-transform: uppercase; color: var(--ink); }
.inq-sub { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.3; }
.inq-var { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
.inq-var select { height: 32px; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 8px; font-size: .82rem; background: #fff; }
.inq-mass { text-align: right; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty button { width: 32px; height: 34px; border: 0; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.qty button:hover { background: var(--bg-2); }
.qty button svg { width: 14px; height: 14px; }
.qty input { width: 52px; height: 34px; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); text-align: center; font-family: var(--font-mono); font-size: .88rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line); }
.quick-add .field { flex: 1; min-width: 140px; }
.quick-add .field.q { flex: 0 0 90px; min-width: 0; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1.5px solid var(--ink); }
.summary div { padding: 14px 16px; border-right: 1px solid var(--line); }
.summary div:last-child { border-right: 0; }
.summary b { display: block; font-stretch: 120%; font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--ink); }
.summary span { font-size: .74rem; color: var(--ink-3); }
.inq-form { display: grid; gap: 12px; }
.inq-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-line { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.form-note { font-size: .76rem; color: var(--ink-3); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; }

/* ---------- usporedba ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 28px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; font-size: .9rem; }
.cmp-table th:last-child, .cmp-table td:last-child { border-right: 0; }
.cmp-table tbody th { width: 200px; font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
.cmp-head { display: grid; gap: 8px; }
.cmp-head .img { aspect-ratio: 4/3; background: #EFEDE9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.cmp-head .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cmp-head .img .img-fallback { width: 100%; height: 100%; }
.cmp-head a.t { font-stretch: 115%; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); line-height: 1; }
.cmp-head .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-table tr.same td { color: var(--ink-3); }
.cmp-only-diff tr.same { display: none; }

/* ---------- o nama / kontakt ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-copy p + p { margin-top: 14px; }
.about-copy .lead { margin-bottom: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius-sm); padding: 20px; }
.pillar:first-child { border-top-color: var(--accent-bright); }
.pillar h3 { font-stretch: 118%; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin: 6px 0 8px; }
.pillar p { font-size: .92rem; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery button { padding: 0; border: 0; background: #cfccc4; border-radius: 3px; overflow: hidden; aspect-ratio: 870 / 483; cursor: zoom-in; }
.gallery button:first-child { grid-column: span 4; grid-row: span 2; }
.gallery button:not(:first-child) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-cap { margin-top: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; padding-top: 28px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.c-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.c-card .app-ico { width: 44px; height: 44px; }
.c-card .mono-label { margin-bottom: 2px; }
.c-card b, .c-card a.big { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.c-card a.big:hover { color: var(--accent-600); }
.c-card p { font-size: .88rem; color: var(--ink-3); }
.people { display: grid; gap: 0; margin-top: 4px; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people b { font-weight: 700; color: var(--ink); }
.people a { font-family: var(--font-mono); font-size: .84rem; font-weight: 600; }
.map { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(1.02); }
.map-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- podnožje ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.foot-brand p { font-size: .9rem; margin-top: 14px; max-width: 36ch; }
.site-footer h3 { font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.site-footer nav a { display: block; padding: 4px 0; font-size: .92rem; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--accent-600); }
.foot-contact { display: grid; gap: 6px; font-size: .92rem; }
.foot-contact a { color: var(--ink); font-weight: 700; }
.foot-contact a.foot-person { font-weight: 500; color: var(--ink-2); font-size: .86rem; }
.foot-contact a.foot-person:first-of-type { margin-top: 4px; }
.tblock { display: grid; grid-template-columns: 2fr 2fr 1.4fr 1.4fr 1fr 1.2fr; border: 1.5px solid var(--ink); margin-bottom: 28px; background: var(--surface); }
.tblock > div { padding: 8px 12px; border-right: 1px solid var(--ink); min-width: 0; }
.tblock > div:last-child { border-right: 0; }
.tblock .mono-label { font-size: .56rem; color: var(--accent); }
.tblock b { display: block; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tblock .tb-brand { display: flex; align-items: center; gap: 10px; }
.tblock .tb-brand svg { width: 28px; height: 28px; flex: none; }
.tblock .tb-brand b { font-family: var(--font); font-stretch: 125%; font-weight: 800; font-size: .95rem; letter-spacing: .04em; }
.foot-legal { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 28px; font-size: .78rem; color: var(--ink-3); }
.foot-legal .powered { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; }
.foot-legal .powered a { color: var(--ink); font-weight: 700; border-bottom: 1.5px solid var(--accent-bright); }
.foot-legal .powered a:hover { color: var(--accent-600); }

/* ---------- plutajući elementi ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 420px; background: var(--ink); color: #fff; padding: 12px 14px 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-3); font-size: .9rem; animation: toastIn .22s ease; border-left: 4px solid var(--accent-bright); }
.toast b { color: #fff; }
.toast a { color: var(--accent-light); font-weight: 700; white-space: nowrap; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cmp-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-3); max-width: calc(100vw - 32px); }
.cmp-tray .mono-label { white-space: nowrap; }
.cmp-tray .chips { display: flex; gap: 6px; overflow-x: auto; }
.cmp-tray .chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); font-stretch: 112%; font-weight: 800; font-size: .76rem; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.cmp-tray .chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; padding: 0; color: var(--ink-3); }
.cmp-tray .chip button:hover { background: var(--bg-2); color: var(--ink); }
.cmp-tray .chip svg { width: 12px; height: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(20,22,26,.88); display: grid; place-items: center; padding: 32px; cursor: zoom-out; animation: fade .18s ease; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-3); cursor: default; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.img-fallback { display: grid; place-items: center; color: var(--steel); background: #F2F0EC var(--hatch); }
.img-fallback svg { width: 56%; height: auto; max-height: 76%; }
.print-only { display: none; }

/* ---------- odziv ---------- */
@media (max-width: 1440px) {
  .header-in { gap: 18px; }
  .search { width: 240px; }
  .main-nav > a, .nav-item > a { padding: 0 10px; }
  .main-nav > a::after, .nav-item > a::after { left: 10px; right: 10px; }
  .mega-in { grid-template-columns: repeat(5, 1fr); }
  .mega-aside { display: none; }
}

@media (max-width: 1140px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .burger { display: inline-block; }
  .search { width: 280px; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 1px); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; height: auto;
    background: #fff; padding: 8px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
  .nav-open { overflow: hidden; }
  .main-nav > a, .nav-item > a { height: 54px; padding: 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .main-nav > a::after, .nav-item > a::after { display: none; }
  .nav-item { flex-direction: column; height: auto; }
  .nav-item > a svg { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; }
  .nav-item.suppress .mega { opacity: 1; visibility: visible; }
  .mega-in { grid-template-columns: 1fr 1fr; padding: 10px 0 12px; gap: 12px; }
  .mega-col { padding: 0; border: 0; }
  .mega-col ul { display: none; }
  .mega-cat { margin: 0; }
  .header-tools { gap: 8px; }
}

@media (max-width: 1020px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 40px; }
  .hero-search { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .app-grid, .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-scale { grid-template-columns: repeat(3, 1fr); }
  .lc-step:nth-child(3) { border-right: 0; }
  .lc-step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .step::after { display: none; }
  .about-teaser { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .at-photo { max-width: 620px; }
  .refs { grid-template-columns: repeat(3, 1fr); }

  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; left: 0; top: 0; bottom: 0; z-index: 110; width: min(360px, 92vw); max-height: none; border-radius: 0; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-3); }
  .filters.open { transform: none; }
  .close-filters { display: inline-grid; }
  .filters-foot { display: block; position: sticky; bottom: 0; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }
  .open-filters { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(20,22,26,.45); z-index: 105; }

  .pd-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pd-media { position: static; }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-copy { grid-column: span 2; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .inq { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tblock { grid-template-columns: repeat(3, 1fr); }
  .tblock > div:nth-child(3) { border-right: 0; }
  .tblock > div:nth-child(-n+3) { border-bottom: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-in { gap: 10px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .brand-word { font-size: 1.18rem; }
  .brand-sub { display: none; }
  .header-tools { display: contents; }
  .btn-inquiry { margin-left: auto; padding: 0 12px; }
  .btn-inquiry .lbl { display: none; }
  .search { order: 5; width: 100%; }
  .search kbd { display: none; }
  .suggest { min-width: 0; }
  .main-nav { top: 117px; }
  [id] { scroll-margin-top: 170px; }
  .pd-subnav { top: 115px; }

  .hero-in { padding-top: 32px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hs-row { height: 56px; padding-left: 12px; }
  .hs-row > svg { display: none; }
  .hs-row .btn { --h: 42px; padding: 0 14px; }
  .toc-row { grid-template-columns: 22px 46px minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
  .toc-row .ill { width: 46px; height: 32px; }
  .toc-row > svg:last-child { display: none; }
  .toc-head, .toc-foot { padding-left: 14px; padding-right: 14px; }
  .stat { padding: 18px 16px; }
  .stat b { font-size: 1.8rem; }
  .section { padding-top: 60px; }
  .section.band { margin-top: 60px; padding-bottom: 60px; }
  .section.band + .section { padding-top: 60px; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-head > a { grid-column: 1 / -1; justify-self: start; }
  .link-arrow { white-space: normal; max-width: 100%; }
  .app-grid, .app-cards { grid-template-columns: minmax(0, 1fr); }
  .lc-scale { grid-template-columns: repeat(2, 1fr); }
  .lc-step { border-bottom: 1px solid var(--line); }
  .lc-step:nth-child(3) { border-right: 1px solid var(--line); }
  .lc-step:nth-child(even) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .at-photo { padding-left: 0; }
  .dim-left { display: none; }
  .dim-top { left: 6px; }
  .stamp { width: 84px; height: 84px; right: 6px; bottom: -14px; }
  .stamp b { font-size: 1.25rem; }
  .at-list li { grid-template-columns: 1fr; gap: 2px; }
  .refs { grid-template-columns: 1fr 1fr; }
  .cta-in { grid-template-columns: 1fr; }

  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-body { padding: 10px 12px 8px; }
  .card-title { font-size: 1.02rem; }
  .card-sub { font-size: .8rem; }
  .card-foot { padding: 8px 10px; flex-wrap: wrap; }
  .card-foot .btn { flex: 1; }
  .cards.list .card { grid-template-columns: 110px 1fr; }
  .cards.list .card-foot { grid-column: 1 / -1; flex-direction: row; border-left: 0; border-top: 1px solid var(--line); }
  .cards.list .card-media { min-height: 0; }
  .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }

  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .facts div:last-child { border-bottom: 0; }
  .facts dd { font-size: 1.02rem; text-align: right; }
  .pd-actions .btn { flex: 1 1 auto; }
  .calc { grid-template-columns: 1fr; }
  .calc-copy { grid-column: auto; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line-2); }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .xsec-panel { grid-template-columns: minmax(0, 1fr); }
  .cmp-wrap, .xsec-wrap { position: relative; }
  .inq-item { grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 10px; padding: 12px; }
  .inq-thumb { width: 56px; height: 46px; }
  .inq-item .qty { grid-column: 2; }
  .inq-item .inq-mass { grid-column: 2; text-align: left; }
  .inq-item .icon-btn { grid-column: 3; grid-row: 1; }
  .inq-form .row2 { grid-template-columns: 1fr; }
  .summary b { font-size: 1.2rem; }
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:not(:first-child) { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div { border-bottom: 1px solid var(--ink); }
  .tblock > div:nth-child(3) { border-right: 1px solid var(--ink); }
  .tblock > div:nth-child(even) { border-right: 0; }
  .tblock > div:nth-last-child(-n+2) { border-bottom: 0; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
  .cmp-tray { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- ispis: tehnički list / upit ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10.5pt; color: #000; }
  .site-header, .site-footer, .topbar, .pd-subnav, .pd-actions, .cmp-tray, .toast-wrap, .no-print,
  .t-add, .calc, #kalkulator, #povezano, .pd-thumbs, .zoom-hint, .quick-add, .inq-side .form-actions,
  .crumbs, .pd-apps, .lightbox, .scrim, .cta-band { display: none !important; }
  .print-only { display: block !important; }
  .container { max-width: none; padding: 0; }
  .pd-top { grid-template-columns: 1fr 1fr; gap: 20px; padding: 0; }
  .pd-media { position: static; }
  .pd-title { font-size: 24pt; }
  .pd-sec { padding-top: 18px; break-inside: avoid; }
  .tbl th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lc, .lc-meter .seg.on { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .two-col { grid-template-columns: 1.4fr 1fr; }
  .side-box.dark { display: none; }
  .print-head { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 16px; }
  .print-head b { font-size: 15pt; letter-spacing: .04em; }
  .print-head span { font-size: 8.5pt; text-align: right; }
  .inq { grid-template-columns: 1fr; }
  .page-head { background: none; border: 0; padding: 0 0 10px; }
  a { color: #000; }
}
