:root {
  --navy-950: #08122b;
  --navy-900: #0d1b3d;
  --navy-800: #142a5c;
  --navy-600: #1d3f8f;
  --red: #e2262f;
  --red-600: #c51d26;
  --sky: #8ec5ff;

  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #0f1729;
  --muted: #5a6478;
  --line: #e2e6ef;
  --accent: var(--red);
  --link: #1d4fbf;
  --shadow: 0 1px 2px rgba(13, 27, 61, .06), 0 8px 24px rgba(13, 27, 61, .06);

  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1022;
    --bg-alt: #0e1630;
    --surface: #131d3b;
    --text: #e8ecf5;
    --muted: #9aa5bf;
    --line: #233056;
    --link: #8ec5ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
code { font: .9em ui-monospace, "Cascadia Code", Consolas, monospace; background: color-mix(in srgb, var(--line) 60%, transparent); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* language switching */
html[data-lang="hr"] [data-l="en"],
html[data-lang="en"] [data-l="hr"] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--navy-950) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; }
.brand b { color: var(--red); font-weight: 700; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover, .nav a.is-current { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.lang {
  font: 600 .8rem var(--font); letter-spacing: .08em; color: #fff; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px;
}
.lang:hover { border-color: #fff; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--navy-950); border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .topbar__actions { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(29, 79, 191, .55), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(226, 38, 47, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(142, 197, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 197, 255, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226, 38, 47, .25); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: inherit; opacity: .85; max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 44px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-600); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin: 0; }
.stats div { border-left: 2px solid rgba(255, 255, 255, .18); padding-left: 16px; }
.stats dt { font: 700 2rem/1 var(--font-display); }
.stats dd { margin: 6px 0 0; font-size: .85rem; opacity: .7; }
.hero__badge { position: relative; justify-self: center; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero__badge img { position: relative; width: 82%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.radar { position: absolute; inset: 0; }
.radar i { position: absolute; inset: 0; border: 1px solid rgba(142, 197, 255, .35); border-radius: 50%; animation: ping 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.radar i:nth-child(2) { animation-delay: 1.5s; }
.radar i:nth-child(3) { animation-delay: 3s; }
@keyframes ping { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar i { animation: none; opacity: .3; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 24px; }
  .hero__badge { order: -1; width: min(240px, 60vw); }
  .stats { gap: 20px; grid-template-columns: repeat(3, 1fr); }
  .stats dt { font-size: 1.6rem; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 40px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prose { font-size: 1.08rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.roles li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.roles__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--navy-600) 12%, transparent); color: var(--navy-600); }
@media (prefers-color-scheme: dark) { .roles__icon { color: var(--sky); background: rgba(142, 197, 255, .1); } }
.roles svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.roles h3 { margin-bottom: 4px; }
.roles p { margin: 0; color: var(--muted); }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: "0" counter(s); display: block; font: 700 .85rem var(--font-display); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.notice { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 20px 22px; border-radius: var(--radius); background: color-mix(in srgb, var(--red) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.notice svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice p { margin: 0; }

/* ---------- live spots ---------- */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.seg { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seg__btn { font: 600 .9rem var(--font); color: var(--muted); background: transparent; border: 0; padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.seg__btn.is-active { background: var(--navy-900); color: #fff; }
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.spots__empty { grid-column: 1 / -1; margin: 0; padding: 40px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.spot { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 8px; }
.spot__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.spot__call { font: 700 1.2rem var(--font-display); letter-spacing: .02em; }
.spot__time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.spot__freq { font: 600 .95rem ui-monospace, Consolas, monospace; }
.spot__refs { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--navy-600) 12%, transparent); color: inherit; text-decoration: none; }
.tag--9a { background: color-mix(in srgb, var(--red) 15%, transparent); }
.tag--qrt { background: color-mix(in srgb, var(--muted) 20%, transparent); }
.tag--live { background: rgba(22, 163, 74, .18); }
.spot__comment { font-size: .85rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }

/* ---------- bunker explorer ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 500 .88rem var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: opacity .15s, border-color .15s; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip small { color: var(--muted); }
.chip[aria-pressed="false"] { opacity: .45; }
.chip:hover { border-color: var(--muted); }
.explorer { display: grid; grid-template-columns: 1fr 380px; gap: 16px; height: 620px; margin-bottom: 16px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #dfe6ef; z-index: 0; }
.list { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search { display: flex; align-items: center; gap: 8px; margin: 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 1rem var(--font); padding: 11px 0; outline: none; }
.search:focus-within { border-color: var(--link); }
.list__count { margin: 0 16px 8px; }
.list__items { list-style: none; margin: 0; padding: 0 6px 6px; overflow-y: auto; flex: 1; }
.list__items button { width: 100%; text-align: left; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 4px 12px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.list__items button:hover, .list__items button.is-active { background: color-mix(in srgb, var(--navy-600) 9%, transparent); }
.list__items i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); grid-row: span 2; }
.list__items b { font-weight: 600; }
.list__items .ref { font: 600 .8rem ui-monospace, Consolas, monospace; color: var(--muted); }
.list__items .sub { grid-column: 2 / 4; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; height: auto; }
  .map { height: 420px; }
  .list { height: 460px; }
}

/* leaflet popups */
.leaflet-popup-content { font: 14px/1.45 var(--font); margin: 14px 16px; }
.pop__ref { font: 700 .8rem ui-monospace, Consolas, monospace; color: var(--red); }
.pop__name { font: 700 1.05rem var(--font-display); margin: 2px 0 6px; }
.pop__meta { color: #5a6478; margin-bottom: 8px; }
.pop__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- rules ---------- */
.rules { display: grid; gap: 10px; }
.rules details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.rules summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 600 1.1rem var(--font-display); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--muted); transition: transform .2s; }
.rules details[open] summary::after { transform: rotate(45deg); }
.rules ul { margin: 0; padding: 0 22px 20px 42px; display: grid; gap: 10px; }
.rules ol { margin-top: 8px; display: grid; gap: 6px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; }
.card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card--accent { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; border-color: transparent; }
.card--accent .kicker { color: var(--sky); }
.card--accent p { opacity: .85; }
.card--accent .link-arrow { color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { font-weight: 500; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.card--banner { padding: 0; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.card--banner img { width: 100%; aspect-ratio: 1302 / 178; object-fit: cover; }
.card--banner p { padding: 20px 24px; margin: 0; color: var(--muted); flex: 1; display: flex; align-items: center; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } .card--banner { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact .lead { opacity: 1; color: var(--muted); margin-top: 14px; }
.mail { display: inline-block; font: 700 clamp(1.3rem, 3vw, 1.8rem) var(--font-display); text-decoration: none; color: var(--text); border-bottom: 3px solid var(--red); padding-bottom: 2px; }
.form { display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: 1rem var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid color-mix(in srgb, var(--link) 50%, transparent); border-color: var(--link); }
.form .btn { justify-self: start; }
.form p { margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: #fff; padding: 32px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .muted { color: rgba(255, 255, 255, .6); }
.footer a { color: rgba(255, 255, 255, .85); }
.footer p { margin: 0; }
.brand--footer img { width: 36px; height: 36px; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
