/* RINOX d.o.o. – stil stranice */
:root {
  --ink: #0b0e13;
  --ink-2: #131821;
  --ink-3: #1c2330;
  --paper: #f4f3ef;
  --paper-2: #e9e7e1;
  --white: #fff;
  --text: #14171c;
  --muted: #5a606a;
  --muted-dark: #a3a9b4;
  --line: #d8d5cd;
  --line-dark: #2a3240;
  --steel: #a7abb2;
  --blue: #26338c;
  --blue-2: #3346c4;
  --blue-3: #93a0ff;
  --wa: #1fae5b;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 87.5%; line-height: 1.04; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-dark { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--blue-3); }
.h2 { font-size: clamp(36px, 5.4vw, 72px); font-weight: 750; }
.h2 em { font-style: normal; color: var(--steel); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { max-width: 560px; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .section-head .lead { justify-self: end; margin: 0; }
}
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.section-dark .lead { color: var(--muted-dark); }

/* Gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-2); color: var(--white); }
.btn-primary:hover { background: #2a3bb0; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--white); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #18964d; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Zaglavlje */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(5, 8, 12, .55), transparent);
  transition: opacity .35s;
}
.site-header.is-solid { background: rgba(11, 14, 19, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header.is-solid::before { opacity: 0; }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; width: 132px; color: var(--white); flex: none; position: relative; z-index: 2; }
.logo svg { width: 100%; height: auto; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a:not(.btn) {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .86);
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav .btn { white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1340px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle span:not(.sr-only) { position: absolute; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle span:nth-child(1) { transform: translateY(-5px); }
  .nav-toggle span:nth-child(2) { transform: translateY(5px); }
  .nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { transform: rotate(-45deg); }
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--header-h) + 16px) var(--gut) 40px; gap: 28px; overflow-y: auto; height: 100svh;
    background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { font-family: var(--display); font-stretch: 87.5%; font-size: clamp(26px, 6vw, 36px); font-weight: 650; padding: 10px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; background: none !important; white-space: normal; line-height: 1.15; }
  .nav .btn { align-self: flex-start; }
  .nav-open { overflow: hidden; }
}

/* Naslovni blok (hero) */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero-page { min-height: min(78svh, 760px); }
.hero-media, .hero-media .slide { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-media .slide.is-active { opacity: 1; }
.hero-media .slide img { transform: scale(1.06); }
.hero-media .slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, .78) 0%, rgba(5, 8, 12, .35) 55%, rgba(5, 8, 12, .1) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, .85) 0%, rgba(5, 8, 12, 0) 45%);
}
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(46px, 8.6vw, 124px); font-weight: 780; letter-spacing: -.02em; max-width: 11.5em; }
.hero-page h1 { font-size: clamp(42px, 6.6vw, 92px); }
.hero .lead { color: rgba(255, 255, 255, .84); max-width: 620px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px; color: rgba(255, 255, 255, .72);
}
.hero-caption { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.hero-caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-3); flex: none; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, .3); }
.hero-dots button.is-active::before { background: var(--white); }
.breadcrumb { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* Traka s materijalima */
.ticker { background: var(--blue); color: var(--white); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-stretch: 87.5%; font-size: clamp(20px, 2.4vw, 30px); font-weight: 650; padding: 16px 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✦"; font-size: .6em; color: var(--steel); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Kategorije */
.cats { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.cat {
  grid-column: span 12; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 28px; border-radius: var(--r); overflow: hidden; isolation: isolate;
  color: var(--white); text-decoration: none; background: var(--ink-2);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 12, .88) 0%, rgba(5, 8, 12, .2) 55%, rgba(5, 8, 12, 0) 100%); }
.cat:hover img { transform: scale(1.05); }
.cat h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 720; margin-bottom: 10px; }
.cat p { color: rgba(255, 255, 255, .8); margin: 0 0 18px; max-width: 34em; font-size: 16px; }
.cat .count { position: absolute; top: 22px; left: 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.cat .go {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  transition: background .3s, transform .3s var(--ease);
}
.cat:hover .go { background: var(--blue-2); transform: rotate(-45deg); }
@media (min-width: 720px) {
  .cat { grid-column: span 6; min-height: 420px; }
}
@media (min-width: 1080px) {
  .cat { grid-column: span 4; min-height: 460px; }
  .cat.is-big { grid-column: span 8; }
  .chooser .cat { min-height: 540px; }
}

/* Izbor inox / čelik / aluminij (Ograde i kapije) */
.chooser { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }
@media (min-width: 720px) and (max-width: 1079px) { .chooser .cat:last-child { grid-column: span 12; } }
.chooser .breadcrumb { margin-bottom: 28px; }
.switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.switch a { padding: 8px 20px; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .2s; }
.switch a:hover { background: rgba(255, 255, 255, .14); }
.switch a[aria-current="page"] { background: var(--white); color: var(--ink); }

/* Izdvojeni radovi */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
.bento figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--ink-3); }
.bento a { display: block; height: 100%; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bento figure:hover img { transform: scale(1.05); }
.bento figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 14px; color: var(--white);
  background: linear-gradient(0deg, rgba(5, 8, 12, .8), transparent); opacity: 0; transform: translateY(8px); transition: .35s var(--ease);
}
.bento figure:hover figcaption, .bento figure:focus-within figcaption { opacity: 1; transform: none; }
.bento .b-tall { grid-row: span 2; }
.bento .b-wide { grid-column: span 2; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .bento .b-big { grid-column: span 2; grid-row: span 2; }
}
@media (hover: none) { .bento figcaption { opacity: 1; transform: none; } }

