/* =====================================================================
   ŠABLON: AUTO SERVIS / MAJSTOR · Balkan Web Studio
   Ovaj fajl NE treba menjati. Boje se menjaju u index.html (blok "BOJE").
   ===================================================================== */

/* ---------- Fontovi (lokalno, sa č ć đ š ž) ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("fontovi/barlow-condensed-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; src: url("fontovi/barlow-condensed-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fontovi/barlow-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fontovi/barlow-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; src: url("fontovi/barlow-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; src: url("fontovi/barlow-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Boje ---------- */
:root {
  --grafit: #1b1e22;       /* tamni pojasevi, futer */
  --grafit-2: #24282d;
  --grafit-3: #31363c;
  --pozadina: #f3f3f0;     /* svetla pozadina stranice */
  --povrsina: #ffffff;     /* kartice */
  --tekst: #17191c;
  --tekst-2: #5a6067;
  --linija: #dcdcd5;
  --akcent: #ffc21a;       /* žuta: dugmad i naglasci */
  --akcent-tekst: #17191c; /* tekst na žutom */
  --svetao-tekst: #eceef0; /* tekst na tamnom */
  --naslov: "Barlow Condensed", "Arial Narrow", sans-serif;
  --telo: "Barlow", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--pozadina); color: var(--tekst); font: 400 17px/1.6 var(--telo); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--naslov); font-weight: 700; line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--akcent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ik { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pun, .ik .pun { fill: currentColor; stroke: none; }

.sirina { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: max(5vw, 18px, env(safe-area-inset-left, 0px)); padding-right: max(5vw, 18px, env(safe-area-inset-right, 0px)); }
.sekcija { padding-block: clamp(56px, 9vw, 112px); }
.sekcija-naslov { font-size: clamp(2.5rem, 9vw, 4.4rem); }
.oznaka-sekcije { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 .82rem/1 var(--telo); letter-spacing: .16em; text-transform: uppercase; color: var(--tekst-2); }
.oznaka-sekcije::before { content: ""; width: 12px; height: 12px; background: var(--akcent); }
.uvod { color: var(--tekst-2); max-width: 56ch; margin-top: 14px; }
.tamno { background: var(--grafit); color: var(--svetao-tekst); }
.tamno .oznaka-sekcije, .tamno .uvod { color: rgba(236, 238, 240, .68); }

/* ---------- Dugmad ---------- */
.dugme { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 1.5em; border-radius: 6px; font: 600 1.02rem/1 var(--telo); text-decoration: none; border: 2px solid var(--akcent); background: var(--akcent); color: var(--akcent-tekst); white-space: nowrap; transition: filter .15s, background-color .15s; }
.dugme:hover { filter: brightness(1.06); }
.dugme.svetlo { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.dugme.svetlo:hover { background: rgba(255, 255, 255, .1); filter: none; }
.dugme.obrub { background: transparent; border-color: var(--tekst); color: var(--tekst); }
.dugme.obrub:hover { background: var(--tekst); color: #fff; filter: none; }
.dugme.veliko { min-height: 60px; font-size: 1.1rem; }
.dugme .ik { width: 1.2em; height: 1.2em; }

/* ---------- Naslovni deo ---------- */
.hero { position: relative; min-height: min(94svh, 860px); display: grid; align-items: end; color: #fff; background: var(--grafit); isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 16, 18, .72) 0%, rgba(14, 16, 18, .3) 28%, rgba(14, 16, 18, .62) 52%, rgba(14, 16, 18, .95) 100%); }
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(14, 16, 18, .94) 0%, rgba(14, 16, 18, .82) 36%, rgba(14, 16, 18, .25) 78%), linear-gradient(180deg, rgba(14, 16, 18, .6) 0%, rgba(14, 16, 18, 0) 24%); }
}
.zaglavlje { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.45rem/1 var(--naslov); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.logo b { color: var(--akcent); font-weight: 700; }
.logo-znak { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: var(--akcent); color: var(--akcent-tekst); flex: none; }
.logo-znak .ik { width: 22px; height: 22px; stroke-width: 2.4; }
.meni-gore { display: none; gap: 30px; font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.meni-gore a { text-decoration: none; opacity: .88; }
.meni-gore a:hover { opacity: 1; color: var(--akcent); }
.poziv-mali { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 46px; padding: 0 12px; border-radius: 6px; background: var(--akcent); color: var(--akcent-tekst); text-decoration: none; font-weight: 600; font-size: .98rem; }
.poziv-mali span { display: none; }
@media (min-width: 560px) { .poziv-mali { padding: 0 16px; } .poziv-mali span { display: inline; } }
@media (min-width: 980px) { .meni-gore { display: flex; } }
.hero-sadrzaj { display: grid; gap: 20px; justify-items: start; padding-top: 128px; padding-bottom: clamp(40px, 7vw, 96px); }
.nadnaslov { display: inline-flex; align-items: center; gap: 12px; font: 600 .85rem/1 var(--telo); letter-spacing: .16em; text-transform: uppercase; color: var(--akcent); }
.nadnaslov::before { content: ""; width: 30px; height: 3px; background: var(--akcent); }
.hero h1 { font-size: clamp(3.4rem, 15vw, 7.6rem); line-height: .86; max-width: 11ch; }
.hero h1 span { color: var(--akcent); }
.hero .uvod { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 44ch; margin-top: 0; }
.akcije { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .akcije { width: 100%; max-width: 560px; }
.hero .akcije .dugme { flex: 1 1 auto; }
.oznake { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .95rem; color: rgba(255, 255, 255, .84); }
.ocena { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ocena .ik { width: 15px; height: 15px; color: var(--akcent); }
.ocena b { color: #fff; }
[data-status] { display: inline-flex; align-items: center; gap: 8px; }
[data-status]:empty { display: none; }
[data-status]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3a0; }
[data-status].je-otvoreno::before { background: #3ec27f; box-shadow: 0 0 0 4px rgba(62, 194, 127, .22); }
[data-status].je-zatvoreno::before { background: #ff6a4d; }

/* ---------- Pruga i prednosti ---------- */
.pruga { height: 10px; background: repeating-linear-gradient(-45deg, var(--akcent) 0 14px, var(--grafit) 14px 28px); }
.prednosti ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-block: 30px 34px; }
@media (min-width: 900px) { .prednosti ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 38px 42px; } }
.prednosti li { display: grid; gap: 4px; align-content: start; }
.prednosti .ik { width: 30px; height: 30px; color: var(--akcent); stroke-width: 1.8; margin-bottom: 8px; }
.prednosti b { font: 700 1.3rem/1.05 var(--naslov); text-transform: uppercase; color: #fff; letter-spacing: .01em; }
.prednosti span { font-size: .93rem; line-height: 1.45; color: rgba(236, 238, 240, .66); }

/* ---------- Usluge ---------- */
.glava-sekcije { display: grid; gap: 4px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.glava-sekcije > .link-strelica { justify-self: start; }
@media (min-width: 900px) { .glava-sekcije { grid-template-columns: 1fr 1fr; align-items: end; } .glava-sekcije .uvod, .glava-sekcije > .link-strelica { justify-self: end; } }
.usluge { display: grid; gap: 12px; }
@media (min-width: 640px) { .usluge { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .usluge { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usluga { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 2px 16px; align-items: start; padding: 18px; background: var(--povrsina); border: 1px solid var(--linija); border-radius: 8px; overflow: hidden; }
.usluga::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--akcent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.usluga:hover::before { transform: scaleX(1); }
.ik-okvir { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 6px; background: var(--akcent); color: var(--akcent-tekst); }
.ik-okvir .ik { width: 28px; height: 28px; stroke-width: 1.8; }
.usluga h3 { font-size: 1.4rem; line-height: 1; align-self: end; padding-top: 3px; }
.usluga p { color: var(--tekst-2); font-size: .95rem; line-height: 1.45; }
@media (min-width: 640px) {
  .usluga { grid-template-columns: 1fr; gap: 8px; padding: 26px 24px 24px; }
  .ik-okvir { grid-row: auto; margin-bottom: 10px; }
}
.marke { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.marke b { font-weight: 600; margin-right: 6px; }
.marke span { padding: 6px 12px; border: 1px solid var(--linija); border-radius: 4px; background: var(--povrsina); font-size: .9rem; font-weight: 600; }

/* ---------- Cenovnik ---------- */
.cenovnik { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .cenovnik { grid-template-columns: 5fr 7fr; align-items: start; } .cenovnik-uvod { position: sticky; top: 32px; } }
.cenovnik-uvod .dugme { margin-top: 26px; }
.cene-kartica { background: var(--povrsina); border: 1px solid var(--linija); border-radius: 8px; padding: clamp(6px, 2vw, 14px) clamp(18px, 3vw, 32px); }
.cene { width: 100%; border-collapse: collapse; }
.cene th, .cene td { padding: 15px 0; border-bottom: 1px solid var(--linija); vertical-align: baseline; }
.cene tr:last-child th, .cene tr:last-child td { border-bottom: 0; }
.cene th { text-align: left; font-weight: 600; padding-right: 16px; }
.cene th small { display: block; font-weight: 400; color: var(--tekst-2); font-size: .9rem; }
.cene td { text-align: right; white-space: nowrap; font: 700 1.45rem/1 var(--naslov); font-variant-numeric: tabular-nums; }
.cene td i { font: 400 .85rem/1 var(--telo); color: var(--tekst-2); font-style: normal; margin-right: 4px; text-transform: none; }
.cene-napomena { margin-top: 14px; font-size: .9rem; color: var(--tekst-2); }

/* ---------- Kako radimo ---------- */
.koraci { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); counter-reset: korak; }
@media (min-width: 900px) { .koraci { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.koraci li { display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; background: var(--grafit-2); border-radius: 8px; border-top: 4px solid var(--akcent); }
.koraci li::before { counter-increment: korak; content: "0" counter(korak); font: 700 3.4rem/1 var(--naslov); color: var(--akcent); }
.koraci h3 { font-size: 1.6rem; color: #fff; }
.koraci p { color: rgba(236, 238, 240, .7); font-size: .98rem; }

/* ---------- O nama ---------- */
.o-nama { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .o-nama { grid-template-columns: 1.1fr 1fr; } }
.o-nama-slika { position: relative; }
.o-nama-slika img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--linija); }
.o-nama-slika::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -10px; height: 10px; border-radius: 0 0 4px 4px; background: repeating-linear-gradient(-45deg, var(--akcent) 0 10px, var(--grafit) 10px 20px); }
.o-nama-tekst { display: grid; gap: 16px; }
.o-nama-tekst > p { color: var(--tekst-2); max-width: 56ch; }
.brojke { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--linija); }
.brojke li { display: grid; gap: 4px; }
.brojke b { font: 700 clamp(2.4rem, 8vw, 3.2rem)/.9 var(--naslov); }
.brojke span { font-size: .9rem; color: var(--tekst-2); line-height: 1.3; }

/* ---------- Galerija ---------- */
.galerija { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .galerija { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.galerija a { display: block; border-radius: 6px; overflow: hidden; background: var(--linija); }
.galerija img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.galerija a:hover img { transform: scale(1.04); }
.link-strelica { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--akcent); padding-bottom: 2px; }
.link-strelica .ik { width: 18px; height: 18px; }

/* ---------- Recenzije ---------- */
.recenzije { display: grid; gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .recenzije { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.recenzija { display: grid; gap: 14px; align-content: start; padding: 26px; background: var(--grafit-2); border-radius: 8px; }
.recenzija .zvezde { display: flex; gap: 3px; color: var(--akcent); }
.recenzija .zvezde .ik { width: 16px; height: 16px; }
.recenzija blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; color: #fff; }
.recenzija figcaption { font-size: .9rem; color: rgba(236, 238, 240, .62); }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .kontakt { grid-template-columns: 1fr 1.1fr; } }
.radno-vreme { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 18px; }
.radno-vreme th, .radno-vreme td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--linija); font-weight: 400; }
.radno-vreme td { text-align: right; white-space: nowrap; }
.radno-vreme tr.danas th, .radno-vreme tr.danas td { font-weight: 600; }
.radno-vreme tr.danas th::after { content: "danas"; margin-left: 10px; padding: 3px 8px; border-radius: 4px; background: var(--akcent); color: var(--akcent-tekst); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.status-red { margin-top: 12px; font-weight: 600; }
.podaci { display: grid; gap: 14px; margin-top: 28px; }
.podaci li { display: flex; gap: 14px; align-items: flex-start; }
.podaci .ik { margin-top: 3px; color: var(--tekst); }
.podaci a { text-decoration: none; }
.podaci a:hover { text-decoration: underline; }
.podaci small { display: block; color: var(--tekst-2); font-size: .88rem; }
.mapa-kolona { display: grid; gap: 14px; }
.mapa { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e4e4df url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20width%3D'240'%20height%3D'240'%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-opacity%3D'.85'%3E%3Cpath%20stroke-width%3D'11'%20d%3D'M0%2062H240M150%200V240'/%3E%3Cpath%20stroke-width%3D'5'%20d%3D'M0%20176H240M44%200V240M212%200V240M0%20240L240%200'/%3E%3Cpath%20stroke-width%3D'2.5'%20d%3D'M0%20120H150M96%2062V240M150%20205H240'/%3E%3C/svg%3E") center / 240px; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-zamena { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 20px; }
.mapa-zamena .ik { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--akcent); color: var(--akcent-tekst); margin-bottom: 8px; stroke-width: 2.2; box-sizing: border-box; }
.mapa-zamena span { color: var(--tekst-2); font-size: .92rem; }
.mapa-kolona .akcije .dugme { flex: 1 1 auto; }
@media (min-width: 900px) { .mapa-kolona { display: flex; flex-direction: column; } .mapa { flex: 1; aspect-ratio: auto; min-height: 380px; } }

/* ---------- Futer ---------- */
.futer { background: var(--grafit); color: rgba(236, 238, 240, .72); padding-block: 44px calc(34px + 76px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.futer-red { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.futer .logo { color: #fff; }
.drustvene { display: flex; gap: 10px; }
.drustvene a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: var(--grafit-3); color: #fff; }
.drustvene a:hover { background: var(--akcent); color: var(--akcent-tekst); }
.drustvene .ik { width: 18px; height: 18px; }
.potpis { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(236, 238, 240, .14); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.potpis a { text-decoration: none; border-bottom: 1px solid rgba(236, 238, 240, .35); }

/* ---------- Traka za telefon (dole na ekranu) ---------- */
.traka { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--grafit); border-top: 1px solid var(--grafit-3); }
.traka a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .95rem; color: #fff; background: var(--grafit-3); }
.traka a.glavno { background: var(--akcent); color: var(--akcent-tekst); }
@media (min-width: 900px) { .traka { display: none; } .futer { padding-bottom: 34px; } }

/* ---------- Galerija preko celog ekrana ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 13, 15, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox .lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lightbox .lb-p { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-s { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Animacije (folder animacije/, ovaj deo ne treba menjati) ----------
   Dok se animacije pokreću (najduže 1,8 s), naslovni deo čeka sakriven.
   Bez JavaScript-a, ili sa uključenim "smanji pokrete", sve se vidi odmah. */
.anim .zaglavlje > *, .anim .hero-sadrzaj > * { visibility: hidden; }
.anim .hero > img { transform: scale(1.12); }
.anim .pruga { transform: scaleX(0); transform-origin: 0 50%; }
.hero { overflow: hidden; }
/* Reči i slova koja izranjaju: maska ostavlja mesta za kvačice (Š, Č, Ž) i kose crte slova */
.rb-rec-mask, .rb-slovo-mask { padding: .2em .08em .16em; margin: -.2em -.08em -.16em; }
.rb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Svetlo koje prati miš preko kartica (samo na računaru) */
.rb-svetlo { position: relative; isolation: isolate; }
.rb-svetlo::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--svetlo), transparent 70%); }
.rb-svetlo.rb-svetlo-on::after { opacity: 1; }
/* "Otvoreno": zelena tačka blago pulsira */
[data-status].je-otvoreno { position: relative; }
[data-status].je-otvoreno::after { content: ""; position: absolute; left: 0; top: 50%; border-radius: 50%; pointer-events: none; animation: rb-puls 2.4s ease-out infinite; }
@keyframes rb-puls { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { [data-status].je-otvoreno::after { display: none; } }
/* Lenis: mekši skrol točkićem miša na računaru */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.rb-svetlo { --svetlo: color-mix(in srgb, var(--akcent) 24%, transparent); }
.tamno .rb-svetlo { --svetlo: color-mix(in srgb, var(--akcent) 13%, transparent); }
[data-status].je-otvoreno::after { width: 9px; height: 9px; margin-top: -4.5px; background: #3ec27f; }
