:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1b1f24;
  --muted: #44505c;
  --line: #d5dde5;
  --brand: #0b4f8a;
  --brand-dark: #083a66;
  --completed: #0f6b3d;
  --actual: #b45309;
  --focus: #ffbf47;
  --radius: 8px;
  font-size: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--brand); }
a:focus, button:focus, select:focus, input:focus, textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 8px; background: #000; color: #fff; padding: 8px; z-index: 20; }
.site-header, .site-footer, .admin-header {
  background: var(--brand-dark);
  color: #fff;
}
.site-header a, .admin-header a, .site-footer a { color: #fff; }
.site-header__inner, .admin-header {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; padding: 12px 16px;
}
.nav, .header-tools, .admin-header nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.logo { font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.lang-switch a { margin-right: 6px; text-decoration: none; border-bottom: 1px solid transparent; }
.lang-switch a[aria-current="true"] { border-bottom-color: #fff; font-weight: 700; }
main { padding: 16px; }
.lead { margin-top: 0; }
.map-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 12px;
  min-height: 70vh;
}
.panel, .content-page, .admin-card, .admin-main section, .project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
#map, .admin-map { width: 100%; height: 70vh; min-height: 420px; background: #dbe7f3; border-radius: var(--radius); }
.panel select { width: 100%; min-height: 360px; }
.panel label, .stack label { display: block; margin: 6px 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.legend-item::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px;
  border: 2px solid #111; vertical-align: -2px;
}
.legend-completed::before { background: var(--completed); border-radius: 50%; }
.legend-actual::before { background: var(--actual); border-radius: 2px; }
.badge { display: inline-block; padding: 2px 8px; border: 2px solid #111; margin-right: 6px; }
.badge-completed { background: #d9f2e4; }
.badge-actual { background: #fde7cc; }
.btn {
  display: inline-block; border: 2px solid var(--brand); background: #fff; color: var(--brand);
  padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: inherit; }
.cookie-banner {
  position: sticky; bottom: 0; background: #fff; border-top: 3px solid var(--brand);
  padding: 16px; z-index: 30;
}
.cookie-actions, .inline-form, .coords { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; }
.stack { display: grid; gap: 10px; max-width: 720px; }
input, select, textarea { font: inherit; padding: 8px; width: 100%; }
.flash { padding: 8px 12px; border-radius: 6px; }
.flash-ok { background: #e3f6ea; }
.flash-error { background: #fde8e8; }
.project-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.project-card img { max-width: 100%; height: auto; }
.site-footer { padding: 16px; margin-top: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.a11y-panel { background: #fff; color: #111; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: 24px; }
@media (max-width: 1100px) {
  .map-layout { grid-template-columns: 1fr; }
  .panel select { min-height: 140px; }
  #map { height: 50vh; }
}
@media (max-width: 700px) {
  .site-header__inner { align-items: flex-start; }
  .header-tools { width: 100%; }
}
