/* Direktor.Wiki · Kabinet Direktora */

/* ---------- Pisma ---------- */
@font-face { font-family: "National Park"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/national-park-latin-ext-500-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "National Park"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/national-park-latin-500-normal.woff2") format("woff2"); 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: "National Park"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/national-park-latin-ext-700-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "National Park"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/national-park-latin-700-normal.woff2") format("woff2"); 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: "STIX Two Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/stix-two-text-latin-ext-400-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "STIX Two Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/stix-two-text-latin-400-normal.woff2") format("woff2"); 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: "STIX Two Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/stix-two-text-latin-ext-400-italic.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "STIX Two Text"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/stix-two-text-latin-400-italic.woff2") format("woff2"); 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: "STIX Two Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/stix-two-text-latin-ext-700-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "STIX Two Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/stix-two-text-latin-700-normal.woff2") format("woff2"); 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: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/courier-prime-latin-ext-400-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); 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: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/courier-prime-latin-ext-700-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); 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; }

/* ---------- Materijali ---------- */
:root {
  --koza: #6b1f1f;
  --koza-tamna: #3d1012;
  --mesing: #c9a227;
  --mesing-svetli: #ecd27a;
  --mesing-tamni: #8a6814;
  --gravura: #1d1608;
  --zid: #17503c;
  --zid-tamni: #0e3527;
  --zid-senka: #082019;
  --na-zidu: #f1ead8;
  --na-zidu-tise: #c2d9cc;
  --papir: #ede6d3;
  --papir-svetli: #f6f1e2;
  --papir-tamni: #d9cfb5;
  --papir-linija: #b3a684;
  --mastilo: #1e1b18;
  --mastilo-tise: #564f43;
  --veza: #27348b;
  --pecat-crveni: #b3202a;
  --pecat-ljubicasti: #3f3aa0;
  --tepih: #8e1b22;

  --f-tabla: "National Park", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-tekst: "STIX Two Text", "Times New Roman", Times, serif;
  --f-masina: "Courier Prime", "Courier New", Courier, monospace;

  --izlaz: cubic-bezier(.16, 1, .3, 1);
  --senka-lista: 0 2px 3px rgba(0, 0, 0, .28), 0 26px 44px -24px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  scrollbar-color: var(--mesing-tamni) var(--zid-senka);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--zid-tamni);
  color: var(--na-zidu);
  font: 1.125rem/1.62 var(--f-tekst);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mesing); color: var(--gravura); }

:focus-visible { outline: 3px solid var(--mesing-svetli); outline-offset: 3px; }
.list :focus-visible, .obrazac :focus-visible { outline-color: var(--koza); }
h2[tabindex="-1"]:focus-visible { outline: none; }

img { max-width: 100%; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.preskoci {
  position: absolute; left: .75rem; top: -4rem; z-index: 20;
  padding: .7rem 1rem; background: var(--papir); color: var(--mastilo);
  font: 700 .9rem/1 var(--f-tabla); letter-spacing: .06em; text-transform: uppercase;
}
.preskoci:focus { top: .75rem; }

/* ---------- Mesingana tabla ---------- */
.tabla {
  display: inline-block;
  margin: 0;
  padding: .6rem 1.3rem .5rem;
  border: 1px solid #6f5410;
  border-radius: 3px;
  font: 700 .86rem/1.15 var(--f-tabla);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gravura);
  background: var(--mesing) url("assets/mesing.webp") 0 0 / 128px 128px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 18px -8px rgba(0, 0, 0, .6);
}

.tabla--dugme {
  min-height: 3rem;
  padding: .95rem 2rem .85rem;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .18s var(--izlaz), box-shadow .18s var(--izlaz), filter .18s var(--izlaz);
}
.tabla--dugme:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tabla--dugme:active {
  transform: translateY(1px);
  filter: brightness(.94);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}