/* Postupak */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); counter-reset: s; }
.step { background: var(--paper); padding: 36px 28px 40px 0; }
.step-n { font-family: var(--display); font-stretch: 75%; font-size: 64px; font-weight: 300; line-height: 1; color: var(--steel); display: block; margin-bottom: 24px; }
.step h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } .step { padding: 40px 32px 44px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Radiona */
.workshop { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.workshop-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.workshop-img img { width: 100%; height: 100%; object-fit: cover; }
.workshop-img .tag { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font-size: 13px; background: rgba(11, 14, 19, .7); backdrop-filter: blur(6px); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; margin-top: 40px; }
.spec { background: var(--ink); padding: 26px 22px; }
.spec b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; }
.spec b small { font-size: .45em; font-weight: 500; color: var(--steel); margin-left: 4px; letter-spacing: 0; }
.spec span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted-dark); }
@media (min-width: 980px) { .workshop { grid-template-columns: 5fr 6fr; } }

/* Prednosti */
.values { display: grid; gap: 28px; }
.value { border-top: 2px solid var(--text); padding-top: 22px; }
.value h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.value p { color: var(--muted); margin: 0; font-size: 16px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }

/* Upit */
.inquiry { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .inquiry { grid-template-columns: 4fr 7fr; } }
.inquiry-aside p { color: var(--muted-dark); }
.inquiry-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.inquiry-aside li { display: flex; gap: 12px; color: rgba(255, 255, 255, .86); font-size: 16px; }
.inquiry-aside li::before { content: "✓"; color: var(--blue-3); font-weight: 700; }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font-weight: 600; margin-bottom: 14px; font-size: 15px; letter-spacing: .02em; }
.form legend b { color: var(--blue-3); margin-right: 8px; }
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type { position: relative; cursor: pointer; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span {
  display: flex; flex-direction: column; justify-content: flex-end; height: 112px; padding: 12px 14px;
  border-radius: 12px; border: 1.5px solid var(--line-dark); background-size: cover; background-position: center;
  position: relative; overflow: hidden; isolation: isolate; font-weight: 600; font-size: 15px; line-height: 1.25;
  transition: border-color .2s, transform .2s var(--ease);
}
.type span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 12, .9), rgba(5, 8, 12, .25)); transition: background .25s; }
.type:hover span { transform: translateY(-2px); }
.type input:checked + span { border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(147, 160, 255, .25); }
.type input:checked + span::before { background: linear-gradient(0deg, rgba(38, 51, 140, .92), rgba(38, 51, 140, .35)); }
.type input:focus-visible + span { outline: 3px solid var(--blue-3); outline-offset: 2px; }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 14px; color: var(--muted-dark); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line-dark);
  background: var(--ink); color: var(--white); font: inherit; font-size: 16px; transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-3); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { font-size: 14px; color: var(--muted-dark); margin: 16px 0 0; }
