@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --blue: #0757ae;
  --deep: #12364f;
  --ink: #172d3f;
  --muted: #4c6071;
  --surface: #f2f6f9;
  --line: #d4dfe7;
  --wrap: 75rem;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blue);
  text-underline-offset: 0.25em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:where(.site-header, #main, .site-footer) :is(button, input, select, textarea) {
  font: inherit;
}
:where(.site-header, #main, .site-footer) button,
.button {
  cursor: pointer;
}
:where(.site-header, #main, .site-footer) :is(button, input, select),
.button {
  min-height: 2.875rem;
}
:where(.site-header, #main, .site-footer) button,
.button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s,
    transform 0.18s;
}
:where(.site-header, #main, .site-footer) button:hover,
.button:hover {
  background: #034389;
  color: #fff;
}
:where(.site-header, #main, .site-footer) button:active,
.button:active {
  transform: translateY(1px);
}
.button-secondary {
  background: #fff;
  color: var(--blue);
}
:where(.site-header, #main, .site-footer) :is(input, select, textarea) {
  max-width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #6a7e8e;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #c45d00;
  outline-offset: 4px;
}
#main:focus {
  outline: none;
}
.wrap {
  width: min(var(--wrap), calc(100% - 4rem));
  margin-inline: auto;
}
.narrow {
  max-width: 53.125rem;
}
.section {
  padding: 4.75rem 0;
}
.surface {
  background: var(--surface);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.15rem, 4.7vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin-bottom: 1.2rem;
}

.made_by {
  text-decoration: none;
}

.made_by:hover {
  scale: 1.05;
  font-weight: bold;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 50ch;
}
.utility {
  background: var(--surface);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.5rem;
  gap: 1rem;
}
.utility-inner div {
  display: flex;
  gap: 1.5rem;
}
.utility a {
  color: var(--ink);
  padding: 7px 0;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--deep);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  margin-top: 6px;
  text-transform: uppercase;
}
.brand-logo {
  max-width: 4.625rem;
  max-height: 4.375rem;
  width: auto;
}
.nav-list,
.nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  flex-wrap: wrap;
}
.nav-list a {
  display: block;
  color: var(--ink);
  padding: 0.75rem 0;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover,
.current-menu-item > a {
  color: var(--blue);
  text-decoration: underline;
}
.nav-list li {
  position: relative;
}
.nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--line);
  padding: 0.75rem;
  min-width: 13.75rem;
  z-index: 20;
  box-shadow: 0 0.75rem 1.5rem #12364f12;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  display: block;
}
.nav-list .sub-menu .sub-menu {
  position: static;
  box-shadow: none;
  border: 0;
  padding-left: 0.75rem;
}
.menu-toggle {
  gap: 1rem;
}
.menu-toggle[hidden] {
  display: none;
}
.hero {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 31.875rem;
  padding-block: 4rem;
}
.hero h1 {
  max-width: 16ch;
}
.hero-copy {
  animation: hero-in 0.55s ease-out;
}
.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.actions:empty {
  display: none;
}
.hero-image img {
  width: 100%;
  height: 24.375rem;
  object-fit: cover;
  border-radius: 4px;
}
.notice-band {
  background: #fff7e8;
  border-top: 1px solid #e1bc7c;
  border-bottom: 1px solid #e1bc7c;
  padding: 1.5rem 0;
}
.notice-band .section-heading {
  margin-bottom: 1.125rem;
}
.notice-band h2 {
  font-size: 1.1rem;
  letter-spacing: 0;
  margin: 0;
}
.notice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.625rem;
}
.notice-list article {
  padding-left: 1rem;
  border-left: 3px solid #ad5700;
}
.notice-list h3 {
  margin: 0.625rem 0 5px;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.notice-list p {
  margin: 0;
  font-size: 0.9rem;
}
.status {
  display: inline-block;
  padding: 4px 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 700;
  background: #e8eff5;
  color: #274b68;
  border-radius: 3px;
  letter-spacing: 0;
}
.status--active {
  color: #8d2c17;
  background: #ffebe3;
}
.status--planned {
  color: #754800;
  background: #fff0cf;
}
.status--ongoing {
  color: #084b90;
  background: #e5f0fd;
}
.status--completed {
  color: #245c45;
  background: #e4f3e9;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 0.75rem;
}
.section-heading > a {
  flex-shrink: 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.shortcut {
  padding: 1.75rem;
  border-right: 1px solid var(--line);
}
.shortcut:last-child {
  border: 0;
}
.shortcut > a {
  display: block;
  min-height: 2.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.shortcut p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.625rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: white;
  transition: transform 0.18s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-2px);
}
.card-image {
  display: block;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  transition: transform 0.25s;
}
.card:hover img {
  transform: scale(1.025);
}
.card-body {
  padding: 1.625rem;
}
.card h2,
.card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0.875rem 0;
}
.card h2 a,
.card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card h2 a:hover,
.card h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.card time {
  font-size: 0.85rem;
  color: var(--muted);
}
.page-heading {
  margin-bottom: 2.625rem;
}
.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.category-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 2rem;
}
.category-nav a {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  min-height: 2.75rem;
  text-decoration: none;
}
.category-nav [aria-current] {
  background: var(--blue);
  color: #fff;
}
.filter {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.filter label {
  font-weight: 600;
}
.pagination {
  margin-top: 2.75rem;
}
.nav-links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.page-numbers {
  padding: 0.5625rem 1rem;
  border: 1px solid var(--line);
  min-height: 2.75rem;
}
.page-numbers.current {
  color: white;
  background: var(--blue);
}
.empty-state {
  background: var(--surface);
  padding: 2rem;
}
.prose {
  overflow-wrap: anywhere;
}
.prose h2 {
  font-size: 1.8rem;
  margin-top: 2.2rem;
}
.prose h3 {
  margin-top: 1.8rem;
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
}
.prose table {
  border-collapse: collapse;
  width: 100%;
}
.prose th,
.prose td {
  padding: 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
}
.prose .wp-block-table {
  overflow-x: auto;
}
.prose iframe {
  max-width: 100%;
}
.prose pre {
  overflow-x: auto;
}
.featured-image {
  margin: 2rem 0;
}
.featured-image img {
  width: 100%;
  border-radius: 4px;
}
.detail-panel {
  padding: 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--blue);
  margin-bottom: 2rem;
}
.detail-panel dl {
  margin: 1.25rem 0 0;
}
.detail-panel dl:empty {
  display: none;
}
.detail-panel dl > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  padding: 0.625rem 0;
}
.detail-panel dt {
  font-weight: 600;
}
.detail-panel dd {
  margin: 0;
}
.project-meta {
  margin: 1.5rem 0;
}
.project-meta p {
  margin-top: 0.875rem;
}
.subsection {
  margin-top: 2.75rem;
}
.document {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}
.document > span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.contact-item h3,
.contact-item h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.contact-item p {
  margin: 0;
}
.site-footer {
  background: var(--deep);
  color: white;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h2 {
  font-size: 1.5rem;
}
.site-footer a {
  color: white;
}
.footer-contact {
  display: grid;
  gap: 1.25rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.site-footer li a {
  display: inline-block;
  padding: 0.5625rem 0;
}
.site-footer p {
  color: #d8e5ee;
}
.emergency-number {
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
  padding: 6px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #537084;
  margin-top: 2.75rem;
  padding-block: 1.5rem;
  font-size: 0.85rem;
}
.search-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.search-form > div {
  display: flex;
  gap: 0.5rem;
}
.search-form input {
  min-width: 0;
  width: 100%;
}
.search-form {
  max-width: 32.5rem;
}
.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 1000;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 1rem;
  background: var(--blue);
  color: white;
  white-space: normal;
}
.alignwide {
  max-width: 100%;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 0.9rem;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1280px) {
  .menu-toggle {
    display: none;
  }
}
@media (max-width: 1100px) {
  .nav-list {
    gap: 0.75rem;
  }
  .nav-list a {
    font-size: 0.85rem;
  }
  .header-main {
    gap: 1.25rem;
  }
  .brand {
    font-size: 1.1rem;
  }
}
@media (max-width: 1279px) {
  .wrap {
    width: calc(100% - 2.5rem);
  }
  .header-main {
    flex-wrap: wrap;
    min-height: 6rem;
    padding-block: 1.25rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  #primary-navigation {
    width: 100%;
  }
  .js #primary-navigation {
    display: none;
  }
  .js #primary-navigation.is-open {
    display: block;
  }
  .nav-list {
    display: block;
  }
  .nav-list a {
    font-size: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-list .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1.25rem;
  }
  .hero-grid {
    gap: 2rem;
    grid-template-columns: 1.3fr 1fr;
    min-height: 27.5rem;
  }
  .cards {
    gap: 1rem;
  }
  .card-body {
    padding: 1.25rem;
  }
  .shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }
  .shortcut {
    border-bottom: 1px solid var(--line);
  }
  .shortcut:nth-child(2n) {
    border-right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
  .section {
    padding: 3.5rem 0;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .utility-inner {
    font-size: 0.78rem;
    min-height: 2rem;
  }
  .utility-inner > span {
    display: none;
  }
  .utility-inner div {
    flex-wrap: wrap;
    gap: 0.5rem 1.125rem;
  }
  .header-main {
    gap: 0.75rem;
  }
  .brand {
    font-size: 1rem;
  }
  .brand-logo {
    max-width: 2.75rem;
    max-height: 3rem;
  }
  .brand small {
    font-size: 0.72rem;
  }
  .menu-toggle {
    padding: 0.5rem 0.75rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 2.625rem;
    gap: 2rem;
    min-height: auto;
  }
  .hero h1 {
    max-width: 17ch;
  }
  .hero-image img {
    height: 16.25rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 1.5rem;
  }
  .section-heading > a {
    margin-top: 0.75rem;
  }
  .cards,
  .shortcuts,
  .notice-list,
  .gallery,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .notice-list {
    gap: 1.25rem;
  }
  .notice-band .section-heading > a {
    font-size: 0.9rem;
  }
  .shortcut {
    padding: 1.375rem;
    border-right: 0;
  }
  .shortcut:last-child {
    border-bottom: 0;
  }
  .actions {
    display: grid;
  }
  .actions .button {
    width: 100%;
  }
  .card h2,
  .card h3 {
    font-size: 1.3rem;
  }
  .page-heading {
    margin-bottom: 1.75rem;
  }
  .detail-panel {
    padding: 1.25rem;
  }
  .detail-panel dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .filter {
    display: grid;
  }
  .filter select {
    width: 100%;
  }
  .footer-grid {
    gap: 2rem;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
  .document {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
  .search-form > div {
    flex-wrap: wrap;
  }
  .search-form button {
    flex-grow: 1;
  }
  .site-footer {
    padding-top: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .utility,
  .menu-toggle,
  #primary-navigation,
  .site-footer,
  .actions,
  .skip-link,
  .filter {
    display: none;
  }
  .section {
    padding: 1.25rem 0;
  }
  .wrap {
    width: 100%;
  }
  .hero-grid {
    min-height: 0;
  }
  .cards {
    display: block;
  }
  .card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
  }
  body {
    color: #000;
    background: #fff;
  }
}

/* Działy informacji i sprawy mieszkańców. */
.topic-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.topic-links a {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.375rem;
  min-height: 4.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}
.topic-links a:hover {
  background: var(--surface);
  text-decoration: underline;
}
.procedure-steps {
  margin: 0;
  padding-left: 1.75rem;
}
.procedure-steps > li {
  padding: 4px 0 1.5rem 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.procedure-steps > li::marker {
  color: var(--blue);
  font-weight: 700;
}
.procedure-steps h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.department {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.department h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.department p {
  margin: 0 0 0.5rem;
  overflow-wrap: anywhere;
}
.department a {
  display: inline-block;
  padding-block: 4px;
}
.duty-section {
  padding: 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--blue);
}
.document small {
  display: block;
  margin-top: 5px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}
.document-heading {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: 0;
}
.funding-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}
.funding-logos img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.client-notice {
  margin-block: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--surface);
}
.client-notice h2 {
  font-size: 1.1rem;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}
.client-notice p {
  margin-bottom: 0.5rem;
}
.header-search {
  position: relative;
}
.header-search summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 6px 0.75rem;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}
.header-search-panel {
  display: block !important;
  position: absolute;
  top: 100%;
  right: 0;
  width: 22.5rem;
  max-width: calc(100vw - 2rem);
  z-index: 50;
  border: 1px solid var(--line);
  background: white;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem #12364f1a;
}
.utility-inner .header-search-panel .search-form > div {
  display: flex;
  gap: 0.5rem;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .topic-links,
  .department {
    grid-template-columns: 1fr;
  }
  .department {
    gap: 0.5rem;
  }
  .department h3 {
    margin-bottom: 0.5rem;
  }
  .duty-section {
    padding: 1.25rem;
  }
  .header-search-panel {
    left: 0;
    right: auto;
  }
  .utility-inner .header-search-panel .search-form > div {
    flex-wrap: wrap;
  }
  .utility-inner {
    min-height: 2.75rem;
  }
}

.hero-grid:not(.has-image) {
  grid-template-columns: 1fr;
  min-height: 23.75rem;
}
.hero-grid:not(.has-image) .hero-copy {
  max-width: 53.125rem;
}
.hero-grid:not(.has-image) h1 {
  max-width: 20ch;
}

@media (min-width: 1280px) {
  .nav-list > li:last-child > .sub-menu {
    left: auto;
    right: 0;
  }
}

/* Krótkie ścieżki do spraw mieszkańca. */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.125rem;
  list-style: none;
  margin: 0 0 1.125rem;
  padding: 0;
  font-size: .9rem;
}
.breadcrumbs li + li::before { content: "/"; margin-right: 1.125rem; }
.contact-priority { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-priority section { padding: 1.25rem; background: var(--surface); border-left: 3px solid var(--blue); }
.contact-priority h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.contact-priority p { margin: 4px 0; overflow-wrap: anywhere; }
.contact-priority a { display: inline-block; padding-block: 4px; }
.page-contact .prose { margin-top: 1.75rem; }
.page-contact .page-heading { margin-bottom: 1.5rem; }
.page-contact .section { padding-top: 2rem; }
.home .hero-grid, .home .hero-grid:not(.has-image) { min-height: 0; padding-block: 1.75rem; }
.home .hero h1 { max-width: 30ch; font-size: clamp(1.65rem, 3vw, 2.6rem); margin-bottom: 0.75rem; }
.home .hero .lead { font-size: 1rem; margin-bottom: 1rem; }
.home .hero .eyebrow { display: none; }
.home .shortcuts-section { padding-block: 1.75rem; }
.home-photo { margin-block: 1rem 2rem; }
.home-photo .hero-image img { height: 17.5rem; object-position: center; }
.home .notice-list h3 { font-size: 1rem; margin: 4px 0; }
.event-date { font-size: .875rem; margin: 4px 0; }
.document-action { font-weight: 700; }
.result-type { font-weight: 700; color: var(--deep); }
.card .document { padding-block: 0.75rem; font-size: .9rem; }
.site-footer p { margin-block: 0.5rem; overflow-wrap: anywhere; }
.site-footer a { white-space: normal; overflow-wrap: anywhere; }
.site-footer :focus-visible { outline-color: #ffbd66; }
.submenu-toggle { min-width: 2.75rem; min-height: 2.75rem; padding: 4px; background: transparent; color: var(--blue); border: 0; }
.nav-list > li.menu-item-has-children { position: relative; padding-right: 2.375rem; }
.nav-list .submenu-toggle { position: absolute; top: 0; right: 0; }
.nav-list .submenu-expanded > .sub-menu { display: block; }
@media (max-width: 1279px) {
  .js .nav-list .sub-menu { display: none; }
  .js .nav-list .submenu-expanded > .sub-menu { display: block; }
  .nav-list .submenu-toggle { top: 3px; }
  .nav-list .menu-item-has-children > a { margin-right: 2.75rem; }
  .nav-list > li.menu-item-has-children { padding-right: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .contact-priority { grid-template-columns: 1fr; gap: 0.75rem; }
  .contact-priority section { padding: 0.75rem 1rem; }
  .contact-priority p { line-height: 1.4; }
  .page-contact { padding-top: 1.5rem; }
  .page-contact .page-heading { margin-bottom: 1.125rem; }
  .home .hero-grid { padding-block: 1.25rem; }
  .home .notice-band { padding-block: 1rem; }
  .home .notice-list { gap: 0.75rem; }
  .home .notice-list .status { padding: 0 6px; font-size: .8rem; }
  .home .notice-list article { padding-left: 0.625rem; }
  .home .notice-list .event-date { font-size: .8rem; }
  .home .notice-band .section-heading { margin-bottom: 0.625rem; }
  .home .notice-band .section-heading > a { min-height: 2.25rem; margin-top: 0; }
  .home .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .shortcut { padding: 0.875rem; border-bottom: 1px solid var(--line); }
  .home .shortcut > a { font-size: 1rem; }
  .home .shortcut p { font-size: .875rem; margin-top: 4px; }
  .home .shortcut:last-child { border-bottom: 1px solid var(--line); }
  .home-photo .hero-image img { height: 11.25rem; }
  .cards { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
  .brand span { overflow-wrap: anywhere; }
  .utility-inner > div { width: 100%; justify-content: space-between; }
}
.footer-contact { display: block; }
.footer-contact h3 { font-size: 1rem; margin: 1.125rem 0 0.5rem; }
.footer-contact h3:first-child { margin-top: 0; }
.category-nav > span { display: inline-flex; align-items: center; padding: 0.5rem 0.875rem; min-height: 2.75rem; border: 1px solid var(--blue); border-radius: 3px; }
.utility-inner > div { align-items: center; }
@media (max-width: 640px) {
  .utility-inner > div { flex-wrap: wrap; gap: 0.5rem; }
  .home .notice-list .event-date { display: inline; }
  .home .notice-list .event-date + .event-date::before { content: " · "; }
}
@media (max-width: 1279px) {
  .js #primary-navigation .nav-list .sub-menu { display: none; }
  .js #primary-navigation .nav-list .submenu-expanded > .sub-menu { display: block; }
}
@media (min-width: 1280px) {
  .nav-list .submenu-toggle { display: none; }
  .nav-list > li.menu-item-has-children { padding-right: 0; }
}
@media (max-width: 640px) {
  .brand { flex-shrink: 1; max-width: 100%; }
  .brand > span { min-width: 0; }
  .contact-priority a, .department a { max-width: 100%; overflow-wrap: anywhere; }
}
.detail-panel { overflow-wrap: anywhere; }

/* Skala typografii i układu po audycie UI. */
:root {
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --font-meta: max(.875rem, 14px);
  --font-card: 1.35rem;
  --font-section: clamp(1.5rem, 2.4vw, 2rem);
  --font-page: clamp(2rem, 3.7vw, 3.3rem);
}
@media screen and (min-width: 1280px) {
  :root { font-size: 99%; --wrap: 88rem; }
}
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1, .page-heading h1 { font-size: var(--font-page); }
h2 { font-size: var(--font-section); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
.card h2, .card h3 { font-size: var(--font-card); line-height: 1.4; letter-spacing: -.01em; }
.prose h2 { font-size: 1.625rem; line-height: 1.35; margin-block: var(--space-8) var(--space-4); }
.prose h3 { font-size: 1.25rem; line-height: 1.4; margin-block: var(--space-6) var(--space-3); }
.prose > :is(p, ul, ol, blockquote), .prose > section > :is(p, ul, ol) { max-inline-size: 60ch; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-6); }
.eyebrow { font-size: var(--font-meta); text-transform: none; letter-spacing: 0; margin-bottom: var(--space-3); }
.section-heading .eyebrow { display: none; }
.utility, .utility-inner { font-size: var(--font-meta); }
.header-search-panel { font-size: 1rem; }
.header-search-panel :is(input, button) { font-size: max(1rem, 16px); }
.brand { font-weight: 700; gap: var(--space-3); }
.brand small { font-size: var(--font-meta); letter-spacing: .02em; text-transform: none; }
.nav-list { gap: var(--space-4); flex-wrap: nowrap; }
.nav-list a { font-size: 1rem; }
.nav-list :is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor) > a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.submenu-toggle[aria-expanded="true"] { background: var(--surface); color: var(--deep); }
:where(.site-header, #main, .site-footer) :is(button, input, select), .button { min-height: 44px; }
.button-secondary:hover, .button-secondary:focus-visible { background: #e5f0fd; color: #034389; }
.wrap, .narrow, .header-main, .utility-inner > div, .brand > span, .card-body, .contact-item, .footer-grid > *, .contact-priority > *, .detail-panel dd { min-width: 0; }
.footer-grid { grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.section { padding-block: var(--space-12); }
.page-heading { margin-bottom: var(--space-8); }
.subsection { margin-top: var(--space-8); }
.section-heading { margin-bottom: var(--space-6); }
.detail-panel { padding: var(--space-6); margin-bottom: var(--space-6); }
.procedure-steps > li { padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 0; }
.procedure-steps h3 { margin-bottom: var(--space-3); }
:is(.card, .linked-card) { position: relative; isolation: isolate; }
.card-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title-link:focus-visible { outline: none; }
:is(.card, .linked-card):has(.card-title-link:focus-visible) { outline: 3px solid #c45d00; outline-offset: -3px; }
.card .document { position: relative; z-index: 2; }
.card-summary { font-size: 1rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.card time, .event-date, .status, .document small, .document > span:last-child, .footer-bottom, .breadcrumbs { font-size: var(--font-meta); }
.card .result-type { font-size: var(--font-meta); margin-top: 0; }
.shortcut p, .home .shortcut p, .notice-list p { font-size: 1rem; }
.notice-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--space-6); }
.notice-list article { border-left-color: #754800; }
.notice-list article[data-status="active"] { border-left-color: #8d2c17; }
.notice-list article[data-status="completed"] { border-left-color: #245c45; }
.document { gap: var(--space-4); padding-block: var(--space-4); }
.document > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.document > span:last-child { white-space: normal; }
.topic-links a, .category-nav a { border-color: #6a7e8e; }
.prose table { font-variant-numeric: tabular-nums; }
.prose th { background: var(--surface); border-bottom-color: #6a7e8e; }
.prose td, .prose th { vertical-align: top; padding: var(--space-3); }
.prose .numeric-cell { text-align: right; }
.prose .table-scroll { overflow-x: auto; max-width: 100%; }
.table-scroll:focus-visible { outline: 3px solid #c45d00; outline-offset: 3px; }
.featured-image img { width: auto; max-width: 100%; max-height: 32rem; object-fit: contain; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.funding-logos { align-items: flex-start; gap: var(--space-4); }
.funding-logos a { display: block; max-width: 100%; }
.funding-logos img { display: block; max-height: 8rem; max-width: 100%; width: auto; }
.site-footer { padding-top: var(--space-8); }
.site-footer h2 { font-size: 1.25rem; }
.site-footer h3 { font-size: 1rem; line-height: 1.5; letter-spacing: 0; }
.site-footer :is(p, a) { overflow-wrap: anywhere; }
.site-footer li a { padding-block: var(--space-2); }
.footer-bottom { margin-top: var(--space-8); padding-block: var(--space-4); }
.site-footer :focus-visible { outline-color: #ffbd66; }
@media (max-width: 1279px) {
  .nav-list { display: block; }
  .nav-list a { font-size: 1rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --font-card: 1.25rem; }
  .header-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); min-height: 5rem; padding-block: var(--space-3); }
  .brand { font-size: .9375rem; gap: var(--space-2); max-width: 100%; }
  .brand-logo { max-width: 2.25rem; max-height: 3rem; flex-shrink: 0; }
  .brand small { font-size: var(--font-meta); }
  .menu-toggle { gap: var(--space-2); padding: var(--space-2); font-size: 1rem; }
  #primary-navigation { grid-column: 1 / -1; }
  .utility-inner { font-size: var(--font-meta); }
  .header-search summary { padding-inline: var(--space-2); font-size: 1rem; }
  .utility a { font-size: 1rem; }
  .header-search-panel { width: 22.5rem; }
  .cards, .footer-grid, .gallery, .contact-priority { grid-template-columns: minmax(0, 1fr); }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-grid { gap: var(--space-6); }
  .section { padding-block: var(--space-8); }
  .home .notice-list .event-date, .home .notice-list .status { font-size: var(--font-meta); }
  .home .notice-list .event-date { display: block; }
  .home .notice-list .event-date + .event-date::before { content: none; }
  .home .shortcut > a { font-size: 1rem; }
  .gallery img { max-height: 22rem; }
  .funding-logos { display: grid; grid-template-columns: minmax(0, 1fr); }
  .funding-logos img { max-height: none; }
}



/* Zawartość nagłówka może przejść do kolejnego wiersza przy większym tekście. */
.header-main, .nav-list, .utility-inner, .utility-inner > div { flex-wrap: wrap; }
#primary-navigation { max-width: 100%; min-width: 0; }
.utility-inner { position: relative; }
.utility-inner a { max-width: 100%; overflow-wrap: anywhere; }
.header-search { position: static; }
.shortcut { min-width: 0; }
.shortcut > a { overflow-wrap: anywhere; }
@media (min-width: 1280px) {
  .home .shortcuts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
}
@media (max-width: 640px) {
  .header-main { display: flex; }
  .brand { flex: 1 1 10rem; }
  .menu-toggle { margin-left: auto; }
  .home .shortcuts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
}
.card h2 a, .card h3 a { color: var(--blue); }
.nav-list a { overflow-wrap: anywhere; }
@media (max-width: 1279px) {
  .nav-list .sub-menu { min-width: 0; width: 100%; max-width: 100%; }
}
@media (min-width: 1280px) {
  .nav-list > li:nth-last-child(-n + 2) > .sub-menu { left: auto; right: 0; }
}
.home .hero h1 { font-size: clamp(2rem, 3vw, 2.6rem); }
.notice-band .section-heading > a, .card .document { font-size: 1rem; }
.wp-caption-text { font-size: var(--font-meta); }
.media-action { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: underline; }

/* Formularze mieszkańca korzystają ze skali i stanów całej witryny. */
.resident-form { max-width: 46rem; margin-top: var(--space-6); }
.form-fields { display: grid; gap: var(--space-6); }
.form-field { min-width: 0; }
.form-field > label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.form-field :is(input:not([type="checkbox"]), select, textarea) { width: 100%; }
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-required, .form-help { font-size: var(--font-meta); font-weight: 400; color: var(--muted); }
.form-help { margin: var(--space-2) 0 0; }
.form-field-error { margin: var(--space-2) 0 0; color: #8d2c17; font-weight: 600; }
.form-field [aria-invalid="true"] { border-color: #8d2c17; border-width: 2px; }
.form-errors, .form-success, .form-unavailable { padding: var(--space-6); margin-block: var(--space-6); border-left: 4px solid #8d2c17; background: #fff1eb; overflow-wrap: anywhere; }
.form-errors h2, .form-success h2 { font-size: 1.5rem; margin-top: 0; }
.form-errors ul { padding-left: var(--space-6); margin-bottom: 0; }
.form-errors a { color: #8d2c17; }
.form-success { background: #e4f3e9; border-color: #245c45; }
.form-unavailable { background: var(--surface); border-color: var(--blue); }
.form-emergency { margin-top: var(--space-6); }
.form-emergency h2 { font-size: 1.25rem; }
.form-emergency p { margin-block: var(--space-2); }
.form-privacy { margin-block: var(--space-6); font-size: var(--font-meta); }
.form-checkbox { display: flex !important; align-items: flex-start; gap: var(--space-3); min-height: 44px; }
.form-checkbox input { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; min-height: 0 !important; margin-top: .2rem; accent-color: var(--blue); }
.form-checkbox span { min-width: 0; overflow-wrap: anywhere; }
.wg-form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice-actions { font-weight: 600; gap: var(--space-4); }
.notice-actions a, .contact-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .form-errors, .form-success, .form-unavailable { padding: var(--space-4); }
}
.form-field label, .form-help { overflow-wrap: anywhere; }
.form-checkbox input { padding: 0; }

/* Przyciski działań zachowują czytelny układ również przy długich etykietach. */
.notice-actions, .contact-actions { align-items: center; }
.notice-actions .button, .contact-actions .button { max-width: 100%; min-width: 0; text-align: center; overflow-wrap: anywhere; }

/* Główny odnośnik obejmuje całą kartę, dodatkowe dokumenty mają własne cele. */
.linked-card:has(.card-title-link:hover) { background-color: var(--surface); }
.linked-card:has(.card-title-link:hover) .card-title-link { color: var(--blue); text-decoration: underline; }

/* Pasek pomocniczy przewija się, główna nawigacja pozostaje przy górnej krawędzi. */
:root { --header-utility-height: 0px; --header-navigation-height: 112px; --header-admin-offset: 0px; }
.site-header { position: sticky; top: calc(var(--header-admin-offset) - var(--header-utility-height)); z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
html { scroll-padding-top: calc(var(--header-navigation-height) + var(--header-admin-offset) + 16px); }
.back-to-top { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff; font-size: 1.75rem; line-height: 1; text-decoration: none; box-shadow: 0 2px 8px #132b421f; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--deep); color: #fff; }
@media (max-width: 1279px) {
  .js .header-main { position: relative; }
  .js #primary-navigation.is-open { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--line); max-height: max(120px, calc(100dvh - var(--header-navigation-height) - var(--header-admin-offset))); overflow-y: auto; overscroll-behavior: contain; }
}

/* Pasek pomocniczy jest dostępny przy pełnej nawigacji poziomej. */
@media (max-width: 1279px) {
  .site-header .utility { display: none; }
}

/* Czytelne podziały skrótów w dwukolumnowym widoku telefonu. */
@media (max-width: 640px) {
  .home .shortcut:nth-child(odd) { border-right: 1px solid var(--line); }
  .home .shortcut:nth-child(even) { border-right: 0; }
}
/* Podświetlenie komunikatów pozostaje w ciepłej palecie sekcji. */
.notice-list .linked-card:has(.card-title-link:hover) { background-color: #ffedc7; }
.notice-list .linked-card:has(.card-title-link:hover) .card-title-link { color: #754800; }
@media (max-width: 1279px) {
  .js #primary-navigation.is-open { left: 50%; width: 100vw; max-width: 100vw; transform: translateX(-50%); padding-inline: 1rem; }
}

/* Jednolity odstęp między nagłówkiem sekcji a jej działaniami na telefonie. */
@media (max-width: 640px) {
  .section-heading { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .section-heading > a { margin-top: 0; align-self: flex-start; }
  .home .notice-band .section-heading { margin-bottom: var(--space-6); }
}