.tabla--natpis { display: grid; gap: .3rem; padding: .85rem 1.2rem .8rem; text-align: center; }
.natpis__naslov { font-size: .98rem; }
.natpis__opis { font-weight: 500; font-size: .84rem; letter-spacing: .03em; text-transform: none; text-wrap: balance; }

.tabla--ploca {
  display: grid;
  gap: .4rem;
  padding: 1.15rem 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: filter .18s var(--izlaz), transform .18s var(--izlaz);
}
.tabla--ploca:hover { filter: brightness(1.07); }
.tabla--ploca:active { transform: translateY(1px); filter: brightness(.95); }
.ploca__ime { font-size: clamp(2.1rem, 9.5vw, 4.1rem); letter-spacing: .12em; line-height: 1; margin-right: -.12em; }
.ploca__titula { font-weight: 500; font-size: clamp(.95rem, 3.6vw, 1.15rem); letter-spacing: .08em; min-height: 1.2em; }
.ploca__mandat { font-size: .74rem; letter-spacing: .2em; }

/* ---------- Pozlaćeni ram (lajsna iscrtana iz scene) ---------- */
.pozlata {
  border: clamp(15px, 4.6vw, 28px) solid var(--mesing);
  border-image: url("assets/pozlata.webp") 108 / clamp(15px, 4.6vw, 28px) stretch;
  background-clip: padding-box;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .4), 0 26px 34px -18px rgba(0, 0, 0, .75);
}

/* ---------- Hodnik: osnovno (bez 3D) ---------- */
.hodnik { position: relative; background: var(--zid-tamni); color: var(--na-zidu); border-bottom: .6rem solid var(--zid-senka); }
.hodnik__scena { position: relative; }
#scena, .hodnik__zavesa { display: none; }

.hodnik__okvir {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  row-gap: 1.25rem;
  padding: 1.1rem 1rem 0;
  text-align: center;
}
.tabla--naziv { justify-self: start; font-size: .92rem; }

.hodnik__vrata { grid-area: 2 / 1; width: min(100%, 24rem); }
.hodnik__vrata img { display: block; width: 100%; height: auto; }
.hodnik__prag {
  grid-area: 2 / 1;
  align-self: end;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .75rem;
  width: min(19.5rem, calc(100% - 2rem));
  margin-bottom: 1.1rem;
}

.hodnik__rezerva { display: grid; justify-items: center; margin-top: .5rem; }
.pozlata--portret {
  width: min(68vw, 19rem);
  background-image: radial-gradient(ellipse at 50% 38%, #ddd5c2, #a99f88 92%);
}
.pozlata--portret img { display: block; width: 100%; height: auto; }

.hodnik__portret { display: grid; justify-items: center; gap: .9rem; padding-bottom: 3rem; }
.hodnik__savet {
  margin: 0;
  font: 500 .86rem/1.3 var(--f-tabla);
  letter-spacing: .04em;
  color: var(--na-zidu);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 12px rgba(0, 0, 0, .6);
  text-wrap: balance;
}

.js:not(.ima-3d) .hodnik:not(.is-usao) .hodnik__rezerva,
.js:not(.ima-3d) .hodnik:not(.is-usao) .hodnik__portret { display: none; }
:root:not(.ima-3d) .hodnik.is-usao { background: var(--zid); border-bottom: 0; }
:root:not(.ima-3d) .hodnik.is-usao .hodnik__vrata,
:root:not(.ima-3d) .hodnik.is-usao .hodnik__prag { display: none; }

/* ---------- Hodnik: 3D ---------- */
.ima-3d .hodnik { height: 330vh; height: 330lvh; background: var(--koza-tamna); border-bottom: 0; }
.ima-3d .hodnik__scena { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }

.ima-3d #scena {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
  touch-action: pan-y;
  cursor: grab;
}
.ima-3d .is-spremno #scena { opacity: 1; }