.form legend .opt { font-weight: 400; color: var(--muted-dark); }
.drop {
  position: relative; display: block; padding: 22px 16px; border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 12px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: var(--blue-3); background: rgba(147, 160, 255, .06); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--blue-3); outline-offset: 2px; }
.drop-in { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted-dark); font-size: 15px; }
.drop-in svg { width: 26px; height: 26px; color: var(--blue-3); margin-bottom: 4px; }
.drop-in b { color: var(--white); font-size: 16px; }
.drop-in small { font-size: 13px; margin-top: 4px; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line-dark); font-size: 14px; }
.file-list .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fs { color: var(--muted-dark); white-space: nowrap; }
.file-list button { background: none; border: 0; color: var(--muted-dark); cursor: pointer; font-size: 16px; padding: 2px 6px; }
.file-list button:hover { color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; color: var(--muted-dark); }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff9b9b; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-route { font-size: 14px; color: var(--muted-dark); margin: 0 0 16px; min-height: 1.6em; }
.form-route b { color: var(--white); }

/* Reklamni video na naslovnoj */
.promo-video { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.promo-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Kontakt */
.people { display: grid; gap: 16px; }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--white); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.person .role { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.person h3 { font-size: 28px; font-weight: 700; }
.person .tel { font-size: 20px; font-weight: 600; text-decoration: none; margin: 6px 0 18px; }
.person .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.contact-meta { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .contact-meta { grid-template-columns: 2fr 1fr; } }
.meta-card { background: var(--ink); color: var(--white); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.meta-card .k { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-3); font-weight: 600; }
.meta-card .v { font-family: var(--display); font-stretch: 87.5%; font-size: clamp(24px, 2.6vw, 34px); font-weight: 650; line-height: 1.15; text-decoration: none; }
.meta-card .link-arrow { margin-top: 14px; color: var(--muted-dark); }
.meta-card .link-arrow:hover { color: var(--white); }
.map { position: relative; margin-top: 16px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); height: clamp(360px, 42vw, 500px); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }
.map-card {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: flex; flex-direction: column; gap: 4px;
  background: var(--ink); color: var(--white); border-radius: 14px; padding: 18px 22px; text-decoration: none; box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.map-card .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-3); font-weight: 600; }
.map-card b { font-family: var(--display); font-stretch: 87.5%; font-size: 22px; font-weight: 650; line-height: 1.2; }
.map-card .link-arrow { margin-top: 6px; color: var(--muted-dark); font-size: 15px; }
.map-card:hover .link-arrow { color: var(--white); }

