:root {
  --bg: #f5f6f8;
  --paper: #ffffff;
  --ink: #1d2733;
  --muted: #667085;
  --line: #d9e0e8;
  --brand: #24384a;
  --brand-dark: #172635;
  --soft: #eef2f6;
  --accent: #65758a;
  --focus: #1f6feb;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(24, 36, 50, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
}

a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--brand-dark); }
a:focus, button:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -42px;
  left: 12px;
  background: var(--brand-dark);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: .94rem;
  position: sticky;
  top: 0;
  z-index: 210;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  flex-wrap: wrap;
  align-items: center;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar span { white-space: nowrap; }

.header {
  background: rgba(245, 246, 248, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--topbar-height, 42px);
  z-index: 200;
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.logo__sub { display: block; color: var(--muted); font-weight: 500; font-size: .9rem; margin-top: 2px; }

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 11px;
  border-radius: 999px;
  font-size: .96rem;
}
.nav a[aria-current="page"], .nav a:hover { background: #dbe4ee;; color: var(--brand-dark); }

.hero { padding: 54px 0 34px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 28px;
  align-items: stretch;
}
.hero__content, .contact-card, .panel, .card, .notice, .info-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__content { padding: clamp(26px, 4vw, 48px); }
.eyebrow {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.18; color: #161b22; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 72ch; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 240px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--brand);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--soft); }

.contact-card { padding: 24px; }
.contact-card__item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-card__item:last-child { border-bottom: 0; padding-bottom: 0; }
.label { display: block; color: var(--muted); font-size: .86rem; margin-bottom: 2px; }
.value { font-weight: 700; color: var(--ink); }
.value a { text-decoration: none; }

.notice { padding: 18px 20px; margin: 0 0 24px; background: #f8fafc; border-color: var(--line); }
.notice strong { color: var(--brand-dark); }

.section { padding: 34px 0; }
.section--tight { padding-top: 16px; }
.section__head { margin-bottom: 20px; max-width: 760px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.grid-2 > .panel, .grid-2 > .card, .grid-3 > .card, .grid-3 > .panel, .hero__grid > .panel, .hero__grid > .contact-card { height: 100%; }
.card { padding: 22px; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card__link { font-weight: 700; margin-top: auto; }
.panel { padding: clamp(22px, 3vw, 34px); }
.panel + .panel { margin-top: 18px; }
.grid-2 > .panel + .panel,
.grid-3 > .panel + .panel,
.hero__grid > .panel + .panel { margin-top: 0; }
.address-lines { display: block; margin-top: 12px; }

.info-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.info-list li { position: relative; padding-left: 28px; }
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 56px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 620px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }

.account-box {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
}
.account-box code { color: #fff; font-size: 1.08rem; word-break: break-all; }
.account-box .label { color: #dbe4ee; }

.account-number {
  margin-top: 8px;
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.35;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.account-bank {
  margin: 12px 0 0;
  color: #dbe4ee;
  font-weight: 600;
}


.legacy-banner {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.legacy-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.document-list a { font-weight: 700; }

.hero__map { padding: clamp(22px, 3vw, 34px); }
.hero__map h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; }

.map-embed {
  position: relative;
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  margin-top: 14px;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}
.map-embed--hero iframe { height: 390px; }
.map-link { margin-top: 12px; }

.warning { background: #fff8ed; border: 1px solid #f1d4a8; border-radius: 14px; padding: 16px; }
.muted { color: var(--muted); }

.footer { margin-top: 42px; padding: 30px 0; background: var(--brand-dark); color: #fff; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.footer p { margin: 6px 0; color: #e7edf3; }
.footer small { color: #cbd5e1; }

@media (max-width: 900px) {
  .hero__grid, .grid-3, .grid-2, .footer__grid { grid-template-columns: 1fr; }
  .header__inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .nav a { padding: 8px 9px; }
}

@media print {
  .topbar, .header, .hero-actions, .footer { display: none; }
  body { background: #fff; color: #000; }
  .hero, .section { padding: 12px 0; }
  .hero__content, .contact-card, .panel, .card, .notice { box-shadow: none; border-color: #aaa; }
}

/* Logo graficzne kancelarii */
.logo--image {
  display: inline-flex;
  align-items: center;
  min-width: 260px;
  max-width: 430px;
  width: min(430px, 42vw);
}
.logo__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}
.notice--auction {
  margin-top: 22px;
}
.notice--auction a {
  font-weight: 700;
}

@media (max-width: 820px) {
  .header__inner {
    align-items: flex-start;
  }
  .logo--image {
    width: min(100%, 360px);
    max-width: 100%;
  }
  .logo__image {
    max-height: 68px;
  }
}

@media (max-width: 560px) {
  .logo--image {
    width: 100%;
    min-width: 0;
  }
  .logo__image {
    max-height: none;
  }
}


/* Bezpieczne ograniczenia szerokości elementów w kartach */
.grid-2 > .panel,
.grid-2 > .card {
  min-width: 0;
}

.table-wrap table {
  min-width: 0;
}

/* Wpłaty: wymuszony układ dwóch boksów obok siebie */
.payment-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.payment-grid > .panel {
  min-width: 0 !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.payment-grid .account-box {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--brand-dark);
  color: #fff;
}

.payment-grid .account-box .label {
  display: block;
  color: #dbe4ee;
  font-size: .9rem;
  margin-bottom: 10px;
}

.payment-grid .account-number {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.payment-grid .account-bank {
  margin: 14px 0 0;
  color: #dbe4ee;
  font-weight: 600;
}

@media (max-width: 560px) {
  .payment-grid {
    grid-template-columns: 1fr !important;
  }
}