.ima-3d .hodnik__zavesa {
  display: block;
  position: absolute; inset: auto 0 0 0;
  height: 54%;
  background: linear-gradient(to bottom, rgba(23, 80, 60, 0), var(--zid) 70%);
  opacity: var(--portret, 0);
  pointer-events: none;
}

.ima-3d .hodnik__okvir {
  display: block;
  position: absolute; inset: 0 0 auto 0;
  height: 100vh; height: 100svh;
  padding: 0;
  pointer-events: none;
}
.ima-3d .hodnik__okvir > * { pointer-events: auto; }
.ima-3d .hodnik__rezerva, .ima-3d .hodnik__vrata { display: none; }

.ima-3d .tabla--naziv {
  position: absolute;
  top: max(.9rem, env(safe-area-inset-top));
  left: max(.9rem, env(safe-area-inset-left));
}

.ima-3d .hodnik__prag {
  display: grid;
  justify-items: center;
  gap: .75rem;
  position: absolute;
  left: 50%;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  width: min(19.5rem, calc(100% - 2rem));
  margin-bottom: 0;
  transform: translateX(-50%);
  opacity: var(--prag, 1);
}
.ima-3d .hodnik:not(.is-spremno) .hodnik__prag { visibility: hidden; }

.obavestenje {
  position: relative;
  margin: 0;
  padding: .85rem 1rem .75rem;
  background: var(--papir);
  color: var(--mastilo);
  font: 400 .98rem/1.35 var(--f-masina);
  text-wrap: balance;
  transform: rotate(-1.3deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 12px 18px -9px rgba(0, 0, 0, .7);
}
.obavestenje::before, .obavestenje::after {
  content: "";
  position: absolute; top: -.5rem;
  width: 2.7rem; height: 1rem;
  background: rgba(238, 224, 170, .82);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.obavestenje::before { left: .7rem; transform: rotate(-7deg); }
.obavestenje::after { right: .7rem; transform: rotate(6deg); }

.interfon {
  margin: 0;
  padding: .45rem .8rem .35rem;
  background: var(--papir-svetli);
  color: var(--mastilo);
  font: 700 .95rem/1.3 var(--f-masina);
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .7);
  animation: cedulja .32s var(--izlaz) both;
}
.interfon:empty { display: none; }

.ima-3d .hodnik__portret {
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  padding-bottom: 0;
  opacity: var(--portret, 0);
}

@media (min-aspect-ratio: 21/20) {
  .ima-3d .hodnik__portret {
    left: 54%; right: 5%; bottom: auto; top: 50%;
    justify-items: start;
    transform: translateY(-50%);
    text-align: left;
  }
  .ima-3d .hodnik__zavesa { height: 24%; }
}

/* ---------- Kabinet: zid sa dosijeom ---------- */
.kabinet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(3.5rem, 9vw, 6rem);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(.75rem, 3vw, 2.5rem) clamp(4rem, 9vw, 7rem);
  background: var(--zid);
  color: var(--na-zidu);
  overflow-x: clip;
}

