/* Ciklokros Liga · brand book. Samo izgled; ponašanje je u prezentacija.js */
:root {
  --noc: #081A2E;
  --plava: #0E2A47;
  --plava-700: #163A5F;
  --tirkiz: #2DB4A4;
  --tirkiz-sv: #4FD0BF;
  --papir: #F4F2ED;
  --signal: #FFB703;
  --crta: #E2DED5;
  --siva: #5B6B7C;
  --siva-sv: #8FA3B8;
  --naslovi: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --tekst: 'Inter', system-ui, sans-serif;
  --rub: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; background: var(--noc); }
body { margin: 0; font-family: var(--tekst); color: var(--noc); background: var(--papir); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--naslovi); font-weight: 700; text-transform: uppercase; margin: 0; line-height: .95; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; }

/* ---------- slajd ---------- */
.slajd {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  padding: clamp(72px, 9vh, 112px) var(--rub) clamp(56px, 8vh, 96px);
  display: flex; flex-direction: column; gap: clamp(24px, 4vh, 48px); overflow: hidden;
}
.slajd--tamni { background: var(--noc); color: var(--papir); }
.slajd--plavi { background: var(--plava); color: var(--papir); }
.slajd--bijeli { background: #fff; }
.zaglavlje-slajda {
  position: absolute; top: 28px; left: var(--rub); right: var(--rub);
  display: flex; justify-content: space-between; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--siva); z-index: 2;
}
.slajd--tamni .zaglavlje-slajda, .slajd--plavi .zaglavlje-slajda, .slajd--foto .zaglavlje-slajda { color: var(--siva-sv); }
.naslov { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.naslov h2 { font-size: clamp(48px, 6.6vw, 112px); }
.naslov p { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: var(--siva); max-width: 560px; }
.slajd--tamni .naslov p, .slajd--plavi .naslov p { color: var(--siva-sv); }
.oznaka { font-family: var(--naslovi); font-weight: 600; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--tirkiz); }
.slajd--tamni .oznaka, .slajd--plavi .oznaka { color: var(--tirkiz-sv); }
.sadrzaj { flex: 1; min-height: 0; display: flex; }

/* ---------- naslovnica ---------- */
.slajd--foto { color: var(--papir); background: var(--noc); }
.foto-pozadina { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zatamnjenje { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,46,.96) 0%, rgba(8,26,46,.82) 42%, rgba(8,26,46,.25) 100%); }
.zatamnjenje--dolje { background: linear-gradient(0deg, rgba(8,26,46,.95) 0%, rgba(8,26,46,.35) 55%, rgba(8,26,46,.15) 100%); }
.naslovnica { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.naslovnica img { width: min(520px, 70vw); }
.naslovnica__dno { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.naslovnica__dno h1 { font-size: clamp(40px, 5vw, 76px); }
.naslovnica__dno span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--siva-sv); }

/* ---------- sadržaj ---------- */
.popis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; width: 100%; margin-top: auto; }
.popis li { border-top: 1px solid rgba(244,242,237,.14); }
.popis a { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; text-decoration: none; font-family: var(--naslovi); font-weight: 600; font-size: clamp(24px, 2.4vw, 38px); text-transform: uppercase; transition: color .2s, padding .2s; }
.popis a:hover { color: var(--tirkiz-sv); padding-left: 8px; }
.popis small { font-family: var(--tekst); font-size: 13px; font-weight: 500; color: var(--tirkiz-sv); min-width: 28px; }

/* ---------- znak ---------- */
.dvostupac { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: stretch; width: 100%; }
.platno { position: relative; border-radius: 20px; background: var(--noc); height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.platno--papir { background: var(--papir); border: 1px solid var(--crta); }
.konstrukcija { position: relative; width: 70%; }
.konstrukcija svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nacela { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.nacela li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(244,242,237,.14); }
.nacela b { font-family: var(--naslovi); font-size: 40px; line-height: .9; color: var(--tirkiz-sv); }
.nacela h3 { font-size: 26px; margin-bottom: 6px; }
.nacela p { font-size: 15px; line-height: 1.55; color: var(--siva-sv); }

/* ---------- glavni logo ---------- */
.pozornica { flex: 1; display: flex; align-items: center; justify-content: center; }
.pozornica { min-height: 0; }
.pozornica img { width: auto; height: min(42vh, 380px); }
.biljeske { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--crta); padding-top: 24px; }
.biljeske strong { display: block; font-size: 15px; margin-bottom: 4px; }
.biljeske span { font-size: 14px; line-height: 1.5; color: var(--siva); }