/* Reference */
.refs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ref { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ref b { font-family: var(--display); font-stretch: 87.5%; font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; transition: color .25s; }
.ref-meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ref:hover b { color: var(--blue); }
.ref-main { display: flex; flex-direction: column; gap: 8px; }
.ref-desc { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; }
.ref-count { font-size: 15px; font-weight: 600; color: var(--blue-2); }
.ref-credit { font-size: 13px; color: var(--muted); }
.ref-thumb { width: 144px !important; height: 108px !important; }
@media (max-width: 600px) { .ref-thumb { width: 84px !important; height: 63px !important; } }
.ref-link { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.ref-thumb { width: 104px; height: 78px; border-radius: 8px; overflow: hidden; flex: none; background: var(--paper-2); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ref-link:hover .ref-thumb img { transform: scale(1.08); }
@media (max-width: 600px) { .ref-thumb { width: 72px; height: 54px; } .ref-link { gap: 14px; } }

/* Podstranice */
.intro { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1000px) { .intro { grid-template-columns: 7fr 4fr; align-items: start; } }
.intro-text p { font-size: 19px; color: #2b3038; }
.intro-text p:first-child { font-size: clamp(21px, 2vw, 26px); line-height: 1.45; color: var(--text); }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.checks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 2px; background: var(--blue-2); }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); color: var(--white); border-radius: 20px; padding: 30px; }
.aside-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.aside-card p { color: var(--muted-dark); font-size: 16px; }
.aside-card .who { display: flex; flex-direction: column; padding: 18px 0; margin: 18px 0; border-block: 1px solid var(--line-dark); }
.aside-card .who b { font-size: 18px; }
.aside-card .who span { color: var(--muted-dark); font-size: 15px; }
.aside-card .who a { font-size: 22px; font-weight: 600; text-decoration: none; margin-top: 6px; }
.aside-card .acts { display: grid; gap: 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--text); border-radius: 999px;
  padding: 9px 16px; font-size: 15px; font-weight: 500; cursor: pointer; transition: .2s;
}
.chip span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--white); }
.chip.is-active span { color: var(--steel); }
.gallery { columns: 2 220px; column-gap: 12px; }
@media (min-width: 900px) { .gallery { columns: 3 280px; column-gap: 16px; } }
.gallery:not(.is-open) .g-more { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.g-item { break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
@media (min-width: 900px) { .g-item { margin-bottom: 16px; } }
.g-item a { display: block; }
.g-item img { width: 100%; transition: transform .9s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; font-size: 14px; color: var(--white);
  background: linear-gradient(0deg, rgba(5, 8, 12, .78), transparent); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.g-item:hover figcaption { opacity: 1; }
.g-item.is-hidden { display: none; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--display); font-stretch: 87.5%; font-size: clamp(21px, 2vw, 26px); font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--sans); font-weight: 300; font-size: 32px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 720px; }

.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap { display: grid; gap: 28px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 750; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 14px 0 0; font-size: 18px; }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--white); color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--paper-2); }
@media (min-width: 1000px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } .cta-band .acts { justify-content: flex-end; } }

.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related .cat { min-height: 260px; grid-column: auto; }
.related .cat h3 { font-size: 26px; }