@media (min-width: 66rem) {
  .kabinet {
    grid-template-columns: minmax(0, 43rem) minmax(19rem, 25rem);
    grid-template-areas: "prvi ram" "drugi zahtev";
    justify-content: center;
    align-items: start;
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .dosije--prvi { grid-area: prvi; }
  .ram-zid { grid-area: ram; margin-top: 8.5rem; }
  .dosije--drugi { grid-area: drugi; }
  .zahtev { grid-area: zahtev; margin-top: 2rem; }
}

/* ---------- Dosije ---------- */
.dosije { width: 100%; max-width: 43rem; color: var(--mastilo); }

.jezicci { display: flex; gap: .22rem; padding-left: clamp(.5rem, 3vw, 1.5rem); }
.jezicak {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: .75rem clamp(.6rem, 2.6vw, 1.1rem) .6rem;
  border: 0;
  border-radius: .55rem .55rem 0 0;
  background: var(--papir-tamni);
  color: var(--mastilo);
  font: 700 .8rem/1 var(--f-tabla);
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -6px 6px -6px rgba(0, 0, 0, .35);
  transition: background-color .2s var(--izlaz), transform .2s var(--izlaz);
}
.jezicak:hover { background: #e4dbc3; transform: translateY(-2px); }
.jezicak.is-aktivan { background: var(--papir); box-shadow: none; }
.jezicak.is-aktivan:hover { transform: none; }

.list {
  position: relative;
  padding: clamp(1.25rem, 4.5vw, 3rem);
  background: var(--papir);
  border-radius: 2px;
  box-shadow: var(--senka-lista);
}
.list::after { content: ""; display: block; clear: both; }

.zaglavlje {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .9rem 1.5rem;
}
.zaglavlje__ustanova {
  margin: 0;
  font: 400 .84rem/1.3 var(--f-masina);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mastilo-tise);
}
.zaglavlje__ustanova span { display: block; font-weight: 700; font-size: 1rem; color: var(--mastilo); }

.pretraga { position: relative; display: flex; flex: 1 1 15rem; max-width: 21rem; }
.pretraga input {
  flex: 1; min-width: 0;
  height: 2.75rem;
  padding: 0 .75rem;
  border: 1.5px solid var(--papir-linija);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  background: var(--papir-svetli);
  color: var(--mastilo);
  font: 400 1rem/1 var(--f-masina);
  caret-color: var(--pecat-crveni);
  -webkit-appearance: none; appearance: none;
}
.pretraga input::placeholder { color: var(--mastilo-tise); opacity: 1; }
.pretraga input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pretraga > button {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1.5px solid var(--papir-linija);
  border-radius: 0 2px 2px 0;
  background: var(--papir-tamni);
  color: var(--mastilo);
  cursor: pointer;
  transition: background-color .2s var(--izlaz);
}
.pretraga > button:hover { background: #cdc2a4; }
.pretraga__rezultati {
  position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 5;
  margin: 0; padding: .3rem 0;
  list-style: none;
  background: var(--papir-svetli);
  border: 1.5px solid var(--papir-linija);
  box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .55);
  font-size: 1rem; line-height: 1.3;
}
.pretraga__rezultati a { display: block; padding: .6rem .8rem; color: var(--veza); }
.pretraga__rezultati a:hover { background: var(--papir-tamni); }

.alati {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 1.4rem;
  margin-top: .7rem;
  padding-bottom: .35rem;
  border-bottom: 3px double var(--papir-linija);
}
.alat {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0; border: 0; background: none;
  color: var(--veza);
  font: 700 .84rem/1 var(--f-tabla);
  letter-spacing: .04em;
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px;
  cursor: pointer;
}
.alat:hover { text-decoration-thickness: 2px; }
.jezici { position: relative; }
.jezici summary { list-style: none; }
.jezici summary::-webkit-details-marker { display: none; }
.jezici__spisak {
  position: absolute; left: 0; top: 100%; z-index: 5;
  width: 15rem;
  padding: .7rem .9rem;
  background: var(--papir-svetli);
  border: 1.5px solid var(--papir-linija);
  box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .55);
  font-size: .98rem; line-height: 1.35;
}
.jezici__spisak p { margin: 0; }
.jezici__spisak p + p { margin-top: .35rem; color: var(--mastilo-tise); font-size: .9rem; }
.alati__brojac {
  margin: 0 0 0 auto;
  font: 700 .86rem/1.2 var(--f-masina);
  font-variant-numeric: tabular-nums;
}