/* ---------- verzije ---------- */
.mreza { display: grid; gap: 20px; width: 100%; }
.mreza--verzije { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.plocica { border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; min-height: 220px; position: relative; overflow: hidden; }
.plocica > img:not(.foto-pozadina) { margin: auto; position: relative; z-index: 1; }
.plocica figcaption { position: relative; z-index: 1; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.plocica--siroka { grid-column: span 2; }
.plocica--noc { background: var(--noc); color: var(--siva-sv); }
.plocica--plava { background: var(--plava); color: var(--siva-sv); }
.plocica--papir { background: var(--papir); color: var(--siva); border: 1px solid var(--crta); }
.plocica--bijela { background: #fff; color: var(--siva); border: 1px solid var(--crta); }
.plocica--tirkiz { background: var(--tirkiz); color: var(--noc); }
.slozeni-mali { width: min(220px, 70%); }
.vodoravni-mali { width: min(380px, 80%); }
.ikona-mala { width: 96px; border-radius: 22px; }

/* ---------- prostor ---------- */
.zastita { position: relative; padding: clamp(28px, 4vw, 56px); outline: 2px dashed var(--tirkiz-sv); outline-offset: -1px; }
.zastita img { width: auto; height: min(24vh, 220px); outline: 1px solid rgba(79,208,191,.3); }
.zastita i { position: absolute; font-style: normal; font-family: var(--naslovi); font-weight: 600; color: var(--tirkiz-sv); font-size: 18px; }
.zastita i:nth-of-type(1) { top: 50%; left: 8px; transform: translateY(-50%); }
.zastita i:nth-of-type(2) { left: 50%; top: 4px; }
.velicine { display: flex; flex-direction: column; justify-content: center; }
.velicina { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(244,242,237,.14); }
.velicina strong { display: block; font-family: var(--naslovi); font-size: 28px; text-transform: uppercase; }
.velicina span { font-size: 14px; line-height: 1.5; color: var(--siva-sv); }

/* ---------- boje ---------- */
.boje { display: grid; grid-template-columns: 2.2fr 1.2fr 1fr 1fr .8fr; gap: 12px; width: 100%; }
.boja { border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; }
.boja h3 { font-size: clamp(26px, 2.4vw, 40px); }
.boja dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.boja dt { opacity: .65; }
.boja dd { margin: 0; font-weight: 600; }
.boja p { font-size: 13px; line-height: 1.5; margin-top: 14px; opacity: .85; }
.omjer { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 16px; }
.omjer-opis { display: flex; justify-content: space-between; font-size: 12px; color: var(--siva); margin-top: 8px; }

/* ---------- tipografija ---------- */
.fontovi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.font { border-radius: 16px; padding: 28px; background: #fff; border: 1px solid var(--crta); display: flex; flex-direction: column; gap: 18px; }
.font--tamni { background: var(--noc); color: var(--papir); border-color: var(--noc); }
.font small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--siva); }
.font--tamni small { color: var(--tirkiz-sv); }
.font .uzorak { font-size: clamp(88px, 10vw, 160px); line-height: .85; }
.font .abeceda { font-size: 17px; line-height: 1.6; word-break: break-word; color: var(--plava-700); }
.font--tamni .abeceda { color: var(--siva-sv); }
.font p { font-size: 14px; line-height: 1.55; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--crta); }
.font--tamni p { border-color: rgba(244,242,237,.14); color: var(--siva-sv); }
.exo { font-family: 'Exo 2', sans-serif; font-style: italic; font-weight: 800; }
.barlow { font-family: var(--naslovi); font-weight: 700; }
.inter { font-family: var(--tekst); font-weight: 600; letter-spacing: -.03em; }
.hijerarhija { display: flex; flex-direction: column; gap: 6px; }

/* ---------- fotografija ---------- */
.mreza--foto { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.foto { position: relative; border-radius: 16px; overflow: hidden; min-height: 200px; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto--visoka { grid-row: span 2; }
.foto figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; color: var(--papir); font-size: 13px; font-weight: 500; }
.foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,26,46,.8), rgba(8,26,46,0) 50%); }
.pravila { display: flex; flex-direction: column; gap: 14px; }
.pravila li { font-size: 15px; line-height: 1.5; }

