:root {
  --green: #244f3f;
  --green-dark: #17382d;
  --gold: #d78c2f;
  --soft: #edf5ef;
  --text: #1f2937;
  --muted: #60708a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f8;
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f3c46e;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  z-index: 100;
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 10px 14px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.skip-link:focus { top: 12px; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.topbar { background: var(--green-dark); color: #fff; font-weight: 700; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 850;
}
.pill.orange { background: var(--gold); }
header { position: sticky; top: 0; z-index: 20; background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand img { width: 42px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand span { display: block; color: rgba(255,255,255,.78); font-size: 14px; }
nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
nav a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 750; color: rgba(255,255,255,.9); }
nav a:hover, nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.hero {
  background: linear-gradient(90deg, rgba(23,56,45,.94), rgba(36,79,63,.72)), url("/images/school-tomice-mural-wide.jpg") center/cover;
  color: #fff;
  padding: 74px 0;
}
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1; letter-spacing: 0; }
.hero p { max-width: 720px; font-size: 19px; color: rgba(255,255,255,.88); }
main section { padding: 58px 0; }
main section:nth-child(even) { background: #fff; }
h2 { margin: 0 0 20px; color: var(--green); font-size: 34px; line-height: 1.1; }
h3 { margin: 0 0 8px; color: var(--green); font-size: 20px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #e4e9ec;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(25, 52, 44, .08);
}
.soft { background: var(--soft); box-shadow: none; }
.badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1e7;
  color: #a64b0c;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.table-wrap { overflow-x: auto; border: 1px solid #e4e9ec; border-radius: 14px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; background: #fff; font-size: 14px; }
th { background: var(--soft); color: var(--green); text-align: left; }
th, td { border-bottom: 1px solid #e4e9ec; padding: 12px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.news-card { overflow: hidden; padding: 0; }
.news-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.news-card img.poster { object-fit: contain; background: #fff8ed; padding: 8px; }
.news-card div { padding: 20px; }
.photo-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.photo-grid img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 16px; display: block; }
.map-frame { overflow: hidden; border: 1px solid #d9e5de; border-radius: 14px; background: #fff; }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; }
.button { display: inline-flex; margin-top: 16px; border-radius: 10px; background: #a85608; color: #fff; padding: 12px 16px; font-weight: 800; }
footer { background: var(--green-dark); color: rgba(255,255,255,.82); padding: 24px 0; }
@media (max-width: 820px) {
  header .wrap, .topbar .wrap { flex-direction: column; align-items: flex-start; }
  header .wrap { gap: 14px; }
  .brand { min-width: 0; }
  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  nav a { flex: 0 0 auto; }
  .grid-2, .grid-3, .photo-grid { grid-template-columns: 1fr; }
  .hero { padding: 58px 0; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 32px, 1140px); }
  .topbar { font-size: 13px; }
  header .wrap { padding: 14px 0; }
  .brand strong { font-size: 16px; }
  .brand span { font-size: 13px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}
