/* Raleway lokalnie (latin + latin-ext, 400/600) */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --po-ink: #1b2735;
  --po-navy: #14395f;
  --po-blue: #2569ad;
  --po-blue-soft: #e9f1f9;
  --po-grey: #5f6b78;
  --po-grey-soft: #f3f5f7;
  --po-line: #d8dee5;
  --bs-body-font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--po-ink);
  --bs-body-bg: #fff;
  --bs-link-color: var(--po-blue);
  --bs-link-hover-color: var(--po-navy);
  --bs-border-color: var(--po-line);
}
html {
  font-size: 16px;
}
body {
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--po-ink);
  background: #fff;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--po-navy);
}
a {
  color: var(--po-blue);
}
a:hover {
  color: var(--po-navy);
}
a:focus-visible,
.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.page-link:focus {
  outline: 3px solid var(--po-blue);
  outline-offset: 2px;
  box-shadow: none;
}
.btn-primary,
.btn-po {
  --bs-btn-bg: var(--po-blue);
  --bs-btn-border-color: var(--po-blue);
  --bs-btn-hover-bg: var(--po-navy);
  --bs-btn-hover-border-color: var(--po-navy);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 2px;
  font-weight: 500;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--po-navy);
  color: #fff;
  padding: 0.6rem 1rem;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Nagłówek */
.site-header {
  border-bottom: 1px solid var(--po-line);
  background: #fff;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.site-header .brand:hover {
  color: inherit;
}
.site-header .brand img {
  height: 56px;
  width: auto;
  flex: 0 0 auto;
}
.brand-text {
  min-width: 0;
  flex: 1 1 0%;
}
.brand-name {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  color: var(--po-grey);
  line-height: 1.2;
}
.brand-title {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--po-navy);
  line-height: 1.2;
}
@media (max-width: 575.98px) {
  .site-header .brand img {
    height: 48px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
}

#page-body {
  background: #fff;
  padding: 0;
}
.page-inner {
  padding-bottom: 0.5rem;
}

