<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Грамоты</title>
<style>
body { margin: 0; font-family: system-ui, sans-serif; background: #0f1115; color: #e8e8e8; }
h1 { text-align: center; padding: 32px 16px 8px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 24px; max-width: 1100px; margin: 0 auto; }
.card { background: #1a1d24; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .15s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 95%; border-radius: 8px; }
</style>
</head>
<body>
<h1>Грамоты</h1>
<div class="grid" id="grid"></div>
<div class="lightbox" id="lb"><img id="lbImg" alt=""></div>
<script>
const files = ["ВСКБ2025.png", "ВСКБ2026.png", "solar.png", "blusec.png", "DUCKERZCTF.png", "kubokctf.png"];
const grid = document.getElementById("grid");
const lb = document.getElementById("lb");
const lbImg = document.getElementById("lbImg");
files.forEach(f => {
const card = document.createElement("div");
card.className = "card";
card.innerHTML = `<img src="${f}" alt="${f}" loading="lazy">`;
card.onclick = () => { lbImg.src = f; lb.classList.add("open"); };
grid.appendChild(card);
});
lb.onclick = () => lb.classList.remove("open");
</script>
</body>
</html>