/* ---------- logo na fotografiji ---------- */
.hero-logo { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.hero-logo img { width: min(640px, 80vw); }
.hero-logo p { max-width: 520px; color: var(--siva-sv); font-size: 16px; line-height: 1.55; }

/* ---------- pogrešno ---------- */
.mreza--ne { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ne { display: flex; flex-direction: column; gap: 12px; }
.ne__polje { position: relative; border-radius: 14px; background: var(--noc); aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ne__polje img:not(.foto-pozadina) { width: 34%; position: relative; }
.ne__polje::before { content: '✕'; position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #D64545; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.ne span { font-size: 15px; font-weight: 500; }
.ne--rasteg img { transform: scaleX(1.5); }
.ne--okret img { transform: rotate(-14deg); }
.ne--boje img { filter: hue-rotate(150deg) saturate(3); }
.ne--sjena img { filter: drop-shadow(8px 10px 4px rgba(0,0,0,.9)) drop-shadow(0 0 12px #4FD0BF); }
.ne--obris img { opacity: .35; }

/* ---------- primjena ---------- */
.primjena { display: grid; grid-template-columns: 2.1fr 1fr .75fr; gap: 24px; width: 100%; align-items: start; }
.primjer { display: flex; flex-direction: column; gap: 12px; }
.primjer > span { font-size: 13px; color: var(--siva); }
.preglednik { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(8,26,46,.45); border: 1px solid var(--crta); }
.preglednik__traka { height: 38px; background: #E8E5DE; display: flex; align-items: flex-end; gap: 8px; padding: 0 14px; }
.preglednik__kartica { height: 30px; padding: 0 16px; border-radius: 9px 9px 0 0; background: #fff; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.preglednik__kartica img { width: 16px; border-radius: 4px; }
.web-traka { height: 76px; background: var(--noc); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; }
.web-traka img { height: 38px; width: auto; }
.web-traka nav { display: flex; gap: 26px; font-family: var(--naslovi); font-weight: 600; font-size: 18px; text-transform: uppercase; color: var(--papir); }
.web-traka nav span:first-child { color: var(--tirkiz-sv); }
.web-hero { position: relative; height: clamp(200px, 30vh, 300px); }
.web-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.web-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,26,46,.92), rgba(8,26,46,.1)); }
.web-hero div { position: absolute; left: 28px; bottom: 26px; z-index: 1; color: var(--papir); }
.web-hero h3 { font-size: clamp(32px, 3.4vw, 52px); }
.web-hero .gumb { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 8px; background: var(--tirkiz); color: var(--noc); font-family: var(--naslovi); font-weight: 700; font-size: 16px; text-transform: uppercase; }
.objava { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8,26,46,.45); }
.objava > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.objava__tekst { position: absolute; inset: auto 20px 20px; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.objava::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,26,46,.97) 30%, rgba(8,26,46,0) 75%); }
.objava__tekst small { font-family: var(--naslovi); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tirkiz-sv); font-size: 14px; }
.objava__tekst h3 { color: var(--papir); font-size: clamp(28px, 2.6vw, 40px); }
.objava__tekst img { width: 60%; margin-top: 8px; }
.startni { aspect-ratio: 3 / 4; border-radius: 14px; background: #fff; border: 1px solid var(--crta); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8,26,46,.45); }
.startni > img { width: 44%; }
.startni b { font-family: var(--naslovi); font-size: clamp(80px, 8vw, 128px); line-height: .8; color: var(--noc); }
.startni div { width: 100%; padding: 10px; background: var(--tirkiz); text-align: center; font-family: var(--naslovi); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--noc); font-size: 14px; }

/* ---------- preuzimanja ---------- */
.datoteke { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.datoteka { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; background: rgba(244,242,237,.05); border: 1px solid rgba(244,242,237,.1); text-decoration: none; transition: background .2s, border-color .2s; }
.datoteka:hover { background: rgba(79,208,191,.1); border-color: var(--tirkiz-sv); }
.datoteka__slika { width: 96px; height: 64px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.datoteka__slika img { max-width: 78%; max-height: 64%; }
.datoteka strong { display: block; font-size: 14px; }
.datoteka small { font-size: 12px; color: var(--siva-sv); }
.sve { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 10px; background: var(--tirkiz-sv); color: var(--noc); text-decoration: none; font-family: var(--naslovi); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- kraj ---------- */
.kraj { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; text-align: center; }
.kraj img { width: min(180px, 40vw); }
.kraj p { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--siva-sv); }

/* ---------- navigacija prezentacije ---------- */
.tocke { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 10px; }
.tocke a { width: 8px; height: 8px; border-radius: 50%; background: rgba(143,163,184,.45); transition: transform .2s, background .2s; }
.tocke a[aria-current="true"] { background: var(--tirkiz-sv); transform: scale(1.5); }
.brojac { position: fixed; right: 22px; bottom: 20px; z-index: 10; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--siva-sv); mix-blend-mode: difference; }
.uputa { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10; font-size: 12px; color: var(--siva-sv); background: rgba(8,26,46,.75); padding: 8px 14px; border-radius: 20px; backdrop-filter: blur(6px); transition: opacity .6s; }
.uputa.skriveno { opacity: 0; pointer-events: none; }

/* ---------- uski zasloni ---------- */
@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .slajd { min-height: auto; padding-top: 72px; }
  .naslov, .dvostupac, .popis, .biljeske, .fontovi, .datoteke, .primjena { grid-template-columns: 1fr; }
  .mreza--verzije, .mreza--ne { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mreza--foto { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .foto--visoka { grid-row: auto; grid-column: span 2; }
  .boje { grid-template-columns: 1fr 1fr; }
  .boja:first-child { grid-column: span 2; }
  .boja { min-height: 200px; }
  .velicina { grid-template-columns: 120px 1fr; }
  .web-traka nav { display: none; }
  .tocke, .uputa { display: none; }
}
@media (max-width: 560px) {
  .mreza--verzije, .mreza--ne { grid-template-columns: 1fr; }
  .plocica--siroka { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