.services { display: grid; gap: 16px; }
@media (min-width: 760px) and (max-width: 1099px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .service:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; }
.service .num { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 44px; line-height: 1; color: var(--blue); }
.service .num small { font-size: .45em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.service h3 { font-size: 24px; font-weight: 700; margin: 18px 0 10px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }
.service .num + p { margin-top: 14px; }
.service h3:first-child { margin-top: 0; }
.service p .link-arrow { display: inline-flex; margin-top: 10px; color: var(--blue); }

/* Od 3D skena do nacrta */
.pipeline { display: grid; gap: 16px; }
@media (min-width: 900px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
.pipe { margin: 0; background: var(--ink); color: var(--white); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.pipe > a { display: block; background: #222631; }
.pipe > a.white { background: #fff; }
.pipe .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.pipe .duo a { position: relative; display: block; background: #222631; overflow: hidden; }
.pipe .duo a:hover img { transform: scale(1.03); }
.pipe .duo span {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--white); background: rgba(11, 14, 19, .72);
}
.pipe img { width: 100%; height: 380px; object-fit: contain; transition: transform .8s var(--ease); }
.pipe > a:hover img { transform: scale(1.03); }
.pipe figcaption { padding: 22px 24px 26px; }
.pipe .n { font-family: var(--display); font-stretch: 75%; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--blue-3); }
.pipe h3 { font-size: 26px; font-weight: 700; margin: 6px 0 8px; }
.pipe p { color: var(--muted-dark); font-size: 15px; margin: 0; }
.pipe .docs {
  height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px;
  background: linear-gradient(135deg, #1b2440, #222631);
}
.pipe .docs span {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600;
}
.pipe .docs span::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--blue-3); flex: none; }
.scan-wide { position: relative; margin: 16px 0 0; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.scan-wide img { width: 100%; }
.scan-wide figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--white); background: rgba(11, 14, 19, .7); }

/* 3D konfigurator */
.cfg-sec { background: var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(16px, 3vw, 36px)) 0 clamp(40px, 6vw, 80px); }
.cfg-intro { margin-bottom: clamp(18px, 2.5vw, 28px); }
.cfg-intro h1 { font-size: clamp(34px, 4.8vw, 64px); font-weight: 750; }
.cfg-intro h1 em { font-style: normal; color: var(--steel); }
.cfg-intro .lead { max-width: 720px; margin: 14px 0 0; }
.cfg-info { max-width: 720px; margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--blue-2); border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, .04); color: var(--muted-dark); font-size: 15px; line-height: 1.55; }
.cfg-info b { color: var(--white); }
/* raspored: 3D prikaz | konfigurator | upit (široki ekran); prikaz + konfigurator, upit ispod (tablet); sve jedno ispod drugog (mobitel) */
.cfg-sec .wrap { max-width: 1680px; }
.cfg { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1000px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; }
  .cfg-view { grid-row: span 2; }
}
@media (min-width: 1240px) {
  .cfg { grid-template-columns: minmax(0, 1fr) 380px 340px; }
  .cfg-view { grid-row: auto; }
  .cfg-upit { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100svh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}
.cfg-view {
  position: sticky; top: calc(var(--header-h) + 6px); z-index: 3; height: 42svh; min-height: 260px;
  border-radius: 18px; overflow: hidden; background: #e9e7e2; color: var(--text); box-shadow: 0 0 0 6px var(--ink);
}
@media (min-width: 1000px) { .cfg-view { top: calc(var(--header-h) + 16px); height: calc(100svh - var(--header-h) - 32px); min-height: 460px; max-height: 900px; box-shadow: none; } }
.cfg-view canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.cfg-view canvas:active { cursor: grabbing; }
.cfg-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cfg-label { position: absolute; left: 0; top: 0; padding: 3px 10px; border-radius: 999px; background: rgba(11, 14, 19, .8); color: var(--white); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cfg-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.cfg-tool { pointer-events: auto; white-space: nowrap; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.cfg-hint { font-size: 12px; color: #5a606a; text-align: right; }
@media (max-width: 1180px) { .cfg-hint { display: none; } }
.cfg-err { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); text-align: center; margin: 0; }
.cfg-panel { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(18px, 2vw, 24px); scroll-margin-top: calc(var(--header-h) + 42svh + 20px); }
@media (min-width: 1000px) { .cfg-panel { scroll-margin-top: calc(var(--header-h) + 16px); } }
.cfg-sek { padding-bottom: 6px; }
.cfg-sek + .cfg-sek { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.cfg-sek h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cfg-sek h2 b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-2); font-family: var(--sans); font-size: 13px; flex: none; }
.cfg-upit h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cfg-prof { display: grid; grid-template-columns: 1fr auto 104px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cfg-prof .n { font-size: 15px; font-weight: 600; }
.cfg-traka { grid-template-columns: 1fr 104px 122px; }
.cfg-segs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line-dark); }
.cfg-seg { position: relative; cursor: pointer; }
.cfg-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-seg > span { display: grid; place-items: center; width: 38px; height: 32px; border-radius: 7px; color: var(--muted-dark); transition: background .2s, color .2s; }
.cfg-seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.cfg-seg input:checked + span { background: var(--blue-2); color: var(--white); }
.cfg-seg input:focus-visible + span { outline: 3px solid var(--blue-3); outline-offset: 1px; }
.cfg-prof select {
  width: 100%; height: 40px; padding: 0 30px 0 12px; border-radius: 10px; border: 1.5px solid var(--line-dark); background: var(--ink); color: var(--white);
  font: inherit; font-size: 15px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-dark) 50%), linear-gradient(135deg, var(--muted-dark) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.cfg-prof select:focus { outline: none; border-color: var(--blue-3); }
.cfg-prof + .cfg-note { margin-top: 12px; }
.cfg-grp { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.cfg-grp legend, .cfg-num label { display: block; padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.cfg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg-opts-tile { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); }
.cfg-opt { position: relative; cursor: pointer; }
.cfg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-opt > span {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--line-dark); border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1.2; transition: border-color .2s, background .2s;
}
.cfg-opt-tile > span { height: 100%; flex-direction: column; justify-content: center; text-align: center; border-radius: 14px; padding: 14px 8px 12px; min-height: 108px; font-size: 14px; }
.cfg-opt svg { width: 64px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--steel); transition: color .2s; }
.cfg-opt-ral > span { padding-left: 7px; font-size: 14px; }
.cfg-opt i { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cfg-opt:hover > span { border-color: #4b5568; }
.cfg-opt input:checked + span { border-color: var(--blue-3); background: rgba(51, 70, 196, .24); }
.cfg-opt input:checked + span svg { color: var(--white); }
.cfg-opt input:focus-visible + span { outline: 3px solid var(--blue-3); outline-offset: 2px; }
.cfg-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.cfg-nums:not(:has(> :not([hidden]))) { display: none; }
.num-in { display: flex; align-items: center; background: var(--ink); border: 1.5px solid var(--line-dark); border-radius: 10px; transition: border-color .2s; }
.num-in:focus-within { border-color: var(--blue-3); }
.num-in input { flex: 1; width: 100%; min-width: 0; background: none; border: 0; color: var(--white); font: inherit; font-size: 17px; padding: 11px 0 11px 14px; }
.num-in input:focus { outline: none; }
.num-in span { padding: 0 14px 0 6px; color: var(--muted-dark); font-size: 14px; }
.cfg-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 18px; }
.cfg-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 500; }
.cfg-check input { width: 20px; height: 20px; accent-color: var(--blue-2); margin: 0; }
.cfg-ral { margin: -6px 0 20px; max-width: 260px; }
.cfg-note { font-size: 14px; color: var(--muted-dark); margin: 0 0 18px; }
.cfg-link { background: none; border: 0; padding: 0; color: var(--blue-3); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cfg-sum { list-style: none; margin: 0 0 14px; padding: 14px 16px; display: grid; gap: 6px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-dark); font-size: 14px; }
.cfg-sum li { display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
.cfg-upit .cfg-sum { font-size: 13px; padding: 12px 14px; line-height: 1.45; }
.cfg-upit .cfg-sum li { grid-template-columns: 92px 1fr; }
.cfg-sum-h { font-size: 17px; font-weight: 700; margin: 10px 0 10px; }
.cfg-sum span { color: var(--muted-dark); }
.cfg-sum b { font-weight: 600; }
.cfg-upit .fields { margin-bottom: 14px; grid-template-columns: 1fr; gap: 10px; }
.cfg-upit .field input, .cfg-upit .field textarea { padding: 11px 14px; }
.cfg-upit .field textarea { min-height: 84px; }
.cfg-upit .field .opt { color: var(--muted-dark); font-weight: 400; }
.cfg-upit .drop { padding: 14px 12px; }
.cfg-upit .form-actions { margin-top: 14px; }
.cfg-upit .form-actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) and (max-width: 1239px) { .cfg-upit .fields { grid-template-columns: 1fr 1fr; } .cfg-upit .fields .full { grid-column: 1 / -1; } }
.cfg [hidden] { display: none !important; }
.cfg-cta {
  position: fixed; left: 16px; right: 88px; bottom: 16px; z-index: 39; display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 14px; border-radius: 999px; background: var(--blue-2); color: var(--white); font-weight: 600; text-decoration: none;
  font-size: clamp(14px, 3.9vw, 16px); white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .25s, transform .25s var(--ease);
}
.cfg-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (min-width: 1240px) { .cfg-cta { display: none; } }
.cfg-promo { display: grid; gap: 4px; margin-top: 28px; padding: 18px 20px; border-radius: 14px; text-decoration: none; background: rgba(51, 70, 196, .18); border: 1px solid rgba(147, 160, 255, .35); transition: background .2s; }
.cfg-promo:hover { background: rgba(51, 70, 196, .3); }
.cfg-promo b { color: var(--white); }
.cfg-promo b::after { content: " →"; color: var(--blue-3); }
.cfg-promo span { color: var(--muted-dark); font-size: 15px; }
.cfg-ulaz { margin-top: 18px; color: var(--blue-3); }

/* Podnožje */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 15px; padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .logo { width: 150px; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Plutajući gumb */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transform: scale(0); transition: transform .35s var(--ease);
}
.fab svg { width: 30px; height: 30px; }
.fab.is-visible { transform: scale(1); }

/* Preglednik slika */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(6, 8, 11, .96); color: var(--white);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 14px; color: var(--muted-dark); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 88px); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-cap { padding: 16px 20px 24px; text-align: center; font-size: 16px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer; display: grid; place-items: center; font-size: 22px; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 700px) { .lb-prev, .lb-next { display: none; } }

/* Animacije pri listanju */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
