:root { --blue: #0b2a6f; --dark: #07183f; --yellow: #f5b800; --text: #eef1f8; }
* { box-sizing: border-box; }
@font-face { font-family: "Exoner"; src: url(fonts/Exoner.otf) format("opentype"); font-display: swap; }
@font-face { font-family: "Bowlby One SC"; src: url(fonts/BowlbyOneSC.ttf) format("truetype"); font-weight: 400; font-display: swap; }
:root { --head: "Exoner", Impact, sans-serif; --body: "Bowlby One SC", Arial, sans-serif; }
body { margin: 0; background: var(--dark); color: var(--text); font: 14px/1.7 var(--body); font-synthesis: none; }
a { color: var(--yellow); }
img { max-width: 100%; display: block; }

header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 30px; transition: background .2s, padding .2s, box-shadow .2s; }
header.solid { background: var(--blue); padding: 8px 30px; box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font: 22px/1 var(--head); text-transform: uppercase; letter-spacing: 1px; }
.brand img { height: 52px; width: auto; }
nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: bold; margin-left: 18px; padding: 4px 0; border-bottom: 3px solid transparent; }
nav a:hover, nav a.on { border-bottom-color: var(--yellow); }

main { max-width: 960px; margin: 0 auto; padding: 24px 20px 60px; }
main:empty { display: none; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .5px; font-weight: normal; margin: 1.2em 0 .4em; }
h1 { font-size: 34px; margin-top: 0; }
h2 { font-size: 24px; color: var(--yellow); border-bottom: 2px solid var(--blue); padding-bottom: 4px; }
h3 { font-size: 20px; margin: 0 0 4px; }
.muted, .meta { color: #9aa6c4; }

.hero { height: 100vh; min-height: 480px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(11,42,111,.55) 0%, rgba(7,24,63,.95) 80%), url(hero.jpg) center / cover, var(--dark); }
.hero img { width: min(380px, 70vw); filter: drop-shadow(0 0 25px rgba(0,0,0,.8)); }
nav a { text-shadow: 0 1px 4px #000; }
body > main:first-of-type { padding-top: 110px; }
body.home > main:first-of-type { padding-top: 0; }
.center { text-align: center; }
h2.big { font-size: 48px; color: var(--yellow); border: 0; margin: 20px 0 30px; }
.noimg { aspect-ratio: 4 / 3; background: var(--dark); display: flex; align-items: center; justify-content: center; padding: 0 !important; }
.noimg img { width: 45%; aspect-ratio: auto; object-fit: contain; }

.post { border-left: 4px solid var(--yellow); padding: 4px 0 4px 14px; margin: 18px 0; }
.post time { color: #9aa6c4; font-size: 14px; }
.post p { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0 30px; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--blue); }
.grid a:hover img { outline: 3px solid var(--yellow); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.grid.small form { display: flex; flex-direction: column; gap: 4px; }

.banner { background: linear-gradient(rgba(11,42,111,.85), rgba(7,24,63,.95)), url(logo.png) center 30% / 260px no-repeat var(--blue); border-bottom: 4px solid var(--yellow); text-align: center; padding: 120px 20px 40px; }
.banner h1 { margin: 0; font-size: 56px; color: #fff; }
.crumbs { text-transform: uppercase; font-size: 13px; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 10px 0 30px; }
.card { background: var(--blue); border: 1px solid #1d3f93; text-decoration: none; color: var(--text); display: block; }
.card:hover { border-color: var(--yellow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card div { padding: 10px 12px 14px; text-align: center; }
.card h3 { color: var(--yellow); margin: 0 0 6px; font-family: var(--head); text-transform: uppercase; font-size: 20px; }
.card p { margin: 0 0 4px; font-size: 13px; }

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(3,10,30,.95); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lb button { position: absolute; background: transparent; color: #fff; border: 0; cursor: pointer; line-height: 1; }
.lb button:hover { color: var(--yellow); background: transparent; }
.lb-x { top: 12px; right: 20px; font-size: 56px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 70px; padding: 10px 18px; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
body.lb-open { overflow: hidden; }

.form { display: grid; gap: 12px; max-width: 480px; }
label { display: grid; gap: 4px; font-weight: bold; font-size: 14px; }
input, select, textarea { font: inherit; padding: 8px; border: 2px solid var(--blue); background: #fff; color: #000; border-radius: 0; }
button { font: 14px var(--body); text-transform: uppercase; padding: 9px 16px; background: var(--yellow); color: #000; border: 0; cursor: pointer; }
button:hover { background: #fff; }
button.danger { background: #8b1c1c; color: #fff; padding: 5px 10px; font-size: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 6px; }
.right { text-align: right; }
.ok { background: #1c5a2a; padding: 8px 12px; }
.err { background: #8b1c1c; padding: 8px 12px; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; color: #9aa6c4; border-top: 2px solid var(--blue); font-size: 14px; }
.adminlink { color: #9aa6c4; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.adminlink:hover { color: var(--yellow); }

@media (max-width: 600px) {
  nav a { margin: 0 12px 0 0; }
}