.ceduljica {
  width: fit-content; max-width: 100%;
  margin: .9rem 0 0;
  padding: .55rem .8rem .45rem;
  background: var(--papir-svetli);
  border-top: 1.5px dashed var(--papir-linija);
  box-shadow: 0 8px 12px -8px rgba(0, 0, 0, .4);
  font: 700 .95rem/1.35 var(--f-masina);
  animation: cedulja .32s var(--izlaz) both;
}
@keyframes cedulja {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-.4rem); }
  to { clip-path: inset(0 0 -1rem 0); transform: none; }
}

.naslovni { margin: 1.6rem 0 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--papir-linija); }
.naslovni h2 {
  margin: 0;
  font: 400 clamp(2.5rem, 9vw, 3.6rem)/1.02 var(--f-tekst);
  letter-spacing: -.015em;
}
.naslovni__izvor { margin: .45rem 0 0; font-size: .95rem; font-style: italic; line-height: 1.35; color: var(--mastilo-tise); }

.zakljucano {
  display: flex; align-items: flex-start; gap: .65rem;
  margin: 0 0 1.25rem;
  padding: .65rem .85rem;
  border: 1.5px solid var(--mastilo);
  font: 500 .92rem/1.35 var(--f-tabla);
  letter-spacing: .02em;
}
.zakljucano svg { flex: none; margin-top: .05rem; }