/* Wstęp + wyszukiwarka */
.intro {
  background: var(--po-blue-soft);
  border-bottom: 1px solid #d3e2f1;
  padding: 2.75rem 0 2.5rem;
}
.intro h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin-bottom: 0.6rem;
  max-width: 22ch;
}
.intro p {
  color: var(--po-grey);
  max-width: 52ch;
  margin: 0;
}
.search-box {
  background: #fff;
  border: 1px solid var(--po-line);
  padding: 1.25rem;
}
.search-box label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}
.search-box .form-control {
  border-radius: 2px;
}
.search-box .search-advanced {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.search-box .search-advanced a {
  color: var(--po-grey);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.search-box .search-advanced a:hover,
.search-box .search-advanced a:focus-visible {
  color: var(--po-navy);
}

/* Platformy zewnętrzne */
.gateways {
  margin-top: -1px;
}
.gateway {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--po-line);
  background: var(--po-grey-soft);
  transition: border-color 0.15s, background 0.15s;
}
.gateway:hover {
  color: inherit;
}
.gateway .bi-icon {
  font-size: 1.6rem;
  color: var(--po-blue);
  line-height: 1;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.gateway--green {
  background: linear-gradient(160deg, #ffffff 0%, #f7fcf8 55%, #e4f3e9 100%);
  border-color: #5fad74;
}
.gateway--green .bi-icon {
  color: #1f7a3d;
}
.gateway--green:hover {
  background: linear-gradient(160deg, #ffffff 0%, #eef8f1 50%, #d7ecde 100%);
  border-color: #1f7a3d;
}
.gateway--yellow {
  background: linear-gradient(160deg, #ffffff 0%, #fffdf6 55%, #fff2d0 100%);
  border-color: #d4a017;
}
.gateway--yellow .bi-icon {
  color: #9a7200;
}
.gateway--yellow:hover {
  background: linear-gradient(160deg, #ffffff 0%, #fff9e8 50%, #ffe9a8 100%);
  border-color: #9a7200;
}
.gateway h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}
.gateway p {
  margin: 0;
  color: var(--po-grey);
  font-size: 0.975rem;
}

.home-lists-lead {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 1rem;
  color: var(--po-grey);
  border-top: 1px solid var(--po-line);
}

/* Sekcje z listami */
.list-section {
  padding-top: 2.75rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  border-bottom: 2px solid var(--po-navy);
  padding-bottom: 0.5rem;
}
.section-head h2 {
  font-size: 1.5rem;
  margin: 0;
}
.section-head .limit {
  color: var(--po-grey);
  font-size: 0.95rem;
}

.proc-table {
  margin: 0;
}
.proc-table thead th {
  background: var(--po-grey-soft);
  color: var(--po-grey);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--po-line);
  padding: 0.6rem 0.85rem;
}
.proc-table td {
  padding: 0.85rem;
  vertical-align: top;
  border-color: var(--po-line);
}
.proc-table .col-num {
  width: 13rem;
  white-space: nowrap;
  color: var(--po-grey);
  font-variant-numeric: tabular-nums;
}
.proc-table .col-date {
  width: 12rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.proc-table .col-more {
  width: 7rem;
  text-align: right;
}
.proc-table tbody tr:hover {
  background: #f8fafc;
}
.proc-table a.more {
  font-weight: 600;
  text-decoration: none;
}
.proc-table a.more:hover {
  text-decoration: underline;
}

.show-all {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 0 0;
}
.show-all a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--po-blue);
  padding-bottom: 1px;
}
.show-all a:hover {
  border-bottom-color: var(--po-navy);
}

@media (max-width: 767.98px) {
  .proc-table thead {
    position: absolute;
    left: -9999px;
  }
  .proc-table,
  .proc-table tbody,
  .proc-table tr,
  .proc-table td {
    display: block;
    width: 100%;
  }
  .proc-table tr {
    border-bottom: 1px solid var(--po-line);
    padding: 0.75rem 0;
  }
  .proc-table td {
    border: 0;
    padding: 0.15rem 0.25rem;
  }
  .proc-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--po-grey);
    font-size: 0.9rem;
  }
  .proc-table td[data-label=""]::before {
    content: none;
  }
  .proc-table .col-num,
  .proc-table .col-date,
  .proc-table .col-more {
    width: 100%;
    text-align: left;
  }
  .proc-table .col-title {
    font-weight: 600;
  }
}

/* Stopka */
.site-footer {
  margin-top: 2rem;
  background: #2b2f33;
  color: #c4cad0;
  font-size: 0.975rem;
}
.site-footer a {
  color: #c4cad0;
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible {
  outline-color: #8fb6df;
}
.site-footer h2 {
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin: 0 0 1rem;
}
.footer-main {
  padding: 3.25rem 0 2.5rem;
}
.footer-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.15rem;
}
.footer-unit {
  color: #9aa2aa;
  margin-bottom: 1.1rem;
}
.site-footer address {
  margin: 0 0 1rem;
  line-height: 1.7;
  font-style: normal;
}
.site-footer address b {
  color: #fff;
  font-weight: 600;
}
.footer-extra {
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li {
  margin-top: 0.6rem;
}
.footer-links .bi {
  font-size: 0.8rem;
  margin-left: 0.2rem;
  opacity: 0.7;
}
.bank {
  margin: 0;
  line-height: 1.7;
}
.site-footer .down {
  border-top: 1px solid #444a50;
  padding: 1rem 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #b8bec1;
  background: transparent;
}
.site-footer .down-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.site-footer .down-credit,
.site-footer .down-note {
  margin: 0;
  color: #b8bec1;
}
.site-footer .down-note {
  max-width: 48rem;
}
.site-footer .down a {
  color: #c4cad0;
}
.site-footer .down a:focus-visible {
  outline-color: #8fb6df;
}

/* Okruszki */
.breadcrumb {
  --bs-breadcrumb-divider: "›";
  --bs-breadcrumb-divider-color: #9aa2aa;
  --bs-breadcrumb-item-active-color: var(--po-navy);
  margin: 0 0 1.25rem;
  padding: 0;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.breadcrumb-item a {
  color: var(--po-grey);
  text-decoration: none;
}
.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
  color: var(--po-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.breadcrumb-item.active {
  color: var(--po-navy);
  font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.45rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  padding-right: 0.45rem;
  color: #9aa2aa;
}

/* Listing aukcji (tabela jak home) */
.listing-section {
  padding-top: 0.5rem;
}
.listing-pagination {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}
.listing-pagination-bottom {
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.listing-empty {
  margin: 1.5rem 0 0;
  color: var(--po-grey);
}

/* Formularz wyszukiwania zaawansowanego */
.search-form-panel {
  max-width: 52rem;
  width: 100%;
  margin: 0 auto 2.5rem;
}
.search-form-panel .section-head {
  margin-bottom: 0.75rem;
}
.search-form-lead {
  margin: 0 0 1.25rem;
  color: var(--po-grey);
  font-size: 0.95rem;
  max-width: 52ch;
}
.search-form {
  background: #fff;
  border: 1px solid var(--po-line);
  padding: 1.35rem 1.35rem 1.25rem;
}
.search-form .form-label,
.search-form legend.form-label {
  font-weight: 600;
  color: var(--po-ink);
  margin-bottom: 0.35rem;
  float: none;
  width: auto;
}
.search-form legend.form-label {
  font-size: 1rem;
}
.search-date-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}
.search-form .form-control,
.search-form .form-select {
  border-radius: 2px;
  border-color: var(--po-line);
}
.search-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
.search-form-home {
  font-size: 0.875rem;
  color: var(--po-grey);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.search-form-home:hover {
  color: var(--po-navy);
}

/* Pusty wynik wyszukiwania */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  max-width: 28rem;
  margin: 1.25rem auto 1.5rem;
  padding: 0 1rem;
}
.empty-state-icon {
  font-size: 2.25rem;
  color: var(--po-blue);
  opacity: 0.85;
  margin-bottom: 0.85rem;
  line-height: 1;
}
.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--po-navy);
  margin: 0 0 0.5rem;
}
.empty-state-text {
  margin: 0 0 1.35rem;
  color: var(--po-grey);
  font-size: 0.975rem;
  line-height: 1.5;
}
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.empty-state-actions .btn-outline-secondary {
  border-color: var(--po-line);
  color: var(--po-ink);
}
.empty-state-actions .btn-outline-secondary:hover {
  background: var(--po-grey-soft);
  border-color: var(--po-grey);
  color: var(--po-navy);
}

/* Widok oferty */
.offer-detail {
  max-width: 52rem;
  margin: 0 auto 2rem;
}
.offer-detail .section-head {
  margin-bottom: 1rem;
}
.offer-status {
  margin: 0 0 1rem;
  font-weight: 600;
}
.offer-meta {
  margin: 0;
  border: 1px solid var(--po-line);
  background: #fff;
}
.offer-meta-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--po-line);
  margin: 0;
}
.offer-meta-row:last-child {
  border-bottom: 0;
}
.offer-meta dt {
  margin: 0;
  color: var(--po-grey);
  font-weight: 600;
  font-size: 0.9rem;
}
.offer-meta dd {
  margin: 0;
  color: var(--po-ink);
}
.offer-meta dd .file-meta {
  display: block;
  margin-top: 0.35rem;
}
.offer-files {
  margin-top: 1.75rem;
}
.offer-files-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--po-navy);
}
.offer-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--po-line);
}
.offer-file-item {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--po-line);
}
.offer-file-item:last-child {
  border-bottom: 0;
}
.offer-file-item:hover {
  background: #f8fafc;
}
.offer-file-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.offer-file-name .bi {
  margin-right: 0.35rem;
  color: var(--po-blue);
}
.offer-file-name a {
  text-decoration: none;
}
.offer-file-name a:hover {
  text-decoration: underline;
}
@media (max-width: 575.98px) {
  .offer-meta-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Listing / view (moduły poza home) */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-list > li {
  border-top: 1px solid var(--po-line);
  padding: 12px 0;
}
.doc-list a {
  font-size: 1.25rem;
  font-weight: 600;
}
.doc-meta {
  display: block;
  margin-top: 4px;
  color: var(--po-grey);
  font-size: 0.95rem;
}
.file-meta {
  color: var(--po-grey);
  font-size: 0.95rem;
}
.status-ended {
  color: #7a1508;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
