/* ===== GLOBAL ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}

/* ================= HEADER ================= */
.institution-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background-color: #ffffff;
  color: #000000;
  justify-content: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 60px;
}

.institution-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.institution-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.office-name {
  font-size: 1rem;
  margin: 0;
}

/* ================= MENU ================= */
#topbar{
  height:60px;
  width:100%;
  background:#820E16;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
  position:sticky;
  top:0;
  z-index:2000;
}

#topbar nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#topbar a{
  color:#fff;
  text-decoration:none;
  padding:6px 10px;
  border-radius:6px;
  font-weight:600;
  font-size:0.9rem;
}

#topbar a:hover,
#topbar a:focus{
  background:#444;
  outline:2px solid #fff;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ===== LISTA ===== */
.lista-budynkow a {
    display: block;
    padding: 4px 0;
    color: #003366;
}

.lista-budynkow a:hover {
    text-decoration: underline;
}

/* ===== BLOK BUDYNEK ===== */
.budynek {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
}

.opis {
    flex: 2;
}

.opis p {
    margin: 4px 0;
}


.obraz {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.obraz img {
    max-width: 100%;
    height: auto;
}

/* ===== BLOK UDOGODNIENIE ===== */
.udog {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
}

/* ===== FILTR ===== */
.filtr {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 20px;
}

.filtr select {
    margin: 5px;
    padding: 5px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .budynek,
    .udog {
        flex-direction: column;
    }

    #topbar nav {
        justify-content: center;
    }
}

/* ===== WCAG ===== */
a:focus {
    outline: 3px solid #000;
}
``