:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --line: #dde2ea;
  --text: #14181f;
  --muted: #5a6372;
  --accent: #1f6fd0;
  --accent-ink: #ffffff;
  --radius: 10px;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mt { margin-top: 32px; }
.center-text { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Zaglavlje */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; flex-direction: column; color: var(--text); line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-name { font-weight: 800; font-size: 1.45rem; letter-spacing: 0.04em; color: var(--text); }
.logo-name b { color: var(--accent); }
.logo-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 3px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { color: var(--text); font-size: 0.95rem; font-weight: 550; padding: 4px 0; }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }

/* Sekcije */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 999px; font-weight: 650; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta.center { justify-content: center; }

/* Kartice */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; font: inherit; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.05);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; box-shadow: 0 10px 24px rgba(20, 24, 31, 0.1); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.top img { object-position: 50% 12%; }
.play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(13, 15, 18, 0.72); display: grid; place-items: center; transition: background 0.15s, transform 0.15s;
}
.play::before { content: ''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.card:hover .play { background: var(--accent); transform: scale(1.08); }
.badge {
  position: absolute; left: 10px; top: 10px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px;
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* Naslovna */
.hero { position: relative; background: #0d0f12; color: #fff; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 15, 18, 0.88), rgba(13, 15, 18, 0.35) 60%, rgba(13, 15, 18, 0.45));
}
.hero-in { position: relative; z-index: 1; padding-top: 96px; padding-bottom: clamp(40px, 7vw, 84px); width: 100%; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40em; color: #e6eaf0; }
.hero .eyebrow { color: #9cc8ff; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.services { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service { border-top: 2px solid var(--accent); padding-top: 18px; }
.service h3 { font-size: 1.25rem; }
.service p { margin: 0; }
.about { display: grid; gap: 24px 56px; grid-template-columns: minmax(200px, 1fr) 2fr; }
.partners { margin-top: 32px; }
.partners ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.partners a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; }
.partners img { height: 56px; width: auto; }
.contact { text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; margin: 28px 0 32px; }
.big { font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 700; color: var(--text); }
.big:hover { color: var(--accent); text-decoration: none; }

/* Video galerija */
.intro { margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 14px;
}
.toolbar .filters { margin: 0; gap: 8px; }
.label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip {
  font: inherit; font-size: 0.93rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
}
.small .chip { font-size: 0.86rem; padding: 6px 13px; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed='true'] span { color: rgba(255, 255, 255, 0.8); }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select {
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.status { font-size: 0.88rem; margin-bottom: 18px; }
.more { display: flex; justify-content: center; margin-top: 36px; }

/* Vest */
.post { max-width: 760px; }
.post h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 0.8em; }
.back { display: inline-block; margin-bottom: 28px; font-size: 0.92rem; }
.body { font-size: 1.08rem; }
.body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: #3c4452; font-style: italic; }
.body blockquote p:last-child { margin-bottom: 0; }
.trailer { margin: 8px 0 28px; }
.figure { margin-top: 28px; border-radius: var(--radius); max-height: 85vh; width: auto; }
.figure.small { width: 135px; }

/* Podnožje */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 24px; background: var(--surface); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 4px 0 0; font-size: 0.85rem; }
.foot-links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.foot-links a { color: var(--text); }
.copy { font-size: 0.82rem; margin-top: 24px; }

/* Prozor za video */
#lb { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; overflow: visible; }
#lb::backdrop { background: rgba(0, 0, 0, 0.88); }
.lb-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.lb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-close {
  position: absolute; right: 0; top: -46px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: #14181f; font-size: 24px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--accent); color: #fff; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 120px; }
  .bar { justify-content: center; }
  .site-header nav { justify-content: center; gap: 2px 16px; }
  .site-header nav a { font-size: 0.9rem; }
  .about { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .play { transition: none; }
}

/* Prekidač jezika i hamburger meni */
.site-header nav { align-items: center; }
.site-header nav a.lang-switch {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; background: var(--surface);
}
.site-header nav a.lang-switch:hover { border-color: var(--accent); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  html { scroll-padding-top: 84px; }
  .bar { justify-content: space-between; }
  .nav-toggle { display: flex; }
  .site-header nav { flex-basis: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding-top: 6px; }
  .js .site-header nav { display: none; }
  .js .site-header nav.open { display: flex; }
  .site-header nav a { font-size: 1.05rem; padding: 13px 2px; border-top: 1px solid var(--line); }
  .site-header nav a.lang-switch { align-self: flex-start; margin: 12px 0 8px; padding: 7px 18px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}
