:root {
  --zelena: #0f2a1f;
  --zelena-2: #163d2d;
  --zelena-3: #1f5a40;
  --zuta: #ffc21a;
  --zuta-2: #ffd659;
  --papir: #f7f5ef;
  --bela: #ffffff;
  --tekst: #16211c;
  --tekst-2: #55635c;
  --linija: #e2ded3;
  --radius: 16px;
  --max: 1180px;
  font: 17px/1.65 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--tekst);
  background: var(--papir);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--zelena-3); }
h1, h2, h3 { font-family: "Unbounded", "Manrope", sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--zelena); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); }
h3 { font-size: 1.05rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.uzi { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; color: var(--zelena-3); margin: 0 0 .8rem; }
.lead { font-size: 1.15rem; color: var(--tekst-2); }
.sitno { font-size: .85rem; color: var(--tekst-2); }
.accent { color: var(--zuta); }
.skok { position: absolute; left: -999px; }
.skok:focus { left: 1rem; top: 1rem; background: var(--zuta); padding: .5rem 1rem; z-index: 99; }

/* dugmad */
.btn { display: inline-block; background: var(--zuta); color: var(--zelena); font-weight: 800; text-decoration: none; border: 2px solid var(--zuta); padding: .85rem 1.5rem; border-radius: 999px; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--zuta-2); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.ili-pozovi { margin: .9rem 0 0; font-size: .95rem; }
.ili-pozovi a { font-weight: 800; color: inherit; }

/* header */
.nav { position: sticky; top: 0; z-index: 50; background: var(--zelena); color: #fff; }
.nav-in { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: inherit; letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--zuta); }
.brand-znak { width: 26px; height: 26px; border: 3px solid var(--zuta); border-radius: 4px 4px 4px 12px; position: relative; display: inline-block; }
.brand-znak::after { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(255,255,255,.75); border-radius: 2px; }
.nav-links { margin-left: auto; display: flex; gap: 1.2rem; }
.nav-links a { color: #e8efe9; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--zuta); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* hero */
.hero { position: relative; background: var(--zelena); color: #fff; padding: 4.5rem 0 4rem; overflow: hidden; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.hero-in { position: relative; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.hero h1 { color: #fff; }
.hero .lead { color: #cfdad3; max-width: 640px; margin: 0 auto 1.6rem; }
.hero .eyebrow { color: var(--zuta); }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; }
.hero-karta { display: block; max-width: 760px; margin: 1.8rem auto 1.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #0b1f17; }
.hero-karta img { display: block; width: 100%; height: auto; }
.hero .btn-wide { display: block; max-width: 760px; margin: 0 auto; text-align: center; padding: 1rem 1.5rem; font-size: 1.05rem; white-space: normal; }
.hero-link { margin: 1rem 0 0; font-size: .95rem; }
.hero-link a { color: #cfdad3; }

/* sekcije i kartice */
.sekcija { padding: 3.5rem 0; }
.svi { padding-top: 0; }
.grupa { margin-bottom: 2.6rem; scroll-margin-top: 90px; }
.mreza { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.kartica { display: flex; flex-direction: column; gap: .35rem; background: var(--bela); border: 1px solid var(--linija); border-radius: var(--radius); padding: 1.25rem 1.3rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kartica:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,42,31,.1); border-color: var(--zelena-3); }
.kartica h3 { margin: 0; font-size: 1.02rem; }
.kartica p { margin: 0; color: var(--tekst-2); font-size: .93rem; flex: 1; }
.kartica .kat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--zelena-3); }
.kartica .dalje { font-weight: 800; color: var(--zelena-3); font-size: .9rem; margin-top: .4rem; }
.istaknuto .kartica.velika { background: var(--zelena-2); color: #fff; border-color: transparent; padding: 1.6rem; }
.istaknuto .kartica.velika h3 { color: var(--zuta); font-size: 1.25rem; }
.istaknuto .kartica.velika p { color: #d7e2db; font-size: 1rem; }
.istaknuto .kartica.velika .dalje { color: #fff; }

/* autor na početnoj */
.autor-kratko { background: var(--bela); border-top: 1px solid var(--linija); }
.autor-in { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
.autor-in img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
@media (max-width: 760px) { .autor-in { grid-template-columns: 1fr; } .autor-in img { max-width: 260px; } }

/* članak */
.clanak { padding: 2.5rem 0 3rem; }
.mrvice { font-size: .85rem; color: var(--tekst-2); margin-bottom: 1rem; }
.mrvice a { color: inherit; }
.autor-traka { display: flex; gap: .8rem; align-items: center; margin: 1.4rem 0 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--linija); font-size: .95rem; }
.autor-traka img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.autor-traka a { color: inherit; text-decoration: none; }
.toc { background: var(--bela); border: 1px solid var(--linija); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0 0 2rem; font-size: .95rem; }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }
.tekst { font-size: 1.07rem; }
.tekst h2 { margin-top: 2.2rem; scroll-margin-top: 90px; }
.tekst h3 { margin-top: 1.6rem; }
.tekst p, .tekst li { line-height: 1.7; }
.tekst ol > li, .tekst ul > li { margin: .45rem 0; }
.tekst ol { counter-reset: korak; list-style: none; padding-left: 0; }
.tekst ol > li { counter-increment: korak; position: relative; padding-left: 2.6rem; margin: .8rem 0; }
.tekst ol > li::before { content: counter(korak); position: absolute; left: 0; top: .05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--zuta); color: var(--zelena); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.tekst blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; background: #fff7dc; border-left: 4px solid var(--zuta); border-radius: 0 var(--radius) var(--radius) 0; }
.tekst blockquote p { margin: 0; }
.tekst table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.2rem 0; background: var(--bela); }
.tekst th, .tekst td { border: 1px solid var(--linija); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.tekst th { background: #eef2ec; }
.tekst code { background: #eef2ec; padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }
.slika { margin: 1.6rem 0; }
.slika img { border: 1px solid var(--linija); border-radius: 10px; background: #fff; display: block; }
.slika figcaption { font-size: .85rem; color: var(--tekst-2); margin-top: .4rem; }
.kutija { background: var(--bela); border: 1px solid var(--linija); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1.4rem 0; }
.kutija.upozorenje { background: #fff1ee; border-color: #f3c7bd; }
.kutija.savet { background: #ecf5ef; border-color: #c9e0d1; }
.kutija > :first-child { margin-top: 0; } .kutija > :last-child { margin-bottom: 0; }

/* video */
.video { margin: 2.5rem 0; }
.vid { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid.uspravno { aspect-ratio: 9/16; max-width: 360px; }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--zuta); cursor: pointer; }
.play::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--zelena); }

.video-stavka { margin: 0 0 1.6rem; }
.video-stavka video { width: 100%; height: auto; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); display: block; }
.video-stavka figcaption { margin-top: .6rem; }
.video-stavka figcaption strong { display: block; }
.video-opis { margin: .2rem 0 0; font-size: .92rem; color: var(--tekst-2); }

/* faq, izvori */
.faq { margin: 2.5rem 0; }
.faq details { background: var(--bela); border: 1px solid var(--linija); border-radius: 12px; padding: .2rem 1.1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: .7rem 0; }
.faq details div { padding-bottom: .8rem; color: var(--tekst-2); }
.izvori ul { padding-left: 1.2rem; }

/* CTA */
.cta-kutija { display: flex; gap: 1.2rem; align-items: center; background: var(--zelena-2); color: #fff; border-radius: var(--radius); padding: 1.6rem; margin: 2.5rem 0 1rem; }
.cta-kutija img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cta-kutija h2 { color: var(--zuta); font-size: 1.3rem; margin-bottom: .3rem; }
.cta-kutija p { margin: 0 0 1rem; color: #d7e2db; }
@media (max-width: 600px) { .cta-kutija { flex-direction: column; text-align: center; } }
.cta-veliki { background: var(--zelena); color: #fff; text-align: center; padding: 4rem 0; }
.cta-veliki h2 { color: #fff; }
.cta-veliki p { color: #cfdad3; max-width: 560px; margin: 0 auto 1.6rem; }
.povezani { margin-top: 2rem; }
.povezani h2 { font-size: 1.3rem; }

/* autor strana */
.autor-hero { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.autor-hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.stats { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: "Unbounded", sans-serif; font-size: 1.5rem; color: var(--zelena); }
.stats span { font-size: .85rem; color: var(--tekst-2); }
@media (max-width: 600px) { .autor-hero { grid-template-columns: 1fr; } .autor-hero img { max-width: 220px; } }

/* footer */
.footer { background: #0b1f17; color: #c6d2cb; padding: 3rem 0 1.5rem; font-size: .93rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.footer p { margin: .3rem 0; }
.footer a { color: #e8efe9; }
.footer .brand { color: #fff; }
.footer .sitno { color: #8ea396; }
.copy { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); color: #8ea396; font-size: .85rem; }
@media (max-width: 860px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; } }
@media print { .nav, .cta-veliki, .cta-kutija, .footer, .povezani, .video { display: none; } }
