@font-face {
  font-family: "Serif Naslov";
  src: url("/fontovi/serif-naslov-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2018-201E, U+2026;
}

@font-face {
  font-family: "Serif Naslov";
  src: url("/fontovi/serif-naslov-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

@font-face {
  font-family: "Serif Tekst";
  src: url("/fontovi/serif-tekst-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2018-201E, U+2026;
}

@font-face {
  font-family: "Serif Tekst";
  src: url("/fontovi/serif-tekst-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

:root {
  --papir: #f5f3ee;
  --mastilo: #16202b;
  --tekst: #3a4450;
  --tiho: #5d6671;
  --akcent: #1d5c67;
  --linija: rgba(22, 32, 43, .13);
  --linija-jaca: rgba(22, 32, 43, .26);
  --naslov: "Serif Naslov", Georgia, "Times New Roman", serif;
  --serif: "Serif Tekst", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papir: #11171e;
    --mastilo: #ebe7de;
    --tekst: #c3c8ce;
    --tiho: #98a1ab;
    --akcent: #86bec7;
    --linija: rgba(235, 231, 222, .12);
    --linija-jaca: rgba(235, 231, 222, .24);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--papir);
  color: var(--tekst);
  font: 400 1.0625rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: absolute;
  inset: .625rem;
  border: 1px solid var(--linija);
  pointer-events: none;
}

::selection {
  background: var(--akcent);
  color: var(--papir);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--akcent);
  outline-offset: 4px;
  border-radius: 2px;
}

.okvir {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 88rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 6vw, 5.5rem);
}

.znak {
  margin: 0;
  font-family: var(--naslov);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mastilo);
}

.sadrzaj {
  align-self: center;
  max-width: 42rem;
  padding: 4.5rem 0 4rem;
}

.nadnaslov {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.4rem;
  font: 600 .75rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--akcent);
}

.nadnaslov::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: var(--naslov);
  font-weight: 400;
  font-size: clamp(2.9rem, 11.5vw, 6rem);
  line-height: .98;
  letter-spacing: -.022em;
  color: var(--mastilo);
  text-wrap: balance;
}

.uvod {
  max-width: 31ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.4rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.podaci {
  display: grid;
  gap: 1.6rem;
  margin: 2.8rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--linija);
}

.podaci dt {
  margin-bottom: .45rem;
  font: 600 .72rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tiho);
}

.podaci dd {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.podaci a {
  color: var(--mastilo);
  text-decoration: underline;
  text-decoration-color: var(--akcent);
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  transition: color .2s ease;
}

.podaci a:hover {
  color: var(--akcent);
}

.podnozje {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 2rem;
  font: .8rem/1.5 var(--sans);
  color: var(--tiho);
}
.pravna{min-height:100%;display:grid;align-content:start;gap:clamp(2rem,5vw,4rem);padding:clamp(2rem,6vw,5rem)}.pravna main{width:min(100%,54rem);margin-inline:auto}.pravna h1{margin:.25rem 0 1rem;font-size:clamp(2.6rem,7vw,5.8rem);line-height:.92}.pravna section{padding:1.5rem 0;border-top:1px solid var(--linija)}.pravna h2{margin:0 0 .6rem;font-size:clamp(1.25rem,3vw,1.8rem)}.pravna p{max-width:48rem}.pravna .podnozje{width:min(100%,54rem);margin-inline:auto}

.podnozje a {
  color: var(--tekst);
  text-decoration: underline;
  text-decoration-color: var(--linija-jaca);
  text-underline-offset: .25em;
  transition: color .2s ease;
}

.podnozje a:hover {
  color: var(--akcent);
  text-decoration-color: currentColor;
}

/* Cetiri luka su krug planiraj-uradi-proveri-deluj; istaknut je drugi, jer je sajt u izradi. */
.krug {
  position: absolute;
  top: 1.3rem;
  right: clamp(1.5rem, 6vw, 5.5rem);
  width: 2.75rem;
  height: auto;
  fill: none;
  pointer-events: none;
}

.krug__podela {
  display: none;
  stroke: var(--linija-jaca);
  stroke-dasharray: .3 9.7;
}

.krug__luk {
  stroke: var(--linija-jaca);
  stroke-width: 4;
}

.krug__luk--u-toku {
  stroke: var(--akcent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: crtaj 1.8s cubic-bezier(.22, .7, .2, 1) .35s both;
}

.krug__tacka {
  display: none;
  fill: var(--akcent);
  animation: pojavi .6s ease 1.9s both;
}

@keyframes crtaj {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes pojavi {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 40em) {
  .podaci {
    grid-template-columns: repeat(2, max-content);
    column-gap: 4.5rem;
  }
}

@media (min-width: 48em) {
  .okvir {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  body::before {
    inset: 1.125rem;
  }

  .krug {
    top: 2.05rem;
  }
}

@media (min-width: 64em) {
  .okvir {
    grid-template-columns: minmax(0, 36rem) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 7rem);
  }

  .zaglavlje,
  .podnozje {
    grid-column: 1 / -1;
  }

  .sadrzaj {
    grid-column: 1;
    grid-row: 2;
  }

  .krug {
    position: static;
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: center;
    width: min(100%, 30rem, 62vh);
  }

  .krug__podela {
    display: inline;
    stroke-width: 2.4;
  }

  .krug__luk {
    stroke-width: .45;
  }

  .krug__luk--u-toku {
    stroke-width: .8;
  }

  .krug__tacka {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .krug__luk--u-toku,
  .krug__tacka {
    animation: none;
  }

  .podaci a,
  .podnozje a {
    transition: none;
  }
}
