:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-hover: #1e222b;
  --border: #262b36;
  --text: #e7eaf0;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-hover: #f0f3fa;
    --border: #e2e6ef;
    --text: #1b2130;
    --muted: #5b6577;
    --accent: #2f6fed;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.head { text-align: center; margin-bottom: 40px; }
.head h1 { font-size: 2rem; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.tile:hover {
  transform: translateY(-2px);
  background: var(--panel-hover);
  border-color: var(--accent);
}
.tile__icon { font-size: 1.8rem; }
.tile__name { font-weight: 600; font-size: 1.05rem; }
.tile__desc { color: var(--muted); font-size: .9rem; }

.foot {
  margin-top: 48px;
  text-align: center;
  font-size: .85rem;
}
.foot a, .head a { color: var(--accent); }

/* Baner zgody */
.consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.consent p { margin: 0; font-size: .9rem; color: var(--muted); }
.consent a { color: var(--accent); }
.consent__btns { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
  .consent__btns { justify-content: center; }
}