.karton {
  width: 100%;
  margin: 0 0 1.4rem;
  border-collapse: collapse;
  border: 1.5px solid var(--papir-linija);
  background: var(--papir-svetli);
  font-size: .95rem; line-height: 1.35;
}
.karton caption {
  padding: .6rem .5rem .5rem;
  background: var(--koza);
  color: var(--na-zidu);
  font: 700 1rem/1 var(--f-tabla);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.karton th, .karton td { padding: .42rem .75rem; text-align: left; vertical-align: top; border-top: 1px solid var(--papir-linija); }
.karton th { width: 43%; font-weight: 700; }
.karton__slika { border-top: 0 !important; text-align: center !important; }
.karton figure { margin: 0; padding: .55rem .4rem .2rem; }
.karton__foto {
  position: relative;
  display: inline-block;
  width: min(100%, 12.5rem);
  border: 1px solid var(--papir-linija);
  background: radial-gradient(ellipse at 50% 38%, #e3dccb, #b9af99 95%);
}
.karton__foto img { display: block; width: 100%; height: auto; }
.karton figcaption { margin-top: 1.1rem; font-size: .86rem; font-style: italic; color: var(--mastilo-tise); text-wrap: balance; }

@media (min-width: 40rem) {
  .karton { float: right; width: 17.5rem; margin: .35rem 0 1.1rem 1.9rem; }
}
@media (max-width: 39.99rem) {
  .uvod { display: flex; flex-direction: column; }
  .uvod .karton { order: 2; }
}

.pecat { font-family: var(--f-tabla); pointer-events: none; mix-blend-mode: multiply; }
.pecat--okrugli {
  position: absolute; right: -1.5rem; bottom: -1.25rem;
  width: 5.4rem; height: 5.4rem;
  color: var(--pecat-ljubicasti);
  transform: rotate(-14deg);
  opacity: .9;
}
.pecat--odbijeno { color: var(--pecat-crveni); --kos: -9deg; transform: rotate(var(--kos)); }
.pecat--odeljak { position: absolute; left: 8.6rem; top: -1.35rem; width: 10.5rem; height: 4.6rem; }
.pecat.is-udar { animation: udar .34s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes udar {
  0% { opacity: 0; transform: rotate(var(--kos)) scale(1.9); }
  55% { opacity: 1; transform: rotate(var(--kos)) scale(.93); }
  78% { transform: rotate(var(--kos)) scale(1.035); }
  100% { opacity: 1; transform: rotate(var(--kos)) scale(1); }
}
.is-potres { animation: potres .26s ease-out; }
@keyframes potres {
  0% { translate: 0 0; } 30% { translate: 0 3px; } 60% { translate: 0 -1px; } 100% { translate: 0 0; }
}

.odeljak { position: relative; }
.odeljak h3 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .7rem;
  margin: 2.3rem 0 .75rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid var(--papir-linija);
  font: 400 1.65rem/1.2 var(--f-tekst);
}
.uredi {
  padding: .7rem .2rem; margin: -.7rem 0;
  border: 0; background: none;
  color: var(--veza);
  font: 500 .86rem/1 var(--f-tabla);
  letter-spacing: .03em;
  cursor: pointer;
}
.uredi::before { content: "["; color: var(--mastilo-tise); }
.uredi::after { content: "]"; color: var(--mastilo-tise); }
.uredi:hover { text-decoration: underline; text-underline-offset: .2em; }

.list a { color: var(--veza); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.list a:hover { text-decoration-thickness: 2px; }
sup { font-size: .72em; line-height: 0; }
.ref a { text-decoration: none; padding: .5rem .1rem; }
.citat {
  padding: .6rem .15rem; margin: -.6rem 0;
  border: 0; background: none;
  color: var(--veza);
  font: italic 400 1em/1 var(--f-tekst);
  cursor: pointer;
}
.citat::before { content: "["; }
.citat::after { content: "]"; }
.citat:hover { text-decoration: underline; text-underline-offset: .2em; }
.citat__izvor {
  display: inline-block;
  white-space: nowrap;
  padding: .1em .4em .05em;
  background: var(--papir-svetli);
  box-shadow: 0 0 0 1px var(--papir-linija);
  font: 700 .84em/1 var(--f-masina);
}

.list ul, .list ol { margin: 0 0 1em; padding-left: 1.35rem; }
.list li { margin-bottom: .4rem; }
.list li::marker { color: var(--mastilo-tise); }

.zacrnjeno { margin: 0 0 .9rem; }
.zacrnjeno span { display: block; height: .95em; margin: .5em 0; background: var(--mastilo); }
.zacrnjeno span:nth-child(2) { width: 93%; }
.zacrnjeno span:nth-child(3) { width: 58%; }
.odeljak__napomena { font: 700 .92rem/1.4 var(--f-masina); }

.reference { font-size: .98rem; line-height: 1.5; }
.reference li:target { background: #f0dd9c; box-shadow: 0 0 0 .25rem #f0dd9c; }

.kategorije {
  margin: 2.2rem 0 0;
  padding: .7rem .9rem .6rem;
  border: 1px solid var(--papir-linija);
  background: var(--papir-svetli);
  font: 500 .88rem/1.5 var(--f-tabla);
  letter-spacing: .02em;
}

/* ---------- Slika na ekseru ---------- */
.ram-zid {
  display: grid; justify-items: center;
  gap: 1.6rem;
  width: min(100%, 25rem);
  margin: 0;
  perspective: 900px;
}
.ram {
  position: relative;
  width: 86%;
  padding-top: 3.1rem;
  transform-origin: 50% .4rem;
  transform: rotate(var(--ugao, -3.5deg));
  will-change: transform;
}
.ram__ekser {
  position: absolute; top: 0; left: 50%;
  width: .8rem; height: .8rem; margin-left: -.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--mesing-svetli), var(--mesing-tamni) 72%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .55);
}
.ram__zica { position: absolute; top: .4rem; left: 0; width: 100%; height: 2.75rem; color: #0c1a15; }
.ram__telo {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  cursor: pointer;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--izlaz);
}
.ram__slika {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 468 / 333;
  background:
    radial-gradient(ellipse at 60% 35%, rgba(255, 190, 150, .16), rgba(0, 0, 0, .42) 95%),
    repeating-linear-gradient(90deg, #5c1519 0 5%, #81222a 8.5% 12%, #4b0f13 16% 18%, #6d1b21 22%);
}
.ram__slika img {
  display: block;
  width: 106%; max-width: none; height: auto;
  margin-left: -3%;
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform .6s var(--izlaz);
}
.ram__staklo {
  position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, .2) 44%, transparent 53%, transparent 63%, rgba(255, 255, 255, .09) 69%, transparent 77%) var(--sjaj, 35%) 0 / 230% 100%;
  transition: background-position .6s var(--izlaz);
}
.ram-zid__stanje {
  min-height: 1.4em; margin: -.6rem 0 0;
  font: 700 .88rem/1.4 var(--f-masina);
  color: var(--na-zidu-tise);
  text-align: center;
}

/* ---------- Zahtev za izmenu ---------- */
.zahtev { width: 100%; max-width: 25rem; }
.obrazac {
  position: relative;
  display: grid;
  gap: .3rem;
  padding: clamp(1.3rem, 4.5vw, 2rem);
  background: var(--papir);
  color: var(--mastilo);
  font-family: var(--f-masina);
  transform: rotate(.8deg);
  box-shadow: var(--senka-lista);
}
.obrazac h2 {
  margin: 0;
  font: 700 1.2rem/1.25 var(--f-masina);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.obrazac__broj {
  margin: 0 0 .9rem; padding-bottom: .8rem;
  border-bottom: 1.5px solid var(--mastilo);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.obrazac label { margin-top: .7rem; font: 700 .84rem/1.2 var(--f-masina); letter-spacing: .06em; text-transform: uppercase; }
.obrazac input, .obrazac textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .15rem .4rem;
  border: 0;
  border-bottom: 1.5px dotted var(--mastilo);
  border-radius: 0;
  background: transparent;
  color: var(--mastilo);
  font: 400 1rem/1.45 var(--f-masina);
  caret-color: var(--pecat-crveni);
}
.obrazac textarea { resize: vertical; }
.obrazac ::placeholder { color: var(--mastilo-tise); opacity: 1; }
.obrazac input:focus-visible, .obrazac textarea:focus-visible { border-bottom-style: solid; }
.obrazac .tabla--dugme { justify-self: start; margin-top: 1.2rem; }
.obrazac__napomena { margin: .9rem 0 0; font-size: .84rem; line-height: 1.4; color: var(--mastilo-tise); }
.obrazac__resenje { min-height: 2.9em; margin: .5rem 0 0; font-weight: 700; font-size: .92rem; line-height: 1.45; }
.pecat--obrazac {
  position: absolute; right: 5%; top: 33%;
  width: min(66%, 15rem); aspect-ratio: 220 / 96;
  --kos: -11deg;
}

/* ---------- Pod ---------- */
.pod { background: var(--zid-tamni); color: var(--na-zidu-tise); border-top: 4px solid var(--mesing-tamni); }
.pod__zid {
  display: grid; justify-items: center;
  gap: .35rem;
  padding: clamp(3rem, 8vw, 5rem) 1rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-size: 1rem; line-height: 1.5;
}
.pod__zid p { margin: 0; }
.tabla--radno { margin-bottom: 1.5rem !important; }
.pod__sitno { max-width: 40ch; margin-top: 1rem !important; font-size: .88rem; text-wrap: balance; }
.pod__pogled {
  height: clamp(9rem, 26vw, 15rem);
  overflow: hidden;
  perspective: 520px;
  perspective-origin: 50% 0;
  background: var(--zid-senka);
  border-top: .7rem solid #051610;
}
.pod__ravan {
  display: grid; justify-items: center;
  height: 260%;
  transform-origin: 50% 0;
  transform: rotateX(62deg);
  background: #b7b1a2 var(--teraco, none) 0 0 / 220px 220px;
}
.pod__tepih {
  width: min(46%, 22rem); height: 100%;
  background: linear-gradient(90deg, #5f1015 0 5%, #b8922a 5% 7.5%, var(--tepih) 7.5% 92.5%, #b8922a 92.5% 95%, #5f1015 95%);
  box-shadow: 0 0 22px rgba(0, 0, 0, .45);
}

/* ---------- Mirovanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
